:root {
  --bg-dark: #090d16;
  --bg-surface: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #293548;
  --bg-card-glass: rgba(30, 41, 59, 0.65);
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-secondary: #06b6d4;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --accent-grammar: #a855f7;
  --accent-gold: #fbbf24;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-sub: #e2e8f0;
  --telugu-color: #38bdf8;
  --phonetic-color: #f472b6;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.35);
  --shadow-glow: 0 8px 32px 0 rgba(99, 102, 241, 0.25);
  --font-family: 'Plus Jakarta Sans', 'Noto Sans Telugu', 'Outfit', system-ui, -apple-system, sans-serif;
  --font-telugu: 'Noto Sans Telugu', 'Plus Jakarta Sans', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Telugu Typography Polish */
.badge-telugu,
.telugu-concept,
.story-tel-text,
.moral-box p,
.telugu-hint,
.rp-telugu-hint,
.grammar-explain,
.grammar-example-item p,
.sub-text,
.hub-tab-text small,
.fc-back p {
  font-family: var(--font-telugu);
  line-height: 1.65;
}

/* ================================================================= */
/* TOP PLATFORM HUB HEADER                                           */
/* ================================================================= */
.platform-hub-header {
  min-height: 76px;
  height: auto;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  gap: 20px;
}

.hub-brand-row {
  display: contents;
}

.hub-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.logo-icon-glow {
  font-size: 30px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.brand-title {
  font-size: 21px;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  line-height: 1.2;
}

.badge-telugu {
  font-size: 11px;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.15);
  color: var(--telugu-color);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  -webkit-text-fill-color: var(--telugu-color);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 2px;
}

/* CURRICULUM HUB SWITCHER TABS */
.curriculum-hub-nav {
  display: flex;
  align-items: stretch;
  background: rgba(9, 13, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px;
  border-radius: 14px;
  gap: 8px;
}

.hub-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  min-height: 52px;
  height: 100%;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.hub-tab-icon {
  font-size: 20px;
}

.hub-tab-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hub-tab-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
}

.hub-tab-text small {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
}

.hub-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--text-main);
  transform: translateY(-1px);
}

.hub-tab-btn.active {
  background: linear-gradient(135deg, var(--accent-primary), #4338ca);
  border: 1px solid rgba(165, 180, 252, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.hub-tab-btn.active .hub-tab-text strong {
  color: #ffffff;
}

.hub-tab-btn.active .hub-tab-text small {
  color: rgba(255, 255, 255, 0.85);
}

.hub-right-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}

.auto-save-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  width: 100%;
}

.save-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-success);
  flex-shrink: 0;
}

.toggle-label-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  white-space: nowrap;
}

.voice-dropdown-mini {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--font-family);
  outline: none;
  cursor: pointer;
  max-width: 250px;
}

/* ================================================================= */
/* CURRICULUM VIEWS CONTAINER                                       */
/* ================================================================= */
.curriculum-view {
  display: none;
  flex: 1;
  width: 100%;
}

.curriculum-view.active {
  display: flex;
  flex-direction: column;
}

/* ================================================================= */
/* CURRICULUM 1: 90-DAY SPOKEN COURSE LAYOUT                         */
/* ================================================================= */
#courseView .app-container {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 72px);
}

.sidebar {
  width: 310px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-color);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-header-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 14px;
}

.sb-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.fire-icon {
  font-size: 24px;
}

.progress-mini {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar-checklist-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
}

.sb-checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sb-checklist-header h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.sb-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-primary);
}

.sb-checklist-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-sub);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.nav-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.15));
  color: var(--text-main);
  border: 1px solid var(--border-glow);
}

.nav-btn .icon {
  font-size: 18px;
}

.sync-status {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: auto;
}

.sync-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot.online {
  background: var(--accent-success);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 40%);
}

.header {
  min-height: 64px;
  height: auto;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.day-navigation {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.day-navigation label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  white-space: nowrap;
}

.day-dropdown {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-family);
  outline: none;
  cursor: pointer;
  max-width: 320px;
}

.header-right-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* BUTTONS */
.btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-large {
  padding: 12px 24px;
  font-size: 15px;
  border-radius: 10px;
}

