/* ==========================================================================
   Scripture Song Generator - Master Stylesheet
   ========================================================================== */

/* Design Tokens
   ========================================================================== */
:root {
  /* Colors */
  --color-primary: #2c3e50;
  --color-primary-light: #34495e;
  --color-accent: #3498db;
  --color-accent-dark: #2980b9;
  --color-success: #27ae60;
  --color-text: #2c3e50;
  --color-text-secondary: #5a6c7d;
  --color-text-light: #95a5a6;
  
  /* Backgrounds */
  --bg-body: linear-gradient(135deg, #f0f8ff 0%, #e0f0ff 100%);
  --bg-window: #ffffff;
  --bg-window-header: linear-gradient(to bottom, #b3ccf5 0%, #9bb8f0 100%);
  --bg-section-light: #f8fbff;
  --bg-hover: #f0f6ff;
  --bg-button: #ffffff;
  --bg-button-primary: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  
  /* Borders */
  --border-color: #7d9be0;
  --border-color-light: #e1e8ed;
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --border-radius-lg: 12px;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 42px;
  
  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(125, 155, 224, 0.2);
  --shadow-md: 0 4px 12px rgba(125, 155, 224, 0.3);
  --shadow-lg: 0 8px 25px rgba(125, 155, 224, 0.4);
  --shadow-xl: 0 16px 50px rgba(125, 155, 224, 0.5);
  
  /* Z-index stack */
  --z-base: 1;
  --z-dropdown: 100;
  --z-modal: 1000;
  --z-tooltip: 2000;
}

/* Base Styles (Scoped to #app)
   ========================================================================== */
#app {
  font-family: var(--font-sans);
  min-height: 100vh;
  margin: 0;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

/* Component Library
   ========================================================================== */

/* Computer Window Component */
.computer-window {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-window);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl), var(--shadow-md);
  overflow: hidden;
}

.computer-window--wide {
  max-width: 1200px;
}

.window-header {
  background: var(--bg-window-header);
  color: var(--color-text);
  padding: var(--space-3) var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.window-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.window-auth {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  margin-left: auto;
  margin-right: var(--space-4);
}

.auth-user-info {
  color: var(--color-text);
  font-weight: 500;
}

.auth-divider {
  color: var(--color-text-light);
  margin: 0 2px;
}

.auth-quota {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.auth-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: var(--color-accent-dark);
}

.auth-logout {
  color: #e74c3c;
}

.auth-logout:hover {
  color: #c0392b;
}

.auth-login-btn {
  color: #7f9ae2;
  text-decoration: none;
  padding: var(--space-1) var(--space-3);
  border: 1px solid #7f9ae2;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  font-size: var(--font-size-xs);
  transition: all 0.2s ease;
  background: var(--bg-window);
}

.auth-login-btn:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-1px);
}

/* Responsive text for login button */
.auth-btn-desktop {
  display: inline;
}

.auth-btn-mobile {
  display: none;
}

.window-controls {
  display: flex;
  gap: var(--space-2);
}

.window-control {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.window-control:nth-child(1) { background: #ff9999; }
.window-control:nth-child(2) { background: #ffdd88; }
.window-control:nth-child(3) { background: #88dd88; }

.window-content {
  padding: var(--space-6);
  background: var(--bg-window);
}

/* Form Components */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Specific spacing adjustments for form elements */
.help-link {
  margin-top: var(--space-1) !important; /* Closer to input box */
}

/* Clean, scoped form spacing for home page */
.page-home .form {
  gap: 0;
}

.page-home .form-group {
  gap: var(--space-1); /* 4px between label and input */
}

.page-home .form-group + .form-group {
  margin-top: var(--space-6); /* 24px between form sections */
}

/* Extra spacing between verse selection and translation section */
.page-home .translation-group {
  margin-top: var(--space-8); /* 32px after help link */
}

.form-label {
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--font-size-sm);
}

.form-input,
.form-select {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-color-light);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-base);
  font-family: var(--font-sans);
  background: var(--bg-window);
  color: var(--color-text);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Button Components */
.btn {
  padding: var(--space-3) var(--space-6);
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-size: var(--font-size-base);
  border: 1px solid var(--border-color);
  background: var(--bg-button);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  display: inline-block;
  text-align: center;
}

.btn:hover {
  background: var(--bg-hover);
}

.btn-primary {
  background: var(--bg-button-primary);
  color: white;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 0px rgba(52, 73, 94, 0.6);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 0px rgba(52, 73, 94, 0.6);
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 0px rgba(52, 73, 94, 0.6);
}

/* Generate Button Special */
.generate-btn {
  background: var(--bg-button-primary);
  color: white;
  border: none;
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 0px rgba(52, 73, 94, 0.6);
  margin-top: var(--space-6);
  width: 100%;
}

.generate-btn:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  transform: translateY(-3px);
  box-shadow: 0 9px 0px rgba(52, 73, 94, 0.6);
}

.generate-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 0px rgba(52, 73, 94, 0.6);
}

/* Credits Display */
.credits-info {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-section-light);
  border: 1px solid var(--border-color-light);
  border-radius: var(--border-radius-sm);
  font-weight: 500;
}

.credits-info.no-credits {
  color: #dc3545;
  background: #fff5f5;
  border-color: #fecaca;
}

/* Audio Components */
.audio-section {
  text-align: center;
  margin: var(--space-6) 0;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  justify-content: center;
}

/* Two-row layout for post-song generation page */
.audio-controls.stacked {
  flex-direction: column;
}

.primary-controls,
.secondary-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  justify-content: center;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-button-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}

