:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2ff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #5b5bd6;
  --primary-dark: #4646b6;
  --success: #15803d;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --radius: 18px;
  --scroll-track: #e9eefb;
  --scroll-thumb: #8b93ff;
  --scroll-thumb-hover: #646cff;
  --scroll-track-dark: #101827;
  --scroll-thumb-dark: #49527b;
  --scroll-thumb-dark-hover: #6672a8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--scroll-track); }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
body, .sidebar, .admin-sidebar, .sidebar-nav, .admin-nav, .chat-thread, .table-wrap, .mini-chart, .modal-card { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--scroll-track); }
.sidebar, .admin-sidebar, .sidebar-nav, .admin-nav { scrollbar-color: rgba(148,163,184,.55) rgba(255,255,255,.08); }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--scroll-track); border-radius: 999px; }
*::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 999px; border: 2px solid var(--scroll-track); }
*::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }
.sidebar::-webkit-scrollbar-track, .admin-sidebar::-webkit-scrollbar-track, .sidebar-nav::-webkit-scrollbar-track, .admin-nav::-webkit-scrollbar-track { background: rgba(255,255,255,.08); }
.sidebar::-webkit-scrollbar-thumb, .admin-sidebar::-webkit-scrollbar-thumb, .sidebar-nav::-webkit-scrollbar-thumb, .admin-nav::-webkit-scrollbar-thumb { background: rgba(148,163,184,.55); border-color: rgba(255,255,255,.08); }
.sidebar::-webkit-scrollbar-thumb:hover, .admin-sidebar::-webkit-scrollbar-thumb:hover, .sidebar-nav::-webkit-scrollbar-thumb:hover, .admin-nav::-webkit-scrollbar-thumb:hover { background: rgba(165,180,252,.8); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
input, textarea, select { width: 100%; padding: .85rem .95rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--text); }
textarea { resize: vertical; }
label span { display: block; margin-bottom: .45rem; font-weight: 600; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 4.5rem 0; }
.section.alt { background: #eef2ff66; }
.page-header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; margin-bottom: 1.25rem; }
.page-header h1, .section-heading h1, .section-heading h2, .hero-section h1 { margin: .25rem 0 .6rem; line-height: 1.06; }
.hero-section { padding: 5rem 0 4rem; }
.hero-grid, .card-grid.two, .two-col-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; }
.two-col-layout { align-items: start; }
.onboarding-form, .recommendation-panel { align-self: start; }
.onboarding-form { align-content: start; }
.card-grid.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card-grid.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid-2, .grid-3, .grid-4, .stats-grid, .goal-grid { display: grid; gap: .9rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.gap-sm { gap: .75rem; }
.mt-lg { margin-top: 1.5rem; }
.mt-sm { margin-top: .65rem; }
.mb-md { margin-bottom: 1rem; }
.center { text-align: center; }
.slim-container { max-width: 680px; margin: 0 auto; }
.site-header { position: sticky; top: 0; background: rgba(247,249,255,.74); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(229,231,235,.7); z-index: 20; }
.nav-row { display: flex; justify-content: space-between; align-items: center; min-height: 78px; gap: 1rem; }
.brand { font-weight: 800; color: var(--text); font-size: 1.1rem; letter-spacing: -.02em; }
.brand-rich { display: inline-flex; align-items: center; gap: .75rem; }
.brand-badge { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #5b5bd6, #7c3aed); color: #fff; font-size: .82rem; box-shadow: 0 12px 28px rgba(91,91,214,.24); }
.brand-block { display: block; margin-bottom: 1rem; }
.nav-links, .hero-actions, .mini-proof, .topbar-actions, .compact-actions, .wizard-controls, .inline-form { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--text); font-weight: 600; padding: .62rem .88rem; border-radius: 999px; transition: background .2s ease, color .2s ease, transform .2s ease; }
.nav-links a:hover { background: rgba(91,91,214,.08); text-decoration: none; transform: translateY(-1px); }
.nav-mobile-actions { display: none; gap: .5rem; align-items: center; }
.section-heading { display: grid; gap: .35rem; margin-bottom: 1.25rem; text-align: center; justify-items: center; }
.section-heading p { margin: 0; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hero-copy { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.mini-proof { margin-top: 1rem; }
.mini-proof span { padding: .45rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); font-weight: 700; color: var(--muted); }
.eyebrow { display: inline-flex; background: #e9e8ff; color: var(--primary); border-radius: 999px; padding: .35rem .7rem; font-size: .82rem; font-weight: 700; letter-spacing: .01em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid transparent; border-radius: 12px; padding: .85rem 1rem; font-weight: 700; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-lg { padding: 1rem 1.15rem; }
.btn-sm { padding: .55rem .75rem; font-size: .92rem; }
.btn-full { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #fff; border-color: var(--border); color: var(--text); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--muted); }
.btn-danger { background: var(--danger); color: #fff; }
.hero-card, .feature-card, .auth-card, .stat-card, .pricing-card, .goal-card, .modal-card { background: var(--surface); border: 1px solid rgba(229,231,235,.75); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.hero-card, .feature-card, .pricing-card, .goal-card, .auth-card, .modal-card { padding: 1.15rem; }
.feature-card:hover, .pricing-card:hover, .hero-card:hover, .auth-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(15,23,42,.1); }
.full-height { height: 100%; }
.dashboard-mini .mini-card, .nested-card { background: #fafaff; border: 1px solid var(--border); border-radius: 14px; padding: .95rem; }
.auth-body, .public-body, .app-body { min-height: 100vh; }
.public-body { background: linear-gradient(180deg, #f7f9ff 0%, #f5f7fb 35%, #ffffff 100%); }
.site-footer { margin-top: 3rem; padding: 3rem 0; background: linear-gradient(180deg, #0f172a, #111827); color: #dbe4f3; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 1.25rem; }
.footer-grid h4 { margin: 0 0 .8rem; color: #fff; }
.footer-grid a { color: #dbe4f3; display: block; margin-bottom: .55rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand { margin-bottom: .85rem; color: #fff; }
.footer-proof-row .hero-proof-pill { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.12); box-shadow: none; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; }
.modern-auth-shell { background: linear-gradient(180deg, #eff3ff, #ffffff); }
.auth-brand-panel { background: radial-gradient(circle at top left, rgba(91,91,214,.16), transparent 28%), linear-gradient(160deg, #eef2ff, #ffffff); padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.auth-brand-top { margin-bottom: 1.25rem; }
.auth-lead { font-size: 1.05rem; color: var(--muted); max-width: 58ch; }
.auth-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.25rem; }
.auth-benefit-stack { max-width: 640px; }
.auth-benefit-card { background: rgba(255,255,255,.88); }
.auth-card-wrap { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card-shell { width: min(100%, 520px); }
.auth-card { width: 100%; max-width: 100%; }
.auth-card-elevated { padding: 1.4rem; border-radius: 24px; box-shadow: 0 24px 60px rgba(15,23,42,.12); }
.auth-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.auth-back-link { font-size: .92rem; font-weight: 700; color: var(--muted); }
.auth-support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.auth-support-card { height: 100%; }
.auth-alt-box { border: 1px dashed #c7d2fe; background: #f8faff; border-radius: 18px; padding: 1rem; }
.password-field { position: relative; }
.password-field input { padding-right: 5.5rem; }
.password-toggle { position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); padding: .45rem .7rem; }
.feature-bullets, .clean-list, .number-list { padding-left: 1.1rem; }
.feature-bullets li, .clean-list li, .number-list li { margin-bottom: .55rem; }
.stack { display: grid; gap: .9rem; }
.tight-stack { gap: .45rem; }
.divider { text-align: center; color: var(--muted); margin: .8rem 0; }
.muted { color: var(--muted); }
.small-note, small { color: var(--muted); }
.alert { padding: .9rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.alert-success { background: #ecfdf3; color: #166534; }
.alert-warning { background: #fff7ed; color: #92400e; }
.app-shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; transition: grid-template-columns .25s ease; }
body.sidebar-collapsed .app-shell { grid-template-columns: 92px 1fr; }
.sidebar, .admin-sidebar { background: #111827; color: #fff; padding: 1rem; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; transition: width .25s ease, padding .25s ease, transform .25s ease; }
body.sidebar-collapsed .sidebar, body.sidebar-collapsed .admin-sidebar { padding-inline: .65rem; }
body.sidebar-collapsed .sidebar .brand-block, body.sidebar-collapsed .admin-sidebar .brand-block { font-size: .85rem; }
body.sidebar-collapsed .sidebar-nav a, body.sidebar-collapsed .admin-nav a { font-size: .75rem; padding: .65rem .5rem; text-align: center; }
body.sidebar-collapsed .admin-sidebar-head .muted { display: none; }
body.sidebar-collapsed .sidebar-logout .btn, body.sidebar-collapsed .admin-sidebar-footer .btn { padding-inline: .5rem; font-size: .8rem; }
.sidebar .brand, .admin-sidebar .brand { color: #fff; }
.sidebar-nav, .admin-nav { display: grid; gap: .25rem; flex: 1; min-height: 0; overflow-y: auto; align-content: start; padding-right: .15rem; }
.sidebar-nav a, .admin-nav a { color: rgba(255,255,255,.78); padding: .75rem .9rem; border-radius: 12px; font-weight: 600; }
.sidebar-nav a.is-active, .sidebar-nav a:hover, .admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.sidebar-logout, .admin-sidebar-footer { margin-top: 1rem; }
.app-main { padding: 1rem 1rem 5rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.topbar-title-group { display: flex; align-items: center; gap: .75rem; }
.sidebar-toggle { display: inline-flex; }
.search-form { display: flex; gap: .5rem; align-items: center; }
.search-form input { min-width: 280px; }
.progress-rail { width: 100%; height: 12px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.progress-rail span { display: block; height: 100%; background: linear-gradient(90deg, #5b5bd6, #7c3aed); border-radius: 999px; }
.progress-rail.xl { height: 14px; margin: .9rem 0 .55rem; }
.progress-meta, .path-top, .metric-list div, .lesson-row, .timeline-row, .task-row, .notification-row, .price-row, .modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.metric-chip, .badge { display: inline-flex; align-items: center; padding: .35rem .65rem; border-radius: 999px; background: #f3f4f6; color: var(--text); font-size: .82rem; font-weight: 700; }
.metric-chip.success, .badge.success { background: #ecfdf3; color: #166534; }
.stats-grid { grid-template-columns: repeat(2, 1fr); }
.stat-card { padding: 1rem; }
.stat-card span { display: block; color: var(--muted); margin-bottom: .45rem; }
.stat-card strong { font-size: 1.35rem; }
.milestone-scale { display: flex; justify-content: space-between; gap: .4rem; margin-top: 1rem; flex-wrap: wrap; }
.milestone-scale span { font-size: .82rem; color: var(--muted); }
.milestone-scale .done { color: var(--success); font-weight: 700; }
.metric-list { display: grid; gap: .75rem; }
.coach-note { margin-top: 1rem; padding: .9rem; border: 1px solid var(--border); border-radius: 14px; background: #fafaff; }
.milestone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; }
.milestone-card { border-radius: 14px; padding: .95rem; background: #fafafa; border: 1px solid var(--border); }
.milestone-card.achieved { background: #ecfdf3; border-color: #bbf7d0; }
.milestone-card.current { background: #eef2ff; border-color: #c7d2fe; }
.mini-chart { display: flex; gap: .55rem; align-items: end; min-height: 160px; overflow-x: auto; padding-top: 1rem; }
.mini-chart .bar { min-width: 60px; background: linear-gradient(180deg, #818cf8, #5b5bd6); border-radius: 12px 12px 6px 6px; color: #fff; padding: .35rem; display: flex; flex-direction: column; justify-content: end; }
.mini-chart .bar span { font-size: .72rem; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: .85rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.goal-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.goal-card, .task-row, .timeline-row, .notification-row, .lesson-row, .badge-card { padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.task-row { align-items: center; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .85rem; }
.badge-card { background: #fafaff; }
.kanban-board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 1rem; overflow-x: auto; }
.kanban-col { background: #fafaff; border: 1px solid var(--border); border-radius: 14px; padding: .85rem; min-width: 220px; }
.kanban-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .8rem; margin-bottom: .75rem; }
.chat-thread { display: grid; gap: .85rem; max-height: 520px; overflow-y: auto; }
.chat-bubble { max-width: 90%; padding: 1rem; border-radius: 16px; }
.chat-bubble.user { background: #eef2ff; margin-left: auto; }
.chat-bubble.assistant { background: #f9fafb; border: 1px solid var(--border); }
.option-grid { display: grid; gap: .75rem; }
.option-grid.two { grid-template-columns: repeat(2, 1fr); }
.option-grid.three { grid-template-columns: repeat(3, 1fr); }
.option-pill { position: relative; border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1rem; cursor: pointer; background: #fff; display: block; }
.option-pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.option-pill:has(input:checked) { border-color: var(--primary); background: #eef2ff; }
.wizard-step { display: none; }
.wizard-step.active { display: grid; gap: .85rem; }
.recommendation-panel { min-height: 440px; }
.recommendation-card { scroll-margin-top: 96px; }
.empty-state { border: 1px dashed #cbd5e1; border-radius: 16px; padding: 2rem; text-align: center; background: #fff; }
.empty-state.compact { padding: 1rem; }
.mobile-nav { display: none; position: fixed; left: 0; right: 0; bottom: 0; padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--border); justify-content: space-between; z-index: 40; }
.mobile-nav a { color: var(--text); font-weight: 700; font-size: .9rem; }
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.4); display: grid; place-items: center; padding: 1rem; z-index: 80; }
.modal.hidden { display: none; }
.modal-card { width: min(760px, 100%); max-height: 80vh; overflow: auto; }
.search-result-wrap { display: grid; gap: 1rem; }
.search-group { border-top: 1px solid var(--border); padding-top: .85rem; }
.toast-stack { position: fixed; top: 1rem; right: 1rem; display: grid; gap: .75rem; z-index: 90; }
.toast { padding: .95rem 1rem; border-radius: 14px; box-shadow: var(--shadow); background: #111827; color: #fff; min-width: 240px; }
.toast.error { background: #7f1d1d; }
.notification-row.unread { border-left: 4px solid var(--primary); }
.notification-row.read { opacity: .75; }
.faq-list details { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1rem; margin-bottom: .8rem; }
.prose-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.faq-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check-row { display: flex; align-items: center; gap: .75rem; }
.check-row input { width: auto; }
.install-wrap { display: grid; gap: 1rem; }
.comment-list { display: grid; gap: .5rem; margin-top: .9rem; }
.comment { padding: .7rem .85rem; border-radius: 12px; background: #f9fafb; border: 1px solid var(--border); }
.danger-zone { border-color: #fecaca; background: #fff7f7; }
.small-gap { gap: .35rem; }
.compact-grid { gap: .8rem; }
.faq-list.compact details { padding: .9rem; }
.hero-card.dashboard-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; }
.admin-stats { grid-template-columns: repeat(3, 1fr); }
.admin-body { background: #0b1020; color: #e5e7eb; }
.admin-shell { display: grid; grid-template-columns: 290px 1fr; min-height: 100vh; }
body.sidebar-collapsed .admin-shell { grid-template-columns: 92px 1fr; }
.admin-sidebar { background: linear-gradient(180deg, #0f172a, #111827); border-right: 1px solid rgba(255,255,255,.07); }
.admin-sidebar-head { margin-bottom: 1rem; }
.admin-sidebar-head .muted { color: #94a3b8; }
.admin-main { padding: 1.2rem 1.2rem 4rem; }
.admin-topbar, .topbar-title-group, .topbar-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.admin-topbar { margin-bottom: 1.25rem; }
.admin-section { scroll-margin-top: 80px; }
.admin-body .feature-card, .admin-body .stat-card, .admin-body .pricing-card, .admin-body .modal-card, .admin-body .goal-card, .admin-body .hero-card, .admin-body .prose-card, .admin-body .nested-card { background: #111827; border-color: #1f2937; color: #e5e7eb; }
.admin-body input, .admin-body textarea, .admin-body select, .admin-body .comment, .admin-body .kanban-card, .admin-body .task-row, .admin-body .notification-row, .admin-body .lesson-row, .admin-body .goal-card, .admin-body .badge-card { background: #0f172a; color: #e5e7eb; border-color: #253042; }
.admin-body .data-table th, .admin-body .data-table td { border-color: #223045; }
.admin-body .btn-secondary { background: #0f172a; border-color: #334155; color: #e5e7eb; }
.admin-body .btn-ghost { border-color: #334155; color: #cbd5e1; }
.hero-modern { position: relative; overflow: hidden; padding: 5.5rem 0 3rem; }
.hero-modern::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(124,58,237,.15), transparent 28%), radial-gradient(circle at 80% 20%, rgba(91,91,214,.18), transparent 24%), linear-gradient(180deg, #f7f8ff, #f5f7fb); pointer-events: none; }
.hero-modern .container { position: relative; z-index: 1; }
.hero-modern-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; align-items: center; }
.hero-copy-wrap h1 { font-size: clamp(2.2rem, 4.4vw, 4.2rem); letter-spacing: -0.04em; max-width: 14ch; text-wrap: balance; }
.hero-subcopy { font-size: 1.12rem; color: var(--muted); max-width: 58ch; }
.hero-proof-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.hero-proof-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .85rem; border-radius: 999px; background: rgba(255,255,255,.9); border: 1px solid var(--border); box-shadow: var(--shadow); }
.hero-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 1.25rem; }
.hero-kpis-expanded { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-tile { background: rgba(255,255,255,.88); border: 1px solid rgba(229,231,235,.8); border-radius: 18px; padding: 1rem; box-shadow: var(--shadow); }
.metric-tile strong { display: block; font-size: 1.5rem; }
.dashboard-preview { position: relative; background: linear-gradient(180deg, #0f172a, #111827); color: #fff; border-radius: 28px; padding: 1.2rem; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 60px rgba(15,23,42,.16); }
.hero-homepage-upgrade { padding-bottom: 4rem; }
.dashboard-preview-deluxe { overflow: hidden; }
.preview-headline-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.preview-checklist { display: flex; flex-wrap: wrap; gap: .75rem; }
.home-trust-section { padding-top: 0; }
.home-trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -1.5rem; position: relative; z-index: 2; }
.trust-stat-card { background: rgba(255,255,255,.92); border: 1px solid rgba(229,231,235,.9); border-radius: 22px; padding: 1.15rem; box-shadow: 0 24px 48px rgba(15,23,42,.08); }
.trust-stat-card h3 { margin: .7rem 0 .45rem; }
.audience-grid .audience-card { min-height: 100%; }
.simulator-output-grid { align-items: center; }
.journey-step-list { display: grid; gap: .85rem; }
.journey-step-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 1rem; box-shadow: var(--shadow); }
.journey-step-card strong { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #5b5bd6, #7c3aed); color: #fff; font-size: 1rem; }
.journey-step-card h3 { margin: 0 0 .35rem; }
.module-showcase-card { background: linear-gradient(180deg, #ffffff, #f8faff); }
.module-stack { display: grid; gap: .8rem; margin-top: 1rem; }
.comparison-shell { display: grid; gap: 1rem; }
.comparison-headings { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.comparison-heading { border-radius: 16px; padding: .9rem 1rem; font-weight: 800; text-align: center; }
.comparison-heading.negative { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.comparison-heading.positive { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compare-row { border-radius: 18px; padding: 1rem; border: 1px solid var(--border); min-height: 100%; }
.compare-row strong { display: inline-block; margin-bottom: .45rem; }
.compare-row-before { background: #fff7ed; border-color: #fed7aa; }
.compare-row-after { background: #eef2ff; border-color: #c7d2fe; }
.story-card { height: 100%; }
.home-cta-band { text-align: left; }
.faq-strip-upgraded { align-items: start; }
.dashboard-preview .muted { color: #94a3b8; }
.preview-float { position: absolute; background: #fff; color: #111827; border: 1px solid var(--border); border-radius: 18px; padding: .85rem 1rem; box-shadow: var(--shadow); }
.preview-float.one { top: -18px; right: 18px; }
.preview-float.two { bottom: 16px; left: -24px; }
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; margin-top: 1rem; }
.preview-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: .95rem; }
.live-dot { width: 10px; height: 10px; border-radius: 999px; background: #22c55e; box-shadow: 0 0 0 6px rgba(34,197,94,.18); display: inline-block; margin-right: .5rem; }
.simulator-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.choice-group { display: grid; gap: .65rem; }
.choice-chips { display: flex; flex-wrap: wrap; gap: .65rem; }
.choice-chip { border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 999px; padding: .7rem .9rem; font-weight: 700; }
.choice-chip.is-active { background: #111827; color: #fff; border-color: #111827; }
.simulator-output { min-height: 100%; background: linear-gradient(180deg, #f8faff, #eef2ff); }
.match-ring { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#5b5bd6 var(--progress, 75%), #dbe2ff 0); padding: 8px; }
.match-ring span { width: 100%; height: 100%; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.35rem; font-weight: 800; }
.landing-tab-nav { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.landing-tab-button { padding: .8rem 1rem; border-radius: 14px; border: 1px solid var(--border); background: #fff; font-weight: 700; }
.landing-tab-button.is-active { background: #111827; color: #fff; border-color: #111827; }
.landing-tab-panel { display: none; }
.landing-tab-panel.is-active { display: block; }
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.sticky-showcase { position: sticky; top: 94px; }
.mission-list { display: grid; gap: .8rem; }
.mission-item { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.mission-item strong { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: #111827; color: #fff; font-size: .86rem; }
.cta-band { background: linear-gradient(135deg, #111827, #312e81); color: #fff; border-radius: 28px; padding: 1.5rem; box-shadow: var(--shadow); }
.cta-band .muted { color: rgba(255,255,255,.76); }
.pricing-card.featured-plan { border-color: #818cf8; box-shadow: 0 18px 50px rgba(91,91,214,.14); }
.responsive-note { font-size: .88rem; color: var(--muted); }
.section-heading.left-align { text-align: left; align-items: flex-start; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.admin-toolbar .muted { margin: .2rem 0 0; }
.mode-switch { margin-bottom: 1rem; }
.mode-switch .btn, .topbar-actions [data-ui-mode] { min-width: 96px; }
.sidebar-group { display: grid; gap: .25rem; margin-bottom: .85rem; }
.sidebar-group-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; padding: .25rem .9rem; }
body.sidebar-collapsed .sidebar-group-label { display: none; }
body.simple-mode [data-nav-level="advanced"], body.simple-mode [data-feature-level="advanced"], body.simple-mode .advanced-only { display: none !important; }
body.simple-mode [data-ui-mode="simple"], body:not(.simple-mode) [data-ui-mode="advanced"] { background: #fff; color: var(--text); border-color: var(--border); }
.inline-meta { display: flex; flex-wrap: wrap; gap: .75rem; color: var(--muted); }
.command-center-hero { gap: 1.25rem; }
.command-next-step { background: #fafaff; border: 1px solid var(--border); border-radius: 18px; padding: 1rem; }
.command-metrics-grid { align-content: start; }
.sprint-card.active { border-color: #c7d2fe; background: #eef2ff; }
.sprint-card.completed { border-color: #bbf7d0; background: #ecfdf3; }
.restart-card { border-color: #fde68a; background: #fff7ed; }
.success-card-preview { background: linear-gradient(135deg, #111827, #4338ca); color: #fff; border-radius: 24px; padding: 1.4rem; box-shadow: var(--shadow); }
.success-card-preview strong { display: block; font-size: 2rem; margin: .5rem 0; }
.challenge-room-card, .outreach-script-card, .opportunity-card { height: 100%; }
.community-feed-list .community-post { transition: transform .2s ease, box-shadow .2s ease; }
.community-feed-list .community-post:hover { transform: translateY(-2px); }
.client-tool-grid { align-items: start; }
.invoice-preview { background: linear-gradient(180deg, #f8faff, #ffffff); border: 1px solid var(--border); border-radius: 18px; padding: 1.15rem; }
.ai-tool-box, .copy-helper { border: 1px solid var(--border); border-radius: 16px; padding: 1rem; background: #fff; }
.social-proof-grid article h3 { line-height: 1.18; }

[data-theme="dark"], body.dark {
  --bg: #0b1220;
  --surface: #111827;
  --surface-2: #0f172a;
  --text: #f3f4f6;
  --muted: #94a3b8;
  --border: #1f2937;
  --shadow: 0 20px 40px rgba(0,0,0,.24);
  --scroll-track: var(--scroll-track-dark);
  --scroll-thumb: var(--scroll-thumb-dark);
  --scroll-thumb-hover: var(--scroll-thumb-dark-hover);
}
body.dark .site-header { background: rgba(11,18,32,.84); }
body.dark input,
body.dark textarea,
body.dark select,
body.dark .goal-card,
body.dark .task-row,
body.dark .timeline-row,
body.dark .notification-row,
body.dark .lesson-row,
body.dark .kanban-card,
body.dark .command-next-step,
body.dark .invoice-preview,
body.dark .mission-item,
body.dark .nested-card,
body.dark .feature-card,
body.dark .hero-card,
body.dark .pricing-card,
body.dark .stat-card,
body.dark .auth-alt-box,
body.dark .auth-benefit-card,
body.dark .metric-tile,
body.dark .hero-proof-pill,
body.dark .mini-proof span,
body.dark .preview-float,
body.dark .choice-chip,
body.dark .landing-tab-button,
body.dark .option-pill,
body.dark .empty-state,
body.dark .faq-list details,
body.dark .prose-card,
body.dark .comment,
body.dark .coach-note,
body.dark .milestone-card,
body.dark .kanban-col,
body.dark .dashboard-mini .mini-card,
body.dark .badge-card,
body.dark .auth-card,
body.dark .modal-card,
body.dark .match-ring span,
body.dark .search-group,
body.dark .search-result-wrap,
body.dark .ai-tool-box,
body.dark .copy-helper {
  background: #0f172a;
  color: var(--text);
  border-color: #1f2937;
}
body.dark .sidebar,
body.dark .admin-sidebar { background: #020617; }
body.dark .nav-links a { color: var(--text); }
body.dark .nav-links a:hover { background: rgba(129,140,248,.12); }
body.dark .btn-secondary { background: #111827; border-color: #334155; color: #e5e7eb; }
body.dark .btn-ghost { background: transparent; border-color: #334155; color: #cbd5e1; }
body.dark .metric-chip:not(.success),
body.dark .badge:not(.success) { background: #111827; color: #e5e7eb; border: 1px solid #334155; }
body.dark .landing-tab-button.is-active,
body.dark .choice-chip.is-active { background: #6366f1; border-color: #6366f1; color: #fff; }
body.dark.simple-mode [data-ui-mode="simple"],
body.dark:not(.simple-mode) [data-ui-mode="advanced"] { background: #0f172a; color: var(--text); border-color: #334155; }
body.dark .preview-float { color: #e5e7eb; }
body.dark .mobile-nav { background: rgba(11,18,32,.96); border-top-color: #1f2937; }
body.dark .mobile-nav a { color: #e5e7eb; }
body.dark .section.alt { background: rgba(30,41,59,.42); }
body.dark .restart-card,
body.dark .alert-warning,
body.dark .danger-zone { background: #3a2b14; border-color: #7c5b17; color: #fde68a; }
body.dark .sprint-card.active { background: #18233f; border-color: #334a86; }
body.dark .sprint-card.completed { background: #10261c; border-color: #1f6b44; }
body.dark .checklist-card.is-done { background: #10261c; border-color: #1f6b44; }
body.dark .progress-rail { background: #1e293b; }
body.dark .auth-back-link { color: #cbd5e1; }
body.dark .trust-stat-card,
body.dark .journey-step-card,
body.dark .compare-row,
body.dark .module-showcase-card { background: #0f172a; color: var(--text); border-color: #1f2937; }
body.dark .comparison-heading.negative { background: #3f1720; color: #fecdd3; border-color: #7f1d3a; }
body.dark .comparison-heading.positive { background: #13291f; color: #bbf7d0; border-color: #166534; }
body.dark .compare-row-before { background: #2f2115; border-color: #7c4a16; }
body.dark .compare-row-after { background: #172554; border-color: #3730a3; }
body.dark .journey-step-card strong { box-shadow: 0 18px 34px rgba(79,70,229,.35); }
body.dark .topbar strong,
body.dark .page-header h1,
body.dark .page-header p,
body.dark .section-heading h2,
body.dark .section-heading p { color: inherit; }

.announcement-bar { background: linear-gradient(90deg, #312e81, #4f46e5, #7c3aed); color: #fff; padding: .7rem 0; font-size: .95rem; }
.quick-add-fab { position: fixed; right: 1.25rem; bottom: 5.5rem; width: 58px; height: 58px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-size: 1.8rem; box-shadow: 0 20px 40px rgba(79,70,229,.35); z-index: 45; cursor: pointer; }
.quick-add-modal-card { max-width: 780px; }
.quick-add-tabs { margin-bottom: 1rem; }
.quick-add-panel { display: none; }
.quick-add-panel.is-active { display: grid; }
body.modal-open { overflow: hidden; }
.launchpad-task-card { border-left: 4px solid #6366f1; }
.dashboard-guidance-grid { align-items: start; }
.dashboard-cockpit-grid { align-items: start; }
.checklist-card.is-done { border-color: #bbf7d0; background: #ecfdf3; }
.portfolio-preview.indigo { background: linear-gradient(145deg, #312e81, #1e1b4b); color: #fff; }
.portfolio-preview.emerald { background: linear-gradient(145deg, #064e3b, #022c22); color: #ecfdf5; }
.portfolio-preview.sunset { background: linear-gradient(145deg, #7c2d12, #431407); color: #fff7ed; }
.theme-indigo .hero-modern, .theme-indigo .portfolio-public { background: transparent; }
.theme-emerald .portfolio-public .feature-card { border-color: #a7f3d0; }
.theme-sunset .portfolio-public .feature-card { border-color: #fdba74; }
.lead-magnet-band { text-align: left; }
body.dark .announcement-bar { background: linear-gradient(90deg, #111827, #312e81, #581c87); }
body.dark .quick-add-fab { box-shadow: 0 20px 40px rgba(15,23,42,.55); }
body.dark .portfolio-preview.indigo,
body.dark .portfolio-preview.emerald,
body.dark .portfolio-preview.sunset { border-color: rgba(255,255,255,.18); }
@media (max-width: 720px) {
  .quick-add-fab { bottom: 5.25rem; right: 1rem; width: 52px; height: 52px; }
}

@media (max-width: 1080px) {
  .card-grid.three, .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .home-trust-strip { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
  .comparison-headings, .comparison-grid { grid-template-columns: 1fr; }
  .app-shell, .admin-shell { grid-template-columns: 1fr; }
  .sidebar-toggle { display: inline-flex; }
  .sidebar, .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 84vw);
    height: 100vh;
    z-index: 70;
    transform: translateX(-105%);
    transition: transform .25s ease;
  }
  body.sidebar-open .sidebar, body.sidebar-open .admin-sidebar { transform: translateX(0); }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .45);
    z-index: 60;
  }
  body.sidebar-open .sidebar-overlay.hidden { display: block !important; }
  .hero-modern-grid, .simulator-shell, .showcase-grid { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
  .hero-grid, .auth-shell, .card-grid.two, .two-col-layout, .faq-strip, .hero-card.dashboard-hero, .hero-modern-grid, .simulator-shell, .showcase-grid, .footer-grid { grid-template-columns: 1fr; }
  .topbar, .admin-topbar, .topbar-title-group, .topbar-actions, .admin-toolbar, .auth-card-head { flex-direction: column; align-items: stretch; }
  .search-form input { min-width: 0; }
  .card-grid.three, .card-grid.four, .admin-stats, .hero-kpis, .hero-kpis-expanded, .preview-grid, .auth-proof-grid, .auth-support-grid, .home-trust-strip { grid-template-columns: 1fr; }
  .stats-grid, .grid-2, .grid-3, .grid-4, .option-grid.two, .option-grid.three { grid-template-columns: 1fr; }
  .journey-step-card { grid-template-columns: 1fr; }
  .auth-brand-panel { padding: 2rem 1.25rem; }
  .auth-card-wrap { padding: 1.25rem; }
}

@media (max-width: 680px) {
  .site-header .nav-links { display: none; }
  .nav-mobile-actions { display: inline-flex; }
  .app-shell, .admin-shell { grid-template-columns: 1fr; }
  .app-main { padding-bottom: 6rem; }
  .mobile-nav { display: flex; }
  .kanban-board { grid-template-columns: repeat(7, minmax(220px, 1fr)); }
  .section { padding: 3rem 0; }
  .hero-section, .hero-modern { padding: 3rem 0; }
  .preview-float { position: static; margin-top: .75rem; }
  .site-footer { padding-bottom: 6.5rem; }
}

.card { background: var(--surface); border: 1px solid rgba(229,231,235,.8); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; }
.card-elevated { box-shadow: 0 18px 40px rgba(15,23,42,.08); }
.section-gap { display: grid; gap: 1rem; }
.compact-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; text-align: left; justify-items: stretch; }
.table-responsive { overflow-x: auto; }
.mini-card, .helper-item, .sidebar-helper-card, .priority-row, .document-row-card { background: #fafaff; border: 1px solid var(--border); border-radius: 16px; padding: 1rem; }
.helper-list { display: grid; gap: .75rem; }
.small-text { font-size: .88rem; }
.mt-xs { margin-top: .35rem; }
.mt-md { margin-top: 1rem; }
.mb-sm { margin-bottom: .65rem; }
.wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badge-outline { background: transparent; border: 1px solid var(--border); }
.badge-success, .badge-info, .badge-warning, .badge-danger { border: 1px solid transparent; }
.badge-success { background: #ecfdf3; color: #166534; }
.badge-info { background: #eef2ff; color: #3730a3; }
.badge-warning { background: #fff7ed; color: #9a3412; }
.badge-danger { background: #fef2f2; color: #b91c1c; }
.compact-select { min-width: 144px; padding-block: .6rem; }
.sidebar-helper-card { margin-top: 1rem; color: #fff; background: linear-gradient(180deg, rgba(99,102,241,.18), rgba(15,23,42,.92)); border-color: rgba(165,180,252,.22); }
.sidebar-helper-card h3 { margin: .4rem 0; }
.sidebar-helper-card .muted { color: #cbd5e1; }
.mobile-nav { gap: .65rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); backdrop-filter: blur(18px); box-shadow: 0 -12px 30px rgba(15,23,42,.08); }
.mobile-nav-link { flex: 1; min-width: 0; display: grid; gap: .2rem; justify-items: center; align-content: center; padding: .55rem .35rem; border-radius: 16px; border: 1px solid transparent; color: var(--muted); font-weight: 700; background: transparent; }
.mobile-nav-link:hover { text-decoration: none; }
.mobile-nav-link.is-active { color: var(--primary); background: rgba(91,91,214,.1); border-color: rgba(91,91,214,.16); }
.mobile-nav-link-accent { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; box-shadow: 0 12px 24px rgba(99,102,241,.24); }
.mobile-nav-link-accent .mobile-nav-icon { background: rgba(255,255,255,.18); color: #fff; }
.mobile-nav-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: rgba(91,91,214,.1); color: var(--primary); font-size: 1rem; line-height: 1; }
.crm-builder-grid, .crm-insights-grid, .billing-summary-grid, .billing-history-grid { align-items: start; }
.crm-table td { min-width: 120px; }
.document-row-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.document-row-amount { display: grid; gap: .25rem; text-align: right; }
.priority-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.priority-row.is-overdue { border-color: #fecaca; background: #fff7f7; }
.pricing-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.pricing-split > div { background: #fafaff; border: 1px solid var(--border); border-radius: 14px; padding: .85rem; }
.pricing-card.is-featured { border-color: #a5b4fc; box-shadow: 0 18px 44px rgba(99,102,241,.14); }
.billing-checkout-card { padding: 1.5rem; }
.billing-metric-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.stats-grid-compact { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
body.dark .card,
body.dark .mini-card,
body.dark .helper-item,
body.dark .sidebar-helper-card,
body.dark .priority-row,
body.dark .document-row-card,
body.dark .pricing-split > div,
body.dark .mobile-nav-link,
body.dark .table-responsive,
body.dark .compact-select { background: #0f172a; color: var(--text); border-color: #1f2937; }
body.dark .mobile-nav-link.is-active { background: rgba(99,102,241,.2); border-color: rgba(129,140,248,.28); color: #c7d2fe; }
body.dark .mobile-nav-link-accent { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; border-color: transparent; }
body.dark .mobile-nav-icon { background: rgba(99,102,241,.16); color: #c7d2fe; }
body.dark .priority-row.is-overdue { background: #311616; border-color: #7f1d1d; }
body.dark .badge-outline { border-color: #334155; }
body.dark .badge-warning { background: #3b2a12; color: #fbbf24; }
body.dark .badge-danger { background: #3b1418; color: #fca5a5; }
body.dark .badge-info { background: #172554; color: #c7d2fe; }
body.dark .badge-success { background: #10261c; color: #86efac; }
body.dark .document-row-amount .muted,
body.dark .priority-row .muted,
body.dark .sidebar-helper-card .muted { color: #cbd5e1; }
body.dark .topbar,
body.dark .app-main,
body.dark .page-content { background: transparent; }
@media (max-width: 1080px) {
  .topbar-actions { justify-content: flex-start; }
  .sidebar-helper-card { margin-bottom: 1rem; }
}
@media (max-width: 840px) {
  .compact-heading, .document-row-head, .priority-row { flex-direction: column; align-items: stretch; }
  .billing-metric-list, .pricing-split { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .quick-add-fab { display: none; }
  .mobile-nav-link { font-size: .8rem; }
  .mobile-nav-icon { width: 28px; height: 28px; }
  .app-main { padding: .9rem .85rem 6.4rem; }
  .topbar-actions > .search-form { width: 100%; }
}

.hero-copy-wrap { display: grid; align-content: center; }
.dashboard-preview { width: min(100%, 500px); margin-inline: auto; align-self: center; }
.dashboard-preview-deluxe { padding-top: 1.15rem; padding-bottom: 1.35rem; }
.preview-headline-row { align-items: center; }
.preview-float.one { top: 14px; right: 14px; }
.preview-float.two { bottom: 14px; left: 14px; }
.preview-grid { align-items: stretch; gap: .75rem; }
.preview-card { min-height: 0; }
.hero-modern-grid > * { min-width: 0; }
@media (max-width: 1080px) {
  .dashboard-preview { width: 100%; max-width: 560px; }
}
@media (max-width: 840px) {
  .dashboard-preview-deluxe { padding-top: 1.1rem; padding-bottom: 1.1rem; }
  .preview-float.one,
  .preview-float.two { position: static; margin-top: .85rem; }
}

.admin-nav-card { display: block; text-decoration: none; }
.admin-nav-card:hover { text-decoration: none; transform: translateY(-2px); }
.admin-section-switcher .feature-card { min-height: 100%; }
.admin-topbar .muted { margin: .25rem 0 0; }

body.dark .card,
body.dark .mini-card,
body.dark .helper-item,
body.dark .document-row-card,
body.dark .priority-row,
body.dark .sidebar-helper-card,
body.dark .pricing-split > div,
body.dark .dashboard-mini .mini-card,
body.dark .nested-card,
body.dark .auth-benefit-card,
body.dark .auth-alt-box,
body.dark .coach-note,
body.dark .goal-card,
body.dark .task-row,
body.dark .timeline-row,
body.dark .notification-row,
body.dark .lesson-row,
body.dark .badge-card,
body.dark .kanban-col,
body.dark .kanban-card,
body.dark .chat-bubble.assistant,
body.dark .chat-bubble.user,
body.dark .option-pill,
body.dark .empty-state,
body.dark .faq-list details,
body.dark .prose-card,
body.dark .comment,
body.dark .ai-tool-box,
body.dark .copy-helper,
body.dark .metric-tile,
body.dark .hero-proof-pill,
body.dark .preview-float,
body.dark .trust-stat-card,
body.dark .journey-step-card,
body.dark .module-showcase-card,
body.dark .preview-card,
body.dark .search-form input,
body.dark .search-form button,
body.dark .landing-tab-button,
body.dark .choice-chip,
body.dark .match-ring span,
body.dark .stat-card,
body.dark .feature-card,
body.dark .hero-card,
body.dark .pricing-card,
body.dark .auth-card,
body.dark .modal-card,
body.dark .table-wrap {
  background: #0f172a;
  color: var(--text);
  border-color: #1f2937;
}

body.dark .btn-secondary:hover,
body.dark .btn-ghost:hover {
  background: #172033;
  color: #f8fafc;
  border-color: #475569;
}

body.dark .option-pill:has(input:checked),
body.dark .landing-tab-button.is-active,
body.dark .choice-chip.is-active {
  background: #312e81;
  color: #fff;
  border-color: #6366f1;
}

body.dark .metric-chip:not(.success),
body.dark .badge:not(.success) {
  background: #111827;
  color: #e5e7eb;
  border-color: #334155;
}

body.dark .data-table tbody tr:hover td {
  background: rgba(99, 102, 241, .08);
}

body.dark .search-form input::placeholder,
body.dark textarea::placeholder,
body.dark input::placeholder {
  color: #94a3b8;
}

body.dark .auth-card h1,
body.dark .auth-card h2,
body.dark .auth-card h3,
body.dark .feature-card h1,
body.dark .feature-card h2,
body.dark .feature-card h3,
body.dark .card h1,
body.dark .card h2,
body.dark .card h3,
body.dark .nested-card strong,
body.dark .stat-card strong,
body.dark .preview-card strong,
body.dark .journey-step-card h3 {
  color: #f8fafc;
}

body.dark .pricing-split > div .muted,
body.dark .metric-tile small,
body.dark .preview-card small,
body.dark .mini-card .muted,
body.dark .helper-item,
body.dark .empty-state p,
body.dark .table-wrap small,
body.dark .auth-alt-box .muted,
body.dark .search-form .btn-ghost {
  color: #cbd5e1;
}

body.admin-body .admin-nav-card { color: inherit; }
body.admin-body .admin-nav-card:hover { border-color: #334155; }
body.admin-body .admin-section-switcher .feature-card { background: #111827; border-color: #1f2937; }