.btn-record {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.btn-record:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

.btn-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.btn-circle:hover {
  background: var(--accent-primary);
  transform: scale(1.08);
}

.tab-content {
  display: none;
  padding: 32px 36px;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* LESSON BANNER & CARDS */
.lesson-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(6, 182, 212, 0.12));
  border: 1px solid var(--border-glow);
  padding: 28px 32px;
  border-radius: 18px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.lesson-banner h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  color: #ffffff;
}

.telugu-concept {
  font-size: 15px;
  color: var(--telugu-color);
  font-weight: 500;
  line-height: 1.65;
  font-family: var(--font-telugu);
}

.grammar-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 18px;
  padding: 26px 30px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.grammar-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #d8b4fe;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.grammar-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f8fafc;
}

.grammar-explain {
  font-size: 14px;
  color: #e2e8f0;
  margin-bottom: 16px;
  line-height: 1.7;
  font-family: var(--font-telugu);
}

.grammar-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.grammar-example-item {
  background: rgba(15, 23, 42, 0.7);
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.grammar-example-item p {
  color: var(--telugu-color);
  font-size: 13px;
  font-weight: 400;
  margin-top: 6px;
  line-height: 1.6;
  font-family: var(--font-telugu);
}

.section-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h3 {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-text {
  font-size: 12px;
  color: var(--text-muted);
}

.words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.word-card-day {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.word-card-day:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.word-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.word-english-title {
  font-size: 18px;
  font-weight: 700;
}

.phonetic-pill {
  font-size: 12px;
  background: rgba(244, 114, 182, 0.15);
  color: var(--phonetic-color);
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.telugu-meaning-text {
  font-size: 14px;
  color: var(--telugu-color);
  font-weight: 500;
}

.sentence-example-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-sub);
}

.story-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
}

.story-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.story-content-box {
  background: rgba(15, 23, 42, 0.6);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
}

.story-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.story-eng-text {
  font-size: 14px;
  line-height: 1.6;
  color: #f1f5f9;
  margin-bottom: 10px;
}

.story-tel-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--telugu-color);
  margin-bottom: 12px;
}

.moral-box {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid var(--accent-warning);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 12px;
}

.story-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sentences-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sentence-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.6);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.sentence-item-text strong {
  display: block;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 2px;
}

.sentence-item-text p {
  font-size: 12px;
  color: var(--telugu-color);
}

/* QUIZ BODY */
.quiz-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.stars-badge {
  font-size: 14px;
  color: var(--accent-warning);
}

.quiz-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz-question-card {
  background: rgba(15, 23, 42, 0.6);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.quiz-q-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-option-label:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-glow);
}

.quiz-option-label.correct-answer {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: var(--accent-success) !important;
  color: #34d399;
}

.quiz-option-label.wrong-answer {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: var(--accent-danger) !important;
  color: #f87171;
}

.quiz-explanation-box {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  background: rgba(99, 102, 241, 0.15);
  border-left: 3px solid var(--accent-primary);
  color: var(--text-sub);
}

/* ================================================================= */
/* TAB 2: SPEAKING & PRONUNCIATION STUDIO                            */
/* ================================================================= */
.speaking-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.speaking-container h2 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* PHONETIC SOUND PLACEMENT GUIDE */
.phonetic-guide-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.p-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.p-guide-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.sub-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(244, 114, 182, 0.15);
  color: var(--phonetic-color);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(244, 114, 182, 0.3);
}

.p-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.p-sound-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s ease;
}

.p-sound-box:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.p-sound-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-secondary);
  background: rgba(6, 182, 212, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  align-self: flex-start;
}

.p-sound-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.p-sound-box p {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
  font-family: var(--font-telugu);
}

.btn-audio-mini {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  align-self: flex-start;
  margin-top: auto;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-audio-mini:hover {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* MIC PRONUNCIATION CARD */
.mic-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-glow);
}

.target-sentence-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.target-sentence-box .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #a5b4fc;
  letter-spacing: 0.5px;
}

.target-sentence-box h2 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 10px 0 6px 0;
}

.telugu-hint {
  font-size: 15px;
  color: var(--telugu-color);
  font-family: var(--font-telugu);
}

