/* ============================================================
   QuizManager — Static Template Stylesheet
   Tema hijau gradasi + dark mode. Tanpa build step.
   ============================================================ */
:root {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-soft: #d1fae5;
  --primary-soft-text: #065f46;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --success: #059669;
  --success-bg: #d1fae5;
  --success-text: #065f46;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --danger-text: #991b1b;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --warning-text: #92400e;
  --info-bg: #d1fae5;
  --info-text: #065f46;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --sidebar-w: 260px;
  --radius: 12px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html.dark {
  --primary: #34d399;
  --primary-hover: #10b981;
  --primary-soft: #064e3b;
  --primary-soft-text: #a7f3d0;
  --bg: #0b1120;
  --surface: #151d2e;
  --surface-alt: #1c2740;
  --border: #2a3650;
  --text: #e2e8f0;
  --muted: #8ea0bf;
  --success: #34d399;
  --success-bg: #052e16;
  --success-text: #86efac;
  --danger: #f87171;
  --danger-bg: #450a0a;
  --danger-text: #fca5a5;
  --warning: #fbbf24;
  --warning-bg: #451a03;
  --warning-text: #fcd34d;
  --info-bg: #064e3b;
  --info-text: #a7f3d0;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --navbar-bg: rgba(21, 29, 46, 0.85);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); min-height: 100vh; transition: background 0.2s, color 0.2s; }
a { color: var(--primary); }

/* ── Layout ── */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-shell.has-sidebar { flex-direction: row; }
.page { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 32px 20px 64px; }
.landing-page { max-width: none; padding: 0; }
.main-area { flex: 1; margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
@media (max-width: 1024px) { .main-area { margin-left: 0; } }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w); height: 100vh; position: fixed; left: 0; top: 0;
  background: linear-gradient(180deg, #064e3b 0%, #065f46 50%, #047857 100%);
  color: #fff; display: flex; flex-direction: column; z-index: 100;
  transition: transform 0.25s ease; overflow-y: auto;
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; font-size: 18px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.1); text-decoration: none; color: #fff; }
.sidebar-nav { flex: 1; padding: 8px 0; }
.sidebar-section-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.35); padding: 20px 24px 6px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 9px 20px 9px 24px; color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.15s; border-left: 3px solid transparent; }
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-link.active { background: rgba(255,255,255,0.12); color: #fff; border-left-color: #34d399; font-weight: 600; }
.sidebar-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 6px 16px; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,0.1); padding: 12px 16px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px 4px; }
.sidebar-user-avatar { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: capitalize; }
.sidebar-logout { padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.2); background: none; color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.sidebar-logout:hover { background: rgba(255,255,255,0.1); color: #fff; }
.sidebar-theme-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; margin-bottom: 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.75); font-size: 13px; cursor: pointer; font-family: inherit; }
.sidebar-theme-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ── Topbar / Navbar ── */
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: var(--navbar-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.topbar-spacer { flex: 1; }
.hamburger { display: none; padding: 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; font-size: 18px; line-height: 1; }
@media (max-width: 1024px) { .hamburger { display: inline-flex; } }
.sidebar-backdrop { display: none; }
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.3); }
  .sidebar-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 99; }
}
.navbar { display: flex; align-items: center; gap: 16px; row-gap: 8px; flex-wrap: wrap; padding: 12px 24px; background: var(--navbar-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.brand { font-size: 20px; font-weight: 800; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--primary); }
.nav-links { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; align-items: center; }
.nav-links a { padding: 7px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.nav-links a:hover { background: var(--surface-alt); color: var(--text); }
.nav-links a.active { background: var(--primary-soft); color: var(--primary-soft-text); }
.nav-auth { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ── Theme toggle ── */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 16px; }
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); }
.locale-select {
  padding: 7px 8px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.locale-select:hover { border-color: var(--primary); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid transparent; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.15s ease; background: none; color: inherit; font-family: inherit; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-outline { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn-outline:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { background: var(--surface-alt); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 22px; font-size: 16px; }

/* ── Cards ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.page-title { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.page-subtitle { color: var(--muted); margin-bottom: 24px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.stat-card { padding: 20px; }
.stat-value { font-size: 30px; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }

/* ── Forms ── */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 12px; margin-top: 5px; font-weight: 500; }
input[type='text'], input[type='tel'], input[type='email'], input[type='password'], input[type='number'], input[type='url'], input[type='datetime-local'], textarea, select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; background: var(--surface); color: var(--text); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
input:disabled { opacity: 0.6; }
textarea { resize: vertical; min-height: 70px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 10px; cursor: pointer; }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--primary); }