.play-btn:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.4);
}

.play-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.time-display {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  min-width: 80px;
  text-align: center;
}

.skip-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-window);
  border: 2px solid var(--border-color-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  color: var(--color-text-secondary);
}

.skip-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  transform: scale(1.05);
}

.skip-btn:active {
  transform: scale(0.95);
}

.skip-btn svg {
  width: 20px;
  height: 20px;
}

.repeat-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-window);
  border: 2px solid var(--border-color-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.repeat-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.repeat-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.repeat-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--color-text-secondary);
}

.repeat-btn:hover svg,
.repeat-btn.active svg {
  fill: white;
}

.playlist-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  justify-content: center;
}

.progress-container {
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border-radius: var(--border-radius-sm);
  position: relative;
  cursor: pointer;
  border: 1px solid #ddd;
  margin: var(--space-4) 0;
}

.progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--border-radius-sm);
  width: 0%;
  transition: width 0.1s;
}

/* Card Components */
.song-info,
.info-box {
  background: var(--bg-section-light);
  border: 1px solid var(--border-color);
  padding: var(--space-4);
  margin: var(--space-5) 0;
  border-radius: var(--border-radius);
}

.song-meta {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Voice Indicators */
.voice-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--border-radius-lg);
  font-size: var(--font-size-xs);
  font-weight: 500;
  min-height: 20px;
  line-height: 1;
}


/* Layout Components */
.action-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

/* Typography */
h1 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin: 0 0 var(--space-3) 0;
}

h2 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-4) 0;
}

.success-message {
  text-align: center;
  font-size: var(--font-size-lg);
  color: var(--color-success);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-home {
    padding: 0;
  }
  
  .computer-window {
    margin: 0;
  }
  
  .window-content {
    padding: var(--space-4);
  }
  
  .window-header {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-base);
  }
  
  .window-auth {
    font-size: 10px;
    gap: var(--space-1);
    margin-right: var(--space-2);
  }
  
  .auth-login-btn {
    padding: 2px var(--space-2);
    font-size: 10px;
  }
  
  /* Show mobile text, hide desktop text on mobile */
  .auth-btn-desktop {
    display: none;
  }
  
  .auth-btn-mobile {
    display: inline;
  }
  
  h1 {
    font-size: 22px;
    margin-bottom: var(--space-2);
  }
  
  .subtitle {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-5);
  }
  
  /* Hide subtitle for logged-in users on mobile */
  .page-home.logged-in .subtitle {
    display: none;
  }
  
  
  
  .verse-selection {
    padding: var(--space-3);
    margin-bottom: var(--space-5);
  }
  
  .verse-selection h3 {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-2);
  }
  
  .theme-btn {
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    min-height: 44px;
    min-width: 120px;
    margin: var(--space-1);
  }
  
  .theme-buttons {
    justify-content: center;
    gap: var(--space-2);
  }
  
  .form-group {
    margin-bottom: var(--space-5);
  }
  
  .form-label {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
  }
  
  .form-input,
  .form-select {
    padding: var(--space-4);
    font-size: var(--font-size-lg);
    min-height: 50px;
    border-width: 1px;
    border-radius: 0;
  }
  
  .generate-btn {
    padding: var(--space-4);
    font-size: var(--font-size-xl);
    min-height: 56px;
    margin-top: var(--space-4);
  }
  
  .library-link {
    margin-top: var(--space-5);
  }
  
  .library-link a {
    font-size: var(--font-size-lg);
    padding: var(--space-3);
    display: inline-block;
    min-height: 44px;
  }
  
  .loading-bar {
    display: none;
    width: 100%;
    margin-top: var(--space-4);
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    height: 40px;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
  }

  .loading-bar.show {
    display: block;
  }
  
  .loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-text);
    font-size: var(--font-size-base);
    font-weight: 500;
    z-index: var(--z-dropdown);
    padding: 0 var(--space-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .loading-progress {
    height: 100%;
    background: linear-gradient(135deg, var(--border-color) 0%, var(--color-accent-dark) 100%);
    width: 0%;
    transition: width 0.3s ease-out;
    position: relative;
    border-radius: var(--border-radius-sm);
    transform: translateZ(0);
    will-change: width;
  }

  .loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
  }
  
  .tooltip {
    width: calc(100vw - 40px);
    left: -10px;
    max-width: 280px;
  }
  
  .info-icon {
    font-size: var(--font-size-lg);
  }
  
  .translation-label-wrapper {
    margin-bottom: var(--space-2);
  }
}