.target-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.mic-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.speech-result-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.spoken-text {
  font-size: 16px;
  font-style: italic;
  color: var(--accent-secondary);
  margin: 8px 0 14px 0;
}

.accuracy-meter-container {
  width: 100%;
  max-width: 360px;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  margin: 0 auto 12px auto;
  overflow: hidden;
}

.accuracy-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 0.6s ease;
  border-radius: 5px;
}

.score-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.feedback-msg {
  font-size: 14px;
  color: var(--telugu-color);
  margin-top: 8px;
  font-family: var(--font-telugu);
}

.btn-audio-playback {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--accent-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-audio-playback:hover {
  background: var(--accent-secondary);
  color: #ffffff;
}

/* ================================================================= */
/* TAB 3: INTERACTIVE ROLEPLAY STUDIO                                */
/* ================================================================= */
.dialogue-sim-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sim-header {
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}

.sim-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.chat-viewport {
  min-height: 280px;
  max-height: 480px;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.learner-turn-panel {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 22px;
}

.turn-header {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-secondary);
  margin-bottom: 8px;
}

.turn-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.rp-telugu-hint {
  font-size: 14px;
  color: var(--telugu-color);
  margin-bottom: 16px;
  font-family: var(--font-telugu);
}

.turn-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.rp-feedback {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #34d399;
  font-size: 13px;
  font-weight: 600;
}

/* ================================================================= */
/* TAB 4: SMART FLASHCARDS & SPACED REPETITION (SRS)                */
/* ================================================================= */
.flashcard-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.fc-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.fc-header-bar h2 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.srs-stats-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 12px;
  color: var(--text-sub);
}

.srs-stats-pill strong {
  color: var(--accent-secondary);
}

.fc-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.fc-tab-btn {
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
}

.fc-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.fc-tab-btn.active {
  background: linear-gradient(135deg, var(--accent-primary), #4338ca);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

/* 3D FLIP CARD */
.flashcard {
  perspective: 1200px;
  width: 100%;
  height: 320px;
  cursor: pointer;
  user-select: none;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flashcard.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease;
}

.flashcard-front {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid var(--border-glow);
}

.flashcard-front:hover {
  border-color: var(--accent-primary);
}

.flashcard-back {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border: 2px solid rgba(6, 182, 212, 0.5);
  transform: rotateY(180deg);
}

.fc-top-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: absolute;
  top: 18px;
  left: 0;
  padding: 0 24px;
}

.card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
}

.srs-status-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.flashcard-front h1 {
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.flashcard-front p {
  font-size: 16px;
  color: var(--phonetic-color);
  font-weight: 600;
  margin-bottom: 16px;
  font-family: var(--font-telugu);
}

.flashcard-back h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--telugu-color);
  margin-bottom: 10px;
  font-family: var(--font-telugu);
}

.flashcard-back p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.5;
  max-width: 480px;
}

.flip-hint {
  position: absolute;
  bottom: 16px;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.8;
}

/* SRS GRADING PANEL */
.srs-grading-panel {
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.srs-prompt-text {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  font-family: var(--font-telugu);
}

.srs-btn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.srs-btn {
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.srs-btn small {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.85;
}

.srs-btn.srs-again {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(15, 23, 42, 0.8));
  color: #fca5a5;
}

.srs-btn.srs-again:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
}

.srs-btn.srs-hard {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(15, 23, 42, 0.8));
  color: #fde047;
}

.srs-btn.srs-hard:hover {
  background: rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}

.srs-btn.srs-good {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(15, 23, 42, 0.8));
  color: #6ee7b7;
}

.srs-btn.srs-good:hover {
  background: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

.srs-btn.srs-easy {
  border-color: rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.15));
  color: #a5b4fc;
}

.srs-btn.srs-easy:hover {
  background: rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
}

.fc-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 14px;
}

#fcCounterText {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
}

/* ================================================================= */
/* TAB 5: PROGRESS DASHBOARD & CERTIFICATE                          */
/* ================================================================= */
.progress-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.progress-dashboard h2 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
}

.stat-sub {
  font-size: 11px;
  color: var(--accent-secondary);
}

