/* French Helper — light learning interface
   Global visual layer for every /new screen. */

:root,
[data-theme="dark"] {
  color-scheme: light;
  --black: #1687f8;
  --white: #ffffff;
  --gray-50: #f8fbff;
  --gray-100: #f1f6fc;
  --gray-200: #e3ebf5;
  --gray-300: #cbd8e8;
  --gray-400: #94a3b8;
  --gray-500: #697991;
  --gray-600: #4d5f78;
  --gray-700: #33445d;
  --gray-800: #1d304d;
  --gray-900: #12213f;
  --bg: #f5f9ff;
  --bg-card: #ffffff;
  --bg-muted: #f8fbff;
  --bg-subtle: #eef5fc;
  --border: #e2eaf4;
  --border-dark: #cbd8e8;
  --text: #12213f;
  --text-muted: #697991;
  --text-light: #94a3b8;
  --accent: #1687f8;
  --accent-hover: #0d70d9;
  --success: #20b981;
  --warning: #e79718;
  --danger: #ef5f63;
  --info: #1687f8;
  --purple: #7867e8;
  --purple-light: #eceaff;
  --indigo: #4967de;
  --indigo-light: #e7ecff;
  --teal: #17a886;
  --teal-light: #dcf8ef;
  --amber: #db8a0b;
  --amber-light: #fff2d2;
  --radius: 20px;
  --radius-sm: 13px;
  --radius-xs: 9px;
  --shadow-sm: 0 5px 14px rgba(45, 88, 140, .055);
  --shadow: 0 12px 30px rgba(45, 88, 140, .075);
  --shadow-md: 0 18px 42px rgba(45, 88, 140, .1);
  --shadow-lg: 0 25px 60px rgba(45, 88, 140, .14);
  --sidebar-w: 248px;
  --transition: 180ms cubic-bezier(.2,.8,.2,1);
}

html { background: var(--bg); }
body { background: var(--bg); font-size: 16px; }
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 7%, rgba(119, 208, 255, .16), transparent 22rem),
    radial-gradient(circle at 25% 95%, rgba(128, 107, 243, .07), transparent 26rem);
}
.container { max-width: 1320px; padding-inline: clamp(18px, 3.5vw, 46px); }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.05rem; }
p { line-height: 1.68; }