@media (max-width: 480px) {
  .window-content {
    padding: var(--space-3);
  }
  
  h1 {
    font-size: var(--font-size-xl);
  }
  
  .subtitle {
    font-size: 15px;
  }
  
  .theme-btn {
    padding: var(--space-2) var(--space-3);
    font-size: 15px;
    min-width: 90px;
    min-height: 40px;
  }
  
  .form-input,
  .form-select {
    padding: var(--space-3);
    font-size: var(--font-size-base);
    min-height: 48px;
  }
  
  .generate-btn {
    padding: var(--space-3);
    font-size: var(--font-size-lg);
    min-height: 52px;
  }
  
  .library-link a {
    font-size: var(--font-size-base);
    padding: var(--space-2);
    min-height: 40px;
  }
  
  .loading-text {
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 600px) {
  .computer-window,
  .computer-window--wide {
    margin: var(--space-3);
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Mobile-specific fixes for repeat button active states */
@media (max-width: 768px) {
  /* Ensure touch targets are adequate without disrupting backgrounds */
  .repeat-btn {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation; /* Disable zoom on double-tap */
    /* Preserve original background styling */
    background: var(--bg-window) !important;
    border: 2px solid var(--border-color-light) !important;
  }
  
  /* Fix inactive state SVG visibility on mobile */
  .repeat-btn svg {
    fill: var(--color-text-secondary) !important;
  }
  
  .song-card .repeat-btn {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
    /* Preserve original background styling */
    background: var(--bg-window) !important;
    border: 2px solid var(--border-color-light) !important;
  }
  
  /* Fix inactive state SVG visibility on mobile for song cards */
  .song-card .repeat-btn svg {
    fill: var(--color-text-secondary) !important;
  }
  
  /* Force playlist repeat button active state on mobile with higher specificity */
  .repeat-btn.active {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    -webkit-transform: translateZ(0); /* Force hardware acceleration for repaint */
    transform: translateZ(0);
  }
  
  .repeat-btn.active svg {
    fill: white !important;
  }
  
  /* Force song card repeat button active state on mobile with higher specificity */
  .song-card .repeat-btn.active {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    -webkit-transform: translateZ(0); /* Force hardware acceleration for repaint */
    transform: translateZ(0);
  }
  
  .song-card .repeat-btn.active svg {
    fill: white !important;
  }
  
  /* Fix save button visibility and consistency on mobile */
  .song-card .save-btn {
    min-width: 44px !important;
    min-height: 44px !important;
    touch-action: manipulation;
    background: transparent !important;
  }
  
  /* Force bookmark stroke/fill consistency on mobile - unsaved state */
  .song-card .save-btn:not(.saved) {
    background: transparent !important;
  }
  
  .song-card .save-btn:not(.saved) svg {
    stroke: #000000 !important;
    fill: none !important;
    color: #000000 !important;
  }
  
  /* Force hover state to remain clean on mobile */
  .song-card .save-btn:not(.saved):hover {
    background: transparent !important;
  }
  
  .song-card .save-btn:not(.saved):hover svg {
    stroke: #000000 !important;
    fill: none !important;
    color: #000000 !important;
  }
  
  /* Force saved state - black background with white bookmark on mobile */
  .song-card .save-btn.saved {
    background: #000000 !important;
    border-radius: 4px !important;
  }
  
  .song-card .save-btn.saved svg {
    stroke: #ffffff !important;
    fill: #ffffff !important;
    color: #ffffff !important;
  }
}

/* Verse Selection Component */
.verse-selection {
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  padding: var(--space-4);
  margin: var(--space-5) 0 var(--space-12) 0;
  border-radius: var(--border-radius-sm);
}

.verse-selection h3 {
  margin: 0 0 var(--space-4) 0;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
}

.theme-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.theme-btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  background: var(--bg-button);
  border: 1px solid var(--border-color);
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  color: var(--color-text);
  transition: all 0.2s ease;
  font-weight: 500;
}

.theme-btn:hover {
  background: var(--border-color);
  color: white;
  border-color: var(--color-accent-dark);
  transform: translateY(-1px);
}

.theme-btn.active {
  background: var(--border-color);
  color: white;
  border-color: var(--color-accent-dark);
}

.verses-container {
  margin-bottom: var(--space-4);
}

.verses-list {
  display: none;
}

.verses-list.active {
  display: block;
}

.verse-item {
  padding: var(--space-2);
  margin: var(--space-2) 0;
  background: var(--bg-button);
  border: 1px solid var(--border-color-light);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.verse-item:hover {
  border-color: var(--border-color);
  background: var(--bg-section-light);
  transform: translateY(-1px);
}

.verse-select-btn {
  background: var(--border-color);
  color: white;
  border: none;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.verse-select-btn:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

/* Verse Preview Component */
.verse-reference {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.verse-snippet {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

.verse-preview {
  background: var(--bg-button);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-4);
  margin-top: var(--space-4);
}

.verse-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  font-style: italic;
}

/* Translation Group & Tooltip */
.translation-group {
  position: relative;
}

.translation-label-wrapper {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.info-icon {
  color: var(--border-color);
  font-size: var(--font-size-sm);
  cursor: help;
  position: relative;
  display: inline-flex;
  align-items: center;
  transform: translateY(-1px);
  line-height: 1;
}

.info-icon:hover {
  color: var(--color-accent);
}

.tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  z-index: var(--z-tooltip);
  bottom: 125%;
  left: 0;
  background: var(--bg-button);
  color: var(--color-text);
  border: 1px solid var(--border-color);
  padding: var(--space-3);
  font-size: var(--font-size-xs);
  width: 280px;
  line-height: 1.3;
  box-shadow: var(--shadow-md);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  border-radius: var(--border-radius-sm);
}

.info-icon:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* Loading Bar Component */
.loading-bar {
  display: none;
  width: 100%;
  margin-top: var(--space-5);
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  height: 30px;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
}

.loading-bar.show {
  display: block;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(135deg, var(--border-color) 0%, var(--color-accent-dark) 100%);
  width: 0%;
  transition: width 0.5s ease;
  position: relative;
}

.loading-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 500;
  z-index: var(--z-dropdown);
}

.loading-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Library Link Component */
.library-link {
  text-align: center;
  margin-top: var(--space-6);
}

.library-link a {
  color: #e74c3c;
  text-decoration: none;
  font-weight: normal;
  font-size: var(--font-size-base);
  transition: color 0.2s ease;
}

.library-link a:hover {
  color: #c0392b;
}

/* Page Scoping - To be applied via class on main container
   ========================================================================== */

/* Home Page Specific Styles */
.page-home {
  background: var(--bg-body);
  min-height: 100vh;
  padding: var(--space-5);
  margin: 0;
}

#app.page-home {
  background: var(--bg-body);
  min-height: 100vh;
  padding: var(--space-5);
}

.page-home h1 {
  margin-bottom: var(--space-2);
}

.page-home .hero-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 var(--space-4) 0;
  line-height: 1.2;
  text-align: center;
}

.page-home .subtitle {
  color: var(--color-text-secondary);
  font-size: calc(var(--font-size-lg) * 0.85);
  margin-bottom: var(--space-6);
  text-align: center;
}

/* Song Generation Page Styles */
.page-song {
  background: var(--bg-body);
  min-height: 100vh;
  padding: var(--space-5);
  margin: 0;
}

#app.page-song {
  background: var(--bg-body);
  min-height: 100vh;
  padding: var(--space-5);
}