/* ── Badges / Tables / Alerts ── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-primary { background: var(--primary-soft); color: var(--primary-soft-text); }
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge-danger { background: var(--danger-bg); color: var(--danger-text); }
.badge-muted { background: var(--surface-alt); color: var(--muted); }
.badge-pro { background: linear-gradient(90deg, #f59e0b, #ef4444); color: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 10px 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; border-bottom: 2px solid var(--border); }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: var(--danger-bg); color: var(--danger-text); }
.alert-success { background: var(--success-bg); color: var(--success-text); }
.alert-info { background: var(--info-bg); color: var(--info-text); }

/* ── Auth ── */
.auth-page { max-width: 420px; margin: 40px auto; }
.auth-page .card { padding: 32px; }
.auth-title { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.auth-sub { color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.auth-footer { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.role-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.role-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--border); border-radius: 10px; cursor: pointer; background: var(--surface); color: var(--text); font-family: inherit; font-size: 14px; font-weight: 600; text-align: left; width: 100%; }
.role-card:hover { border-color: var(--primary); }
.role-card .role-icon { font-size: 24px; }
.role-card small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

/* ── Quiz editor ── */
.editor-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .editor-grid { grid-template-columns: 1fr; } }
.question-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; background: var(--surface); }
.option-row-editor { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.option-row-editor .correct-check { width: 18px; height: 18px; accent-color: var(--success); margin-top: 10px; flex-shrink: 0; }
.option-row-editor .option-editor { flex: 1; min-width: 0; }

/* ── Quiz runner ── */
.runner { display: grid; grid-template-columns: 1fr 280px; gap: 24px; padding: 24px; max-width: 1100px; margin: 0 auto; }
@media (max-width: 860px) { .runner { grid-template-columns: 1fr; } }
.runner-question { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 15px; padding: 6px 14px; border-radius: 8px; background: var(--warning-bg); color: var(--warning-text); }
.timer.danger { background: var(--danger-bg); color: var(--danger-text); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.6; } }
.progress-bar { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; margin-bottom: 20px; }
.progress-bar > div { height: 100%; background: var(--primary); transition: width 0.3s ease; }
.nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.nav-cell { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 700; cursor: pointer; font-size: 14px; background: var(--surface); color: var(--text); font-family: inherit; }
.nav-cell.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.nav-cell.answered { background: var(--success-bg); border-color: var(--success); color: var(--success-text); }
.nav-cell.flagged { background: var(--warning-bg); border-color: var(--warning); color: var(--warning-text); }
.answer-choice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 10px; border: 2px solid var(--border); border-radius: 10px; cursor: pointer; font-size: 15px; background: var(--surface); }
.answer-choice:hover { border-color: var(--primary); }
.answer-choice.selected { border-color: var(--primary); background: var(--primary-soft); }
.answer-choice input { width: 18px; height: 18px; accent-color: var(--primary); }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.price-tag { font-size: 36px; font-weight: 800; }
.price-tag small { font-size: 14px; color: var(--muted); font-weight: 500; }
.feature-list { list-style: none; margin: 20px 0; }
.feature-list li { padding: 8px 0; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.feature-list li::before { content: '✓'; color: var(--success); font-weight: 800; }
.plan-highlight { border-color: var(--primary); border-width: 2px; position: relative; }
.plan-highlight::after { content: 'Populer'; position: absolute; top: -12px; right: 20px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.provider-list { display: flex; flex-direction: column; gap: 10px; }
.provider-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 2px solid var(--border); border-radius: 10px; cursor: pointer; background: var(--surface); }
.provider-card:hover { border-color: var(--primary); }
.provider-card.selected { border-color: var(--primary); background: var(--primary-soft); }
.provider-card input { width: 18px; height: 18px; accent-color: var(--primary); margin-top: 2px; }

/* ── Landing ── */
.landing-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.landing-section { padding: 56px 0; }
.landing-section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: clamp(24px, 3.4vw, 30px); font-weight: 800; text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 36px; }
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding: 40px 0 32px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 8px; } }
.hero h1 { font-size: clamp(30px, 4.6vw, 42px); font-weight: 900; line-height: 1.15; margin: 12px 0 16px; }
.hero p.lead { color: var(--muted); font-size: 17px; margin-bottom: 28px; }
.hero-visual { border-radius: 20px; background: linear-gradient(135deg, var(--primary) 0%, #0891b2 100%); min-height: 280px; max-height: 380px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); overflow: hidden; }
.hero-visual .visual-emoji { font-size: clamp(64px, 9vw, 110px); }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 780px) { .how-steps { grid-template-columns: 1fr; } }
.step-number { width: 40px; height: 40px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 16px; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; background: var(--surface); overflow: hidden; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; background: none; border: none; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text); text-align: left; font-family: inherit; }
.faq-answer { padding: 0 20px 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.contributor-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .contributor-form-grid { grid-template-columns: 1fr; } }
.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 13px; text-align: center; }