.cert-card {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cert-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cert-trophy {
  font-size: 40px;
}

.cert-card-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.cert-card-header p {
  font-size: 13px;
  color: var(--text-sub);
}

.vocab-mastery-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vocab-mastery-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.vocab-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.vocab-empty-text {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.vocab-tag-pill {
  font-size: 12px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: 16px;
}

.sync-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sync-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.sync-card p {
  font-size: 13px;
  color: var(--text-sub);
}

.sync-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  background: var(--accent-danger);
  color: #ffffff;
}

@media (max-width: 640px) {
  .srs-btn-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================================================= */
/* CURRICULUM 2: GRAMMAR PLATFORM LAYOUT                             */
/* ================================================================= */
.grammar-platform-container {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 72px);
}

.grammar-sidebar {
  width: 320px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-color);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  flex-shrink: 0;
}

.grammar-sidebar-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

.grammar-brand-badge {
  font-size: 10px;
  font-weight: 700;
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.2);
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 6px;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.grammar-sidebar-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.grammar-sidebar-header p {
  font-size: 11px;
  color: var(--text-muted);
}

.grammar-module-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.grammar-module-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
}

.grammar-module-nav-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  color: var(--text-main);
  border-color: var(--border-glow);
}

.grammar-module-nav-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(99, 102, 241, 0.2));
  border-color: #c084fc;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25);
}

.g-mod-icon {
  font-size: 22px;
}

.g-mod-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.g-mod-info small {
  display: block;
  font-size: 10px;
  color: var(--telugu-color);
  margin-top: 2px;
}

.grammar-sidebar-footer {
  background: rgba(15, 23, 42, 0.7);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-size: 11px;
}

.grammar-formula-summary strong {
  color: var(--accent-warning);
  display: block;
  margin-bottom: 4px;
}

.grammar-formula-summary p {
  color: var(--text-sub);
  margin-bottom: 2px;
}

.grammar-main-content {
  flex: 1;
  padding: 28px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.08), transparent 45%);
}

.grammar-banner {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 24px;
  border-radius: 16px;
}

.grammar-banner h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
}

.grammar-sections-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.grammar-section-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}

.g-sec-header {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.g-sec-header h3 {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.g-sec-header p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-top: 8px;
}

.g-sec-header p strong {
  color: #a5b4fc;
  font-weight: 700;
}

/* VISUAL FORMULA CARD */
.formula-callout-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.12));
  border: 1px solid var(--border-glow);
  border-left: 5px solid var(--accent-primary);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 18px;
}

.formula-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #a5b4fc;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}

.formula-code {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

/* COMPARISON TABLES */
.sov-svo-table-wrapper {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.comparison-table th {
  background: rgba(15, 23, 42, 0.8);
  padding: 12px 16px;
  color: #a5b4fc;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-sub);
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* COMMON MISTAKE CORRECTOR CARDS */
.mistake-fix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.mistake-fix-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
}

.wrong-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #f87171;
  margin-bottom: 6px;
}

.right-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 8px;
}

.fix-reason {
  font-size: 12px;
  color: var(--telugu-color);
  line-height: 1.4;
}

.grammar-module-quiz-card {
  background: var(--bg-card-glass);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  padding: 24px;
}

.g-quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.g-quiz-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.g-quiz-footer {
  margin-top: 20px;
  text-align: center;
}

/* ================================================================= */
/* CURRICULUM 3: A–Z SPONTANEOUS DICTIONARY PLATFORM                 */
/* ================================================================= */
.dictionary-platform-container {
  width: 100%;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 1440px;
  margin: 0 auto;
}

.dict-hero-banner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dict-hero-content h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}

.dict-hero-content p {
  font-size: 14px;
  color: var(--text-sub);
  max-width: 900px;
  line-height: 1.5;
}

/* BILINGUAL SEARCH BAR */
.dict-search-box {
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 18px;
  font-size: 20px;
  color: var(--text-muted);
}

#dictSearchInput {
  width: 100%;
  padding: 16px 48px 16px 52px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

#dictSearchInput:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

.btn-clear-search {
  position: absolute;
  right: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* STICKY A–Z ALPHABET QUICK JUMP BAR */
.dict-alphabet-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0;
  scrollbar-width: thin;
}