/* Library Page Styles */
.page-library, .page-my-library {
  background: var(--bg-body);
  min-height: 100vh;
  padding: var(--space-5);
  margin: 0;
}

#app.page-library, #app.page-my-library {
  background: var(--bg-body);
  min-height: 100vh;
  padding: var(--space-5);
}

/* Library Header */
.library-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-color-light);
}

.library-title-section h2 {
  margin: 0;
  color: var(--color-text);
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

.library-actions {
  display: flex;
  align-items: center;
}

.create-song-btn {
  position: relative;
  font-weight: 500 !important;
  padding: var(--space-2) var(--space-4) !important;
  font-size: var(--font-size-sm) !important;
}

.nav-btn {
  position: relative;
  font-weight: 500 !important;
  padding: var(--space-2) var(--space-4) !important;
  font-size: var(--font-size-sm) !important;
  margin-right: var(--space-3);
}

/* Mobile-specific library header styles */
@media (max-width: 768px) {
  .library-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    text-align: center;
  }
  
  .library-title-section {
    width: 100%;
    margin-bottom: var(--space-2);
  }
  
  .library-title-section h2 {
    font-size: calc(var(--font-size-2xl) * 0.8) !important;
    margin-bottom: var(--space-3) !important;
  }
  
  .user-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin-top: var(--space-2);
  }
  
  .user-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
  }
  
  .quota-info {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
  }
  
  .library-actions {
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-3);
  }
  
  .nav-btn {
    margin-right: 0 !important;
    flex: 0 0 140px;
    text-align: center;
  }
  
  /* Mobile search form adjustments - Force smaller sizes */
  .library-filters .search-section .search-form {
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }
  
  .library-filters .search-section .search-input {
    padding: 8px !important;
    font-size: 14px !important;
    min-width: 0 !important;
    flex: 1 !important;
  }
  
  .library-filters .search-section .search-btn {
    padding: 8px 12px !important;
    font-size: 12px !important;
    min-width: 50px !important;
    max-width: 70px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
}

/* Song Grid Layout */
.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
  max-width: 100%;
}

/* Desktop: 1 column for wider progress bar */
@media (min-width: 768px) {
  .song-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Song Card Styling */
.song-card {
  background: var(--bg-window);
  border: 1px solid var(--border-color-light);
  border-radius: var(--border-radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
}

.song-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-color);
}

.song-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  gap: var(--space-3);
}

.song-card .verse-ref {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  flex: 1;
  line-height: 1.4;
}

.song-card .song-details {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  flex-wrap: wrap;
}

.song-card .audio-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* Ensure play button is perfectly circular in song cards */
.song-card .play-btn {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  min-width: 48px;
  min-height: 48px;
  flex-shrink: 0;
  background: var(--bg-button-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}

.song-card .play-btn:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.4);
}

.song-card .play-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.song-card .repeat-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-window);
  border: 2px solid var(--border-color-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.song-card .repeat-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.song-card .repeat-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.song-card .repeat-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--color-text-secondary);
}

.song-card .repeat-btn:hover svg,
.song-card .repeat-btn.active svg {
  fill: white;
}

/* Save button styling */
.song-card .save-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  border-radius: 4px;
}

.song-card .save-btn:hover {
  background: var(--color-primary-light);
  transform: scale(1.1);
}

.song-card .save-btn.saved {
  background: var(--color-primary);
  cursor: default;
}

.song-card .save-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-text-secondary);
  fill: none;
  transition: stroke 0.2s, fill 0.2s;
}

.song-card .save-btn:hover svg {
  stroke: var(--color-primary);
}

.song-card .save-btn.saved svg {
  stroke: white;
  fill: white;
}

/* Empty Library State */
.empty-library-state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  width: 100%;
}

.empty-library-card {
  background: var(--bg-window);
  border: 1px solid var(--border-color-light);
  border-radius: var(--border-radius);
  padding: var(--space-8);
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.empty-library-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-color);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  opacity: 0.6;
}

.empty-library-card h3 {
  color: var(--color-text);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}

.empty-library-card p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  margin: 0 0 var(--space-6);
  line-height: 1.5;
}