/* ── Review / analytics ── */
.review-question { border-bottom: 1px solid var(--border); padding: 18px 0; }
.review-question:last-child { border-bottom: none; }
.review-option { padding: 8px 12px; border-radius: 8px; margin: 4px 0; font-size: 14px; }
.review-option.correct { background: var(--success-bg); color: var(--success-text); }
.review-option.wrong { background: var(--danger-bg); color: var(--danger-text); }
.bar-track { background: var(--border); border-radius: 999px; height: 10px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--primary); border-radius: 999px; }
.status-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.status-tab { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.status-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Profile ── */
.avatar-wrap { flex-shrink: 0; }
.avatar-img, .avatar-fallback { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.avatar-fallback { display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), #0891b2); }

/* ── Misc ── */
.muted { color: var(--muted); }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mb-2 { margin-bottom: 16px; }
.flex { display: flex; } .gap-2 { gap: 16px; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; } .flex-1 { flex: 1; }
.text-center { text-align: center; }
.loading { display: flex; justify-content: center; padding: 60px; color: var(--muted); font-size: 14px; }
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); animation: toastIn 0.2s ease; }
.toast-success { background: var(--success-bg); color: var(--success-text); border: 1px solid var(--success); }
.toast-error { background: var(--danger-bg); color: var(--danger-text); border: 1px solid var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
.hidden { display: none !important; }

/* ══ Language dropdown (flag, ala fullstack LocaleToggle) ══ */
.nav-dropdown { position: relative; display: inline-flex; }
.locale-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; line-height: 1; }
.locale-btn:hover { border-color: var(--primary); color: var(--primary); }
.locale-btn .chevron { transition: transform 0.15s ease; }
.locale-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.locale-flag { font-size: 15px; line-height: 1; }
.locale-code { font-size: 12px; font-weight: 700; letter-spacing: 0.03em; }
.dropdown-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 70; min-width: 190px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; }
.dropdown-menu-right { left: auto; right: 0; }
.locale-menu { min-width: 190px; }
.locale-option { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 12px; border: none; border-radius: 7px; background: none; color: var(--text); font-size: 13.5px; font-family: inherit; cursor: pointer; text-align: left; }
.locale-option:hover { background: var(--surface-alt); }
.locale-option.active { color: var(--primary-soft-text); background: var(--primary-soft); font-weight: 600; }
.locale-name { flex: 1; white-space: nowrap; }
.locale-check { font-weight: 700; }

