@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
.root-reset { box-sizing: border-box; }
:root {
  --bg: radial-gradient(360px at 20% 20%, rgba(255,149,128,0.16), transparent),
        radial-gradient(420px at 80% 30%, rgba(255,215,182,0.18), transparent),
        linear-gradient(135deg, #fff7f0, #ffe9e1);
  --card: rgba(255,255,255,0.9);
  --accent: #ff5f6d;
  --accent-2: #ff9f68;
  --text: #0f172a;
  --muted: #5f6573;
  --border: #f1d7d0;
  --input-bg: rgba(255,255,255,0.96);
  --focus-ring: 0 0 0 2px rgba(255,95,109,0.15);
  --shadow: 0 18px 50px rgba(255,95,109,0.15);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
img, iframe { max-width: 100%; height: auto; display: block; }
body.glass-bg {
  background: var(--bg);
  font-family: 'Poppins', 'Inter', 'Segoe UI', sans-serif;
  line-height: 1.65;
  margin: 0;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Phase 2 app polish: quieter SaaS surface, mobile-friendly controls */
:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --accent: #ff5f6d;
  --accent-2: #ff9f68;
  --text: #111827;
  --muted: #667085;
  --border: #e5e7eb;
  --input-bg: #ffffff;
  --focus-ring: 0 0 0 3px rgba(255,95,109,0.16);
  --shadow: 0 1px 2px rgba(16,24,40,0.06);
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
}
body.glass-bg {
  background: var(--bg);
  letter-spacing: 0;
}
.glass-bg::before,
.glass-bg::after {
  display: none;
}
.card,
.tryout-card-shell,
.product-section,
.product-status-card,
.checkout-summary,
.checkout-form-card,
.checkout-side-card,
.profile-side,
.profile-form-card,
.dash-section,
.lb-panel {
  border-radius: 12px !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow) !important;
  background: #fff !important;
}
.card:hover {
  transform: none;
  box-shadow: var(--shadow);
}
.btn-primary,
.btn-ghost,
button,
.bottom-nav a,
.side-links a {
  min-height: 44px;
}
.btn-primary {
  background: var(--accent);
  box-shadow: none;
  border-radius: 8px;
}
.btn-primary:hover {
  filter: brightness(.98);
  transform: none;
}
.btn-ghost {
  border-color: var(--border);
  border-radius: 8px;
}
.side-nav,
.topbar,
.bottom-nav .nav-grid {
  border-color: var(--border) !important;
  box-shadow: var(--shadow) !important;
}
.side-links a,
.side-mini,
.bottom-nav a {
  border-radius: 10px !important;
}
.side-links a.active,
.bottom-nav a.active {
  background: #fff1ea !important;
  color: #c2410c !important;
  border-color: #fed7aa !important;
}
.modal-overlay {
  align-items: flex-end;
  padding: 0;
}
.modal-card {
  width: 100%;
  max-width: 560px;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -14px 40px rgba(16,24,40,.18);
}
@media (min-width: 700px) {
  .modal-overlay {
    align-items: center;
    padding: 16px;
  }
  .modal-card {
    border-radius: 12px;
  }
}
@media (max-width: 768px) {
  body.glass-bg {
    padding-bottom: 86px;
    font-size: 14px; /* Native app base font size */
  }
  h1 { font-size: 22px !important; }
  h2 { font-size: 20px !important; }
  h3 { font-size: 18px !important; }
  p { font-size: 14px !important; line-height: 1.5; }
  
  .container {
    padding: 12px 10px; /* Reduced padding for edge-to-edge feel */
  }
  .card {
    padding: 16px 14px; /* Tighter padding for mobile cards */
    border-radius: 16px !important;
  }
  .bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 100;
  }
  .bottom-nav .nav-grid {
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    padding: 8px 12px; /* Adjusted padding */
    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
  }
  .bottom-nav a {
    padding: 8px;
  }
  .bottom-nav .nav-icon svg {
    width: 24px;
    height: 24px;
  }
}
.glass-bg::before,
.glass-bg::after {
  content:'';
  position: fixed;
  inset:-140px;
  pointer-events:none;
  z-index:-1;
  background: radial-gradient(220px at 20% 20%, rgba(79,70,229,0.12), transparent),
              radial-gradient(240px at 80% 30%, rgba(20,184,166,0.12), transparent);
}
.glass-bg::after {
  inset:-160px;
  background: radial-gradient(200px at 60% 70%, rgba(79,70,229,0.08), transparent),
              radial-gradient(260px at 10% 80%, rgba(20,184,166,0.08), transparent);
}
.muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
.helper { color: #6b7280; font-size: 12px; }
.container { max-width: 1200px; width: 100%; margin: 0 auto; padding: clamp(14px, 4vw, 24px); }
ul.spaced, ol.spaced { padding-left: 18px; margin: 0 0 10px; }
ul.spaced li, ol.spaced li { margin-bottom: 6px; line-height: 1.6; }
ul.spaced li:last-child, ol.spaced li:last-child { margin-bottom: 0; }
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: 0 12px 32px rgba(15,23,42,0.08);
  margin-bottom: 12px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  border: 1px solid var(--border);
  width: 100%;
  min-width: 0;
}
.card:hover { transform: translateY(-1px); box-shadow: 0 16px 40px rgba(15,23,42,0.12); }
.page-rise {
  animation: pageRise 0.35s ease both;
}
.main-content > .card,
.main-content .card {
  animation: pageRise 0.35s ease both;
}
@keyframes pageRise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-rise,
  .main-content > .card,
  .main-content .card {
    animation: none;
  }
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 18px; }
.grid.bs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  padding: 11px 16px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(79,70,229,0.2);
}
.btn-primary:hover { opacity: 0.95; transform: translateY(-1px); }
.btn-ghost {
  background: #fff;
  border: 1px solid var(--border);
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.form-check-input {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  box-shadow: none;
}
.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}
button, input, select, textarea {
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
input, select, textarea {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
  background: #fff;
}
input:disabled, select:disabled, textarea:disabled { background: #f3f4f6; color: #9ca3af; }
.flex { display: flex; align-items: center; gap: 8px; }
.between { justify-content: space-between; width: 100%; }
.question { margin-bottom: 16px; }
.option { display: block; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 6px 0; background: #fff; }
.exam-shell .form-check-input {
  margin-top: 0;
  vertical-align: middle;
  box-shadow: none;
}
.row { display: flex; align-items: flex-start; justify-content: space-between; margin: 10px 0; gap: 14px; flex-wrap: wrap; }
.row > * { min-width: 0; }
.hero { padding: clamp(22px, 4vw, 32px); background: linear-gradient(135deg, rgba(255,99,123,0.12), rgba(255,182,124,0.12)); border:1px solid rgba(255,149,128,0.35); }
.mt-2 { margin-top: 8px; }
.hero h1 { margin:0 0 6px 0; font-size: clamp(22px, 3vw, 28px); }
.hero p { margin: 0 0 12px 0; color: var(--muted); }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; flex-wrap:wrap; }
.section-head h3 { margin:0; }
.strong { font-weight:700; color: var(--text); }
.card h2, .card h3 { color: var(--text); }
.link { color: var(--accent); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
.tag { display:inline-block; padding:4px 10px; border-radius:999px; background: rgba(79,70,229,0.12); color: var(--accent); font-weight:600; font-size:12px; }
.tag.accent { background: rgba(20,184,166,0.12); color: #0f766e; }
.table { width:100%; border-collapse: collapse; }
.table th, .table td { border:1px solid var(--border); padding:12px 14px; text-align:left; word-break: break-word; line-height: 1.5; }
.table th { background: rgba(255,149,128,0.12); }
.table-compact th, .table-compact td { padding:8px 10px; font-size: 13px; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.profile-wrap { display:grid; grid-template-columns: 280px 1fr; gap:16px; align-items:start; }
.profile-info { display:flex; align-items:center; gap:12px; padding:12px; border:1px solid var(--border); border-radius: var(--radius-md); background: #fff; box-shadow: 0 0.6rem 1.4rem rgba(33,37,41,0.08); }
.profile-avatar { width:64px; height:64px; border-radius:50%; overflow:hidden; border:1px solid var(--border); background: rgba(0,0,0,0.05); display:flex; align-items:center; justify-content:center; }
.profile-avatar img { width:100%; height:100%; object-fit:cover; }
.profile-avatar .initial { font-weight:700; color:var(--text); font-size:20px; }
.profile-name { font-weight:700; font-size:18px; color:var(--text); }
.profile-form { display:flex; flex-direction:column; gap:10px; }
.embed-frame { width: 100%; border: 0; border-radius: 16px; min-height: 260px; aspect-ratio: 16 / 9; box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.profile-form input,
.profile-form textarea,
.profile-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: rgba(255,255,255,0.96);
}
.stacked-form { display:flex; flex-direction: column; }
.form-field { display:flex; flex-direction:column; gap:6px; margin-bottom: 12px; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--text); }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border-radius: 12px;
}
.form-field textarea { min-height: 90px; resize: vertical; }
.form-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap:12px; }
.quick-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; margin: 14px 0; }
.quick-stats.row { display:flex; flex-wrap:wrap; gap:0; }
.stat-pill { border:1px solid var(--border); border-radius: var(--radius-md); padding:12px; background: #fff; display:flex; flex-direction:column; gap:6px; }
.stat-value { font-weight:800; font-size: 20px; color: var(--text); }
.cta-row { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.cta-row.subtle { margin-top:8px; }
.status-badge { padding:6px 10px; border-radius:999px; font-weight:700; font-size:12px; text-transform:capitalize; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-paid { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.order-row { border-bottom:1px solid var(--border); padding-bottom:6px; }
.order-row:last-child { border-bottom:none; padding-bottom:0; }

/* Unified palette for redesigned user pages */
:root {
  --ui-hero-bg: radial-gradient(circle at top right, rgba(255,159,104,0.20), transparent 32%),
                linear-gradient(135deg, rgba(255,247,240,0.98), rgba(255,233,225,0.98));
  --ui-hero-border: rgba(255,149,128,0.28);
  --ui-card-border: rgba(255,149,128,0.18);
  --ui-card-shadow: 0 14px 32px rgba(255,95,109,0.08);
  --ui-hero-shadow: 0 24px 56px rgba(255,95,109,0.12);
  --ui-soft-bg: rgba(255,95,109,0.08);
  --ui-soft-bg-strong: rgba(255,159,104,0.12);
  --ui-soft-border: rgba(255,149,128,0.22);
  --ui-soft-surface: rgba(255,247,240,0.94);
  --tracker-accent: var(--accent) !important;
  --tracker-accent-2: var(--accent-2) !important;
  --tracker-soft-yellow: rgba(255,247,240,0.98) !important;
  --tracker-soft-stroke: rgba(255,149,128,0.22) !important;
  --tracker-soft-bg: linear-gradient(180deg, rgba(255,247,240,.96) 0%, rgba(255,233,225,.96) 100%) !important;
}

.tryout-hero,
.guide-hero,
.result-hero,
.dash-hero,
.lb-hero,
.profile-hero,
.product-hero,
.checkout-hero,
.tracker-hero,
.exam-topbar,
.mobile-progress {
  background: var(--ui-hero-bg) !important;
  border: 1px solid var(--ui-hero-border) !important;
  box-shadow: var(--ui-hero-shadow) !important;
}

.modal-card.narrow,
.modal-overlay#payModal .modal-card {
  background: linear-gradient(180deg, #ffffff, rgba(255,247,240,0.98)) !important;
  border: 1px solid var(--ui-hero-border) !important;
}

.tryout-eyebrow,
.guide-eyebrow,
.result-eyebrow,
.dash-eyebrow,
.lb-eyebrow,
.profile-eyebrow,
.product-eyebrow,
.checkout-eyebrow,
.tracker-eyebrow {
  background: rgba(255,255,255,0.88) !important;
  border-color: var(--ui-hero-border) !important;
  color: var(--accent) !important;
}

.tryout-eyebrow::before,
.guide-eyebrow::before,
.result-eyebrow::before,
.dash-eyebrow::before,
.lb-eyebrow::before,
.profile-eyebrow::before,
.product-eyebrow::before,
.checkout-eyebrow::before,
.tracker-eyebrow::before {
  background: var(--accent-2) !important;
  box-shadow: 0 0 0 5px rgba(255,95,109,0.12) !important;
}

.tryout-hero h1,
.tryout-hero h2,
.guide-hero h2,
.result-hero h2,
.dash-hero h1,
.lb-hero h2,
.profile-hero h2,
.product-hero h2,
.checkout-hero h2,
.tracker-hero h1 {
  color: var(--text) !important;
}

.tryout-hero p,
.guide-hero p,
.result-hero p,
.dash-hero p,
.lb-hero p,
.profile-hero p,
.product-hero p,
.checkout-hero p,
.tracker-hero p {
  color: var(--muted) !important;
}

.tryout-kpi,
.tryout-highlight,
.tryout-meta-box,
.guide-metric,
.guide-block,
.guide-camera-card,
.guide-form-card,
.result-kpi,
.result-sub-card,
.result-table-card,
.result-insight-card,
.result-discussion-card,
.dash-kpi,
.dash-focus,
.dash-action-card,
.dash-section,
.lb-kpi,
.lb-section,
.lb-board-card,
.lb-card,
.profile-kpi,
.profile-side,
.profile-form-card,
.product-status-card,
.product-section,
.product-related,
.checkout-summary,
.checkout-form-card,
.checkout-side-card,
.tracker-shell .card,
.tracker-nav-wrap,
.tracker-upgrade-card,
.tracker-summary-card,
.exam-nav,
.exam-nav.exam-sidebar {
  background: rgba(255,255,255,0.94) !important;
  border: 1px solid var(--ui-card-border) !important;
  box-shadow: var(--ui-card-shadow) !important;
}

.tryout-kpi-label,
.tryout-meta-label,
.guide-metric-label,
.dash-kpi-label,
.lb-kpi-label,
.profile-kpi-label,
.tracker-kpi-label {
  color: var(--accent) !important;
}

.tryout-highlight,
.tryout-focus,
.dash-focus,
.guide-form-note,
.guide-plan-break,
.tryout-break-note,
.lb-admin-html,
.profile-note,
.product-callout,
.checkout-method-box,
.checkout-proof-box,
.checkout-info-box,
.sim-subtest-card,
#autosaveStatus,
.doubt-toggle,
.mobile-subtest-chip,
.exam-monitor .subtest-chip {
  background: var(--ui-soft-bg) !important;
  border-color: var(--ui-soft-border) !important;
}

.tryout-break-note,
.guide-form-note,
.guide-plan-break,
.lb-admin-html,
.profile-note,
.product-callout,
.sim-subtest-title,
#autosaveStatus,
.doubt-toggle,
.mobile-subtest-chip {
  color: var(--accent) !important;
}

.guide-item-index,
.guide-plan-index,
.guide-plan-time,
.product-step-num,
.result-score-chip,
.lb-pill,
.lb-note,
.step-pill.active,
.mobile-subtest-chip {
  background: rgba(255,95,109,0.10) !important;
  border-color: var(--ui-soft-border) !important;
  color: var(--accent) !important;
}

.tryout-card-shell,
.result-question,
.dash-item,
.dash-order-item,
.dash-product-card,
.lb-focus-item,
.product-step-item,
.product-material-item,
.product-order-item,
.checkout-bank-box,
.profile-upload-box,
.guide-item,
.guide-plan-item,
.req-item,
.tryout-chip,
.tryout-meta-pill,
.tryout-chip-row .pill,
.product-chip,
.checkout-chip,
.profile-chip,
.result-chip {
  border-color: var(--ui-card-border) !important;
}

.tryout-card-shell {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,247,240,0.98)) !important;
  box-shadow: var(--ui-card-shadow) !important;
}

.tryout-card-shell::before,
.tryout-card-shell.state-continue::before,
.tryout-card-shell.state-done::before,
.result-bar > span,
.exam-tabs .tab-btn.active,
.mobile-progress-fill,
.mobile-progress.on-break .mobile-progress-fill,
.tracker-nav a.active,
.btn-soft,
.input-inline .btn-primary,
.help-fab,
.help-fab:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: #fff !important;
}

.tryout-card-shell.state-locked::before {
  background: linear-gradient(90deg, #cbd5e1, #94a3b8) !important;
}

.lb-card.me {
  border-color: var(--ui-soft-border) !important;
  box-shadow: 0 12px 28px rgba(255,95,109,0.14) !important;
}

.profile-avatar-lg {
  background: linear-gradient(135deg, rgba(255,95,109,0.18), rgba(255,159,104,0.22)) !important;
  border-color: var(--ui-card-border) !important;
}

.table-wrap {
  background: var(--tracker-soft-bg) !important;
  border-color: var(--ui-card-border) !important;
}

.tracker-table thead th {
  background: rgba(255,95,109,0.08) !important;
  border-bottom-color: var(--ui-soft-border) !important;
}

.tracker-table tbody tr:nth-child(even) {
  background: #fff7f3 !important;
}

.tracker-table tbody tr:hover {
  background: #fff1ea !important;
}

.help-fab {
  box-shadow: 0 12px 30px rgba(255,95,109,0.28) !important;
}

.sim-subtest-card select {
  border-color: var(--ui-soft-border) !important;
}

/* Auth */
.auth-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1.4rem 3.2rem rgba(33,37,41,0.12); max-width: 960px; width: 100%; }
.auth-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(260px at 20% 30%, rgba(255,186,122,0.35), transparent),
              radial-gradient(240px at 80% 20%, rgba(255,213,128,0.42), transparent),
              linear-gradient(135deg, #ffe8c6, #ffd7a8 40%, #ffbd8a);
  min-height: 280px;
  color: #b45309;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: 0.4px;
  overflow: hidden;
  background-size: cover;
}
.auth-illustration::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://candubelajar.my.id/wp-content/themes/candu-belajar/assets/candubelajar.png') center / 56% no-repeat;
  z-index: 1;
  opacity: 0.9;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.14));
}
.auth-illustration::before {
  content:'';
  position:absolute;
  inset:-30%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,0.32), transparent 65%);
  transform: rotate(12deg);
}
.auth-form { padding: 32px; }
.auth-logo { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.auth-logo img { width:40px; height:40px; border-radius:12px; box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.auth-form h1 { margin: 0 0 8px 0; }
.auth-form p { margin: 0 0 16px 0; color: var(--muted); }
.auth-form form { display: flex; flex-direction: column; gap: 10px; }
.auth-form input { padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; width: 100%; }
.auth-form label { font-size: 13px; color: var(--muted); }
.password-field { display:flex; align-items:center; gap:6px; background: #fff; border:1px solid var(--border); border-radius: var(--radius-sm); padding:0 8px; }
.password-field input { border:none; flex:1; padding:10px 8px; background: transparent; }
.password-field input:focus { outline:none; box-shadow:none; }
.eye-btn { display:inline-grid; place-items:center; flex:0 0 36px; width:36px; height:36px; border:0; border-radius:7px; background:transparent; color:var(--accent); cursor:pointer; padding:6px; }
.eye-btn:hover,.eye-btn:focus-visible { background:#fff0ec; outline:none; }
.eye-icon { width:18px; height:18px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }
.eye-icon-hide { display:none; }
.eye-btn.is-visible .eye-icon-show { display:none; }
.eye-btn.is-visible .eye-icon-hide { display:block; }
.eye-btn { border:none; background: transparent; cursor:pointer; font-size:14px; padding:6px 8px; color:#4b5563; }
.btn-primary.full { width: 100%; text-align: center; }
.alert { background: rgba(255, 99, 99, 0.15); border: 1px solid rgba(255,99,99,0.3); padding: 10px 12px; border-radius: 12px; color: #b91c1c; font-size: 14px; }
.alert.success { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.4); color:#166534; }

/* Navbar */
.app-shell { display:flex; min-height:100vh; gap:0; }
.app-shell.no-nav { display:block; }
.app-main { flex:1; min-width:0; display:flex; flex-direction:column; }
.app-main.full { width:100%; }
.side-nav {
  width: 288px;
  display:flex;
  flex-direction:column;
  gap:14px;
  background: rgba(255,255,255,0.96);
  border-right: 1px solid var(--border);
  padding: 18px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.side-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: var(--text);
  font-weight:800;
  margin-bottom: 0;
}
.brand-logo {
  width:34px;
  height:34px;
  border-radius:12px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.brand-name { font-size:16px; letter-spacing:0.2px; }
.side-close { display:none; }
.side-user-card { display:none; }
.side-user-avatar { display:flex; align-items:center; justify-content:center; }
.side-user-avatar img { width:100%; height:100%; object-fit:cover; }
.side-user-avatar span { font-weight:800; }
.side-user-meta { display:flex; flex-direction:column; gap:4px; min-width:0; }
.side-user-meta strong { color:var(--text); font-size:15px; line-height:1.3; }
.side-user-meta span { color:var(--muted); font-size:12px; line-height:1.4; word-break:break-word; }
.side-links { display:flex; flex:1 1 auto; min-height:0; flex-direction:column; gap:8px; }
.side-links a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;
  color: var(--text);
  font-weight:600;
  border:1px solid rgba(255,149,128,0.12);
  background:#fff;
}
.side-links a::after {
  content:'';
  width:8px;
  height:8px;
  border-top:2px solid currentColor;
  border-right:2px solid currentColor;
  transform:rotate(45deg);
  opacity:.34;
  flex:0 0 auto;
}
.side-links a:hover {
  background: rgba(255,95,109,0.08);
  border-color: rgba(255,149,128,0.20);
}
.side-links a.active {
  background: rgba(255,95,109,0.14);
  border-color: rgba(255,149,128,0.28);
}
.side-footer {
  display:grid;
  gap:10px;
  margin-top:auto;
  padding-top:16px;
  border-top:1px solid rgba(255,149,128,0.16);
}
.side-footer-label {
  display:none;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}
.side-footer-grid {
  display:grid;
  gap:10px;
}
.side-mini {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 12px;
  border-radius:14px;
  text-decoration:none;
  font-weight:700;
  background:rgba(255,247,240,0.84);
  border:1px solid rgba(255,149,128,0.18);
  color:var(--text);
}
.side-mini-title {
  display:block;
  font-weight:700;
}
.side-mini-sub {
  display:none;
  font-size:12px;
  font-weight:500;
  color:var(--muted);
}
.side-mini.danger {
  background:#fff;
  color:#b91c1c;
  border-color:rgba(185,28,28,0.14);
}
.topbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 18px;
  margin:12px 18px 0;
  background: rgba(255,255,255,0.92);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 12px;
  z-index: 30;
}
.topbar-left, .topbar-right { display:flex; align-items:center; gap:10px; }
.topbar-left { justify-content:flex-start; }
.topbar-right { justify-content:flex-end; }
.topbar-actions { display:flex; align-items:center; gap:10px; }
.topbar-right { position: relative; }
.topbar-brand { display:inline-flex; align-items:center; }
.topbar-brand img { width:28px; height:28px; border-radius:8px; box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.side-overlay { display:none; }
.app-main .container { padding-top: 12px; }
.nav-shell { position:relative; display:flex; justify-content:space-between; align-items:center; padding:12px 14px; gap:12px; flex-wrap:wrap; border-radius:18px; background: rgba(255,255,255,0.92); border:1px solid rgba(229,231,235,0.9); box-shadow: 0 12px 36px rgba(0,0,0,0.08); margin-bottom:18px; overflow:visible; width: 100%; }
.nav-left .logo { font-weight:800; color:var(--text); text-decoration:none; font-size:20px; }
.nav-links { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.nav-tabs { background:#fff; border:1px solid rgba(229,231,235,0.9); border-radius:24px; padding:8px 10px; box-shadow: inset 0 0 0 1px rgba(229,231,235,0.3); }
.nav-tabs a { color:#0f172a; text-decoration:none; padding:10px 14px; border-radius:14px; font-weight:700; font-size: 15px; line-height: 1.4; transition: all 0.18s ease; }
.nav-tabs a:hover { background: rgba(255,95,109,0.08); color:#0f172a; box-shadow: inset 0 0 0 1px rgba(255,95,109,0.18); }
.nav-tabs a.active { background: rgba(255,95,109,0.16); color:#0f172a; box-shadow: inset 0 0 0 1px rgba(255,95,109,0.38); }
.nav-action { display:flex; gap:10px; align-items:center; position: relative; }
.nav-toggle { display:none; border:1px solid var(--border); background:white; border-radius:10px; padding:8px 10px; cursor:pointer; }
.mobile-nav-extra { display:none; }
.avatar-wrap { width:38px; height:38px; border-radius:50%; overflow:hidden; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; background: rgba(0,0,0,0.05); cursor:pointer; }
.avatar-wrap img { width:100%; height:100%; object-fit: cover; }
.avatar-wrap span { font-weight:700; color:var(--text); }
.avatar-menu { position:absolute; right:0; top:calc(100% + 8px); background: rgba(255,255,255,0.95); border:1px solid var(--border); border-radius:12px; box-shadow: 0 18px 40px rgba(0,0,0,0.14); padding:10px; display:none; flex-direction:column; min-width:150px; z-index: 11; }
.avatar-menu a { padding:8px 10px; text-decoration:none; color:var(--text); border-radius:10px; }
.avatar-menu a:hover { background: rgba(124,144,255,0.12); }
.bottom-nav { display:none; position:fixed; bottom:0; left:0; right:0; background: rgba(255,255,255,0.95); border-top:1px solid var(--border); box-shadow: 0 -10px 30px rgba(0,0,0,0.08); padding:8px 10px; z-index: 20; backdrop-filter: blur(10px); padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
.bottom-nav .nav-grid { display:grid; grid-template-columns: repeat(5,1fr); gap:6px; }
.bottom-nav a { display:flex; align-items:center; justify-content:center; text-decoration:none; color: var(--muted); padding:10px 4px; border-radius:12px; }
.bottom-nav a.active { color: var(--accent); background: rgba(79,70,229,0.1); }
.bottom-nav .nav-label { display: none; }
.bottom-nav .nav-icon { margin-bottom: 0; display: flex; align-items: center; justify-content: center; }
.bottom-nav .nav-icon svg { width:26px; height:26px; }
.side-links .nav-icon svg { width:20px; height:20px; }
.scroll-top { position:fixed; right:20px; bottom:80px; padding:10px 12px; border-radius:12px; border:1px solid var(--border); background:white; box-shadow:0 10px 24px rgba(0,0,0,0.12); cursor:pointer; display:none; z-index:21; }
.scroll-top.show { display:flex; }

@media (min-width: 1025px) {
  html,
  body.glass-bg {
    height: 100%;
  }

  .app-shell:not(.no-nav) {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  .app-shell:not(.no-nav) .topbar {
    display: none;
  }

  .side-nav {
    position: sticky;
    top: 0;
    height: 100vh;
    flex: 0 0 240px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .app-main {
    height: 100vh;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
  }

  .app-main .container {
    flex: 0 0 auto;
    padding-top: 18px;
  }
}

.table-wrap {
  position: relative;
  background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.96));
}
.table-wrap::after {
  content:'';
  position:absolute;
  right:0;
  top:0;
  bottom:0;
  width:18px;
  pointer-events:none;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.9));
}

@media (max-width: 860px) {
  .profile-wrap { grid-template-columns: 1fr; }
  .nav-links { display:none; width:100%; flex-direction:column; align-items:flex-start; }
  .nav-action { width:100%; justify-content:flex-start; }
  .nav-shell.open .nav-links { display:flex; }
  .nav-tabs { background: transparent; border:none; box-shadow:none; padding:0; border-radius:0; }
  .nav-tabs a { padding:10px 12px; border-radius:12px; font-weight:600; }
  .nav-tabs a.active { box-shadow: inset 0 0 0 1px rgba(255,95,109,0.25); }
  .nav-toggle { display:block; }
  .btn-primary, .btn-ghost { width:100%; text-align:center; }
  .row { align-items:flex-start; }
}

@media (max-width: 1024px) {
  .side-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
  }
  .side-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-toggle, .topbar-left .nav-toggle { display: block !important; }
  .bottom-nav { display: block; }
  body.glass-bg { padding-bottom: 80px; }
  .topbar { margin: 12px 12px 0; }
  
  .app-shell.nav-open .side-nav { transform: translateX(0); }
  .app-shell.nav-open .side-overlay { opacity: 1; pointer-events: auto; }
}

@media (min-width: 1025px) {
  .nav-toggle { display:none !important; }
}

@media (min-width: 900px) {
  .stacked-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 14px;
    align-items: flex-end;
  }
  .stacked-form button { width:auto; justify-self:flex-start; }
  .grid { gap: 20px; }
  .card { padding: 22px 24px; }
  .table th, .table td { padding:14px 16px; }
}

/* Tryout */
.subtest-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.subtest-tabs button { border:1px solid #d1d5db; background: rgba(255,255,255,0.8); border-radius:12px; padding:8px 12px; cursor:pointer; }
.subtest-tabs button.active { background: var(--accent); color:white; border:none; }
.question { background: rgba(255,255,255,0.9); padding:12px; border-radius:14px; border:1px solid #e5e7eb; }
.question + .question { margin-top:10px; }
.q-number { font-weight:700; margin-bottom:6px; color:#4b5563; }
.q-stem { margin-bottom:8px; }
.option:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(79,70,229,0.12); }
.pill.success { background: #dcfce7; color: #166534; }
.tracker-hero { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.tracker-hero h1 { margin:0 0 6px 0; }
.tracker-lock { background: rgba(255,255,255,0.9); border:1px dashed var(--border); padding:12px; border-radius:14px; text-align:right; display:flex; flex-direction:column; gap:8px; min-width:220px; }
.badge-lock { display:inline-block; padding:6px 10px; border-radius:999px; background:#fef2f2; color:#b91c1c; font-weight:700; font-size:12px; }
.tracker-pill { display:inline-block; padding:8px 12px; border-radius: var(--radius-sm); background: rgba(20,184,166,0.12); color: var(--text); font-weight:600; }
.tracker-pill.warning { background: rgba(234,179,8,0.16); color:#92400e; }
.tracker-grid { display:grid; grid-template-columns: 1.6fr 1fr; gap:14px; align-items:start; }
.tracker-pane { background: rgba(255,255,255,0.78); border:1px solid rgba(229,231,235,0.85); border-radius:14px; padding:12px; box-shadow: 0 12px 30px rgba(0,0,0,0.05); }
.resource-table th, .resource-table td { font-size:14px; }
.resource-table td a.link { font-weight:700; }
.note-box { margin-top:10px; padding:10px 12px; border-radius:12px; background: rgba(79,70,229,0.08); border:1px dashed rgba(79,70,229,0.2); }
.locked-card { border:1px dashed var(--border); background: linear-gradient(135deg, rgba(124,144,255,0.08), rgba(20,184,166,0.08)); }
.features-grid { grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap:10px; }
.feature-pill { padding:12px; border-radius: var(--radius-md); background: #fff; border:1px solid var(--border); box-shadow: 0 0.6rem 1.2rem rgba(33,37,41,0.08); }
.feature-pill h4 { margin:0 0 4px 0; }
.chart-card canvas { width:100%; }
.modal-overlay { position:fixed; inset:0; background: rgba(33,37,41,0.4); display:none; align-items:center; justify-content:center; padding:16px; z-index:1000; }
.modal-card { background: white; border-radius: var(--radius-lg); padding:20px; max-width:420px; width:100%; box-shadow: 0 1.4rem 3.2rem rgba(33,37,41,0.24); position:relative; }
.modal-close { position:absolute; top:10px; right:10px; border:none; background: transparent; font-size:22px; cursor:pointer; }
.modal-card .wa-box { margin-top:12px; padding:10px 12px; border-radius:12px; background: rgba(20,184,166,0.08); border:1px solid rgba(20,184,166,0.3); }
.modal-card .btn-primary.full { width:100%; text-align:center; margin-top:10px; }
.small-text { font-size:12px; }
.modal-open { overflow:hidden; }
.pill.warn { background: #fef3c7; color: #92400e; }
.pill.danger { background: #fee2e2; color: #b91c1c; }
.pill.muted { background: #e5e7eb; color: #374151; }
.nav-btn.disabled { opacity:0.5; cursor:not-allowed; }
.legend { margin-top:10px; display:flex; flex-direction:column; gap:4px; font-size:13px; color:#4b5563; }
.legend .dot { display:inline-block; width:12px; height:12px; border-radius:50%; margin-right:6px; }
.legend .answered { background:#22c55e; }
.legend .doubt { background:#f59e0b; }
.legend .unanswered { background:#9ca3af; }
.exam-questions { display:flex; flex-direction:column; gap:10px; }
.exam-actions { margin-top:10px; }
.timer-pill { background: #fff; border:1px solid var(--border); padding:8px 12px; border-radius: var(--radius-sm); text-align:right; min-width:120px; }
.doubt-toggle { font-size:13px; color:#4b5563; }

/* Enhanced exam shell */
.exam-frame { background:#fff; border:1px solid #e5e7eb; border-radius:12px; box-shadow: 0 14px 40px rgba(15,23,42,0.10); overflow:hidden; margin-bottom:16px; }
.exam-layout { display:grid; grid-template-columns: 260px 1fr; min-height: 78vh; }
.exam-sidebar { background:#f8fafc; border-right:1px solid #e5e7eb; padding:16px 14px; position:relative; }
.sidebar-head { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; margin-bottom:12px; }
.exam-brand .brand-title { font-weight:800; font-size:15px; color:#0f172a; line-height:1.3; }
.exam-brand .brand-sub { font-size:12px; color:#475569; }
.participant-card { display:flex; gap:10px; align-items:flex-start; padding:10px; border:1px solid #e2e8f0; border-radius:12px; background:#fff; }
.participant-photo { width:68px; height:86px; border-radius:8px; background:#e5e7eb; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.participant-photo img { width:100%; height:100%; object-fit:cover; }
.photo-fallback { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:800; color:#0f172a; background: linear-gradient(135deg, rgba(255,149,128,0.18), rgba(255,182,124,0.22)); }
.participant-meta { display:flex; flex-direction:column; gap:4px; }
.participant-name { font-weight:800; color:#0f172a; }
.participant-id { font-size:12px; }
.exam-info { margin:12px 0; display:flex; flex-direction:column; gap:6px; }
.exam-info .info-row { font-size:13px; color:#4b5563; }
.exam-info strong { color:#0f172a; }
.guide-box { border:1px dashed #cbd5e1; border-radius:10px; padding:10px 12px; background:#fff; margin-bottom:12px; }
.guide-title { font-weight:700; font-size:13px; margin-bottom:6px; color:#0f172a; }
.nav-title { font-weight:700; margin:8px 0; }
.nav-section { margin-bottom:8px; }
.nav-section-title { font-size:12px; font-weight:700; color:#475569; margin-bottom:6px; }
.nav-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(38px,1fr)); gap:6px; }
.nav-btn { padding:10px 0; border-radius:10px; border:1px solid #e2e8f0; background:#fff; font-weight:700; color:#0f172a; min-height:38px; }
.nav-btn.answered { background:#d1fae5; border-color:#34d399; }
.nav-btn.doubt { background:#fef3c7; border-color:#fbbf24; }
.nav-btn.unanswered { background:#f8fafc; }
.nav-btn.current { border-color:#ff5f6d; box-shadow:0 0 0 2px rgba(255,95,109,0.18); }
.nav-btn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.legend { margin-top:4px; display:grid; gap:4px; font-size:12px; }
.legend .dot { width:12px; height:12px; }
.legend .current { background:#ff5f6d; }
.exam-content { background:#fff; }
.exam-topbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid #e5e7eb; position:sticky; top:0; background:#fff; z-index:5; }
.exam-number { font-weight:800; font-size:18px; }
.topbar-sub { color:#475569; font-size:13px; }
.topbar-right { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.timer-block { text-align:right; }
.timer-label { font-size:12px; color:#475569; }
.timer-value { font-weight:800; font-size:18px; color:#0f172a; }
.latency-chip, .ip-chip { padding:6px 10px; border-radius:999px; background:#f8fafc; border:1px solid #e2e8f0; font-weight:700; font-size:12px; color:#334155; }
.latency-chip.good { color:#16a34a; border-color:#86efac; background:#dcfce7; }
.latency-chip.warn { color:#b45309; border-color:#fcd34d; background:#fef3c7; }
.latency-chip.bad { color:#b91c1c; border-color:#fecdd3; background:#fef2f2; }
.exam-body { padding:12px 16px 18px; display:block; }
.exam-questions { gap:12px; }
.question { border:1px solid #e2e8f0; border-radius:10px; }
.q-top { padding:6px 6px 10px; font-weight:700; border-bottom:1px solid #e2e8f0; }
.q-stem { padding:10px 12px; background:#f8fafc; border-bottom:1px solid #e2e8f0; }
.question .option { margin:0; border:none; border-radius:0; border-bottom:1px solid #e5e7eb; }
.question .option:last-child { border-bottom:none; }
.question .option input { margin-right:8px; }
.question .table { margin:0; }
.question .table th { background:#f8fafc; text-align:center; }
.question .table td:first-child { text-align:left; }
.q-actions { padding:10px 12px; border-top:1px solid #e2e8f0; }
.exam-bottom { position:sticky; bottom:0; left:0; right:0; background:#fff; border-top:1px solid #e5e7eb; padding:10px 16px; }
.exam-bottom-inner { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.exam-bottom .btn-ghost { min-width:120px; }
.exam-bottom .btn-primary { min-width:140px; }
.exam-bottom .bottom-meta { flex:1; display:flex; justify-content:center; }
.zoom-controls button { padding:6px 10px; }
.mobile-only { display:none; }
.exam-nav { position:relative; z-index:22; }
.exam-nav.open { transform: translateX(0); }
.toast-stack { position:fixed; top:16px; right:16px; display:flex; flex-direction:column; gap:10px; z-index:50; }
.toast-stack { position:fixed; top:16px; right:16px; display:flex; flex-direction:column; gap:10px; z-index:50; }
.toast { padding:10px 12px; border-radius:12px; box-shadow:0 12px 30px rgba(0,0,0,0.15); color:#0f172a; background:#fff; border:1px solid #e5e7eb; min-width:240px; }
.toast.info { border-color:#38bdf8; }
.toast.warn { border-color:#f59e0b; background:#fffbeb; }
.toast.danger { border-color:#f87171; background:#fef2f2; }
.toast-title { font-weight:700; margin-bottom:4px; }
.toast-text { font-size:13px; color:#4b5563; }

/* Promo modal */
.promo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 120;
}
.promo-modal-backdrop.hidden { display: none; }
.promo-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 520px;
  width: min(520px, 92vw);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  border: 1px solid rgba(229,231,235,0.9);
  overflow: hidden;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
.promo-body { max-height: 60vh; overflow-y: auto; }
.promo-body img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.promo-cta { margin: 12px 16px 18px 16px; text-align: center; }
.promo-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: rgba(15,23,42,0.08);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #0f172a;
}
.promo-close:hover { background: rgba(15,23,42,0.14); }
@media (max-width: 640px) {
  .promo-modal {
    width: 94vw;
    max-width: 440px;
    border-radius: 14px;
  }
  .promo-body { max-height: 58vh; }
  .promo-cta { margin: 10px 12px 14px 12px; }
  .promo-close { top: 8px; right: 8px; }
}

/* Leaderboard cards */
.lb-cards {
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:6px 2px 6px 0;
  scroll-snap-type: x mandatory;
}
.lb-card {
  min-width: 230px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.04);
  scroll-snap-align:start;
}
.lb-rank {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:12px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color:#fff;
  font-weight:800;
  font-size:16px;
}
.lb-name { font-weight:700; color:#0f172a; margin-top:6px; }
.lb-meta { font-size:12px; color:#6b7280; line-height:1.4; }
.lb-score { font-weight:800; font-size:18px; color:#0f172a; }
.lb-finish { font-size:12px; color:#6b7280; }

@media (max-width: 640px) {
  .sub-card { padding:12px 10px; }
  .sub-card .row { align-items:flex-start; }
}

@media (max-width: 900px) {
  .exam-layout { grid-template-columns: 1fr; }
  .exam-sidebar { position:sticky; top:0; z-index:10; }
  .tracker-hero { flex-direction: column; align-items:flex-start; }
  .tracker-lock { width:100%; text-align:left; min-width: auto; }
  .tracker-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .table th, .table td { padding: 8px; font-size: 13px; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-form { padding: 24px; }
}

/* Responsive */
@media (max-width: 768px) {
  .container { padding: 16px; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 22px; }
  .flex { flex-wrap: wrap; }
  .between { align-items: flex-start; }
  .nav-shell { align-items: center; }
  .nav-toggle { display:block; margin-left: auto; }
  .nav-links, .nav-action {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    background: rgba(255,255,255,0.97);
    border:1px solid rgba(229,231,235,0.9);
    box-shadow: 0 16px 36px rgba(0,0,0,0.14);
    border-radius:14px;
    padding:10px;
    flex-direction: column;
    gap:10px;
    display:none;
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }
  .nav-shell.open .nav-links,
  .nav-shell.open .nav-action { display:flex; }
  .nav-action { align-items: flex-start; }
  .mobile-nav-extra { display:block; }
  .row { flex-direction: column; align-items: flex-start; }
  .profile-wrap { grid-template-columns: 1fr; }
  .timer-pill { width: 100%; text-align: left; }
  .bottom-nav { display:block; }
  body.glass-bg { padding-bottom: 74px; }
  .mobile-only { display:inline-block; }
  .desktop-only { display:none; }
  .exam-monitor { width:100%; justify-content:space-between; }
  .exam-cam { width:160px; }
  .exam-layout { display:block; }
  .exam-sidebar { position:fixed; left:0; top:0; bottom:0; width: min(340px, 86vw); max-width:360px; background:#f8fafc; transform: translateX(-105%); transition: transform 0.22s ease; z-index: 40; overflow-y:auto; }
  .exam-sidebar.open { transform: translateX(0); }
  .exam-topbar { position:sticky; top:0; z-index:30; }
  .exam-bottom { position:sticky; bottom:-1px; z-index:30; }
  .exam-body { padding: 10px 12px 16px; }
  .nav-grid { grid-template-columns: repeat(auto-fit, minmax(42px,1fr)); }
  .exam-shell .question { padding: 16px; }
  .topbar {
    position: static;
    top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:12px 14px;
    border-radius:20px;
    background:rgba(255,255,255,0.94);
    backdrop-filter:blur(14px);
  }
  .topbar-center { display: none !important; }
  .topbar-right {
    order: 1;
    justify-content: flex-start;
    margin-right: auto;
  }
  .topbar-left {
    order: 2;
    margin-left: auto;
    justify-content: flex-end;
  }
  .topbar-left .topbar-brand { display: none; }
  .topbar .nav-toggle {
    min-width:44px;
    min-height:44px;
    border-radius:14px;
    padding:10px 12px;
    box-shadow:0 10px 24px rgba(15,23,42,0.08);
  }
  .avatar-wrap {
    width:42px;
    height:42px;
    border-radius:14px;
    background:#fff;
    box-shadow:0 10px 24px rgba(15,23,42,0.08);
  }
  .topbar-right .avatar-menu {
    right: auto;
    left: 0;
    top: calc(100% + 8px);
  }
}

@media (min-width: 1024px) {
  .grid { gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }
  .grid.bs-grid { gap: 0; }
  .card { padding: 24px 26px; }
  .card.hero { display:flex; flex-direction:column; gap:12px; box-shadow: 0 22px 60px rgba(15,23,42,0.15); }
  .quick-stats { grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap:14px; }
  .nav-shell { padding:14px 18px; }
  .nav-links a { padding:10px 14px; }
  .order-row { align-items:flex-start; }
}

/* Layout helpers */
.main-content { padding-top: 14px; min-height: 70vh; display:flex; flex-direction:column; gap:12px; }
@media (min-width: 992px) {
  .main-content { gap: 16px; }
}
.fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 769px) {
  .nav-shell { flex-wrap:nowrap; }
  .nav-toggle { display:none; }
  .nav-links { position:static; background: transparent; border:none; box-shadow:none; padding:0; width:auto; flex-direction:row; gap:10px; transform:none; opacity:1; visibility:visible; pointer-events:auto; }
  .nav-action { position:static; display:flex; opacity:1; visibility:visible; pointer-events:auto; transform:none; }
}
.subtest-plan { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.subtest-plan .subtest-label { font-weight:600; color: var(--muted); }
@media (max-width: 640px) {
  .subtest-plan { margin-top: 6px; }
  .subtest-plan .pill { margin-top: 4px; }
}

/* Final Phase 2 overrides: keep this block last so page-specific legacy styles stay quiet. */
body.glass-bg {
  background: #f7f8fa !important;
  letter-spacing: 0 !important;
}
.glass-bg::before,
.glass-bg::after {
  display: none !important;
}
.card,
.tryout-card-shell,
.product-section,
.product-status-card,
.checkout-summary,
.checkout-form-card,
.checkout-side-card,
.profile-side,
.profile-form-card,
.dash-section,
.lb-panel,
.lb-tryout-card,
.lb-rank-row {
  border-radius: 12px !important;
  border-color: #e5e7eb !important;
  box-shadow: 0 1px 2px rgba(16,24,40,0.06) !important;
  background: #fff !important;
}
.card:hover {
  transform: none !important;
  box-shadow: 0 1px 2px rgba(16,24,40,0.06) !important;
}
.btn-primary,
.btn-ghost,
button,
.bottom-nav a,
.side-links a {
  min-height: 44px;
}
.btn-primary {
  background: linear-gradient(135deg, #ff5f6d, #ff9f68) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

/* Candu editorial pass: functional surfaces, restrained color, no decorative AI patterns. */
body.glass-bg,
body.glass-bg .app-main,
body.glass-bg .container {
  background: #f7f8fa !important;
}
body.glass-bg::before,
body.glass-bg::after {
  display: none !important;
  content: none !important;
}
.card,
.dash-hero,
.catalog-hero,
.tryout-hero,
.guide-hero,
.result-hero,
.product-hero,
.checkout-hero,
.profile-hero,
.streak-board,
.quiz-kb-main,
.quiz-math-main,
.quiz-lang-main {
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(16,24,40,.06) !important;
  border-color: #e4e7ec !important;
}
.btn-primary,
.btn-primary:hover,
.btn-soft,
.dash-hero-actions .btn-primary,
.tryout-hero-actions .btn-primary {
  background: var(--accent) !important;
  background-image: none !important;
  box-shadow: none !important;
}
.btn-ghost,
.btn-soft,
.status-badge,
.pill,
.tag,
.tryout-eyebrow,
.guide-eyebrow,
.result-eyebrow,
.dash-eyebrow,
.catalog-eyebrow,
.streak-eyebrow,
.tryout-status,
.tryout-chip,
.tryout-meta-pill,
.result-chip,
.result-score-chip {
  border-radius: 6px !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
.dash-eyebrow::before,
.tryout-eyebrow::before,
.guide-eyebrow::before,
.result-eyebrow::before {
  display: none !important;
}
.bottom-nav .nav-grid,
.bottom-nav {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: #fff !important;
}
.modal-overlay,
.modal-overlay#tryoutReqModal,
.modal-overlay#tryoutCodeModal,
.modal-overlay#payModal {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.modal-card,
.modal-card.narrow {
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 16px 36px rgba(16,24,40,.16) !important;
}
.dash-action-card,
.dash-kpi,
.product-card,
.tryout-card-shell,
.guide-block,
.guide-camera-card,
.guide-form-card,
.result-kpi,
.result-sub-card,
.result-table-card,
.result-insight-card,
.result-discussion-card {
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(16,24,40,.06) !important;
}
.dash-action-card,
.dash-kpi,
.product-card,
.tryout-card-shell,
.guide-block,
.guide-camera-card,
.guide-form-card,
.result-kpi,
.result-sub-card,
.result-table-card,
.result-insight-card,
.result-discussion-card,
.dash-kpi.is-study,
.dash-kpi.is-tryout,
.dash-kpi.is-class,
.dash-kpi.is-event,
.dash-focus,
.streak-board,
.locked-card,
.card.soft {
  background: #fff !important;
}
.tryout-card-shell::before,
.result-bar > span,
.progress-fill {
  background: var(--accent) !important;
  background-image: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
.btn-primary:hover {
  filter: brightness(.98) !important;
  transform: none !important;
}
.btn-ghost {
  border-color: #e5e7eb !important;
  border-radius: 8px !important;
}
.side-links a.active,
.bottom-nav a.active {
  background: #fff1ea !important;
  color: #c2410c !important;
  border-color: #fed7aa !important;
}
@media (max-width: 768px) {
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 -14px 40px rgba(16,24,40,.18) !important;
  }
  body.glass-bg {
    padding-bottom: 86px !important;
  }
  .bottom-nav {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    z-index: 100 !important;
  }
  .bottom-nav .nav-grid {
    border-radius: 18px !important;
    background: rgba(255,255,255,.96) !important;
    backdrop-filter: blur(14px);
    padding: 8px !important;
    box-shadow: 0 10px 30px rgba(16,24,40,.14) !important;
  }
}

/* Mobile overflow hardening */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
img,
video,
iframe,
canvas,
svg {
  max-width: 100%;
}
.main-content,
.container,
.card,
.grid,
.row,
.topbar,
.section-head,
.product-layout,
.checkout-layout,
.profile-layout,
.dashboard-grid,
.tryout-layout,
.lb-layout,
.table-wrap {
  min-width: 0;
  max-width: 100%;
}
.table-wrap,
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 374px) {
  .container,
  .main-content {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .btn-primary,
  .btn-ghost,
  .btn-soft,
  .nav-btn-lite,
  input,
  select,
  textarea {
    max-width: 100%;
  }
  .bottom-nav {
    left: 6px !important;
    right: 6px !important;
  }
}

/* Freemium UI */
.streak-board {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255,149,128,0.28);
  border-radius: 12px;
  background:
    radial-gradient(circle at 14% 20%, rgba(255,159,104,0.18), transparent 28%),
    linear-gradient(135deg, #fff7f0, #ffffff);
  box-shadow: 0 14px 32px rgba(255,95,109,0.10);
}
.streak-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.streak-flame {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff5f6d, #ff9f68);
  box-shadow: 0 14px 28px rgba(255,95,109,0.24);
  font-size: 32px;
}
.streak-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff1ea;
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
}
.streak-board h2 {
  margin: 8px 0 4px;
  color: #111827;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}
.streak-board p {
  margin: 0;
  color: #667085;
  font-size: 14px;
}
.streak-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.streak-badge {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}
.streak-badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #f3f4f6;
}
.streak-badge.is-earned {
  border-color: rgba(255,149,128,0.38);
  background: #fff7f0;
  color: #c2410c;
}
.streak-badge.is-earned span {
  background: linear-gradient(135deg, #ff5f6d, #ff9f68);
  color: #fff;
}
.daily-quiz-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--ui-hero-bg) !important;
  border-color: var(--ui-hero-border) !important;
}
.daily-quiz-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,149,128,0.28);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.daily-quiz-hero h2 {
  margin: 10px 0 4px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
}
.daily-quiz-hero p {
  margin: 0;
  color: var(--muted);
}
.daily-quiz-list {
  display: grid;
  gap: 12px;
}
.daily-quiz-card {
  position: relative;
  overflow: hidden;
}
.daily-quiz-number {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff1ea;
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
}
.daily-quiz-card h3 {
  margin: 10px 0 12px;
  font-size: 18px;
  line-height: 1.45;
}
.daily-quiz-options {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
}
.daily-quiz-options li {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255,149,128,0.22);
  border-radius: 10px;
  background: #fffaf7;
  color: #111827;
}
.daily-quiz-options strong {
  color: #c2410c;
}
.daily-quiz-discussion {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255,149,128,0.22);
  border-radius: 12px;
  background: #fff7f0;
}
.daily-quiz-discussion-label {
  display: block;
  margin-bottom: 6px;
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
}
.daily-quiz-discussion p {
  margin: 0;
  color: #475569;
}
.daily-quiz-discussion.is-locked {
  padding: 0;
  border: 0;
  background: transparent;
}
.premium-lock-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 18px;
  border: 1px solid rgba(255,149,128,0.28);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,247,240,0.98)),
    repeating-linear-gradient(135deg, rgba(255,95,109,0.08) 0 8px, rgba(255,159,104,0.08) 8px 16px);
}
.premium-lock-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #fff1ea;
  color: #c2410c;
  font-size: 26px;
}
.premium-lock-card strong {
  max-width: 420px;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}
.premium-lock-card span {
  max-width: 440px;
  color: #667085;
  font-size: 13px;
}
.premium-lock-card .btn-primary {
  margin-top: 4px;
}
.daily-quiz-empty p {
  margin: 0;
}

@media (max-width: 768px) {
  .streak-board,
  .daily-quiz-hero {
    grid-template-columns: 1fr;
  }
  .streak-board {
    padding: 16px;
  }
  .streak-main,
  .daily-quiz-hero {
    align-items: flex-start;
  }
  .streak-badges {
    justify-content: flex-start;
  }
  .daily-quiz-hero {
    flex-direction: column;
  }
  .daily-quiz-hero .btn-primary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .streak-main {
    flex-direction: column;
    align-items: flex-start;
  }
  .streak-badge {
    width: 100%;
    justify-content: space-between;
  }
}

/* Agent Gamma Phase 1 Freemium UI: sticky nav, floating pill, dan chunking data panjang */
.topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  margin: 0 !important;
  border-radius: 0 0 18px 18px !important;
  background: rgba(255,255,255,0.78) !important;
  border-color: rgba(255,149,128,0.24) !important;
  box-shadow: 0 12px 32px rgba(255,95,109,0.12) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.topbar .nav-toggle,
.topbar .avatar-wrap,
.bottom-nav a,
.bottom-nav button,
.side-links a,
.btn-primary,
.btn-ghost,
.tryout-state-btn,
.lb-toggle a {
  min-width: 44px;
  min-height: 44px;
}

.avatar-menu a:hover,
.tag,
.tag.accent,
.note-box,
.locked-card,
.tracker-pill,
.modal-card .wa-box,
.lb-medal {
  background: #fff1ea !important;
  border-color: #fed7aa !important;
  color: #c2410c !important;
}

.option:focus-within,
.nav-btn.current {
  border-color: #ff5f6d !important;
  box-shadow: 0 0 0 3px rgba(255,95,109,0.16) !important;
}

.lb-rank-list,
.lb-tryout-grid,
.tryout-board {
  gap: 1rem !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #ff9f68 #fff1ea;
}

.lb-rank-list {
  max-height: min(540px, 68vh);
}

.lb-tryout-grid,
.tryout-board {
  max-height: min(680px, 72vh);
}

.lb-rank-list::-webkit-scrollbar,
.lb-tryout-grid::-webkit-scrollbar,
.tryout-board::-webkit-scrollbar {
  width: 8px;
}

.lb-rank-list::-webkit-scrollbar-thumb,
.lb-tryout-grid::-webkit-scrollbar-thumb,
.tryout-board::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff5f6d, #ff9f68);
  border-radius: 999px;
}

.lb-rank-list::-webkit-scrollbar-track,
.lb-tryout-grid::-webkit-scrollbar-track,
.tryout-board::-webkit-scrollbar-track {
  background: #fff1ea;
  border-radius: 999px;
}

.lb-rank-row,
.lb-tryout-card,
.tryout-card-shell,
.daily-quiz-card {
  border-color: rgba(255,149,128,0.22) !important;
  background: #fff !important;
}

.lb-rank-no {
  background: linear-gradient(135deg, #ff5f6d, #ff9f68) !important;
  color: #fff !important;
}

.dash-hero,
.tryout-hero,
.daily-quiz-hero {
  background:
    radial-gradient(circle at top right, rgba(255,159,104,0.22), transparent 32%),
    linear-gradient(135deg, #fff1ea, #fff) !important;
  border-color: rgba(255,149,128,0.28) !important;
}

.dash-kpi.is-study,
.dash-kpi.is-tryout,
.dash-kpi.is-class,
.dash-kpi.is-event,
.dash-focus,
.tryout-highlight,
.tryout-focus,
.tryout-break-note,
.req-note,
.code-modal-help {
  background: #fff7f0 !important;
  border-color: rgba(255,149,128,0.24) !important;
  color: #7c2d12 !important;
}

.dash-kpi.is-study .dash-kpi-label,
.dash-kpi.is-tryout .dash-kpi-label,
.dash-kpi.is-class .dash-kpi-label,
.dash-kpi.is-event .dash-kpi-label,
.tryout-status.status-continue,
.tryout-status.status-available,
.tryout-status.status-locked,
.tryout-status.status-done {
  color: #c2410c !important;
  background: #fff1ea !important;
}

.tryout-card-shell::before,
.tryout-card-shell.state-continue::before,
.tryout-card-shell.state-done::before,
.tryout-card-shell.state-locked::before {
  background: linear-gradient(90deg, #ff5f6d, #ff9f68) !important;
}

.daily-quiz-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem !important;
}

.daily-quiz-card {
  scroll-margin-top: 88px;
}

.daily-quiz-options {
  gap: .75rem !important;
}

.daily-quiz-discussion {
  margin-top: 1rem !important;
}

.premium-lock-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(255,159,104,0.34) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,241,234,0.98)),
    repeating-linear-gradient(135deg, rgba(255,95,109,0.08) 0 10px, rgba(255,159,104,0.08) 10px 20px) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.72);
}

/* Text comfort pass: calmer hierarchy for app screens */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4 {
  letter-spacing: 0 !important;
}

.main-content h1,
.main-content h2 {
  line-height: 1.14 !important;
}

.main-content h3 {
  line-height: 1.22 !important;
}

.main-content p,
.main-content .muted,
.main-content .lb-meta {
  line-height: 1.55;
}

.btn-primary,
.btn-ghost,
.btn-soft {
  font-weight: 650 !important;
}

.lb-tryout-card .cta-row,
.tracker-panel-card .cta-row,
.tracker-panel-card form {
  row-gap: 14px;
}

@media (max-width: 768px) {
  body.glass-bg {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .bottom-nav {
    display: block !important;
    position: fixed !important;
    left: 5% !important;
    right: auto !important;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    width: 90% !important;
    padding: 8px !important;
    border: 1px solid rgba(255,149,128,0.28) !important;
    border-radius: 50px !important;
    background: rgba(255,255,255,0.80) !important;
    box-shadow: 0 18px 44px rgba(255,95,109,0.22) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 1030 !important;
  }

  .bottom-nav .nav-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .bottom-nav a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    padding: 8px 6px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    color: #7c2d12 !important;
  }

  .bottom-nav a.active {
    background: linear-gradient(135deg, #ff5f6d, #ff9f68) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(255,95,109,0.22) !important;
  }

  .scroll-top {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1031 !important;
  }

  .lb-rank-list,
  .lb-tryout-grid,
  .tryout-board {
    max-height: min(620px, 70vh);
    padding-right: 2px;
  }
}

@media (max-width: 374px) {
  .bottom-nav {
    left: 4% !important;
    width: 92% !important;
  }
}

/* Final product-wide restraint: keep surfaces quiet even when legacy page CSS is loaded. */
body.glass-bg { background: #f7f8fa !important; }
body.glass-bg::before, body.glass-bg::after { display:none !important; content:none !important; }
.btn-primary, .btn-primary:hover, .btn-soft { background:#ff5f6d !important; background-image:none !important; box-shadow:none !important; }
.bottom-nav, .bottom-nav .nav-grid { background:#fff !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important; box-shadow:0 8px 24px rgba(16,24,40,.12) !important; }
.bottom-nav, .bottom-nav .nav-grid, .bottom-nav a { border-radius:10px !important; }
.bottom-nav a.active { background:#fff1f3 !important; color:#c01048 !important; border-color:#fecdca !important; box-shadow:none !important; }
.card, .dash-hero, .catalog-hero, .tryout-hero, .guide-hero, .result-hero, .streak-board, .dash-action-card, .dash-kpi, .product-card, .tryout-card-shell, .guide-block, .guide-camera-card, .guide-form-card, .result-kpi, .result-sub-card, .result-table-card, .result-insight-card, .result-discussion-card { background:#fff !important; box-shadow:0 1px 2px rgba(16,24,40,.06) !important; border-color:#e4e7ec !important; border-radius:10px !important; }
.dash-eyebrow::before, .tryout-eyebrow::before, .guide-eyebrow::before, .result-eyebrow::before, .catalog-eyebrow::before { display:none !important; }
.tryout-card-shell::before, .result-bar > span, .progress-fill { background:#ff5f6d !important; background-image:none !important; }
.modal-card, .modal-card.narrow { background:#fff !important; border-radius:10px !important; backdrop-filter:none !important; }
.status-badge, .pill, .tag, .tryout-status, .tryout-chip, .tryout-meta-pill, .result-chip, .result-score-chip { border-radius:6px !important; text-transform:none !important; letter-spacing:normal !important; }
.streak-badge > span:last-child { font-size:0 !important; }
.quiz-kb-score .score-streak { font-size:0 !important; }
.quiz-kb-score .score-streak::before { content:'Streak: '; font-size:14px; }
.quiz-kb-score .score-streak #scoreStreak { font-size:14px; }
.quiz-kb-controls .btn-sound { font-size:0 !important; width:40px; height:40px; padding:8px !important; background-color:#fff !important; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4V5Z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7'/%3E%3C/svg%3E") !important; background-repeat:no-repeat !important; background-position:center !important; }