.empty-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.empty-actions .btn-primary,
.empty-actions .btn-secondary {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.empty-actions .btn-primary {
  background: var(--bg-button-primary);
  color: white;
  border: none;
}

.empty-actions .btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.empty-actions .btn-secondary {
  background: var(--bg-window);
  color: var(--color-text);
  border: 1px solid var(--border-color);
}

.empty-actions .btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Library Filters */
.library-filters {
  background: var(--bg-section-light);
  border: 1px solid var(--border-color-light);
  border-radius: var(--border-radius);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}

.search-section {
  margin-bottom: var(--space-4);
}

.search-form {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.search-input {
  flex: 1;
  padding: var(--space-3);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-base);
  background: var(--bg-window);
  color: var(--color-text);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-btn {
  padding: var(--space-3) var(--space-4);
  background: #000000;
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-btn:hover {
  background: #333333;
  transform: translateY(-1px);
}

.translation-filters {
  margin-bottom: var(--space-4);
}

.filter-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.filter-chip {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-window);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-chip:hover {
  background: var(--bg-hover);
  border-color: var(--color-accent);
  color: var(--color-text);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-chip.active {
  background: #000000;
  border-color: #000000;
  color: white;
  font-weight: 600;
}

.filter-chip.active:hover {
  background: #333333;
  border-color: #333333;
  transform: translateY(-1px);
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
}

.clear-filters {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--border-radius-sm);
  transition: all 0.2s ease;
}

.clear-filters:hover {
  color: var(--color-text);
  background: var(--bg-hover);
}

/* Login Page Styles */
.page-login {
  background: var(--bg-body);
  min-height: 100vh;
  padding: var(--space-5);
  margin: 0;
}

#app.page-login {
  background: var(--bg-body);
  min-height: 100vh;
  padding: var(--space-5);
}

#app.page-upgrade {
  background: var(--bg-body);
  min-height: 100vh;
  padding: var(--space-5);
}

/* Login Tabs Component */
.login-tabs {
  display: flex;
  background: var(--bg-section-light);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  padding: var(--space-1);
  margin-bottom: var(--space-4);
  border: 1px solid var(--border-color-light);
  border-bottom: none;
}

.tab-btn {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.tab-btn:hover {
  background: var(--bg-hover);
  color: var(--color-text);
}

.tab-btn.active {
  background: #000000;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Tab Content */
.tab-content {
  display: none;
  padding: var(--space-4);
  background: var(--bg-window);
  border: 1px solid var(--border-color-light);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  min-height: 300px;
}

.tab-content.active {
  display: block;
}

/* Login Form Styles */
.login-form {
  max-width: 400px;
  margin: 0 auto;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-window);
  border: 1px solid var(--border-color-light);
  border-radius: var(--border-radius-sm);
  transition: border-color 0.2s ease;
  margin-bottom: var(--space-4);
}

.input-wrapper:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-icon {
  padding: 0 var(--space-3);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  border-right: 1px solid var(--border-color-light);
  background: var(--bg-section-light);
  display: flex;
  align-items: center;
  min-height: 48px;
}

.login-form .form-input {
  flex: 1;
  border: none;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-base);
  background: transparent;
  margin: 0;
}

.login-form .form-input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.login-btn {
  width: 100%;
  background: #000000;
  color: white;
  border: 1px solid var(--border-color);
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: var(--space-4);
}

.login-btn:hover {
  background: #000000;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* Upgrade Tab Content */
.upgrade-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.upgrade-content h3 {
  color: var(--color-text);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-xl);
}

.upgrade-content p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.upgrade-plans {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.plan-card {
  background: var(--bg-section-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-6);
  text-align: center;
  max-width: 300px;
  box-shadow: var(--shadow-sm);
}

.plan-card h4 {
  color: var(--color-text);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-lg);
}

.plan-price {
  color: #000000;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: var(--space-4) 0 var(--space-4) 0;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6) 0;
  text-align: left;
}

.plan-features li {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
  padding-left: var(--space-4);
  position: relative;
}

.plan-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 600;
}

.upgrade-btn {
  background: var(--color-success);
  color: white;
  border: none;
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.upgrade-btn:hover {
  background: #219653;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.upgrade-btn-black {
  background: #000000;
  color: white;
  border: none;
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.upgrade-btn-black:hover {
  background: #333333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.checkout-button-black {
  background: #000000;
  color: white;
  border: none;
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
  font-weight: 600;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 400px;
  margin: 0 auto var(--space-6);
  box-shadow: 0 6px 0px rgba(0, 0, 0, 0.6);
}

.checkout-button-black:hover {
  background: #333333;
  transform: translateY(-3px);
  box-shadow: 0 9px 0px rgba(0, 0, 0, 0.6);
}

.checkout-button-black:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 0px rgba(0, 0, 0, 0.6);
}

/* Back Link */
.back-link {
  text-align: center;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
}

.back-link a {
  color: #95a5a6;
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: color 0.2s ease;
}

.back-link a:hover {
  color: #7f8c8d;
  text-decoration: underline;
}

/* Responsive Design for Login Page */
@media (max-width: 768px) {
  .page-login {
    padding: var(--space-3);
  }
  
  .tab-btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
  }
  
  .tab-content {
    padding: var(--space-3);
    min-height: 250px;
  }
  
  .input-wrapper {
    margin-bottom: var(--space-3);
  }
  
  .input-icon {
    padding: 0 var(--space-2);
    min-height: 44px;
  }
  
  .plan-card {
    padding: var(--space-4);
  }
  
  .plan-price {
    font-size: var(--font-size-xl);
  }
}

