/* Duolingo-inspired design with soft, friendly feel */
:root {
  /* Duolingo-inspired color palette */
  --bg: #f7f7f7;
  --card: #ffffff;
  --ink: #1cb0f6;
  --muted: #868e96;
  --accent: #58cc02;
  --accent2: #ffc800;
  --warn: #ff9600;
  --bad: #ff4b4b;
  --success: #58cc02;
  --border: #e5e5e5;
  --shadow: rgba(0, 0, 0, 0.1);
  --gradient-start: #58cc02;
  --gradient-end: #46b700;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}

/* Topbar - Duolingo style */
.topbar {
  background: var(--accent);
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(88, 204, 2, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.topbar-content .main-title {
  margin: 0;
  flex-shrink: 0;
}

.main-title.clickable {
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.main-title.clickable:hover {
  color: var(--accent);
  transform: scale(1.05);
}

.topbar-content .header-links {
  margin-left: auto;
  margin-right: 1rem;
}

.topbar-content .profile-menu {
  flex-shrink: 0;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.main-title.clickable {
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.main-title.clickable:hover {
  transform: scale(1.05);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.main-title.clickable:active {
  transform: scale(0.98);
}

/* Profile Menu */
.profile-menu {
  position: relative;
}

.profile-icon {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-icon:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.profile-avatar {
  font-size: 1.5rem;
  color: white;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.profile-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: rgba(88, 204, 2, 0.1);
}

.dropdown-item:first-child {
  border-radius: 15px 15px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 15px 15px;
}

.dropdown-icon {
  font-size: 1.2rem;
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.dropdown-text {
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Volume toggle specific styling */
#volume-toggle.volume-off #volume-icon {
  opacity: 0.5;
}

#volume-toggle.volume-off #volume-text {
  color: var(--muted);
}

/* Sound Toggle Button */
.sound-toggle-btn {
  background: rgba(88, 204, 2, 0.1);
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
}

.sound-toggle-btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

.sound-toggle-btn:active {
  transform: translateY(0);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Cards - Duolingo style */
.card {
  background: var(--card);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--shadow);
}

.card h2 {
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.card h3 {
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

/* Stats Grid - Duolingo style */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}



/* Learning Statistics Card Specific Styling */
.card:has(.stats-grid) {
  background: linear-gradient(135deg, #f8fffe 0%, #f0fff4 100%);
  border: 2px solid rgba(88, 204, 2, 0.2);
  box-shadow: 0 6px 25px rgba(88, 204, 2, 0.15);
  position: relative;
  overflow: hidden;
}

.card:has(.stats-grid)::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(88, 204, 2, 0.03) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.card:has(.stats-grid) h2 {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 1.5rem 0;
  text-align: center;
  text-shadow: 0 2px 4px rgba(88, 204, 2, 0.1);
  position: relative;
  z-index: 1;
}

/* Enhanced Stats Grid with Better Spacing */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

/* Enhanced Stat Items with Better Contrast */
.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 20px;
  color: white;
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 20px;
  pointer-events: none;
}

.stat-item::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(88, 204, 2, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
}

.stat-item:hover::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
}

.stat-item:hover::after {
  opacity: 1;
}

/* Ensure maximum contrast for numbers */
.stat-value {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  position: relative;
  z-index: 1;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Form elements - Duolingo style */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid var(--border);
  border-radius: 15px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: var(--card);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 204, 2, 0.1);
  transform: translateY(-1px);
}

.form-group input[readonly] {
  background: #f8f9fa;
  color: var(--muted);
}

.form-group small {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: block;
}

/* Buttons - Duolingo style */
button,
.btn {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 204, 2, 0.4);
}

button:active,
.btn:active {
  transform: translateY(0);
}

button.secondary,
.btn.secondary {
  background: var(--muted);
  box-shadow: 0 4px 15px rgba(134, 142, 150, 0.3);
}

button.secondary:hover,
.btn.secondary:hover {
  background: #6c757d;
  box-shadow: 0 8px 25px rgba(134, 142, 150, 0.4);
}

button:disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

/* Lists - Duolingo style */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  background: var(--card);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--shadow);
}

.list li a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(88, 204, 2, 0.1);
  border: 2px solid var(--accent);
  transition: all 0.2s ease;
}

.list li a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}

/* Lesson list specific */
.list li strong {
  color: var(--ink);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: block;
}

.list li .muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.list li .lesson-level {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(88, 204, 2, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  display: inline-block;
  margin-top: 0.5rem;
}

/* Level headers */
.level-header {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.level-header:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.1);
}

.level-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.level-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.level-category {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.level-status {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.level-status.unlocked {
  background: rgba(88, 204, 2, 0.1);
  color: var(--accent);
}

.level-status.locked {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
}

.level-progress {
  margin-top: 1rem;
}

.level-progress .progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(88, 204, 2, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.level-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #6bbf00);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  display: block;
}

/* Locked Lesson Styling */
.lesson-card.locked {
  opacity: 0.7;
  background: var(--muted-bg);
  border-color: var(--muted-border);
  cursor: not-allowed;
}

.lesson-card.locked:hover {
  transform: none;
  border-color: var(--muted-border);
  box-shadow: none;
}

.lesson-card.locked .lesson-icon.locked {
  opacity: 0.6;
  filter: grayscale(100%);
}

.lesson-card.locked .lesson-title {
  color: var(--text-secondary);
}

.lesson-card.locked .lesson-description {
  color: var(--text-muted);
}

.lesson-card.locked .lesson-status.locked {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.lesson-locked {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  font-size: 0.9rem;
}

/* Level progress */
.level-progress {
  text-align: center;
  margin-top: 1rem;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(134, 142, 150, 0.2);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar.small {
  height: 8px;
  border-radius: 4px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: inherit;
  transition: width 0.3s ease;
}

.progress-text {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Lesson grid */
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Lesson cards */
.lesson-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.lesson-number {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 10;
}

.lesson-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(88, 204, 2, 0.1);
  border-radius: 12px;
  color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.lesson-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--shadow);
  border-color: var(--accent);
}

.lesson-card.completed {
  border-color: var(--success);
  background: linear-gradient(135deg, rgba(88, 204, 2, 0.05), rgba(70, 183, 0, 0.05));
}

.lesson-card.available {
  border-color: var(--ink);
  background: linear-gradient(135deg, rgba(26, 176, 246, 0.05), rgba(0, 123, 255, 0.05));
}

.lesson-card.locked {
  opacity: 0.6;
  pointer-events: none;
  border-color: var(--muted);
}

/* Lesson icon */
.lesson-icon.locked {
  background: rgba(134, 142, 150, 0.1);
  color: var(--muted);
}

/* Lesson content */
.lesson-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lesson-title {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  text-align: center;
}

.lesson-description {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
  line-height: 1.4;
  text-align: center;
  max-width: 250px;
}

.lesson-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  width: 100%;
}

.lesson-level {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(88, 204, 2, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  text-align: center;
}

.lesson-status {
  font-size: 1.2rem;
}

.lesson-status.completed {
  color: var(--accent);
  font-weight: 600;
  background: rgba(88, 204, 2, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.lesson-status.available {
  color: var(--text-secondary);
  font-weight: 500;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.lesson-status.locked {
  color: var(--muted);
}

/* Lesson progress */
.lesson-progress {
  margin-bottom: 1rem;
  width: 100%;
  max-width: 200px;
}

/* Lesson actions */
.lesson-actions {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

/* Lesson link */
.lesson-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 120px;
}

.lesson-link:hover {
  background: #6bbf00;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

.lesson-card.completed .lesson-link {
  background: var(--text-secondary);
}

.lesson-card.completed .lesson-link:hover {
  background: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Locked lesson state */
.lesson-card.locked .lesson-link {
  background: var(--muted);
  cursor: not-allowed;
}

.lesson-card.locked .lesson-link:hover {
  transform: none;
  box-shadow: none;
}

.lesson-locked {
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  background: rgba(134, 142, 150, 0.1);
  border-radius: 20px;
  text-align: center;
  min-width: 80px;
  display: inline-block;
}

/* Lesson status indicators */
.lesson-status {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  margin-top: 0.5rem;
  margin-left: 0.5rem;
}

.lesson-status.completed {
  background: rgba(88, 204, 2, 0.2);
  color: var(--success);
}

.lesson-status.available {
  background: rgba(26, 176, 246, 0.2);
  color: var(--ink);
}

.lesson-status.locked {
  background: rgba(134, 142, 150, 0.2);
  color: var(--muted);
}

/* Lesson links */
.lesson-link {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.lesson-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

/* Locked lessons */
.lesson-locked {
  opacity: 0.6;
  pointer-events: none;
}

.lesson-locked .lesson-link {
  background: var(--muted);
  cursor: not-allowed;
}

.lesson-locked .lesson-link:hover {
  transform: none;
  box-shadow: none;
}

.lesson-locked span.lesson-locked {
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* Category headers */
.category-header {
  background: var(--bg) !important;
  border: 2px solid var(--accent) !important;
  box-shadow: none !important;
  transform: none !important;
  margin-bottom: 1.5rem !important;
  padding: 1rem 1.5rem !important;
}

.category-header:hover {
  transform: none !important;
  box-shadow: none !important;
}

.category-title {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Exercise controls - Duolingo style */
.controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.controls button {
  min-width: 120px;
}

/* Exercise feedback */
#feedback {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 15px;
}

/* Correct/Incorrect states */
.correct {
  background: rgba(88, 204, 2, 0.1);
  border: 2px solid var(--accent);
  color: var(--accent);
}

.incorrect {
  background: rgba(255, 75, 75, 0.1);
  border: 2px solid var(--bad);
  color: var(--bad);
}

/* Password strength indicator */
.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.strength-fill {
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.strength-fill.very-weak { background: var(--bad); width: 25%; }
.strength-fill.weak { background: var(--warn); width: 50%; }
.strength-fill.medium { background: var(--accent2); width: 75%; }
.strength-fill.strong { background: var(--accent); width: 100%; }

.strength-text {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.strength-text.very-weak { color: var(--bad); }
.strength-text.weak { color: var(--warn); }
.strength-text.medium { color: var(--accent2); }
.strength-text.strong { color: var(--accent); }

.strength-errors {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--bad);
}

.strength-errors li {
  margin-bottom: 0.25rem;
}

/* Preferences */
.preferences {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preference-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.preference-item label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.preference-item input[type="checkbox"] {
  width: auto;
  margin: 0;
  transform: scale(1.2);
}

/* Auth forms - Duolingo style */
.auth-tabs {
  display: flex;
  background: var(--card);
  border-radius: 25px;
  padding: 0.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 1rem 2rem;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

.tab-btn:hover:not(.active) {
  background: rgba(88, 204, 2, 0.1);
  color: var(--accent);
}

.auth-form {
  display: none;
  background: var(--card);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border);
}

.auth-form.active {
  display: block;
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  color: var(--muted);
}

/* Global messages */
.global-message-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 400px;
}

.global-message {
  background: var(--card);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 30px var(--shadow);
  border-left: 4px solid;
  animation: slideIn 0.3s ease;
}

.global-message.success {
  border-left-color: var(--success);
}

.global-message.error {
  border-left-color: var(--bad);
}

.global-message.warning {
  border-left-color: var(--warn);
}

.global-message.info {
  border-left-color: var(--accent);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.message-header h4 {
  margin: 0;
  font-weight: 700;
}

.close-message {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  width: auto;
}

/* Field errors */
.field-error {
  color: var(--bad);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .topbar {
    padding: 1rem;
  }
  
  .topbar nav {
    gap: 1rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .list li {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .lesson-grid {
    grid-template-columns: 1fr;
  }
  
  .lesson-card {
    min-height: auto;
    padding: 1.25rem;
  }
  
  .lesson-number {
    top: 0.5rem;
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }
  
  .lesson-icon {
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .lesson-description {
    max-width: 100%;
    margin-bottom: 0.75rem;
  }
  
  .lesson-meta {
    margin-bottom: 0.5rem;
  }
  
  .lesson-progress {
    max-width: 150px;
    margin-bottom: 0.75rem;
  }
  
  .lesson-actions {
    margin-top: 0.75rem;
  }
  
  .lesson-content {
    text-align: center;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .topbar {
    padding: 1rem;
  }
  
  .topbar .brand {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .topbar nav {
    gap: 1rem;
    flex-direction: column;
    width: 100%;
  }
  
  .topbar nav a,
  .topbar nav button {
    width: 100%;
    max-width: 200px;
    text-align: center;
  }
}

/* Leaderboard specific */
.board {
  list-style: none;
  padding: 0;
  counter-reset: leaderboard;
}

.board li {
  counter-increment: leaderboard;
  background: var(--card);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  position: relative;
}

.board li::before {
  content: counter(leaderboard);
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.board li:nth-child(1)::before {
  background: var(--accent2);
}

.board li:nth-child(2)::before {
  background: var(--muted);
}

.board li:nth-child(3)::before {
  background: #cd7f32;
}

.board li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--shadow);
}

/* Profile specific */
.profile-header {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-header h1 {
  color: var(--ink);
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
}

.profile-header p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

.profile-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Utility classes */
.muted {
  color: var(--muted);
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* Learning Options */
.learning-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.option-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.option-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(88, 204, 2, 0.15);
}

.option-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.option-card h3 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 700;
}

.option-card p {
  margin: 0 0 1.5rem 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.option-button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
}

.option-button:hover {
  background: #6bbf00;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

/* Lessons Header */
.lessons-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lessons-header h2 {
  margin: 0;
  flex: 1;
}

.back-button {
  background: var(--muted);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.back-button:hover {
  background: #6c757d;
  transform: translateY(-1px);
}

/* AI Tutor Styles */
.ai-tutor-header {
  text-align: center;
  margin-bottom: 2rem;
}

.ai-tutor-header h1 {
  color: var(--ink);
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
}

.ai-tutor-header .sub {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

/* Chat Container */
.chat-container {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--bg);
}

.message {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.3s ease-in;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.user-message .message-avatar {
  background: var(--accent);
  color: white;
}

.ai-message .message-avatar {
  background: var(--text-secondary);
  color: white;
}

.message-content {
  flex: 1;
  min-width: 0;
}

.message-text {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.user-message .message-text {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.ai-message .message-text {
  background: var(--card-bg);
  color: var(--text-primary);
}

.message-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  text-align: right;
}

/* Typing Indicator */
.typing-indicator .message-text {
  background: var(--muted-bg);
  border-color: var(--muted-border);
}

.typing-dots {
  display: inline-flex;
  gap: 0.2rem;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Chat Input */
.chat-input-container {
  padding: 1.5rem;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
}

.input-wrapper {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

#chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

#chat-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 204, 2, 0.1);
}

.send-button {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
}

.send-button:hover:not(:disabled) {
  background: #6bbf00;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

.send-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.quick-action-btn {
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-action-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

/* Voice Tutor Styles */
.voice-tutor-header {
  text-align: center;
  margin-bottom: 2rem;
}

.voice-tutor-header h1 {
  color: var(--ink);
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
}

.voice-tutor-header .sub {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

/* Voice Controls */
.voice-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--card);
  border-radius: 15px;
  box-shadow: 0 2px 10px var(--shadow);
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.language-selector label {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}

.language-selector select {
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.language-selector select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Voice Status */
.voice-status {
  display: flex;
  align-items: center;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(107, 114, 128, 0.1);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6b7280;
  transition: all 0.3s ease;
}

.status-indicator.listening .status-dot {
  background: #58cc02;
}

.status-indicator.error .status-dot {
  background: #ef4444;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Voice Interaction */
.voice-interaction {
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 4px 15px var(--shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}

/* Voice Display */
.voice-display {
  background: #f8f9fa;
  padding: 1.5rem;
}

.conversation-area {
  height: 400px;
  overflow-y: auto;
  padding: 1rem;
  background: white;
  border-radius: 15px;
  border: 1px solid var(--border);
}

.conversation-item {
  margin-bottom: 1.5rem;
  animation: fadeIn 0.3s ease-in;
}

.conversation-item.user {
  text-align: right;
}

.conversation-item.ai {
  text-align: left;
}

.speaker-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.conversation-text {
  display: inline-block;
  max-width: 80%;
  padding: 1rem;
  border-radius: 18px;
  line-height: 1.6;
  word-wrap: break-word;
}

.conversation-item.user .conversation-text {
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 6px;
}

.conversation-item.ai .conversation-text {
  background: white;
  color: var(--ink);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}

.conversation-time {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.conversation-item.user .conversation-time {
  text-align: right;
}

.conversation-item.ai .conversation-time {
  text-align: left;
}

/* Voice Controls Main */
.voice-controls-main {
  padding: 2rem;
  background: white;
  text-align: center;
}

.voice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

.voice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 204, 2, 0.4);
}

.voice-btn.listening {
  background: #ef4444;
  animation: pulse 1.5s infinite;
}

.voice-btn .mic-icon {
  font-size: 2rem;
  margin-top: 1rem;
}

.voice-btn .btn-text {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* Voice Options */
.voice-options {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.option-btn {
  background: rgba(88, 204, 2, 0.1);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

/* Voice Tips */
.voice-tips {
  background: var(--card);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px var(--shadow);
  margin-bottom: 2rem;
}

.voice-tips h3 {
  color: var(--accent);
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
}

.voice-tips ul {
  margin: 0;
  padding-left: 1.5rem;
}

.voice-tips li {
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.voice-tips strong {
  color: var(--ink);
}

/* Quick Phrases */
.quick-phrases {
  background: var(--card);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px var(--shadow);
}

.quick-phrases h3 {
  color: var(--accent);
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
}

.phrase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.phrase-btn {
  background: white;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 1rem;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.4;
}

.phrase-btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .voice-controls {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .conversation-area {
    height: 300px;
    padding: 0.75rem;
  }
  
  .conversation-text {
    max-width: 90%;
    padding: 0.75rem;
    font-size: 0.95rem;
  }
  
  .voice-btn {
    width: 100px;
    height: 100px;
  }
  
  .voice-btn .mic-icon {
    font-size: 1.5rem;
    margin-top: 0.75rem;
  }
  
  .voice-btn .btn-text {
    font-size: 0.75rem;
  }
  
  .voice-options {
    gap: 0.75rem;
  }
  
  .option-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .phrase-grid {
    grid-template-columns: 1fr;
  }
  
  .voice-tutor-header h1 {
    font-size: 2rem;
  }
}

/* Level Headers */
.level-header {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.level-header:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.1);
}

.level-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.level-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.level-category {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.level-status {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.level-status.unlocked {
  background: rgba(88, 204, 2, 0.1);
  color: var(--accent);
}

.level-status.locked {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
}

.level-progress {
  margin-top: 1rem;
}

.level-progress .progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(88, 204, 2, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.level-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #6bbf00);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  display: block;
}

/* Locked Lesson Styling */
.lesson-card.locked {
  opacity: 0.7;
  background: var(--muted-bg);
  border-color: var(--muted-border);
  cursor: not-allowed;
}

.lesson-card.locked:hover {
  transform: none;
  border-color: var(--muted-border);
  box-shadow: none;
}

.lesson-card.locked .lesson-icon.locked {
  opacity: 0.6;
  filter: grayscale(100%);
}

.lesson-card.locked .lesson-title {
  color: var(--text-secondary);
}

.lesson-card.locked .lesson-description {
  color: var(--text-muted);
}

.lesson-card.locked .lesson-status.locked {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.lesson-locked {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  font-size: 0.9rem;
}

/* Lesson Cards Enhanced */
.lesson-card {
  position: relative;
  background: var(--card);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px var(--shadow);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.lesson-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow);
  border-color: var(--accent);
}

.lesson-card.completed {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--card) 0%, rgba(88, 204, 2, 0.05) 100%);
}

.lesson-card.locked {
  opacity: 0.7;
  cursor: not-allowed;
  background: var(--muted);
}

.lesson-card.locked:hover {
  transform: none;
  box-shadow: 0 4px 15px var(--shadow);
  border-color: transparent;
}

/* Lesson Number Badge */
.lesson-number {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 10;
}

/* Lesson Icon */
.lesson-icon {
  font-size: 3rem;
  margin: 1.5rem 0 1rem 0;
  text-align: center;
  transition: transform 0.3s ease;
}

.lesson-card:hover .lesson-icon {
  transform: scale(1.1);
}

.lesson-icon.locked {
  opacity: 0.5;
}

/* Lesson Content */
.lesson-content {
  text-align: center;
  width: 100%;
}

.lesson-title {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.lesson-description {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

/* Lesson Meta */
.lesson-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.lesson-difficulty {
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lesson-difficulty.beginner {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid #22c55e;
}

.lesson-difficulty.elementary {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

.lesson-difficulty.intermediate {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

.lesson-difficulty.upper-intermediate {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  border: 1px solid #a855f7;
}

.lesson-difficulty.advanced {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid #ef4444;
}

.lesson-status {
  font-size: 1.2rem;
}

.lesson-status.completed {
  color: var(--accent);
  font-weight: 600;
  background: rgba(88, 204, 2, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.lesson-status.available {
  color: var(--text-secondary);
  font-weight: 500;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.lesson-status.locked {
  color: var(--muted);
}

/* Lesson Progress */
.lesson-progress {
  width: 100%;
  margin-bottom: 1rem;
}

.progress-bar.small {
  height: 8px;
  background: rgba(107, 114, 128, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Lesson Actions */
.lesson-actions {
  display: flex;
  justify-content: center;
}

.lesson-link, .lesson-locked {
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.lesson-link:hover {
  background: var(--gradient-end);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

.lesson-locked {
  background: var(--muted);
  cursor: not-allowed;
}

.lesson-locked:hover {
  transform: none;
  box-shadow: none;
}

/* Responsive Design for Enhanced Lessons */
@media (max-width: 768px) {
  .level-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .level-category {
    align-self: flex-start;
  }
  
  .level-status {
    margin-left: 0;
    align-self: flex-start;
  }
  
  .lesson-number {
    top: 0.5rem;
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }
  
  .lesson-icon {
    font-size: 2.5rem;
    margin: 1.25rem 0 0.75rem 0;
  }
  
  .lesson-title {
    font-size: 1.1rem;
  }
  
  .lesson-description {
    font-size: 0.9rem;
  }
  
  .lesson-meta {
    gap: 0.75rem;
  }
  
  .lesson-difficulty {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }
}

/* Refresh Curriculum Button */
.refresh-curriculum-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-left: auto;
}

.refresh-curriculum-btn:hover {
  background: var(--gradient-end);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

.refresh-curriculum-btn:active {
  transform: translateY(0);
}

/* Responsive adjustments for refresh button */
@media (max-width: 768px) {
  .lessons-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .refresh-curriculum-btn {
    margin-left: 0;
    order: 3;
  }
}

/* Lesson Interface Styles */
.lesson-header {
  text-align: center;
  margin-bottom: 2rem;
}

.lesson-header h1 {
  color: var(--ink);
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
}

.back-button {
  background: var(--muted);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.back-button:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* Progress Bar */
.lesson-progress-container {
  background: var(--card);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px var(--shadow);
  margin-top: 1rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 600;
}

#progress-text {
  color: var(--ink);
  font-size: 1.1rem;
}

#progress-percentage {
  color: var(--accent);
  font-size: 1.1rem;
}

.progress-bar {
  height: 12px;
  background: rgba(107, 114, 128, 0.2);
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gradient-end) 100%);
  border-radius: 6px;
  transition: width 0.5s ease;
}

/* Exercise Container */
.exercise-container {
  background: var(--card);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 15px var(--shadow);
  margin-bottom: 2rem;
}

.question-container {
  margin-bottom: 2rem;
}

#question-text {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  line-height: 1.4;
}

/* Options Container */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option:hover {
  border-color: var(--accent);
  background: rgba(88, 204, 2, 0.05);
  transform: translateY(-1px);
}

.option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.option label {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.translation-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 15px;
  font-size: 1.1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.translation-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 204, 2, 0.1);
}

/* Navigation Buttons */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.nav-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.back-btn {
  background: var(--muted);
  color: white;
}

.back-btn:hover:not(:disabled) {
  background: var(--accent);
  transform: translateY(-1px);
}

.back-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.next-btn {
  background: var(--accent);
  color: white;
}

.next-btn:hover:not(:disabled) {
  background: var(--gradient-end);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

.next-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Feedback Container */
.feedback-container {
  background: rgba(88, 204, 2, 0.1);
  border: 1px solid var(--accent);
  border-radius: 15px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feedback-container.correct {
  background: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
}

.feedback-container.incorrect {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

#feedback-text {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

#feedback-text.correct {
  color: #22c55e;
}

#feedback-text.incorrect {
  color: #ef4444;
}

#feedback-explanation {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.3s ease;
}

#feedback-explanation.correct {
  color: #16a34a;
}

#feedback-explanation.incorrect {
  color: #dc2626;
}

/* Lesson Complete */
.lesson-complete {
  background: var(--card);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 4px 15px var(--shadow);
  text-align: center;
}

.lesson-complete h2 {
  color: var(--accent);
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
}

.lesson-complete p {
  color: var(--muted);
  font-size: 1.2rem;
  margin: 0 0 2rem 0;
}

.completion-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
}

.completion-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn.primary {
  background: var(--accent);
  color: white;
}

.btn.primary:hover {
  background: var(--gradient-end);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 204, 2, 0.3);
}

.btn.secondary {
  background: rgba(88, 204, 2, 0.1);
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn.secondary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

/* Error Message */
.error-message {
  background: var(--card);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 4px 15px var(--shadow);
  text-align: center;
}

.error-message h2 {
  color: #ef4444;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.error-message p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .lesson-header h1 {
    font-size: 2rem;
  }
  
  .exercise-container {
    padding: 1.5rem;
  }
  
  #question-text {
    font-size: 1.3rem;
  }
  
  .option {
    padding: 0.75rem;
  }
  
  .option label {
    font-size: 1rem;
  }
  
  .navigation-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-btn {
    width: 100%;
    max-width: 200px;
  }
  
  .completion-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .completion-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* Responsive Design for Learning Statistics */
@media (max-width: 768px) {
  .card:has(.stats-grid) {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .card:has(.stats-grid) h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1.25rem;
  }
  
  .stat-value {
    font-size: 2.2rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .stat-value {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
}

/* Completion Notification */
.completion-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 8px 25px rgba(88, 204, 2, 0.3);
  z-index: 1000;
  max-width: 350px;
  animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.notification-content p {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.4;
}

.notification-content .btn {
  background: white;
  color: var(--accent);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-content .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* Auth Page Styling */
.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  padding: 2rem;
}

.auth-card {
  background: var(--card);
  border-radius: 25px;
  padding: 3rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  width: 100%;
  text-align: center;
  border: 2px solid rgba(88, 204, 2, 0.1);
}

.auth-header {
  margin-bottom: 2rem;
}

.auth-header .main-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  margin: 0 0 1rem 0;
  text-shadow: 0 3px 6px rgba(88, 204, 2, 0.3);
}

.auth-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.5;
}

/* Page-specific subtitle styling */
.lesson-subtitle,
.leaderboard-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Question Container */
.question-container {
  text-align: center;
  margin-bottom: 2rem;
}

#question-text {
  font-size: 1.5rem;
  color: var(--text);
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.keyboard-hint {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background: rgba(88, 204, 2, 0.1);
  border-radius: 20px;
  display: inline-block;
  border: 1px solid rgba(88, 204, 2, 0.2);
}

.hint-text {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.8;
}

/* Lesson Progress Bar */
.lesson-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(88, 204, 2, 0.2);
  border-radius: 4px;
  margin: 1rem 0 2rem 0;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lesson-progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #6bbf00);
  border-radius: 4px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(88, 204, 2, 0.3);
}

/* Welcome Message */
.welcome-message {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0 2rem 0;
  border-bottom: 2px solid rgba(88, 204, 2, 0.1);
  margin-bottom: 2rem;
}

.welcome-icon {
  font-size: 3rem;
  animation: wave 2s ease-in-out infinite;
}

.welcome-text h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.welcome-text p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.5;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-10deg); }
}

/* Lesson Cards - Dashboard */
.lesson-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 200px;
}

.lesson-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(88, 204, 2, 0.15);
}

.lesson-card.completed {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--card-bg), rgba(88, 204, 2, 0.05));
}

.lesson-card.completed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #6bbf00);
}

.lesson-card.locked {
  opacity: 0.6;
  background: var(--muted-bg);
  border-color: var(--muted-border);
}

.lesson-card.locked:hover {
  transform: none;
  border-color: var(--muted-border);
  box-shadow: none;
}

.test-button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.test-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Lesson Interface Improvements */
.lesson-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.back-button {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.back-button:hover {
  background: #6bbf00;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
  gap: 1rem;
}

.nav-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.back-btn {
  background: var(--text-secondary);
  color: white;
}

.back-btn:not(:disabled):hover {
  background: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.next-btn {
  background: var(--accent);
  color: white;
}

.next-btn:not(:disabled):hover {
  background: #6bbf00;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

/* Lesson Error Display */
.lesson-error {
  text-align: center;
  padding: 2rem;
  background: #fef2f2;
  border: 2px solid #ef4444;
  border-radius: 12px;
  margin: 2rem 0;
  color: #991b1b;
}

.lesson-error h3 {
  margin: 0 0 1rem 0;
  color: #dc2626;
  font-size: 1.5rem;
}

.lesson-error p {
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.lesson-error .btn {
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.lesson-error .btn.primary {
  background: var(--accent);
  color: white;
}

.lesson-error .btn.primary:hover {
  background: #6bbf00;
  transform: translateY(-2px);
}

.lesson-error .btn.secondary {
  background: var(--text-secondary);
  color: white;
}

.lesson-error .btn.secondary:hover {
  background: var(--text-primary);
  transform: translateY(-2px);
}

/* Voice Tutor Enhanced Interface */
.voice-tutor-header {
  text-align: center;
  margin-bottom: 2rem;
}

.voice-tutor-header h1 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.voice-tutor-header .sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Voice Controls */
.voice-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-selector label {
  font-weight: 600;
  color: var(--text-primary);
}

.language-selector select {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-primary);
}

.voice-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--muted-bg);
  border-radius: 20px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: all 0.3s ease;
}

.status-dot.ready {
  background: var(--text-secondary);
}

.status-dot.listening {
  background: var(--accent);
  animation: pulse 1.5s infinite;
}

.status-dot.error {
  background: #ff6b6b;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-text {
  font-weight: 600;
  color: var(--text-primary);
}

/* Voice Interaction */
.voice-interaction {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  margin-bottom: 2rem;
}

.voice-display {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.conversation-area {
  height: 400px;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--bg);
}

.conversation-item {
  margin-bottom: 1.5rem;
  animation: fadeIn 0.3s ease-in;
}

.conversation-item.user {
  text-align: right;
}

.conversation-item.ai {
  text-align: left;
}

.speaker-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.conversation-text {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  line-height: 1.6;
  word-wrap: break-word;
  max-width: 80%;
  display: inline-block;
}

.conversation-item.user .conversation-text {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.conversation-item.ai .conversation-text {
  background: var(--card-bg);
  color: var(--text-primary);
}

.conversation-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Interim Display */
.interim-display .conversation-text {
  background: var(--muted-bg);
  border-color: var(--muted-border);
  color: var(--text-secondary);
  font-style: italic;
}

/* Thinking Indicator */
.thinking-indicator .conversation-text {
  background: var(--muted-bg);
  border-color: var(--muted-border);
}

.thinking-dots {
  display: inline-flex;
  gap: 0.2rem;
}

.thinking-dots span {
  width: 6px;
  height: 6px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: thinking 1.4s infinite ease-in-out;
}

.thinking-dots span:nth-child(1) { animation-delay: -0.32s; }
.thinking-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes thinking {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Voice Controls Main */
.voice-controls-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.voice-btn {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

.voice-btn:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(88, 204, 2, 0.4);
}

.voice-btn.listening {
  background: #ff6b6b;
  animation: pulse 1.5s infinite;
}

.voice-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.mic-icon {
  font-size: 2rem;
}

.btn-text {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Voice Options */
.voice-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option-btn {
  padding: 0.75rem 1rem;
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  min-width: 120px;
}

.option-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

/* Quick Phrases */
.quick-phrases {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.quick-phrases h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.phrase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.phrase-btn {
  padding: 0.75rem 1rem;
  background: var(--bg);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 0.9rem;
}

.phrase-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

/* Voice Tips */
.voice-tips {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.voice-tips h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: center;
}

.voice-tips ul {
  margin: 0;
  padding-left: 1.5rem;
}

.voice-tips li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.voice-tips strong {
  color: var(--text-primary);
}

/* Language Indicator */
.language-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--muted-bg);
  border-radius: 20px;
  border: 1px solid var(--muted-border);
}

.detected-lang {
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.detected-lang.punjabi-lang {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

.detected-lang.english-lang {
  color: #3498db;
  background: rgba(52, 152, 219, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

.detected-lang.mixed-lang {
  color: #9b59b6;
  background: rgba(155, 89, 182, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

/* Bilingual Conversation Styles */
.conversation-item.user .conversation-text {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  max-width: 85%;
}

.conversation-item.ai .conversation-text {
  background: var(--card-bg);
  color: var(--text-primary);
  max-width: 90%;
  line-height: 1.7;
}

/* Punjabi Text Styling */
.conversation-text:lang(pa) {
  font-family: 'Noto Sans Gurmukhi', 'Arial Unicode MS', sans-serif;
  direction: ltr;
}

/* Pronunciation Guide Styling */
.pronunciation-guide {
  background: rgba(88, 204, 2, 0.1);
  border: 1px solid rgba(88, 204, 2, 0.3);
  border-radius: 8px;
  padding: 0.5rem;
  margin: 0.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* Language Switch Indicator */
.language-switch {
  display: inline-block;
  background: var(--muted-bg);
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-left: 0.5rem;
  border: 1px solid var(--muted-border);
}

/* Enhanced Voice Controls for Bilingual */
.voice-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.language-selector select {
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.language-selector select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 204, 2, 0.1);
  outline: none;
}

/* Bilingual Quick Phrases */
.phrase-btn[data-phrase*="ਸਤ"] {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border-color: #e74c3c;
}

.phrase-btn[data-phrase*="ਸਤ"]:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.phrase-btn[data-phrase*="ਕਿਵੇਂ"] {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: white;
  border-color: #9b59b6;
}

.phrase-btn[data-phrase*="ਕਿਵੇਂ"]:hover {
  background: linear-gradient(135deg, #8e44ad, #7d3c98);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155, 89, 182, 0.3);
}

.phrase-btn[data-phrase*="ਤੁਹਾਡਾ"] {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border-color: #3498db;
}

.phrase-btn[data-phrase*="ਤੁਹਾਡਾ"]:hover {
  background: linear-gradient(135deg, #2980b9, #21618c);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* Status States */
.status-dot.speaking {
  background: #f39c12;
  animation: pulse 1.5s infinite;
}

.status-dot.interrupted {
  background: #e74c3c;
  animation: pulse 0.8s infinite;
}

.status-indicator.speaking {
  background: rgba(243, 156, 18, 0.1);
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.status-indicator.interrupted {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Interruption Indicator */
.conversation-item.interruption {
  text-align: center;
  margin: 1rem 0;
}

.interruption-text {
  background: rgba(243, 156, 18, 0.1) !important;
  border-color: rgba(243, 156, 18, 0.3) !important;
  color: #d68910 !important;
  font-style: italic;
  text-align: center;
  max-width: 100% !important;
}

.interruption-icon {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* Echo Cancellation Visual Feedback */
.echo-cancellation-active {
  position: relative;
}

.echo-cancellation-active::after {
  content: '🔇';
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Enhanced Voice Button States */
.voice-btn.speaking {
  background: #f39c12;
  animation: pulse 1.5s infinite;
}

.voice-btn.interrupted {
  background: #e74c3c;
  animation: pulse 0.8s infinite;
}

/* Audio Level Indicator */
.audio-level-indicator {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.audio-level-indicator.active {
  display: block;
}

.audio-level-bar {
  width: 200px;
  height: 20px;
  background: var(--muted-bg);
  border-radius: 10px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.audio-level-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f39c12);
  transition: width 0.1s ease;
  border-radius: 10px;
}

.audio-level-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Interruption Controls */
.interruption-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.interruption-btn {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.interruption-btn:hover {
  background: #6bbf00;
  transform: translateY(-2px);
}

.interruption-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Voice Tutor Simplified Interface */
.voice-tutor-header {
  text-align: center;
  margin-bottom: 2rem;
}

.voice-tutor-header h1 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.voice-tutor-header .sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Voice Interaction */
.voice-interaction {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  margin-bottom: 2rem;
}

.voice-display {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.conversation-area {
  height: 400px;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--bg);
}

.conversation-item {
  margin-bottom: 1.5rem;
  animation: fadeIn 0.3s ease-in;
}

.conversation-item.user {
  text-align: right;
}

.conversation-item.ai {
  text-align: left;
}

.speaker-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.conversation-text {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  line-height: 1.6;
  word-wrap: break-word;
  max-width: 80%;
  display: inline-block;
}

.conversation-item.user .conversation-text {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.conversation-item.ai .conversation-text {
  background: var(--card-bg);
  color: var(--text-primary);
}

.conversation-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Interim Display */
.interim-display .conversation-text {
  background: var(--muted-bg);
  border-color: var(--muted-border);
  color: var(--text-secondary);
  font-style: italic;
}

/* Thinking Indicator */
.thinking-indicator .conversation-text {
  background: var(--muted-bg);
  border-color: var(--muted-border);
}

.thinking-dots {
  display: inline-flex;
  gap: 0.2rem;
}

.thinking-dots span {
  width: 6px;
  height: 6px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: thinking 1.4s infinite ease-in-out;
}

.thinking-dots span:nth-child(1) { animation-delay: -0.32s; }
.thinking-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes thinking {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Voice Controls Main */
.voice-controls-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.voice-btn {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

.voice-btn:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(88, 204, 2, 0.4);
}

.voice-btn.listening {
  background: #ff6b6b;
  animation: pulse 1.5s infinite;
}

.voice-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.mic-icon {
  font-size: 2rem;
}

.btn-text {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Voice Status */
.voice-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--muted-bg);
  border-radius: 20px;
  border: 1px solid var(--muted-border);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: all 0.3s ease;
}

.status-dot.ready {
  background: var(--text-secondary);
}

.status-dot.listening {
  background: var(--accent);
  animation: pulse 1.5s infinite;
}

.status-dot.error {
  background: #ff6b6b;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-text {
  font-weight: 600;
  color: var(--text-primary);
}

/* Voice Tips */
.voice-tips {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.voice-tips h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: center;
}

.voice-tips ul {
  margin: 0;
  padding-left: 1.5rem;
}

.voice-tips li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.voice-tips strong {
  color: var(--text-primary);
}

/* Voice Info */
.voice-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--muted-bg);
  border-radius: 12px;
  border: 1px solid var(--muted-border);
}

.voice-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.voice-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.voice-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-width: 150px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-available {
  background: rgba(88, 204, 2, 0.1);
  border: 1px solid rgba(88, 204, 2, 0.3);
}

.voice-unavailable {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.voice-available .voice-name {
  color: #58cc02;
}

.voice-unavailable .voice-name {
  color: #e74c3c;
}

/* Header Links */
.header-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: var(--muted-bg);
  border: 1px solid var(--muted-border);
}

.dashboard-link:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

/* Landing Page Styles */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
    min-height: 80vh;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(88, 204, 2, 0.3);
}

.hero-icon {
    font-size: 8rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.cta-button.primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.cta-button.primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(88, 204, 2, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.cta-button.secondary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(88, 204, 2, 0.3);
}

.cta-button.large {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: var(--muted-bg);
    margin: 2rem -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--muted-border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    padding: 5rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-card:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--accent);
    font-weight: bold;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: rgba(88, 204, 2, 0.08);
    padding: 5rem 2rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    border-radius: 24px;
    border: 2px solid rgba(88, 204, 2, 0.15);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Landing Footer */
.landing-footer {
    background: var(--muted-bg);
    padding: 2rem;
    text-align: center;
    margin: 2rem -2rem -2rem;
}

.footer-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* Auth Buttons in Header */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.auth-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.auth-btn.primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.auth-btn.primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
}

.auth-btn.secondary {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.auth-btn.secondary:hover {
    background: var(--accent);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        width: 200px;
        height: 200px;
    }
    
    .hero-icon {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step-card:not(:last-child)::after {
        content: '↓';
        position: absolute;
        right: 50%;
        bottom: -1.5rem;
        transform: translateX(50%);
        font-size: 2rem;
        color: var(--accent);
        font-weight: bold;
    }
    
    .cta-button.large {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .auth-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

/* Enhanced Landing Page Styles */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Hero Section Enhancements */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 15px rgba(88, 204, 2, 0.3);
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--accent);
    position: relative;
    text-shadow: 0 2px 4px rgba(88, 204, 2, 0.2);
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--accent);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(88, 204, 2, 0.3);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 120px;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--muted-border);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Hero Visual */
.hero-image {
    position: relative;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(88, 204, 2, 0.3);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: float 6s ease-in-out infinite;
    border: 2px solid var(--muted-border);
    backdrop-filter: blur(10px);
}

.floating-card.card-1 {
    top: 10%;
    left: -20%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 60%;
    right: -15%;
    animation-delay: 2s;
}

.floating-card.card-3 {
    bottom: 10%;
    left: 10%;
    animation-delay: 4s;
}

.card-icon {
    font-size: 1.5rem;
}

.card-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Enhanced CTA Buttons */
.cta-button.outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--muted-border);
}

.cta-button.outline:hover {
    background: var(--muted-bg);
    border-color: var(--accent);
    color: var(--accent);
}

/* Enhanced Features */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.feature-list li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Enhanced Steps */
.step-action {
    margin-top: 1.5rem;
}

.step-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 204, 2, 0.3);
}

/* Learning Paths Section */
.learning-paths-section {
    background: var(--muted-bg);
    margin: 2rem -2rem;
    padding: 5rem 2rem;
}

.paths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.path-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}



.path-card.primary {
    border-color: var(--accent);
    transform: scale(1.05);
}

.path-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.path-card.primary:hover {
    transform: scale(1.05) translateY(-5px);
}

.path-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.path-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.path-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.path-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.path-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.path-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.path-button {
    flex: 1;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.path-button.primary {
    background: var(--accent);
    color: white;
}

.path-button.primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.path-button.secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.path-button.secondary:hover {
    background: var(--accent);
    color: white;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--muted-border);
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    font-size: 2rem;
}

.author-info h4 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.author-level {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Enhanced CTA Section */
.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-benefits {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.benefit-icon {
    font-size: 1.2rem;
    color: var(--accent);
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: var(--muted-bg);
    margin: 2rem -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--muted-border);
}

.faq-item h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Enhanced Footer */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--muted-border);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    margin: 0;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        width: 300px;
        height: 300px;
    }
    
    .floating-card {
        position: relative;
        margin: 0.5rem;
        animation: none;
    }
    
    .floating-card.card-1,
    .floating-card.card-2,
    .floating-card.card-3 {
        position: static;
        margin: 0.5rem;
    }
    
    .paths-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    

    
    .path-card.primary {
        transform: none;
    }
    
    .path-card.primary:hover {
        transform: translateY(-5px);
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-benefits {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