.az-btn {
  min-width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.az-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.az-btn.active {
  background: linear-gradient(135deg, var(--accent-secondary), #0284c7);
  color: #ffffff;
  border-color: var(--accent-secondary);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

/* CATEGORY & LEVEL FILTER BADGES */
.dict-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.dict-category-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  flex: 1;
}

.cat-chip {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cat-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.cat-chip.active {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--accent-primary);
  color: #a5b4fc;
}

.dict-count-indicator {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.dict-count-indicator strong {
  color: #ffffff;
}

/* DICTIONARY CARDS GRID */
.dict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.dict-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s ease;
  position: relative;
}

.dict-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.dict-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dict-word-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dict-word-text {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.dict-pos-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
}

.dict-phonetic-badge {
  font-size: 14px;
  font-weight: 700;
  color: var(--phonetic-color);
  background: rgba(244, 114, 182, 0.12);
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;
}

.dict-telugu-meaning {
  font-size: 15px;
  font-weight: 600;
  color: var(--telugu-color);
  line-height: 1.4;
}

.dict-forms-tag {
  font-size: 11px;
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.dict-example-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dict-ex-en {
  color: #f1f5f9;
  font-weight: 500;
}

.dict-ex-te {
  color: var(--text-muted);
  font-size: 11px;
}

.dict-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dict-cat-label {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-listen-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-listen-card:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

/* DICTIONARY PAGINATION BAR */
.dict-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
}

.pagination-info {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ================================================================= */
/* CERTIFICATE MODAL STYLING                                         */
/* ================================================================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cert-modal-container {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px;
  max-width: 800px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.certificate-paper {
  background: #ffffff;
  color: #1e293b;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}

.cert-border {
  border: 4px double #d97706;
  padding: 28px;
  text-align: center;
  position: relative;
}

.cert-header h2 {
  font-size: 22px;
  color: #92400e;
  font-weight: 800;
  letter-spacing: 1px;
  margin-top: 8px;
}

.cert-subtitle {
  font-size: 13px;
  color: #0369a1;
  margin-bottom: 20px;
}

.student-name-cert {
  font-size: 28px;
  color: #1e3a8a;
  font-weight: 800;
  text-decoration: underline;
  margin: 12px 0;
}

.cert-text-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 20px auto;
}

.cert-badges-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.cert-stat-badge {
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 8px 16px;
  border-radius: 8px;
}

.cert-stat-badge strong {
  display: block;
  font-size: 13px;
  color: #92400e;
}

.cert-stat-badge small {
  font-size: 10px;
  color: #78350f;
}

.cert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}

.cert-sign {
  text-align: left;
}

.sign-line {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  display: block;
}

.cert-seal {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px dashed #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #92400e;
  font-weight: 800;
  text-align: center;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

/* RESPONSIVE DESIGN FOR TOP PLATFORM HEADER & LAYOUT */
@media (max-width: 960px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .platform-hub-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 14px;
    gap: 10px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .hub-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 8px;
    flex-wrap: wrap;
  }

  .hub-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .logo-icon-glow {
    width: 42px;
    height: 42px;
    font-size: 22px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .brand-title {
    font-size: 16px;
    font-weight: 800;
    gap: 6px;
    flex-wrap: wrap;
    white-space: normal;
    min-width: 0;
  }

  .badge-telugu {
    font-size: 9.5px;
    padding: 2px 7px;
  }

  .brand-sub {
    font-size: 10px;
    white-space: normal;
    line-height: 1.2;
  }

  .hub-right-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    flex: 0 1 auto;
    min-width: 0;
  }

  .voice-dropdown-mini {
    max-width: 140px;
    font-size: 10px;
    padding: 3px 6px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }

  .toggle-label-mini {
    font-size: 10px;
  }

  .curriculum-hub-nav {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .curriculum-hub-nav::-webkit-scrollbar {
    display: none;
  }

  .hub-tab-btn {
    flex: 0 0 auto;
    padding: 6px 12px;
    min-height: 44px;
    gap: 8px;
    justify-content: center;
    border-radius: 8px;
  }

  .hub-tab-icon {
    font-size: 18px;
    flex-shrink: 0;
  }

  .hub-tab-text strong {
    font-size: 12px;
    white-space: nowrap;
  }

  .hub-tab-text small {
    font-size: 9.5px;
    white-space: nowrap;
  }

  .app-container, .grammar-platform-container {
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .sidebar, .grammar-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .dict-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .platform-hub-header {
    padding: 8px 10px;
    gap: 8px;
  }

  .hub-brand-row {
    gap: 6px;
  }

  .logo-icon-glow {
    width: 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 10px;
  }

  .brand-title {
    font-size: 14px;
    gap: 4px;
  }

  .brand-sub {
    display: none;
  }

  .badge-telugu {
    font-size: 8.5px;
    padding: 1px 5px;
  }

  .hub-right-controls {
    gap: 6px;
  }

  .voice-dropdown-mini {
    max-width: 120px;
    font-size: 9.5px;
    padding: 2px 4px;
  }

  .toggle-label-mini {
    font-size: 9.5px;
  }

  .curriculum-hub-nav {
    gap: 4px;
    padding: 3px;
  }

  .hub-tab-btn {
    padding: 5px 9px;
    min-height: 40px;
    gap: 6px;
  }

  .hub-tab-icon {
    font-size: 15px;
  }

  .hub-tab-text strong {
    font-size: 11px;
  }

  .hub-tab-text small {
    font-size: 8.5px;
  }
}

/* ===================================================================== */
/* LEGAL FOOTER & COMPLIANCE STYLES                                      */
/* ===================================================================== */
.site-footer {
  background: linear-gradient(180deg, #0b1329 0%, #060b17 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 50px 24px 24px;
  margin-top: 60px;
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 800px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 12px;
}

.footer-tagline {
  line-height: 1.6;
  margin-bottom: 16px;
  color: #cbd5e1;
  max-width: 480px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.f-badge {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-col h4 {
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-link,
.footer-modal-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #94a3b8;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-nav-link:hover,
.footer-modal-trigger:hover {
  color: #38bdf8;
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom-container p {
  margin: 4px 0;
}

.legal-mini-note {
  font-size: 0.78rem;
  color: #475569;
}

/* ===================================================================== */
/* LEGAL MODALS STYLING                                                 */
/* ===================================================================== */
.legal-modal-container {
  max-width: 760px;
  width: 92%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
}

.legal-modal-header {
  padding: 24px 30px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-modal-header h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.4rem;
}

.legal-sub {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #38bdf8;
}

.legal-modal-body {
  padding: 28px 30px;
  overflow-y: auto;
  flex: 1;
  color: #cbd5e1;
  font-size: 0.94rem;
  line-height: 1.7;
}

.legal-modal-body h3 {
  color: #f8fafc;
  font-size: 1.08rem;
  margin: 20px 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 6px;
}

.legal-modal-body h3:first-child {
  margin-top: 0;
}

.legal-modal-body ul, .legal-modal-body ol {
  padding-left: 20px;
  margin: 10px 0;
}

.legal-modal-body li {
  margin-bottom: 6px;
}

.legal-modal-body a {
  color: #38bdf8;
  text-decoration: underline;
}

.about-hero-box {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.about-icon {
  font-size: 2.2rem;
}

.about-hero-box h3 {
  margin: 0 !important;
  border: none !important;
  color: #38bdf8 !important;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .contact-cards-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.c-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 6px;
}

.contact-card h4 {
  margin: 0 0 4px;
  color: #f8fafc;
}

.contact-card p {
  margin: 0 0 4px;
  font-weight: 600;
}

.contact-form {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
}

.contact-form h4 {
  margin: 0 0 16px;
  color: #f8fafc;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #38bdf8;
}

/* ===================================================================== */
/* COOKIE CONSENT BANNER                                                 */
/* ===================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 700px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  padding: 16px 20px;
  z-index: 9999;
  animation: slideUpBanner 0.4s ease out;
}

@keyframes slideUpBanner {
  from {
    transform: translate(-50%, 40px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 600px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

.cookie-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  flex: 1;
}

.inline-link-btn {
  background: none;
  border: none;
  color: #38bdf8;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
}

.cookie-actions {
  flex-shrink: 0;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