@media (max-width: 480px) {
  .login-tabs {
    margin: 0 -var(--space-3) var(--space-3) -var(--space-3);
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .tab-content {
    margin: 0 -var(--space-3);
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
  
  .upgrade-content h3 {
    font-size: var(--font-size-lg);
  }
}

/* ========================================================================== 
   Upgrade Page Styles (page-upgrade)
   ========================================================================== */

.page-upgrade .upgrade-page-content {
  max-width: 450px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.page-upgrade-library .computer-window {
  margin-top: var(--space-8);
}

.page-upgrade .upgrade-header {
  margin-bottom: var(--space-8);
}

.page-upgrade .upgrade-title {
  font-size: var(--font-size-2xl);
  color: var(--color-text);
  margin: 0 0 var(--space-4) 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.page-upgrade .upgrade-icon {
  font-size: var(--font-size-3xl);
}

.page-upgrade .upgrade-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.page-upgrade .premium-features-box {
  background: var(--bg-section-light);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8) var(--space-6);
  margin: var(--space-8) 0;
  box-shadow: var(--shadow-md);
}

.page-upgrade .features-title {
  font-size: var(--font-size-xl);
  color: var(--color-text);
  margin: 0 0 var(--space-6) 0;
  font-weight: 600;
}

.page-upgrade .features-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 400px;
  margin: 0 auto;
}

.page-upgrade .feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-align: left;
}

.page-upgrade .checkmark {
  background: var(--color-success);
  color: white;
  font-size: var(--font-size-sm);
  font-weight: bold;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-upgrade .feature-text {
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: 1.5;
}

.page-upgrade .upgrade-actions {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
}

.page-upgrade .checkout-button {
  background: var(--color-text-light);
  color: var(--color-text);
  border: 2px solid var(--border-color-light);
  border-radius: var(--border-radius);
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: all 0.2s ease;
  min-width: 200px;
  justify-content: center;
}

.page-upgrade .checkout-button:hover {
  background: var(--color-text-light);
  border-color: var(--border-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.page-upgrade .back-link-wrapper {
  margin-top: var(--space-4);
}

.page-upgrade .back-link {
  color: var(--color-accent);
  text-decoration: none;
  font-size: var(--font-size-base);
  transition: color 0.2s ease;
}

.page-upgrade .back-link:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

/* Mobile responsive styles for upgrade page */
@media (max-width: 768px) {
  .page-upgrade .upgrade-page-content {
    padding: var(--space-6) var(--space-4);
  }
  
  .page-upgrade .upgrade-title {
    font-size: var(--font-size-xl);
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .page-upgrade .upgrade-subtitle {
    font-size: var(--font-size-base);
  }
  
  .page-upgrade .premium-features-box {
    padding: var(--space-6) var(--space-4);
    margin: var(--space-6) 0;
  }
  
  .page-upgrade .features-title {
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 480px) {
  /* Reduce top margin by half for upgrade pages */
  .page-upgrade-library .computer-window {
    margin-top: var(--space-4);
  }
  
  /* Also reduce top margin for all upgrade pages */
  .page-upgrade .computer-window {
    margin-top: 20px;
  }
  
  /* Make upgrade page content more compact like login page */
  .page-upgrade .upgrade-page-content {
    padding: var(--space-4) var(--space-4);
  }
  
  .page-upgrade .upgrade-header {
    margin-bottom: var(--space-4);
  }
  
  .page-upgrade .upgrade-title {
    font-size: var(--font-size-lg);
  }
  
  /* Make premium features box more compact like login page plan-card */
  .page-upgrade .premium-features-box {
    padding: var(--space-6) var(--space-4);
    margin: var(--space-4) 0;
  }
  
  /* Reduce spacing in features list */
  .page-upgrade .features-list {
    gap: var(--space-2);
  }
  
  .page-upgrade .feature-item {
    gap: var(--space-2);
  }
  
  .page-upgrade .feature-text {
    font-size: var(--font-size-sm);
  }
  
  /* Make price text more compact */
  .page-upgrade .features-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-4);
  }
  
  /* Make checkout button similar to login page black button */
  .page-upgrade .upgrade-actions {
    margin-top: var(--space-4);
  }
  
  .page-upgrade .checkout-button {
    background: #000000;
    color: white;
    border: none;
    min-width: 180px;
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: 0;
    box-shadow: 0 4px 0px rgba(0, 0, 0, 0.6);
  }
  
  .page-upgrade .checkout-button:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 0px rgba(0, 0, 0, 0.6);
  }
}

/* My Library Page Styles */
.page-header {
  text-align: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-color-light);
}

.page-header h1 {
  margin: 0 0 var(--space-4) 0;
  color: var(--color-text);
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

.user-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.user-name {
  font-weight: 500;
}

.quota-info {
  color: var(--color-text-secondary);
}

.logout-btn {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.logout-btn:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

.library-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

/* Loading Overlay Styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: white;
  font-family: var(--font-sans);
}

.loading-content {
  text-align: center;
  max-width: 400px;
  padding: var(--space-6);
}

.pulsing-note {
  font-size: 4rem;
  margin-bottom: var(--space-6);
  animation: pulse 2s ease-in-out infinite;
  opacity: 0.9;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.loading-message {
  font-size: var(--font-size-lg);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  font-weight: 500;
  text-align: center;
}

.loading-subtitle {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-4);
}

/* Hide loading overlay by default */
.loading-overlay.hidden {
  display: none;
}

/* Prevent scrolling when overlay is visible */
body.loading-active {
  overflow: hidden;
}

/* Mobile adjustments for loading overlay */
@media (max-width: 768px) {
  .loading-content {
    padding: var(--space-4);
    max-width: 90%;
  }
  
  .pulsing-note {
    font-size: 3rem;
    margin-bottom: var(--space-5);
  }
  
  .loading-message {
    font-size: var(--font-size-base);
    min-height: 2.5em;
  }
}

/* Black hover effect for login buttons - placed at end to override other hover rules */
.auth-login-btn:hover,
.login-btn:hover {
  background: #000000 !important;
  color: white !important;
  border-color: white !important;
  transform: translateY(-1px);
}

/* Karaoke Lyrics Display Styles
   ========================================================================== */

/* Karaoke toggle button */
.karaoke-btn {
  background: transparent;
  border: 2px solid var(--border-color-light);
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--color-text);
  padding: 0;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.karaoke-btn:hover {
  background: var(--bg-hover);
  transform: scale(1.05);
  border-color: var(--color-text);
}

.karaoke-btn.active {
  background: #000000;
  color: white;
  border-color: #000000;
}

/* Practice button */
.practice-btn {
  background: transparent;
  border: 2px solid var(--border-color-light);
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--color-text);
  padding: 0;
  flex-shrink: 0;
}

.practice-btn:hover {
  background: var(--color-primary-light);
  transform: scale(1.05);
  border-color: var(--color-primary);
}

.practice-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--color-text-secondary);
  transition: fill 0.2s;
}

.practice-btn:hover svg {
  fill: var(--color-primary);
}

/* Lyrics display container */
.lyrics-display {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: linear-gradient(135deg, #f8fbff 0%, #f0f6ff 100%);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color-light);
  box-shadow: inset 0 2px 8px rgba(125, 155, 224, 0.1);
}

.lyrics-container {
  max-width: 100%;
}

.lyrics-lines {
  padding: 0;
}

/* Continuous paragraph text (matches verse-text style) */
.lyrics-paragraph {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 0;
}

/* Verse reference with paragraph space above */
.lyrics-reference {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 500;
  margin-top: var(--space-4);
  margin-bottom: 0;
}

/* Lyrics error message */
.lyrics-error {
  text-align: center;
  padding: var(--space-6);
  color: var(--color-text-secondary);
  font-style: italic;
}

/* Smooth scrolling for lyrics container */
.lyrics-display {
  scroll-behavior: smooth;
}

/* Mobile responsive adjustments for lyrics */
@media (max-width: 768px) {
  .lyrics-display {
    padding: var(--space-3);
  }
  
  .lyrics-paragraph {
    font-size: 14px;
  }
  
  .karaoke-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    font-size: 6px;
  }
}

/* Mobile responsive adjustments for song card buttons */
@media (max-width: 768px) {
  /* Reduce play button size to prevent overlap with card border */
  .song-card .play-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    min-height: 40px;
  }
  
  .song-card .play-btn svg {
    width: 18px;
    height: 18px;
  }
  
  /* Adjust repeat button size */
  .song-card .repeat-btn {
    width: 28px;
    height: 28px;
  }
  
  .song-card .repeat-btn svg {
    width: 14px;
    height: 14px;
  }
  
  /* Adjust practice button size */
  .practice-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
  }
  
  .practice-btn svg {
    width: 16px;
    height: 16px;
  }
  
  /* Reduce gap between audio controls for better fit */
  .song-card .audio-controls {
    gap: var(--space-2);
  }
  
  /* Adjust time display font size */
  .time-display {
    font-size: 12px;
    min-width: 60px;
  }
  
  /* Adjust card padding for better spacing */
  .song-card {
    padding: var(--space-3);
  }
  
  /* Mobile adjustments for two-row button layout */
  .primary-controls,
  .secondary-controls {
    gap: var(--space-2);
  }
  
  /* Adjust button sizes for mobile in primary controls */
  .primary-controls .play-btn {
    width: 52px;
    height: 52px;
  }
  
  .primary-controls .skip-btn {
    width: 38px;
    height: 38px;
  }
  
  /* Adjust button sizes for mobile in secondary controls */
  .secondary-controls .repeat-btn,
  .secondary-controls .karaoke-btn,
  .secondary-controls .practice-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