/* Buttons, fields, notices */
.btn { min-height: 42px; border-radius: 12px; font-weight: 750; box-shadow: none; }
.btn-primary,
[data-theme="dark"] .btn-primary {
  color: #fff;
  border-color: #1687f8;
  background: #1687f8;
  box-shadow: 0 9px 18px rgba(22, 135, 248, .2);
}
.btn-primary:hover,
[data-theme="dark"] .btn-primary:hover { color: #fff; border-color: #0d70d9; background: #0d70d9; transform: translateY(-1px); }
.btn-outline { color: var(--text); border-color: #cad8e8; background: #fff; }
.btn-outline:hover { color: #0d70d9; border-color: #8fc9ff; background: #f4faff; }
.btn-ghost:hover { color: #0d70d9; background: #eaf4ff; }
.btn-icon { border-color: var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); }
.btn-icon:hover { color: #1687f8; border-color: #a8d5ff; }
.form-control,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea,
select {
  min-height: 46px;
  color: var(--text);
  border-color: var(--border-dark) !important;
  border-radius: 12px !important;
  background: #fff !important;
}
.form-control:focus,
input:focus,
textarea:focus,
select:focus { border-color: #5eb1ff !important; box-shadow: 0 0 0 4px rgba(22,135,248,.11) !important; outline: none; }
.alert { border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); }
.badge { border-radius: 999px; font-weight: 750; }

/* Navigation */
.site-sidebar {
  border-right: 1px solid var(--border);
  background: rgba(255,255,255,.97);
  box-shadow: 10px 0 30px rgba(52,88,128,.035);
}
.sidebar-inner { padding: 18px 14px; }
.sidebar-logo { gap: 11px; margin: 0 4px 24px; padding: 4px 5px 17px; border-bottom: 0; font-size: 1.08rem; }
.sidebar-logo-icon,
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  color: #fff;
  border-radius: 13px 13px 13px 5px;
  background: #1687f8;
  box-shadow: 0 9px 17px rgba(22,135,248,.21);
}
.sidebar-logo-icon i,
.logo-icon i { font-size: 1rem; }
.sidebar-nav { gap: 5px; padding: 0; }
.sidebar-link { min-height: 45px; padding: 0 13px; border-radius: 13px; color: #6f7d91; font-size: 14px; font-weight: 650; }
.sidebar-link i { width: 20px; font-size: 15px; }
.sidebar-link:hover { color: #12213f; background: #f1f7fd; transform: translateX(2px); }
.sidebar-link--active { color: #0d70d9 !important; background: #dfefff !important; }
.sidebar-divider { border-color: var(--border); }
.sidebar-theme-btn { display: none !important; }
.sidebar-user { margin-top: 16px; padding: 12px 7px 0; border-color: var(--border); }
.sidebar-user-avatar,
.sidebar-user-initials,
.mob-topbar-avatar,
.mob-topbar-initials { border-color: #fff; background: linear-gradient(145deg, #ff9c61, #ff6e67); box-shadow: 0 0 0 1px var(--border); }
.sidebar-user-name { font-weight: 750; }
.sidebar-logout:hover { color: #ef5f63; background: #fff0f0; }
.main-content { min-height: 100vh; }
.site-header { height: 70px; border-color: var(--border); background: rgba(255,255,255,.92); backdrop-filter: blur(18px); }
.theme-toggle { display: none !important; }

/* Page framing */
.page-hero,
.page-hero--dashboard,
.page-hero--gradient-dark,
.page-hero--gradient-green {
  position: relative;
  overflow: hidden;
  color: var(--text);
  border-bottom: 0;
  background: transparent;
  padding-block: 42px 24px;
}
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -120px;
  right: 5%;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: rgba(180,225,255,.28);
}
.page-hero h1,
.page-hero p,
.page-hero--dashboard h1,
.page-hero--dashboard p,
.page-hero--gradient-dark h1,
.page-hero--gradient-dark p,
.page-hero--gradient-green h1,
.page-hero--gradient-green p { color: var(--text); }
.page-hero p,
.page-hero--dashboard p,
.page-hero--gradient-dark p,
.page-hero--gradient-green p { opacity: 1; color: var(--text-muted); }
.page-hero .btn-outline[style] { color: #0d70d9 !important; border-color: #a9d5ff !important; background: #fff; }
.page-body { padding-top: 16px; padding-bottom: 54px; }
.section { padding-block: 42px; }

/* Shared cards */
.card,
.stat-card,
.course-card,
.course-card-full,
.level-card,
.exam-start-card,
.result-card,
.oral-how,
.answer-breakdown-card,
.result-answer-card {
  border-color: var(--border);
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow-sm);
}
.card { padding: 24px; border-radius: 20px; }
.card:hover { box-shadow: var(--shadow); }
.card-header { padding-bottom: 15px; margin-bottom: 18px; border-bottom: 1px solid #edf2f7; }
.card-header h2 i { color: #1687f8; }
.card-link { color: #0d70d9; font-weight: 750; }
.empty-state { border-radius: 15px; background: #f7fbff; }
.empty-state i { color: #9ccfff; }
.data-table { border-collapse: separate; border-spacing: 0; }
.data-table th { color: #78879c; background: #f5f9fd; font-size: 12px; letter-spacing: .04em; }
.data-table th:first-child { border-radius: 11px 0 0 11px; }
.data-table th:last-child { border-radius: 0 11px 11px 0; }
.data-table td { border-color: #edf2f7; }
.data-table tbody tr:hover td { background: #f8fbff; }

/* Dashboard */
.hero-greeting { align-items: center; }
.hero-greeting h1 { letter-spacing: -.05em; }
.stats-grid { gap: 14px; }
.stat-card { min-height: 112px; padding: 20px; border-radius: 18px; }
.stat-card:hover { border-color: #bddcff; transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon { width: 45px; height: 45px; border-radius: 13px; }
.stat-card--purple .stat-icon { color: #735ee6; background: #ece9ff; }
.stat-card--blue .stat-icon { color: #0d70d9; background: #dfefff; }
.stat-card--green .stat-icon { color: #17a875; background: #dcf7ed; }
.stat-card--orange .stat-icon { color: #db850d; background: #fff0ce; }
.stat-value { font-size: 1.6rem; color: var(--text); }
.stat-label { color: var(--text-muted); font-size: 13px; }
.dashboard-grid { gap: 18px; }
.quick-actions { gap: 10px; }
.quick-action { min-height: 94px; padding: 13px 8px; border-color: var(--border); border-radius: 15px; background: #fbfdff; }
.quick-action:hover { color: #0d70d9; border-color: #afd7ff; background: #f1f8ff; transform: translateY(-2px); }
.quick-action:hover .qa-icon { color: #fff; background: #1687f8; }
.qa-icon { border-radius: 12px; }
.streak-day--active .streak-dot { border-color: #1687f8; background: #1687f8; box-shadow: 0 0 0 4px #dfefff; }
.course-card { overflow: hidden; border-radius: 18px; }
.course-card:hover,
.course-card-full:hover { border-color: #aad4fc; transform: translateY(-3px); }
.course-card-full { border-radius: 18px; }
.course-card-full--enrolled { border-left-color: #1687f8; }
.course-thumb--placeholder { color: #1687f8; background: linear-gradient(135deg, #dff2ff, #edf7ff); }
.progress-bar { background: #e8eef5; }
.progress-fill { background: linear-gradient(90deg, #1687f8, #55b5ff); }

/* Authentication */
.auth-split { background: var(--bg); }
.auth-form-side { background: var(--bg); }
.auth-box { max-width: 430px; padding: 34px; border: 1px solid var(--border); border-radius: 24px; background: #fff; box-shadow: var(--shadow-md); }
.auth-logo { color: var(--text); }
.auth-logo i { color: #1687f8; }
.auth-title { font-size: 2.1rem; }
.auth-hero-side { background: linear-gradient(145deg, #dff2ff 0%, #bde5ff 100%); }
.auth-hero-side::before { opacity: .28; }
.auth-hero-content h2 { color: #12213f; }
.auth-hero-content p { color: #546b87; }
.auth-stat { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.55); backdrop-filter: blur(12px); }
.auth-stat strong { color: #12213f; }
.auth-stat span { color: #65758a; }
.btn-google-native:hover { border-color: #9ccfff; }
.auth-switch a { color: #0d70d9; }

/* AI tutor */
.ai-layout { gap: 18px; }
.ai-credits-box { border: 1px solid #d7eaff; border-radius: 14px; background: #eef7ff; }
.ai-mode-btn { border-radius: 13px; }
.ai-mode-btn:hover { border-color: #9ecfff; }
.ai-mode-btn.active { color: #0d70d9; border-color: #8cc8ff; background: #eaf5ff; }
.ai-mode-btn.active i { color: #1687f8; }
.ai-chat-card { border-radius: 20px; }
.ai-avatar { color: #fff; background: #1687f8; }
.chat-message--ai .chat-bubble { border: 1px solid var(--border); background: #f2f7fc; }
.chat-message--user .chat-bubble { color: #fff; background: #1687f8; }
.chat-input-row { background: #fbfdff; }
.situation-btn:hover,
.situation-btn.active { color: #0d70d9; border-color: #9ccfff; background: #eef7ff; }

/* Course, lesson and test surfaces */
.course-hero { border-radius: 24px; background: linear-gradient(135deg, #dff2ff, #c8e9ff); }
.course-hero h1,
.course-hero p { color: var(--text); }
.lesson-item,
.module-card,
.test-card,
.paper-card { border-color: var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.lesson-item:hover,
.module-card:hover,
.test-card:hover,
.paper-card:hover { border-color: #acd5fb; box-shadow: var(--shadow); }
.lesson-number,
.step-num,
.ab-num,
[data-theme="dark"] .step-num,
[data-theme="dark"] .ab-num { color: #fff; background: #1687f8; }
.test-progress-fill,
.exam-progress-fill,
[data-theme="dark"] .exam-progress-fill { background: #1687f8; }
.test-option.selected,
.answer-option.selected { border-color: #1687f8; background: #eaf5ff; }
.score-ring,
.result-score-circle { border-color: #1687f8; }

/* Oral exam */
.oral-how { border-radius: 19px; }
.level-card { border-radius: 18px; }
.level-card:hover,
.level-card--current { border-color: #79bcfb; }
.level-card--current { box-shadow: 0 0 0 4px #e2f1ff; }
.level-ribbon,
[data-theme="dark"] .level-ribbon { color: #fff; background: #1687f8; }
.exam-level-badge,
[data-theme="dark"] .exam-level-badge { color: #fff; background: #1687f8; }
.exam-start-card,
.result-card { border-radius: 22px; }
.exam-question-card { border-color: #d8e9f8; border-radius: 18px; background: #f3f9ff; }
.answer-mode-tabs { background: #fbfdff; }
.tab-btn.active,
[data-theme="dark"] .tab-btn.active { color: #0d70d9; border-bottom-color: #1687f8; }
.record-btn,
[data-theme="dark"] .record-btn { color: #fff; background: #1687f8; box-shadow: 0 11px 24px rgba(22,135,248,.22); }
.voice-waves span,
[data-theme="dark"] .voice-waves span { background: #1687f8; }
.loading-spinner { border-top-color: #1687f8; }

/* Speak and document tools */
.speak-card,
.document-card,
.upload-panel,
.translation-card,
.doc-panel { border-color: var(--border) !important; border-radius: 20px !important; background: #fff !important; box-shadow: var(--shadow-sm); }
.mode-tab.active,
.lang-tab.active { color: #0d70d9 !important; border-color: #1687f8 !important; background: #eaf5ff !important; }
.speak-record-btn,
.mic-main-btn { color: #fff !important; background: #1687f8 !important; box-shadow: 0 13px 25px rgba(22,135,248,.22) !important; }
.drop-zone,
.upload-zone { border-color: #b9d8f5 !important; border-radius: 17px !important; background: #f6fbff !important; }
.drop-zone:hover,
.upload-zone:hover { border-color: #58aefc !important; background: #edf8ff !important; }

/* Profile, credits and redemption */
.profile-grid { gap: 20px; }
.profile-summary { background: linear-gradient(155deg, #fff, #f2f9ff); }
.profile-avatar,
.profile-avatar-initials { border: 5px solid #fff; box-shadow: 0 0 0 1px var(--border), var(--shadow); }
.profile-avatar-initials { color: #fff; background: linear-gradient(145deg, #ff9b60, #ff6966); }
.credit-balance-card,
.redeem-balance { border-color: #d5eaff; border-radius: 16px; background: #eef7ff; }
.tier-card { border-color: var(--border); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.tier-card:hover,
.tier-card--popular { border-color: #77bcfb; transform: translateY(-3px); box-shadow: var(--shadow); }
.tier-popular-badge { color: #fff; background: #1687f8; }
.redeem-layout { gap: 22px; }
.redeem-source { border-radius: 13px; background: #f7fbff; }

/* Admin editor */
.css-editor,
.editor-textarea { color: #233654 !important; border-color: var(--border) !important; border-radius: 14px !important; background: #f8fbff !important; }

/* Mobile */
.mob-topbar { border-color: var(--border); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.mob-topbar-logo { color: var(--text); font-weight: 800; }
.mob-topbar-logo i { color: #1687f8; }
.mob-nav { border-color: var(--border); background: rgba(255,255,255,.96); box-shadow: 0 -10px 28px rgba(45,88,140,.09); backdrop-filter: blur(16px); }
.mob-nav-item { color: #7f8da1; }
.mob-nav-active { color: #1687f8 !important; }
.mob-nav-center-btn,
[data-theme="dark"] .mob-nav-center-btn { color: #fff; border: 5px solid var(--bg); background: #1687f8; box-shadow: 0 8px 18px rgba(22,135,248,.24); }

@media (max-width: 1024px) {
  .container { padding-inline: 20px; }
  .card { padding: 20px; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .page-hero { padding-block: 25px 14px; }
  .page-body { padding-top: 10px; }
  .stats-grid { gap: 10px; }
  .stat-card { min-height: 100px; padding: 15px; }
  .quick-actions { grid-template-columns: repeat(3,1fr); }
  .auth-box { padding: 27px 22px; border: 0; box-shadow: none; }
  .card { border-radius: 17px; }
}

@media (max-width: 520px) {
  .container { padding-inline: 14px; }
  .page-hero h1 { font-size: 1.8rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 92px; }
  .stat-icon { width: 39px; height: 39px; }
  .stat-value { font-size: 1.3rem; }
  .quick-actions { grid-template-columns: repeat(2,1fr); }
  .card { padding: 17px; }
  .redeem-sources { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ================================================================
   STRUCTURAL REDESIGN V2 — matches the approved HTML prototype
   ================================================================ */

body.app-authenticated { padding-top: 84px; }
body.app-guest { padding: 0 !important; }
body.auth-page { padding: 0; }
.main-content { min-width: 0; }

.fh-sidebar {
  width: 244px;
  padding: 0;
  border-right: 1px solid #e4ebf4;
  background: #fff;
  box-shadow: none;
}
.fh-sidebar-inner { height: 100%; padding: 25px 18px 18px; overflow-y: auto; }
.fh-brand { display: flex; align-items: center; gap: 11px; color: #12213f; font-size: 1rem; font-weight: 850; letter-spacing: -.03em; }
.fh-sidebar .fh-brand { margin: 0 0 37px; padding: 0 8px; border: 0; }
.fh-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; color: #fff; border-radius: 12px 12px 12px 4px; background: #1687f8; box-shadow: 0 8px 17px rgba(22,135,248,.2); font-size: 1rem; font-weight: 900; transform: rotate(-3deg); }
.fh-brand-mark small { display: inline; color: #bde5ff; font: inherit; }
.fh-nav { display: grid; gap: 6px; padding: 0; }
.fh-nav-link { display: flex; align-items: center; gap: 13px; min-height: 46px; padding: 0 13px; border-radius: 13px; color: #697991; font-size: 14px; font-weight: 680; transition: .18s ease; }
.fh-nav-link i { width: 20px; text-align: center; font-size: 16px; }
.fh-nav-link:hover { color: #12213f; background: #f2f7fc; transform: translateX(2px); }
.fh-nav-link.is-active { color: #0d70d9; background: #dceeff; }
.fh-nav-link em { margin-left: auto; padding: 4px 7px; border-radius: 999px; color: #6d55de; background: #ece8ff; font-size: 9px; font-style: normal; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.fh-sidebar-bottom { display: grid; gap: 15px; margin-top: auto; padding-top: 24px; }
.fh-upgrade-card { position: relative; display: block; overflow: hidden; padding: 16px 15px; border-radius: 18px; background: linear-gradient(145deg,#eef7ff,#dfefff); }
.fh-upgrade-card::after { content: ""; position: absolute; right: -28px; bottom: -38px; width: 82px; height: 82px; border-radius: 50%; background: rgba(22,135,248,.1); }
.fh-upgrade-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 11px; color: #dc8b0e; border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); }
.fh-upgrade-card strong { display: block; color: #12213f; font-size: 12px; }
.fh-upgrade-card p { margin: 6px 0 12px; color: #687991; font-size: 11px; line-height: 1.45; }
.fh-upgrade-card b { color: #0d70d9; font-size: 11px; }
.fh-admin-link { padding: 9px 12px; color: #738197; border-radius: 11px; font-size: 12px; font-weight: 700; }
.fh-admin-link:hover { color: #0d70d9; background: #edf7ff; }
.fh-user-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 13px 4px 0; border-top: 1px solid #e5edf5; }
.fh-user-main { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; min-width: 0; }
.fh-user-main > span:last-child { min-width: 0; }
.fh-user-main strong,.fh-user-main small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fh-user-main strong { font-size: 12px; }
.fh-user-main small { margin-top: 2px; color: #7d8ba0; font-size: 10px; }
.fh-avatar,.fh-top-avatar { display: grid; place-items: center; overflow: hidden; color: #fff; border: 3px solid #fff; border-radius: 50%; background: linear-gradient(145deg,#ff9c60,#ff6e67); box-shadow: 0 0 0 1px #dfe7f0; font-size: 12px; font-weight: 850; }
.fh-avatar { width: 36px; height: 36px; }
.fh-avatar img,.fh-top-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fh-logout { display: grid; place-items: center; width: 32px; height: 32px; color: #93a0b2; border-radius: 10px; }
.fh-logout:hover { color: #ef5f63; background: #fff0f0; }

.fh-topbar { position: fixed; z-index: 210; top: 0; right: 0; left: 244px; height: 84px; display: flex; align-items: center; gap: 18px; padding: 0 clamp(22px,4vw,54px); border-bottom: 1px solid rgba(226,234,244,.95); background: rgba(245,249,255,.91); backdrop-filter: blur(18px); }
.fh-search { display: flex; align-items: center; gap: 11px; width: min(460px,46vw); height: 45px; padding: 0 14px; border: 1px solid #e2eaf4; border-radius: 14px; background: #fff; box-shadow: 0 7px 18px rgba(49,87,130,.035); }
.fh-search > i { color: #8b98aa; font-size: 14px; }
.fh-search input { min-width: 0; min-height: 0 !important; height: auto; flex: 1; padding: 0 !important; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; font-size: 12px; }
.fh-search kbd { padding: 3px 6px; color: #99a5b6; border: 1px solid #e1e8f1; border-radius: 6px; background: #f8fafc; font-size: 10px; }
.fh-topbar-actions { display: flex; align-items: center; gap: 11px; margin-left: auto; }
.fh-credit-chip { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; color: #526178; border: 1px solid #e0e8f1; border-radius: 12px; background: #fff; font-size: 11px; }
.fh-credit-chip i { color: #e3991d; }
.fh-credit-chip strong { color: #12213f; }
.fh-icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: #64748b; border: 1px solid #e0e8f1; border-radius: 12px; background: #fff; cursor: pointer; }
.fh-menu-button { display: none; }
.fh-notification { position: relative; }
.fh-notification span { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: #ff6e67; }
.fh-top-avatar { width: 40px; height: 40px; }
.fh-guest-header .fh-brand { margin-right: auto; }

.fh-dashboard { max-width: 1440px; padding-top: 31px; padding-bottom: 56px; }
.fh-welcome-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.fh-eyebrow { margin: 0 0 7px; color: #96a4b7; font-size: 10px; font-weight: 900; letter-spacing: .13em; line-height: 1.2; }
.fh-welcome-strip h1 { margin: 0; font-size: clamp(1.9rem,3.3vw,2.55rem); line-height: 1.05; letter-spacing: -.05em; }
.fh-welcome-strip h1 span { display: inline-block; font-size: .75em; transform: rotate(-7deg); }
.fh-welcome-strip > div > p:last-child { margin: 8px 0 0; color: #6e7e94; font-size: 13px; }
.fh-streak-chip { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border: 1px solid #ffdca7; border-radius: 15px; background: #fff8ed; }
.fh-streak-chip > i { color: #ff9334; font-size: 20px; }
.fh-streak-chip strong,.fh-streak-chip small { display: block; }
.fh-streak-chip strong { font-size: 12px; }
.fh-streak-chip small { margin-top: 2px; color: #a17650; font-size: 10px; }
.fh-dashboard-grid { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(280px,.82fr); gap: 22px; align-items: start; }
.fh-content-column,.fh-right-column { display: grid; gap: 22px; min-width: 0; }
.fh-learning-hero { min-height: 305px; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(270px,.9fr); overflow: hidden; border-radius: 26px; background: linear-gradient(125deg,#d9efff 0%,#bfe5ff 100%); box-shadow: 0 14px 36px rgba(45,88,140,.09); }
.fh-hero-copy { position: relative; z-index: 2; align-self: center; padding: 40px 0 40px 40px; }
.fh-hero-tag { display: inline-block; margin-bottom: 13px; color: #0d70d9; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.fh-learning-hero h2 { max-width: 520px; margin: 0; font-size: clamp(2rem,3.3vw,3rem); line-height: 1.02; letter-spacing: -.055em; }
.fh-learning-hero p { max-width: 450px; margin: 14px 0 24px; color: #526985; font-size: 13px; line-height: 1.58; }
.fh-primary-action { display: inline-flex; align-items: center; gap: 9px; min-height: 45px; padding: 0 18px; color: #fff; border-radius: 13px; background: #1687f8; box-shadow: 0 9px 18px rgba(22,135,248,.22); font-size: 12px; font-weight: 850; }
.fh-primary-action:hover { color: #fff; background: #0d70d9; transform: translateY(-2px); }
.fh-hero-art { position: relative; min-height: 305px; overflow: hidden; }
.fh-hero-art::before { content: ""; position: absolute; top: 8px; right: -5px; width: 310px; height: 310px; border-radius: 50%; background: rgba(255,255,255,.4); box-shadow: 0 0 0 28px rgba(255,255,255,.14); }
.fh-speech { position: absolute; z-index: 2; padding: 8px 12px; color: #0d70d9; border-radius: 12px 12px 12px 3px; background: #fff; box-shadow: 0 8px 18px rgba(42,89,145,.11); font-size: 11px; font-weight: 850; }
.fh-speech-one { top: 50px; left: 8%; transform: rotate(-4deg); }
.fh-speech-two { top: 98px; right: 3%; color: #9b6435; background: #fff4da; transform: rotate(5deg); }
.fh-bonjour-mark { position: absolute; right: 13%; bottom: 60px; z-index: 1; display: grid; color: #487da9; font-size: 3.55rem; font-weight: 900; line-height: .67; letter-spacing: -.09em; transform: rotate(-5deg); text-shadow: 0 12px 24px rgba(48,93,135,.12); }
.fh-bonjour-mark span { color: #fff; }
.fh-bonjour-mark strong { color: inherit; font: inherit; }
.fh-bonjour-mark i { position: absolute; right: -27px; bottom: -5px; color: #ff6e67; font-style: normal; }
.fh-hero-level { position: absolute; z-index: 3; right: 24px; bottom: 19px; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.7); border-radius: 12px; background: rgba(255,255,255,.72); backdrop-filter: blur(8px); }
.fh-hero-level strong { display: grid; place-items: center; width: 29px; height: 29px; color: #fff; border-radius: 9px; background: #1687f8; font-size: 11px; }
.fh-hero-level span { color: #526780; font-size: 10px; font-weight: 750; }
.fh-panel { padding: 24px; border: 1px solid #e2eaf4; border-radius: 20px; background: #fff; box-shadow: 0 10px 25px rgba(45,88,140,.045); }
.fh-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.fh-section-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.fh-section-heading > a { display: flex; align-items: center; gap: 5px; color: #0d70d9; font-size: 11px; font-weight: 850; }
.fh-course-list { display: grid; gap: 11px; }
.fh-course-row { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 15px; padding: 11px; border: 1px solid #e2eaf4; border-radius: 16px; transition: .18s ease; }
.fh-course-row:hover { border-color: #c4def7; box-shadow: 0 8px 18px rgba(43,88,140,.055); transform: translateY(-1px); }
.fh-course-art,.fh-course-art-image { width: 92px; height: 70px; border-radius: 12px; }
.fh-course-art-image { object-fit: cover; }
.fh-course-art { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-left: 14px; color: #27698c; background: #c9eff6; }
.fh-course-art.is-yellow { color: #896137; background: #ffe4aa; }
.fh-course-art::after { content: ""; position: absolute; right: -15px; bottom: -20px; width: 54px; height: 54px; border: 8px solid rgba(255,255,255,.45); border-radius: 50%; }
.fh-course-art span { font-size: 10px; }
.fh-course-art strong { color: inherit; font-size: 12px; }
.fh-course-art i { position: absolute; top: 9px; right: 10px; font-size: 12px; font-style: normal; font-weight: 900; }
.fh-course-info { min-width: 0; }
.fh-course-info > span { color: #97a4b5; font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.fh-course-info h3 { margin: 5px 0 9px; overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.fh-progress-line { width: min(250px,100%); height: 5px; overflow: hidden; border-radius: 99px; background: #edf2f7; }
.fh-progress-line b { display: block; height: 100%; border-radius: inherit; background: #1687f8; }
.fh-course-info small { display: block; margin-top: 6px; color: #718098; font-size: 10px; }
.fh-round-action { display: grid; place-items: center; width: 37px; height: 37px; color: #1687f8; border-radius: 11px; background: #dceeff; }
.fh-empty-compact { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 18px; border: 1px dashed #cbdceb; border-radius: 15px; background: #f8fbff; }
.fh-empty-compact > i { color: #73b8f8; font-size: 22px; }
.fh-empty-compact strong,.fh-empty-compact small { display: block; }
.fh-empty-compact small { margin-top: 3px; color: #718098; font-size: 11px; }
.fh-practice-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.fh-practice-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-width: 0; padding: 12px; border: 1px solid #e2eaf4; border-radius: 15px; transition: .18s ease; }
.fh-practice-card:hover { border-color: #c9ddf3; transform: translateY(-2px); }
.fh-practice-icon,.fh-stat-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; }
.fh-practice-icon.is-coral,.fh-stat-icon.is-coral { color: #e45450; background: #ffe6e4; }
.fh-practice-icon.is-violet { color: #6752dd; background: #ebe8ff; }
.fh-practice-icon.is-green { color: #149d68; background: #def8ed; }
.fh-practice-card strong,.fh-practice-card small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fh-practice-card strong { font-size: 12px; }
.fh-practice-card small { margin-top: 3px; color: #718098; font-size: 10px; }
.fh-practice-card > i { color: #97a4b5; font-size: 11px; }
.fh-goal-content { display: flex; align-items: center; gap: 17px; margin: 22px 0 20px; }
.fh-progress-ring { --progress: 0; position: relative; width: 91px; height: 91px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#1687f8 calc(var(--progress) * 1%),#e8f0f8 0); }
.fh-progress-ring::before { content: ""; position: absolute; width: 71px; height: 71px; border-radius: 50%; background: #fff; }
.fh-progress-ring > div { position: relative; z-index: 1; text-align: center; }
.fh-progress-ring strong { font-size: 18px; }
.fh-progress-ring span { display: block; color: #718098; font-size: 9px; }
.fh-goal-content > div:last-child strong { font-size: 12px; }
.fh-goal-content p { margin: 4px 0 0; color: #718098; font-size: 10px; }
.fh-week-row { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; padding-top: 17px; border-top: 1px solid #e5edf5; }
.fh-week-row span { display: grid; justify-items: center; gap: 6px; }
.fh-week-row i { display: grid; place-items: center; width: 24px; height: 24px; color: transparent; border: 2px solid #e5edf4; border-radius: 50%; font-size: 9px; font-style: normal; font-weight: 900; }
.fh-week-row small { color: #8996a9; font-size: 8px; }
.fh-week-row .is-done i { color: #fff; border-color: #1687f8; background: #1687f8; }
.fh-week-row .is-today i { color: #1687f8; border-color: #1687f8; background: #dceeff; }
.fh-stat-list { display: grid; gap: 7px; }
.fh-stat-list > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid #edf1f5; }
.fh-stat-list > div:last-child { border: 0; }
.fh-stat-icon { width: 36px; height: 36px; }
.fh-stat-icon.is-blue { color: #0d70d9; background: #dceeff; }
.fh-stat-icon.is-yellow { color: #d98900; background: #fff1ce; }
.fh-stat-list strong,.fh-stat-list small { display: block; }
.fh-stat-list strong { font-size: 12px; }
.fh-stat-list small { margin-top: 2px; color: #718098; font-size: 9px; }
.fh-stat-list b { color: #13a56e; font-size: 10px; }
.fh-level-card { padding: 21px; color: #fff; border-radius: 20px; background: linear-gradient(135deg,#173b72,#0f73c9); box-shadow: 0 10px 25px rgba(45,88,140,.08); }
.fh-level-card > div:first-child,.fh-level-card > div:last-child { display: flex; align-items: center; justify-content: space-between; }
.fh-level-card span,.fh-level-card strong { color: #fff; font-size: 12px; }
.fh-level-track { height: 7px; margin: 13px 0 10px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.18); }
.fh-level-track span { display: block; height: 100%; border-radius: inherit; background: #78ddff; }
.fh-level-card p { margin: 0 0 10px; color: rgba(255,255,255,.72); font-size: 10px; }
.fh-level-card small { color: rgba(255,255,255,.75); font-size: 9px; font-weight: 800; }
.fh-recent-panel { margin-top: 22px; }
.fh-recent-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.fh-recent-grid article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 13px; border: 1px solid #e2eaf4; border-radius: 14px; }
.fh-recent-grid strong,.fh-recent-grid small { display: block; }
.fh-recent-grid strong { overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.fh-recent-grid small { margin-top: 3px; color: #7b899d; font-size: 9px; }
.fh-recent-grid > article > i { color: #9aa6b8; font-size: 10px; }
.fh-result-score { display: grid; place-items: center; width: 38px; height: 38px; color: #ba4547; border-radius: 11px; background: #ffe5e5; font-size: 10px; font-weight: 900; }
.fh-result-score.is-pass { color: #16885d; background: #dff7ed; }

[data-lang="ta"] .fh-learning-hero h2 { font-size: clamp(1.6rem,2.7vw,2.3rem); line-height: 1.25; letter-spacing: -.025em; }
[data-lang="ta"] .fh-nav-link { line-height: 1.35; }
[data-lang="ta"] .fh-section-heading h2 { line-height: 1.45; }
[data-lang="ta"] .fh-practice-card small { line-height: 1.35; white-space: normal; }

/* Existing feature pages now share the same workspace composition. */
.main-content > .page-hero,
.main-content > .speak-hero,
.main-content > .doc-hero { max-width: 1320px; margin: 0 auto; padding: 31px clamp(18px,3.5vw,46px) 18px; background: transparent !important; }
.main-content > .page-hero > .container,
.main-content > .speak-hero > .container,
.main-content > .doc-hero > .container { max-width: none; padding: 0; }
.main-content > .page-hero h1,
.main-content > .speak-hero h1,
.main-content > .doc-hero h1 { font-size: clamp(1.9rem,3.3vw,2.6rem); letter-spacing: -.05em; }
.main-content > .page-hero::after { display: none; }
.page-body,.speak-container,.doc-container { max-width: 1320px; padding-top: 10px; padding-bottom: 56px; }
.speak-hero-inner,.doc-hero-inner { min-height: 0; padding: 0 !important; color: var(--text) !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.speak-hero-text h1,.doc-hero-text h1 { color: var(--text) !important; }
.speak-hero-text p,.doc-hero-text p { color: var(--text-muted) !important; }
.speak-hero-badge,.doc-hero-badge { color: #0d70d9 !important; border: 0 !important; background: #dceeff !important; }
.speak-layout,.doc-layout,.ai-layout,.profile-grid,.topup-grid,.redeem-layout,.result-overview-grid { gap: 22px; }
.speak-input-panel,.doc-input-panel,.ai-sidebar .card,.ai-chat-card,.profile-grid > .card,.topup-grid > .card,.redeem-layout > .card { border-radius: 20px !important; box-shadow: 0 10px 25px rgba(45,88,140,.045) !important; }

@media (min-width: 769px) {
  body.app-authenticated { padding-left: 244px; }
}

@media (max-width: 1120px) {
  .fh-dashboard-grid { grid-template-columns: 1fr; }
  .fh-right-column { grid-template-columns: 1fr 1fr; }
  .fh-level-card { grid-column: 1/-1; }
  .fh-recent-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  body.app-authenticated { padding-left: 0; }
  .fh-sidebar { width: 244px; transform: translateX(-105%); }
  .fh-sidebar.sidebar--open { transform: translateX(0); }
  .fh-topbar { left: 0; height: 74px; padding: 0 16px; }
  body.app-authenticated { padding-top: 74px; }
  .fh-menu-button { display: grid; }
  .fh-search { width: min(430px,58vw); }
}

@media (max-width: 680px) {
  .fh-topbar { gap: 8px; }
  .fh-search { width: auto; flex: 1; }
  .fh-search kbd,.fh-credit-chip span { display: none; }
  .fh-credit-chip { padding-inline: 9px; }
  .fh-dashboard { padding: 24px 15px 100px; }
  .fh-welcome-strip { align-items: flex-start; }
  .fh-streak-chip { padding: 9px 10px; }
  .fh-streak-chip small { display: none; }
  .fh-learning-hero { min-height: 390px; grid-template-columns: 1fr; }
  .fh-hero-copy { padding: 31px 28px 0; }
  .fh-hero-art { min-height: 165px; }
  .fh-hero-art::before { top: 0; right: -20px; width: 240px; height: 240px; }
  .fh-bonjour-mark { right: 18%; bottom: 42px; font-size: 2.75rem; }
  .fh-speech-one { top: 20px; left: 16%; }
  .fh-speech-two { top: 47px; right: 5%; }
  .fh-right-column { grid-template-columns: 1fr; }
  .fh-level-card { grid-column: auto; }
  .fh-practice-grid,.fh-recent-grid { grid-template-columns: 1fr; }
  .main-content > .page-hero,.main-content > .speak-hero,.main-content > .doc-hero { padding: 25px 15px 12px; }
  .page-body,.speak-container,.doc-container { padding-inline: 15px; padding-bottom: 100px; }
}

@media (max-width: 480px) {
  .fh-notification { display: none; }
  .fh-search input::placeholder { color: transparent; }
  .fh-welcome-strip > div > p:last-child { max-width: 230px; }
  .fh-panel { padding: 19px 15px; }
  .fh-course-row { grid-template-columns: 72px 1fr; gap: 11px; }
  .fh-course-art,.fh-course-art-image { width: 72px; height: 64px; }
  .fh-round-action { display: none; }
}

/* ================================================================
   ORAL EXAM — welcoming AI coach experience
   ================================================================ */
.oral-hero-wrap { max-width: 1320px; padding-top: 31px; }
.oral-ai-hero { min-height: 365px; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(330px,.92fr); overflow: hidden; border-radius: 28px; background: linear-gradient(125deg,#dff2ff 0%,#c9e9ff 62%,#bde4ff 100%); box-shadow: 0 16px 42px rgba(45,88,140,.09); }
.oral-ai-copy { position: relative; z-index: 2; align-self: center; padding: 45px 12px 42px 45px; }
.oral-ai-badge { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 15px; padding: 7px 10px; color: #0d70d9; border: 1px solid rgba(22,135,248,.15); border-radius: 999px; background: rgba(255,255,255,.58); font-size: 10px; font-weight: 900; letter-spacing: .09em; }
.oral-ai-copy h1 { max-width: 620px; margin: 0; font-size: clamp(2.25rem,4vw,3.65rem); line-height: 1; letter-spacing: -.06em; }
.oral-ai-copy > p { max-width: 610px; margin: 16px 0 23px; color: #526985; font-size: 14px; line-height: 1.65; }
.oral-ai-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.oral-ai-actions .btn { min-height: 48px; }
.oral-ai-trust { display: flex; gap: 17px; flex-wrap: wrap; margin-top: 23px; color: #53708e; }
.oral-ai-trust span { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 750; }
.oral-ai-trust i { color: #1687f8; }
.oral-ai-visual { position: relative; min-height: 365px; overflow: hidden; }
.oral-ai-visual::before { content: ""; position: absolute; right: -35px; bottom: -90px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.42); box-shadow: 0 0 0 34px rgba(255,255,255,.14); }
.oral-ai-visual img { position: absolute; z-index: 2; right: 18px; bottom: -74px; width: min(370px,88%); height: auto; filter: drop-shadow(0 18px 24px rgba(35,78,121,.16)); }
.oral-float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 7px; padding: 9px 12px; color: #0d70d9; border-radius: 12px; background: rgba(255,255,255,.92); box-shadow: 0 10px 22px rgba(45,88,140,.12); font-size: 10px; font-weight: 850; }
.oral-float-one { top: 55px; left: 5px; transform: rotate(-4deg); }
.oral-float-two { top: 122px; right: 22px; color: #16885d; transform: rotate(4deg); }
.oral-credit-bubble { position: absolute; z-index: 4; right: 25px; bottom: 20px; display: grid; grid-template-columns: auto auto; align-items: center; gap: 1px 6px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.8); border-radius: 13px; background: rgba(255,255,255,.82); backdrop-filter: blur(10px); }
.oral-credit-bubble i { grid-row: 1/3; color: #e79a1f; }
.oral-credit-bubble strong { font-size: 12px; }
.oral-credit-bubble span { color: #718098; font-size: 9px; }
.oral-section-heading { max-width: 650px; margin: 15px 0 18px; }
.oral-section-heading > span { color: #0d70d9; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.oral-section-heading h2 { margin: 5px 0; font-size: 1.55rem; letter-spacing: -.035em; }
.oral-section-heading p { margin: 0; color: #718098; font-size: 12px; }
.oral-level-heading { margin-top: 35px; scroll-margin-top: 100px; }
.oral-how { display: grid !important; grid-template-columns: repeat(4,1fr); gap: 10px !important; padding: 12px !important; border: 1px solid #e2eaf4 !important; border-radius: 20px !important; background: #fff !important; box-shadow: 0 10px 25px rgba(45,88,140,.045) !important; }
.oral-how .oral-step { min-width: 0; padding: 12px; border-radius: 14px; background: #f7fbff; }
.oral-how .step-num { width: 34px; height: 34px; color: #fff; background: #1687f8; box-shadow: 0 7px 14px rgba(22,135,248,.16); }
.oral-how .oral-step strong { font-size: 12px; }
.oral-how .oral-step small { color: #748298; font-size: 10px; }
.oral-how .oral-arrow { display: none; }
.oral-level-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 16px !important; }
.oral-level-grid .exam-card { overflow: visible; border: 1px solid #e2eaf4 !important; border-radius: 20px !important; background: #fff; box-shadow: 0 8px 22px rgba(45,88,140,.05); }
.oral-level-grid .exam-card:hover { border-color: #acd5fb !important; box-shadow: 0 16px 32px rgba(45,88,140,.09); transform: translateY(-3px); }
.oral-level-grid .exam-card--current { border-color: #76bdfa !important; box-shadow: 0 0 0 4px #e2f1ff,0 12px 28px rgba(45,88,140,.08) !important; }
.oral-level-grid .exam-card-head { min-height: 102px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 18px; }
.oral-level-grid .level-badge { width: 51px; height: 51px; margin: 0; border-radius: 15px; box-shadow: 0 8px 18px rgba(45,88,140,.11); }
.oral-level-grid .ec-label { font-size: 14px; line-height: 1.35; }
.oral-level-grid .ec-ribbon { top: -9px; right: 13px; padding: 5px 10px; color: #fff; border-radius: 999px; background: #1687f8; box-shadow: 0 6px 13px rgba(22,135,248,.16); }
.oral-level-grid .ec-section { padding: 16px 18px; border-color: #e9eff6; }
.oral-level-grid .ec-section--quick { background: #fbfdff; }
.oral-level-grid .ec-section--delf { border-radius: 0 0 20px 20px; background: #f8f6ff; }
.oral-level-grid .ec-mode-icon { border-radius: 9px; }
.oral-level-grid .ec-mode-icon--quick { color: #0d70d9; background: #dceeff; }
.oral-level-grid .ec-mode-icon--delf { color: #6d55de; background: #ece8ff; }
.oral-level-grid .ec-btn { min-height: 43px; border-radius: 12px; }
.oral-level-grid .ec-delf-btn { min-height: 42px; border-color: #e2e5f4; border-radius: 11px; }
.oral-level-grid .ec-delf-btn:hover:not(.ec-delf-btn--locked) { color: #5b40cf; border-color: #b7aaf9; background: #f4f1ff; }

/* ================================================================
   TEST PLAYER — focused, clear and confidence-building
   ================================================================ */
.exam-body { padding: 0 !important; color: #12213f; background: #f5f9ff !important; }
.exam-body::before { display: none; }
.exam-topbar { height: 78px !important; gap: 14px !important; padding: 0 clamp(16px,3vw,34px) !important; border-bottom: 1px solid #e2eaf4 !important; background: rgba(255,255,255,.96) !important; box-shadow: 0 7px 24px rgba(45,88,140,.055); backdrop-filter: blur(15px); }
.exam-quit-btn { width: 41px !important; height: 41px !important; color: #687991 !important; border: 1px solid #e2eaf4 !important; border-radius: 12px !important; background: #fff !important; }
.exam-quit-btn:hover { color: #ef5f63 !important; border-color: #ffc5c6 !important; background: #fff1f1 !important; }
.exam-brand-block { width: min(265px,22vw); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; min-width: 0; }
.exam-brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; border-radius: 11px 11px 11px 4px; background: #1687f8; font-size: 12px; font-weight: 900; transform: rotate(-3deg); }
.exam-brand-mark small { color: #bde5ff; font: inherit; }
.exam-brand-block > span:last-child { min-width: 0; }
.exam-brand-block strong,.exam-brand-block small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.exam-brand-block strong { font-size: 12px; }
.exam-brand-block small { margin-top: 2px; color: #8996a9; font-size: 9px; }
.exam-progress-wrap { max-width: 670px; margin: 0 auto; }
.exam-progress-meta { display: flex; justify-content: space-between; margin-bottom: 7px; color: #718098; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.exam-progress-meta strong { color: #0d70d9; }
.exam-prog-bar { height: 7px !important; background: #e6eef7 !important; }
.exam-prog-fill { background: linear-gradient(90deg,#1687f8,#55b5ff) !important; box-shadow: 0 2px 8px rgba(22,135,248,.2); }
.exam-timer { min-width: 87px; justify-content: center; padding: 8px 13px !important; color: #0d70d9 !important; border: 1px solid #d9ebfc; border-radius: 12px !important; background: #eef7ff !important; }
.exam-timer.urgent { color: #fff !important; border-color: #ef5f63; background: #ef5f63 !important; }
.exam-qcount { display: none !important; }
.exam-slides { margin-top: 78px !important; min-height: calc(100vh - 78px) !important; }
.exam-slide { min-height: calc(100vh - 78px) !important; padding: clamp(32px,6vh,70px) 20px 150px !important; background: radial-gradient(circle at 50% 0,rgba(199,231,255,.28),transparent 30rem); }
.exam-slide--passage { padding-top: clamp(32px,6vh,70px) !important; }
.passage-card { max-width: 850px !important; margin-bottom: 20px !important; overflow: hidden; border: 1px solid #dce6f1 !important; border-radius: 22px !important; background: #fff !important; box-shadow: 0 18px 42px rgba(45,88,140,.085); }
.passage-card-header { min-height: 58px; padding: 0 24px !important; color: #12213f !important; border-bottom: 1px solid #e5edf5; background: #f7fbff !important; }
.passage-card-header > i { display: grid; place-items: center; width: 31px; height: 31px; color: #0d70d9; border-radius: 9px; background: #dceeff; }
.passage-badge { color: #0d70d9; border: 1px solid #d1e8fc; background: #edf7ff !important; }
.passage-body { max-height: 52vh !important; padding: clamp(24px,4vw,42px) !important; color: #40536c !important; font-size: 16px !important; line-height: 1.85 !important; }
.passage-body p { color: #40536c; }
.passage-actions { max-width: 850px !important; padding: 0 4px; }
.passage-note { color: #718098 !important; }
.passage-note i { color: #1687f8; }
.btn-passage-go { min-height: 48px; padding: 0 24px !important; color: #fff !important; border-radius: 13px !important; background: #1687f8 !important; box-shadow: 0 9px 18px rgba(22,135,248,.2); }
.btn-passage-go:hover { background: #0d70d9 !important; transform: translateY(-1px); opacity: 1 !important; }
.exam-qcard { max-width: 760px !important; margin-bottom: 17px !important; padding: 28px 30px !important; border: 1px solid #dce6f1 !important; border-radius: 19px !important; background: #fff !important; box-shadow: 0 12px 30px rgba(45,88,140,.07); }
.exam-qcat { display: inline-block; margin-bottom: 13px !important; padding: 5px 8px; color: #0d70d9 !important; border-radius: 999px; background: #eaf5ff; }
.exam-qtext { color: #12213f !important; font-size: 18px !important; line-height: 1.58 !important; }
.exam-qtext p { color: #12213f; }
.passage-ref { max-width: 760px !important; border: 1px solid #dce6f1 !important; border-radius: 14px !important; background: #fff !important; }
.passage-ref summary { color: #0d70d9 !important; }
.passage-ref-body { color: #40536c !important; background: #f8fbff; }
.exam-options { max-width: 760px !important; gap: 11px !important; counter-reset: answer; }
.exam-opt { position: relative; min-height: 62px; display: flex; align-items: center; gap: 11px; padding: 12px 16px !important; color: #273b57 !important; border: 1px solid #d8e3ee !important; border-radius: 15px !important; background: #fff !important; box-shadow: 0 5px 14px rgba(45,88,140,.035); counter-increment: answer; }
.exam-opt::before { content: counter(answer,upper-alpha); display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; color: #607089; border: 1px solid #dfe7f0; border-radius: 9px; background: #f5f8fb; font-size: 11px; font-weight: 900; }
.exam-opt:hover:not(:disabled) { color: #0d70d9 !important; border-color: #7fc1fc !important; background: #f7fbff !important; box-shadow: 0 10px 20px rgba(45,88,140,.07); transform: translateY(-2px); }
.exam-opt:hover:not(:disabled)::before { color: #fff; border-color: #1687f8; background: #1687f8; }
.exam-opt.correct { color: #16885d !important; border-color: #5fd1a5 !important; background: #effbf6 !important; }
.exam-opt.correct::before { content: "✓"; color: #fff; border-color: #20b981; background: #20b981; }
.exam-opt.wrong { color: #c94d51 !important; border-color: #f49a9d !important; background: #fff3f3 !important; }
.exam-opt.wrong::before { content: "×"; color: #fff; border-color: #ef5f63; background: #ef5f63; }
.exam-feedback { right: 50% !important; bottom: 18px !important; left: auto !important; width: min(850px,calc(100% - 32px)); padding: 16px 18px !important; border: 1px solid #dce6f1 !important; border-radius: 18px !important; background: #fff !important; box-shadow: 0 18px 45px rgba(32,67,108,.18); transform: translateX(50%); }
.exam-feedback.fb-correct { border-color: #82d8b8 !important; background: #effbf6 !important; }
.exam-feedback.fb-wrong { border-color: #f5a5a8 !important; background: #fff3f3 !important; }
.fb-icon { width: 40px !important; height: 40px !important; }
.fb-next-btn { min-height: 43px; padding: 0 20px !important; color: #fff !important; border-radius: 12px !important; background: #1687f8 !important; }
.exam-finish-card { width: min(480px,100%); padding: 38px 30px !important; border: 1px solid #dce6f1; border-radius: 22px; background: #fff; box-shadow: 0 18px 42px rgba(45,88,140,.085); }
.finish-icon { display: grid; place-items: center; width: 82px; height: 82px; margin: 0 auto 18px !important; border-radius: 25px; background: #fff2d2; font-size: 2.7rem !important; }
.exam-finish-card h2 { color: #12213f !important; }
.exam-overlay { background: rgba(18,33,63,.42) !important; backdrop-filter: blur(5px); }
.overlay-card { padding: 30px !important; border: 1px solid #e2eaf4; border-radius: 20px !important; background: #fff !important; box-shadow: 0 24px 60px rgba(18,33,63,.2); }
.audio-player { padding: 8px 17px 8px 9px !important; border: 1px solid #cfe1f2 !important; background: #eff7ff !important; }
.audio-play-btn { width: 43px !important; height: 43px !important; color: #fff !important; background: #1687f8 !important; box-shadow: 0 7px 14px rgba(22,135,248,.18); }
.audio-player-label { color: #0d70d9 !important; }

@media (max-width: 980px) {
  .oral-ai-hero { grid-template-columns: 1fr minmax(260px,.65fr); }
  .oral-ai-visual img { right: -25px; width: 340px; }
  .oral-level-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .oral-how { grid-template-columns: 1fr 1fr; }
  .exam-brand-block { width: 180px; }
}

@media (max-width: 680px) {
  .oral-hero-wrap { padding: 20px 15px 0; }
  .oral-ai-hero { min-height: 650px; grid-template-columns: 1fr; }
  .oral-ai-copy { padding: 30px 24px 0; }
  .oral-ai-copy h1 { font-size: 2.35rem; }
  .oral-ai-visual { min-height: 330px; }
  .oral-ai-visual img { right: 50%; bottom: -72px; width: 330px; transform: translateX(50%); }
  .oral-float-one { top: 30px; left: 20px; }
  .oral-float-two { top: 75px; right: 16px; }
  .oral-level-grid { grid-template-columns: 1fr !important; }
  .oral-how { grid-template-columns: 1fr; }
  .exam-topbar { height: 68px !important; }
  .exam-brand-block { display: none; }
  .exam-slides { margin-top: 68px !important; }
  .exam-slide { min-height: calc(100vh - 68px) !important; padding: 25px 14px 130px !important; }
  .passage-card-header { padding: 0 15px !important; }
  .passage-badge { display: none; }
  .passage-body { padding: 22px 18px !important; font-size: 15px !important; }
  .passage-actions { align-items: stretch; flex-direction: column; }
  .btn-passage-go { justify-content: center; }
  .exam-qcard { padding: 22px 18px !important; }
  .exam-options { grid-template-columns: 1fr !important; }
  .exam-feedback { bottom: 10px !important; }
}

@media (max-width: 460px) {
  .oral-ai-hero { min-height: 700px; }
  .oral-ai-actions .btn { width: 100%; justify-content: center; }
  .oral-ai-trust { gap: 9px 14px; }
  .oral-level-grid .exam-card-head { grid-template-columns: auto 1fr; }
  .exam-timer { min-width: 74px; padding-inline: 9px !important; }
  .exam-feedback { align-items: stretch !important; }
  .fb-next-btn { width: 100%; justify-content: center; }
}

/* Oral practice room */
.oral-exam-room { min-height: calc(100vh - 84px); background: radial-gradient(circle at 50% 0,rgba(198,230,255,.3),transparent 30rem),#f5f9ff; }
.oer-topbar { min-height: 68px; padding: 12px clamp(16px,3vw,30px) !important; border-bottom: 1px solid #e2eaf4 !important; background: rgba(255,255,255,.94) !important; backdrop-filter: blur(15px); }
.oer-back-btn { width: 40px !important; height: 40px !important; color: #63738a !important; border: 1px solid #e0e8f1 !important; border-radius: 12px !important; background: #fff !important; box-shadow: var(--shadow-sm); }
.oer-back-btn:hover { color: #0d70d9 !important; border-color: #9ccfff !important; }
.oer-start-card { max-width: 590px !important; padding: 32px 38px !important; border: 1px solid #dce6f1 !important; border-radius: 24px !important; background: #fff !important; box-shadow: 0 22px 55px rgba(45,88,140,.11); }
.oer-start-teacher-wrap { position: relative; width: 94px; height: 94px; margin: 0 auto 14px; border: 5px solid #fff; border-radius: 29px; background: #dff2ff; box-shadow: 0 0 0 1px #d9e5f0,0 10px 24px rgba(45,88,140,.12); }
.oer-start-teacher { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 24px; }
.oer-start-teacher-wrap span { position: absolute; right: -25px; bottom: -7px; display: flex; align-items: center; gap: 5px; padding: 5px 8px; color: #0d70d9; border: 2px solid #fff; border-radius: 999px; background: #dceeff; font-size: 9px; font-weight: 850; }
.oer-mode-badge { margin-bottom: 12px !important; }
.oer-level-circle { width: 59px !important; height: 59px !important; margin-bottom: 15px !important; color: #fff !important; border-radius: 17px !important; background: #1687f8 !important; box-shadow: 0 9px 18px rgba(22,135,248,.18); }
.oer-start-card h2 { font-size: 1.65rem !important; letter-spacing: -.035em; }
.oer-start-tips { padding: 15px !important; border: 1px solid #e2eaf4; border-radius: 15px !important; background: #f7fbff !important; }
.oer-start-tips i { color: #1687f8 !important; }
.oer-room { max-width: 780px !important; }
.oer-examiner-card,.oer-student-card,.oer-chat-transcript,.oer-chat-input-area { border: 1px solid #dce6f1 !important; border-radius: 20px !important; background: #fff !important; box-shadow: 0 12px 30px rgba(45,88,140,.065); }
.oer-examiner-avatar { width: 56px !important; height: 56px !important; padding: 3px; border: 2px solid #fff; background: #dff2ff !important; box-shadow: 0 0 0 1px #cfe2f3; }
.oer-examiner-avatar > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; border-radius: 50%; }
.oer-examiner-name { color: #0d70d9 !important; }
.oer-timer-bar,.oer-chat-timer-bar,.oer-criterion-fill { background: linear-gradient(90deg,#1687f8,#55b5ff) !important; }
.oer-toggle-btn.active { color: #0d70d9 !important; border-color: #8fc8fb !important; background: #eaf5ff !important; }
.oer-mic-btn { color: #fff !important; background: #1687f8 !important; box-shadow: 0 12px 26px rgba(22,135,248,.24) !important; }
.oer-chat-bubble--sophie { border-color: #d9e8f5 !important; background: #eef7ff !important; }
.oer-chat-bubble--student { color: #fff !important; background: #1687f8 !important; }

@media (max-width: 680px) {
  .oral-exam-room { min-height: calc(100vh - 74px); }
  .oer-start-card { padding: 27px 20px !important; }
}

/* Final accessibility, recovery and responsive polish */
.auth-hero-side { color:#12213f !important; }
.auth-hero-content h2,.auth-hero-content p,.auth-hero-content li,.auth-hero-content .stat span,.auth-hero-content .stat small { color:#12213f !important; }
.auth-hero-content p,.auth-hero-content li,.auth-hero-content .stat small { opacity:.76; }
.auth-hero-content .hero-badge { color:#075da9 !important;border-color:#9dd1fb !important;background:rgba(255,255,255,.62) !important; }
.auth-hero-content .hero-features i { color:#1687f8 !important; }
.alert-success { display:flex;align-items:center;gap:9px;margin:0 0 18px;padding:12px 14px;color:#087755;border:1px solid #9ddfc7;border-radius:12px;background:#effbf6;font-size:13px;font-weight:650; }
.auth-recovery-box { max-width:430px; }
.auth-step-icon { display:grid;place-items:center;width:52px;height:52px;margin:0 0 18px;color:#0877d6;border-radius:16px;background:#e4f3ff;font-size:20px; }
.otp-input { width:100%;height:58px;padding:0 18px;text-align:center;letter-spacing:.55em;color:#12213f;border:1px solid #bfd4e8;border-radius:12px;background:#fff;font:800 22px/1 Inter,sans-serif; }
.otp-input:focus { outline:0;border-color:#1687f8;box-shadow:0 0 0 3px rgba(22,135,248,.12); }
.otp-resend { margin-top:14px;text-align:center; }
.otp-resend button { color:#0877d6;border:0;background:none;font:700 13px/1.2 inherit;cursor:pointer; }
.auth-switch--secondary { margin-top:-8px !important;font-size:12px !important; }

.speak-hero { color:#12213f !important;background:linear-gradient(135deg,#e9f6ff 0%,#cceaff 100%) !important; }
.speak-hero-text h1 { color:#12213f !important; }
.speak-hero-text p { color:#536b87 !important; }
.speak-hero-badge { color:#0877d6 !important;border-color:#a7d4f8 !important;background:rgba(255,255,255,.66) !important; }
.speak-hero-credit small { color:#526982 !important; }
.speak-hero .credit-pill { color:#075da9 !important;border-color:#a7d4f8 !important;background:#fff !important;box-shadow:0 8px 22px rgba(45,88,140,.09); }
.btn-translate { color:#fff !important;background:linear-gradient(135deg,#1687f8,#0874dc) !important;box-shadow:0 10px 22px rgba(22,135,248,.2) !important; }
.speak-layout { align-items:start; }
.speak-coach-card { position:relative;display:grid;grid-template-columns:180px 1fr;min-height:355px;overflow:hidden;border:1px solid #d8e7f4 !important;background:linear-gradient(145deg,#eff8ff,#dff2ff) !important; }
.speak-coach-visual { position:relative;min-height:355px;overflow:hidden;background:radial-gradient(circle at 50% 35%,#fff 0,#d8edff 58%,transparent 59%); }
.speak-coach-visual img { position:absolute;bottom:-115px;left:50%;width:230px;max-width:none;transform:translateX(-50%); }
.speak-coach-copy { align-self:center;padding:30px 30px 30px 10px; }
.speak-coach-live { display:inline-flex;align-items:center;gap:8px;margin-bottom:13px;color:#0877d6;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em; }
.speak-coach-live i { width:8px;height:8px;border-radius:50%;background:#21b982;box-shadow:0 0 0 5px rgba(33,185,130,.12); }
.speak-coach-copy h2 { margin:0 0 10px;color:#12213f;font-size:1.55rem;letter-spacing:-.035em; }
.speak-coach-copy p { margin:0 0 18px;color:#536b87;font-size:13px;line-height:1.65; }
.speak-prompts { display:flex;flex-direction:column;gap:8px; }
.speak-prompts button { padding:10px 12px;text-align:left;color:#31506f;border:1px solid #c9e0f4;border-radius:11px;background:rgba(255,255,255,.76);font:650 12px/1.35 inherit;cursor:pointer;transition:.15s ease; }
.speak-prompts button:hover { color:#0877d6;border-color:#86c5f6;background:#fff; }

/* Test mode never uses correctness colours before the result review. */
.exam-slide .exam-opt.selected { color:#075da9 !important;border-color:#1687f8 !important;background:#edf7ff !important; }
.exam-answer-action { position:static !important; }

@media(max-width:860px){
  .speak-coach-card { grid-template-columns:150px 1fr; }
  .speak-coach-visual img { width:205px; }
}
@media(max-width:680px){
  .fh-topbar { height:64px;padding:0 10px !important;gap:8px; }
  .fh-sidebar-toggle { width:40px;height:40px;flex:0 0 40px; }
  .fh-search { min-width:0;height:40px; }
  .fh-search input { min-width:0;padding-right:8px; }
  .fh-search-kbd,.fh-notification { display:none !important; }
  .fh-top-actions { gap:6px; }
  .fh-credit-chip { min-width:0;padding:0 10px !important; }
  .fh-credit-chip span { display:none; }
  .fh-top-avatar { width:38px;height:38px; }
  .fh-main { padding-bottom:78px; }
  .fh-dashboard { padding:20px 14px 26px !important; }
  .fh-greeting-row { align-items:flex-start;gap:12px; }
  .fh-greeting-row h1 { font-size:1.8rem !important; }
  .fh-streak { padding:9px 11px !important; }
  .fh-lesson-hero { min-height:350px !important;padding:28px 22px !important; }
  .fh-lesson-copy h2 { font-size:2rem !important; }
  .fh-dashboard-grid { gap:16px !important; }
  .speak-hero { padding:28px 16px 24px !important; }
  .speak-hero-inner { display:grid !important;grid-template-columns:1fr auto;align-items:start !important;gap:14px !important; }
  .speak-hero-text h1 { font-size:2rem !important; }
  .speak-hero-text p { font-size:14px; }
  .speak-hero-credit { text-align:right !important; }
  .speak-hero .credit-pill { padding:8px 11px !important;font-size:14px !important; }
  .speak-container { padding-inline:14px !important; }
  .speak-input-panel { padding:16px !important; }
  .lang-tabs { overflow-x:auto; }
  .lang-tab,.lang-target { padding-inline:10px !important;white-space:nowrap; }
  .speak-coach-card { grid-template-columns:1fr; }
  .speak-coach-visual { display:none; }
  .speak-coach-copy { padding:24px; }
  .auth-form-side { min-height:100dvh;padding:22px 16px !important;align-items:flex-start !important; }
  .auth-box { width:100%;padding:8px 0 26px !important; }
  .auth-title { font-size:1.75rem !important; }
  .otp-input { font-size:20px; }
  .exam-answer-action { padding-bottom:8px; }
  .result-grid { gap:18px !important; }
  .result-summary { padding:22px 18px !important; }
  .bk-card { padding:15px !important; }
}
@media(max-width:430px){
  .fh-search input::placeholder { color:transparent; }
  .fh-search { max-width:none; }
  .fh-credit-chip { font-size:12px; }
  .fh-lesson-hero { min-height:330px !important; }
  .speak-hero-inner { grid-template-columns:1fr; }
  .speak-hero-credit { display:flex;align-items:center;gap:10px;text-align:left !important; }
  .speak-hero-credit small { margin:0 !important; }
}

/* Dashboard recommended-path carousel */
.fh-path-slider { position:relative;overflow:hidden;border-radius:26px;box-shadow:0 14px 36px rgba(45,88,140,.09); }
.fh-path-track { position:relative;min-height:305px; }
.fh-path-slide { display:none;min-height:305px;border-radius:0;box-shadow:none; }
.fh-path-slide.is-active { display:grid;animation:fhPathIn .42s cubic-bezier(.2,.75,.25,1); }
.fh-path-slide .fh-hero-copy { padding-bottom:62px; }
.fh-path-slide.is-oral { background:linear-gradient(125deg,#dff7f4 0%,#c8eeeb 100%); }
.fh-path-slide.is-test { background:linear-gradient(125deg,#eef1ff 0%,#dce4ff 100%); }
.fh-path-slide.is-oral .fh-hero-tag { color:#087d72;background:rgba(255,255,255,.65); }
.fh-path-slide.is-test .fh-hero-tag { color:#5b55c8;background:rgba(255,255,255,.68); }
.fh-path-slide.is-oral .fh-primary-action { background:#087f74;box-shadow:0 9px 18px rgba(8,127,116,.2); }
.fh-path-slide.is-test .fh-primary-action { background:#625bd4;box-shadow:0 9px 18px rgba(98,91,212,.2); }
.fh-oral-slide-art::before { background:rgba(255,255,255,.45);box-shadow:0 0 0 28px rgba(255,255,255,.16); }
.fh-oral-slide-art img { position:absolute;z-index:1;right:7%;bottom:-145px;width:285px;max-width:none;filter:drop-shadow(0 18px 25px rgba(35,100,105,.14)); }
.fh-ai-online { position:absolute;z-index:3;top:38px;left:5%;display:flex;align-items:center;gap:7px;padding:8px 11px;color:#087d72;border-radius:999px;background:#fff;box-shadow:0 8px 20px rgba(35,100,105,.12);font-size:11px;font-weight:800; }
.fh-ai-online i { width:7px;height:7px;border-radius:50%;background:#1dbb84;box-shadow:0 0 0 4px rgba(29,187,132,.13); }
.fh-skill-pills { position:absolute;z-index:3;right:18px;bottom:48px;display:flex;gap:6px; }
.fh-skill-pills span { padding:6px 8px;color:#316c68;border:1px solid rgba(87,164,157,.25);border-radius:8px;background:rgba(255,255,255,.88);font-size:9px;font-weight:800; }
.fh-test-slide-art::before { background:rgba(255,255,255,.42);box-shadow:0 0 0 28px rgba(255,255,255,.15); }
.fh-test-sheet { position:absolute;z-index:2;top:43px;right:16%;width:205px;min-height:190px;padding:24px 21px;border:1px solid rgba(98,91,212,.14);border-radius:21px;background:#fff;box-shadow:0 20px 38px rgba(71,73,143,.14);transform:rotate(3deg); }
.fh-test-sheet > span { display:grid;place-items:center;width:38px;height:38px;margin-bottom:16px;color:#fff;border-radius:12px;background:#625bd4; }
.fh-test-sheet strong,.fh-test-sheet small { display:block;color:#182547; }
.fh-test-sheet strong { margin-bottom:5px;font-size:17px; }
.fh-test-sheet small { margin-bottom:19px;color:#74809a;font-size:10px; }
.fh-test-sheet > i { display:block;width:100%;height:7px;margin-top:9px;border-radius:99px;background:#e9edfb; }
.fh-test-sheet > i:nth-last-child(2) { width:78%; }
.fh-test-sheet > i:last-child { width:58%;background:#c7cdf7; }
.fh-score-bubble { position:absolute;z-index:3;right:4%;bottom:44px;display:flex;align-items:center;gap:8px;padding:9px 12px;border:3px solid rgba(255,255,255,.9);border-radius:14px;background:#625bd4;box-shadow:0 10px 24px rgba(71,73,143,.19); }
.fh-score-bubble strong,.fh-score-bubble span { color:#fff; }
.fh-score-bubble strong { font-size:15px; }.fh-score-bubble span { font-size:9px;font-weight:750; }
.fh-slider-controls { position:absolute;z-index:8;right:18px;bottom:14px;left:40px;display:flex;align-items:center;justify-content:space-between;pointer-events:none; }
.fh-slider-dots,.fh-slider-arrows { display:flex;align-items:center;gap:7px;pointer-events:auto; }
.fh-slider-dots button { width:7px;height:7px;padding:0;border:0;border-radius:99px;background:rgba(18,33,63,.24);cursor:pointer;transition:.2s ease; }
.fh-slider-dots button.is-active { width:25px;background:#1687f8; }
.fh-slider-arrows button { display:grid;place-items:center;width:30px;height:30px;padding:0;color:#334967;border:1px solid rgba(82,105,133,.14);border-radius:10px;background:rgba(255,255,255,.7);cursor:pointer;backdrop-filter:blur(6px); }
.fh-slider-arrows button:hover { color:#0877d6;background:#fff; }
@keyframes fhPathIn { from { opacity:.25;transform:translateX(18px) } to { opacity:1;transform:none } }
@media(prefers-reduced-motion:reduce){ .fh-path-slide.is-active { animation:none; } }

@media(max-width:680px){
  .fh-path-slider { border-radius:20px; }
  .fh-path-track,.fh-path-slide { min-height:300px; }
  .fh-path-slide .fh-hero-copy { padding:22px 20px 57px; }
  .fh-path-slide .fh-hero-art { display:none; }
  .fh-path-slide .fh-hero-tag { margin-bottom:8px;font-size:9px; }
  .fh-path-slide h2 { max-width:310px;font-size:1.65rem !important;line-height:1.06 !important; }
  .fh-path-slide p { max-width:330px;margin:10px 0 15px;font-size:12px;line-height:1.45; }
  .fh-path-slide .fh-primary-action { min-height:40px;padding-inline:15px;font-size:11px; }
  .fh-slider-controls { right:14px;bottom:11px;left:20px; }
  .fh-slider-arrows button { width:28px;height:28px; }
}
@media(max-width:430px){
  .fh-path-track,.fh-path-slide { min-height:292px; }
  .fh-path-slide .fh-primary-action { width:100%;justify-content:center; }
  .fh-mobile-nav .mob-nav-center > span:last-child { font-size:9px;white-space:nowrap; }
}

/* Light test headers need dark, high-contrast typography. */
.page-hero--black { color:#12213f !important;border-bottom:1px solid #dce7f2 !important;background:linear-gradient(135deg,#eaf6ff,#d8edff) !important; }
.page-hero--black .page-hero-title { color:#12213f !important;text-shadow:none !important; }
.page-hero--black .page-hero-sub { color:#526985 !important; }
.page-hero--black .btn-back { color:#52708f !important; }
.page-hero--black .btn-back:hover { color:#0d70d9 !important; }

/* Real-exam navigation and review states */
.exam-answer-action { max-width:760px !important; }
.exam-review-card { max-width:600px !important;padding:26px !important; }
.exam-review-card .finish-icon { width:64px !important;height:64px !important;margin-bottom:12px !important;border-radius:19px !important;font-size:1.65rem !important; }
.exam-review-card .btn-primary { width:100%;justify-content:center; }
.exam-review-status i { margin-right:6px; }
@media(max-width:680px){
  .page-hero--black { padding:30px 0 26px !important; }
  .page-hero--black .page-hero-title { font-size:1.7rem !important;line-height:1.16 !important; }
  .exam-answer-action { margin-top:14px !important; }
  .exam-review-card { padding:20px 16px !important; }
  .exam-review-grid { gap:7px; }
}

/* Arabic interface direction; learning/test content remains unchanged. */
html[dir="rtl"] body { font-family:"Noto Sans Arabic",Inter,sans-serif; }
html[dir="rtl"] .fh-topbar-actions { margin-right:auto;margin-left:0; }
html[dir="rtl"] .fh-nav-link em { margin-right:auto;margin-left:0; }
html[dir="rtl"] .fh-nav-link:hover { transform:translateX(-2px); }
html[dir="rtl"] .fh-section-heading a i,
html[dir="rtl"] .fh-round-action i,
html[dir="rtl"] .fh-practice-card > i { transform:scaleX(-1); }
html[dir="rtl"] .input-icon-wrap > i { right:14px;left:auto; }
html[dir="rtl"] .input-icon-wrap input { padding-right:42px;padding-left:14px; }
html[dir="rtl"] .label-link { float:left; }
html[dir="rtl"] .fh-search input { text-align:right; }
@media(min-width:901px){
  html[dir="rtl"] body.app-authenticated { padding-right:244px;padding-left:0; }
  html[dir="rtl"] .fh-sidebar { right:0;left:auto;border-right:0;border-left:1px solid #e4ebf4; }
  html[dir="rtl"] .fh-topbar { right:244px;left:0; }
}
@media(max-width:900px){
  html[dir="rtl"] body.app-authenticated { padding-right:0;padding-left:0; }
  html[dir="rtl"] .fh-sidebar { right:0;left:auto;transform:translateX(105%); }
  html[dir="rtl"] .fh-sidebar.sidebar--open { transform:translateX(0); }
  html[dir="rtl"] .fh-topbar { right:0;left:0; }
}

/* Result sharing */
.btn-share-result { color:#075da9 !important;border:1px solid #9ccdf6 !important;background:#e9f5ff !important;box-shadow:none !important; }
.btn-share-result:hover { color:#fff !important;border-color:#1687f8 !important;background:#1687f8 !important; }
.btn-share-result:disabled { opacity:.65;cursor:wait; }
@media(max-width:680px){
  .page-hero .btn-share-result { width:100%;justify-content:center; }
  .page-hero > .container > div { align-items:stretch !important; }
  .page-hero > .container > div > div:last-child { width:100%;display:grid !important;grid-template-columns:1fr !important; }
}