/* ══ Landing ala fullstack ══ */
.landing-nav { position: sticky; top: 0; z-index: 50; background: var(--navbar-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.landing-nav .nav-inner { display: flex; align-items: center; gap: 20px; height: 64px; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.landing-links { display: flex; gap: 4px; margin: 0 auto; }
.landing-links a { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.landing-links a:hover { background: var(--surface-alt); color: var(--text); }
/* Hamburger + panel menu mobile (landing) */
.nav-hamburger { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 18px; cursor: pointer; font-family: inherit; }
.nav-hamburger:hover { border-color: var(--primary); color: var(--primary); }
.nav-hamburger.open { border-color: var(--primary); color: var(--primary); }
.landing-mobile-menu { display: none; }
@media (max-width: 900px) {
  .landing-nav .nav-inner { gap: 12px; }
  .nav-hamburger { display: inline-flex; margin-left: auto; }
  .landing-nav .nav-auth { margin-left: 0; }
  .landing-mobile-menu { display: flex; flex-direction: column; gap: 2px; position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; z-index: 60; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; }
  .landing-mobile-menu[hidden] { display: none; }
  .landing-mobile-menu a { padding: 11px 14px; border-radius: 8px; color: var(--text); font-size: 14.5px; font-weight: 600; text-decoration: none; }
  .landing-mobile-menu a:hover { background: var(--surface-alt); color: var(--primary); }
  .mobile-menu-divider { border-top: 1px solid var(--border); margin: 6px 4px; }
  .mobile-menu-theme { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border: none; border-radius: 8px; background: none; color: var(--text); font-family: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; text-align: left; }
  .mobile-menu-theme:hover { background: var(--surface-alt); color: var(--primary); }
}
@media (max-width: 560px) {
  .landing-nav .theme-toggle { display: none; }
  .landing-nav .locale-code { display: none; }
  .landing-nav .nav-auth { gap: 6px; }
  .landing-nav .nav-auth .btn { padding: 7px 12px; font-size: 13px; }
}
.landing .hero { background: color-mix(in srgb, var(--primary) 9%, var(--bg)); padding: 56px 0; overflow: hidden; display: flex; align-items: center; min-height: calc(100svh - 65px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--primary-soft-text); background: var(--primary-soft); border-radius: 999px; padding: 7px 16px; }
.hero-copy h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.12; letter-spacing: -0.02em; margin: 18px 0 14px; font-weight: 900; }
.hero-title .line { display: block; }
.hero-copy h1 .accent { color: var(--primary); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 16px 32px; margin: 26px 0; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-size: 24px; font-weight: 800; }
.hero-stat span { font-size: 13px; color: var(--muted); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-art { width: 100%; max-width: 560px; height: auto; }
.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14); padding: 10px 16px 10px 10px; font-size: 13px; animation: floaty 5s ease-in-out infinite; will-change: transform; }
.float-bottom { animation-delay: 2.5s; }
@keyframes floaty { 0%, 100% { margin-top: 0; } 50% { margin-top: -8px; } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }
.float-card strong { display: block; font-size: 13.5px; white-space: nowrap; }
.float-card div span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.float-badge { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; font-size: 18px; font-weight: 800; }
.float-badge.star { background: #fef3c7; color: #d97706; }
.float-badge.check { background: var(--primary-soft); color: var(--primary-soft-text); }
.float-top { top: 2%; right: -12px; }
.float-bottom { bottom: 4%; left: -12px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card h3 { font-size: 16.5px; margin: 14px 0 8px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: var(--primary-soft); color: var(--primary-soft-text); font-size: 22px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quiz-card { display: flex; flex-direction: column; gap: 10px; }
.quiz-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.quiz-top h3 { font-size: 16px; line-height: 1.4; }
.quiz-count { flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-alt); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.quiz-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quiz-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.quiz-creator { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-soft-text); font-size: 12px; font-weight: 700; }
.quiz-start { font-size: 13.5px; font-weight: 700; color: var(--primary); text-decoration: none; white-space: nowrap; }
.quiz-start:hover { text-decoration: underline; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; max-width: 960px; margin: 0 auto; }
.plan-card { display: flex; flex-direction: column; position: relative; }
.plan-card h3 { font-size: 18px; }
.plan-desc { font-size: 13px; margin: 4px 0 0; }
.plan-highlight { border: 2px solid var(--primary); box-shadow: 0 12px 32px rgba(5, 150, 105, 0.18); }
.plan-ribbon { position: absolute; top: -13px; right: 20px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.plan-price { font-size: 30px; font-weight: 800; margin: 14px 0 4px; letter-spacing: -0.01em; }
.plan-per { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-features { list-style: none; padding: 14px 0; margin: 10px 0 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; font-size: 14px; flex: 1; }
.plan-features .check { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-soft-text); font-size: 12px; font-weight: 800; margin-right: 8px; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-q { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--primary-soft); color: var(--primary-soft-text); font-size: 13px; font-weight: 800; }
.faq-text { flex: 1; text-align: left; }
.faq-question .chevron { transition: transform 0.15s ease; flex-shrink: 0; }
.faq-question.open .chevron { transform: rotate(180deg); }
.cta-band { background: linear-gradient(135deg, #059669, #047857); color: #fff; padding: 72px 0; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 12px 0 10px; letter-spacing: -0.01em; }
.cta-band p { opacity: 0.9; max-width: 520px; margin: 0 auto 26px; font-size: 15.5px; }
.cta-icon { font-size: 40px; }
.btn-cta { background: #fff; color: #047857; font-weight: 700; font-size: 15px; padding: 12px 28px; border-radius: 10px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-cta:hover { background: #ecfdf5; }
.landing-footer { border-top: 1px solid var(--border); padding: 48px 0 0; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 32px; max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.footer-grid h4 { font-size: 14px; margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--muted); font-size: 14px; text-decoration: none; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--primary); }
.footer-tag { font-size: 13.5px; margin-top: 12px; max-width: 280px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 24px; font-size: 13px; color: var(--muted); text-align: center; }
/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
@media (max-width: 900px) {
  .landing .hero { min-height: auto; padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .feature-grid, .catalog-grid, .plan-grid { grid-template-columns: 1fr; }
  .landing-links { display: none; }
  .float-top { right: 0; }
  .float-bottom { left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .landing-nav .nav-auth .btn-ghost { display: none; }
  .hero-copy h1 { font-size: 32px; }
  .hero-stats { gap: 12px 24px; }
  .hero-stat strong { font-size: 20px; }
  .hero-cta .btn-lg { flex: 1 1 220px; justify-content: center; }
  .float-card { padding: 8px 12px 8px 8px; font-size: 12px; }
  .float-card strong { font-size: 12.5px; }
  .float-badge { width: 32px; height: 32px; font-size: 15px; }
  .landing-section { padding: 52px 0; }
}