/* Practice Game Styles
   ========================================================================== */

/* Desktop padding for practice window */
.practice-window {
  margin: var(--space-6) auto;
  max-width: 500px;
}

@media (min-width: 769px) {
  .practice-window {
    margin: var(--space-10) auto;
  }
}

.practice-page {
  padding: var(--space-6);
}

/* Practice Controls - Below verse, centered */
.practice-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  margin-top: var(--space-6);
  gap: var(--space-6);
  flex-wrap: wrap;
}

/* Practice Audio Controls */
.practice-audio-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Practice Play Button - 25% smaller than normal (36px instead of 48px) */
.practice-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  min-width: 36px;
  min-height: 36px;
  flex-shrink: 0;
  background: var(--bg-button-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}

.practice-play-btn:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.4);
}

.practice-play-btn svg {
  width: 16px;
  height: 16px;
  fill: white;
}

/* Practice Repeat Button - Normal size */
.practice-repeat-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-window);
  border: 2px solid var(--border-color-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.practice-repeat-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.practice-repeat-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.practice-repeat-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--color-text-secondary);
}

.practice-repeat-btn:hover svg,
.practice-repeat-btn.active svg {
  fill: white;
}

/* Difficulty Selector */
.practice-difficulty {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.difficulty-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.difficulty-tabs {
  display: flex;
  gap: var(--space-2);
  background: var(--bg-section-light);
  padding: var(--space-2);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color-light);
}

.difficulty-tab {
  flex: 1;
  max-width: 60px;
  padding: var(--space-2) var(--space-4);
  background: white;
  border: 2px solid var(--border-color-light);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

.difficulty-tab:hover {
  border-color: black;
  color: black;
  transform: translateY(-1px);
}

.difficulty-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* Verse Display - Inconsolata bold font */
.verse-display {
  line-height: 1.6;
  font-size: 28px;
  font-weight: 900;
  font-family: 'Inconsolata', monospace;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  min-height: 200px;
  padding: var(--space-6);
  text-align: center;
}

.word-container {
  display: inline-flex;
  align-items: baseline;
  margin-right: 3px;
}

.word-text {
  font-size: 28px;
  font-weight: 900;
  font-family: 'Inconsolata', monospace;
  color: var(--color-primary);
  letter-spacing: normal;
}

/* Letter Blanks (Underlined) - Fixed width for stable spacing */
.letter-blank-underline {
  width: 20px;
  height: 42px;
  border: none;
  border-bottom: 3px solid var(--color-text-light);
  border-radius: 0;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  font-family: 'Inconsolata', monospace;
  margin: 0;
  background: transparent;
  color: var(--color-primary);
  transition: all 0.2s ease;
  display: inline-block;
  letter-spacing: normal;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.letter-blank-underline:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
  background: rgba(125, 155, 224, 0.05);
}

.letter-blank-underline.correct {
  border-bottom-color: #10b981;
  color: #065f46;
}

.letter-blank-underline.incorrect {
  border-bottom-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  animation: shake 0.3s ease;
}

.letter-blank-underline.punctuation {
  border: none;
  background: transparent;
  cursor: default;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Letter Display (Non-blanked words) - Fixed width to match blanks */
.letter-display {
  width: 18px;
  height: 42px;
  border: none;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  font-family: 'Inconsolata', monospace;
  margin: 0;
  color: var(--color-primary);
  display: inline-block;
  letter-spacing: normal;
}

/* Reveal Toggle Button - White with black text, toggles to black with white text */
.reveal-toggle-btn {
  padding: var(--space-3) var(--space-6);
  background: white;
  color: black;
  border: 2px solid black;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: var(--font-size-base);
  font-weight: 600;
  transition: all 0.2s ease;
}

.reveal-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.reveal-toggle-btn.revealed {
  background: black;
  color: white;
}

/* Revealed Verse */
.revealed-verse {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--color-text);
  padding: var(--space-4);
  background: linear-gradient(135deg, #f8fbff 0%, #f0f6ff 100%);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color-light);
}

/* Confetti Overlay */
.confetti-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.confetti-overlay img {
  max-width: 400px;
  width: 90%;
  height: auto;
  margin-bottom: var(--space-4);
}

.success-message {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.success-buttons {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.play-again-btn,
.my-songs-btn {
  padding: var(--space-3) var(--space-6);
  background: black;
  color: white;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: var(--font-size-base);
  font-weight: 600;
  transition: all 0.2s ease;
}

.my-songs-btn {
  background: black;
  color: white;
}

.play-again-btn:hover,
.my-songs-btn:hover {
  background: white;
  color: black;
  border-color: black;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .practice-page {
    padding: var(--space-4);
  }
  
  .practice-difficulty {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }
  
  .difficulty-label {
    text-align: center;
  }
  
  .difficulty-tabs {
    gap: var(--space-2);
  }
  
  .difficulty-tab {
    max-width: none;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
  }
  
  .verse-display {
    font-size: 25px;
    line-height: 1.6;
    padding: var(--space-3);
  }
  
  .word-text {
    font-size: 25px;
  }
  
  .letter-blank-underline {
    width: 18px;
    height: 38px;
    font-size: 25px;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  
  .confetti-overlay img {
    max-width: 300px;
  }
  
  .success-message {
    font-size: var(--font-size-2xl);
  }
}

/* Chat Modal Styles
   ========================================================================== */
.chat-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.chat-modal-content {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  background: var(--bg-window-header);
  padding: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.chat-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--font-size-lg);
}

.chat-close-btn {
  background: transparent;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--color-text);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.chat-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.chat-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.chat-message {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--border-radius);
  max-width: 80%;
  word-wrap: break-word;
}

.chat-message-user {
  background: #000000;
  color: white;
  align-self: flex-end;
  margin-left: auto;
}

.chat-message-assistant {
  background: var(--bg-section-light);
  color: var(--color-text);
  align-self: flex-start;
  border: 1px solid var(--border-color-light);
}

.chat-typing {
  font-style: italic;
  opacity: 0.7;
}

.preset-questions {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border-color-light);
  background: var(--bg-section-light);
}

.preset-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.preset-question-btn {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-2);
  background: white;
  border: 1px solid var(--border-color-light);
  border-radius: var(--border-radius-sm);
  text-align: left;
  cursor: pointer;
  font-size: var(--font-size-sm);
  transition: all 0.2s ease;
}

.preset-question-btn:hover {
  background: var(--bg-hover);
  border-color: var(--color-accent);
  transform: translateX(4px);
}

.chat-input-container {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-4);
  border-top: 1px solid var(--border-color-light);
  background: white;
}

.chat-input {
  flex: 1;
  padding: var(--space-3);
  border: 1px solid var(--border-color-light);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-base);
  font-family: var(--font-sans);
}

.chat-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.chat-send-btn {
  padding: var(--space-3) var(--space-6);
  background: #000000;
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-send-btn:hover {
  background: #333333;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.chat-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.2s ease;
}

.chat-btn:hover {
  background: var(--bg-hover);
  border-color: var(--color-accent);
  transform: scale(1.1);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .chat-modal {
    padding: 0;
  }
  
  .chat-modal-content {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .chat-message {
    max-width: 90%;
  }
  
  .preset-question-btn {
    font-size: var(--font-size-sm);
    padding: var(--space-2);
  }
}
