/* ============================================================
   TASKORA DESIGN SYSTEM
   1. Tokens / Variables      6. Navigation       11. Memberships
   2. Reset / Base            7. Cards & layout   12. Withdrawals
   3. Typography              8. Dashboard        13. Admin
   4. Buttons                 9. Tasks            14. Utilities
   5. Forms                  10. Badges/Lists     15. Responsive
   ============================================================ */

/* ============ 1. Tokens ============ */
:root {
    --bg: #eef1f7;
    --bg-tint: #e7ecf6;
    --surface: #ffffff;
    --surface-2: #f4f6fb;
    --surface-3: #eceff6;
    --text: #101828;
    --text-strong: #0b1220;
    --muted: #667085;
    --border: #e5e9f0;
    --border-strong: #d3dae6;

    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-hover: #4740d4;
    --primary-soft: #eef2ff;
    --primary-rgb: 79, 70, 229;

    --secondary: #7c3aed;
    --secondary-soft: #f3ecfe;
    --secondary-rgb: 124, 58, 237;

    --success: #059669;
    --success-dark: #047857;
    --success-soft: #d9f6ea;
    --success-rgb: 5, 150, 105;

    --accent: #f59e0b;
    --accent-dark: #b8770a;
    --accent-soft: #fef1d6;
    --accent-rgb: 245, 158, 11;

    --danger: #e11d48;
    --danger-soft: #ffe4e9;
    --danger-rgb: 225, 29, 72;

    --info: #2563eb;
    --info-soft: #e2ecff;

    --radius: 18px;
    --radius-lg: 24px;
    --radius-sm: 12px;
    --radius-xs: 9px;
    --shadow: 0 12px 34px rgba(16, 24, 40, 0.10);
    --shadow-sm: 0 2px 10px rgba(16, 24, 40, 0.06);
    --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.16);
    --shadow-primary: 0 12px 28px rgba(var(--primary-rgb), 0.32);
    --ring: 0 0 0 4px rgba(var(--primary-rgb), 0.16);

    --hero-grad: linear-gradient(135deg, #4f46e5 0%, #6d3ff0 48%, #7c3aed 100%);
    --sidebar-grad: linear-gradient(180deg, #171b34 0%, #10132a 100%);

    --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
    --bg: #0a0f1e;
    --bg-tint: #0d1426;
    --surface: #141b2e;
    --surface-2: #1a2338;
    --surface-3: #212c46;
    --text: #e8edf7;
    --text-strong: #f6f8fc;
    --muted: #94a3bb;
    --border: #273350;
    --border-strong: #33415f;

    --primary: #7c74ff;
    --primary-dark: #6b62f5;
    --primary-hover: #8a83ff;
    --primary-soft: #21254a;

    --secondary: #a78bfa;
    --secondary-soft: #2a2350;

    --success: #34d399;
    --success-soft: #10331f;

    --accent: #fbbf24;
    --accent-soft: #3a2c0d;

    --danger: #fb7185;
    --danger-soft: #3a1420;

    --info: #60a5fa;
    --info-soft: #16243f;

    --border-strong: #37456a;
    --shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
    --hero-grad: linear-gradient(135deg, #4b42d6 0%, #6d3ff0 48%, #7c3aed 100%);
    --sidebar-grad: linear-gradient(180deg, #10152a 0%, #0a0f1e 100%);
}

/* ============ 2. Reset / Base ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html.theme, html { background: var(--bg); }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }
::selection { background: rgba(var(--primary-rgb), 0.2); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ============ 3. Typography ============ */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text-strong); line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
.tnum { font-variant-numeric: tabular-nums; }

/* ============ 4. Buttons ============ */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: none; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
    padding: 12px 20px; border-radius: var(--radius-sm); line-height: 1.1;
    transition: transform .12s ease, background .2s, box-shadow .2s, opacity .2s, border-color .2s;
    background: var(--surface-2); color: var(--text); overflow: hidden; -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-accent { background: var(--accent); color: #3a2600; box-shadow: 0 12px 26px rgba(var(--accent-rgb), .32); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-ghost { background: transparent; color: var(--primary); padding: 8px 12px; box-shadow: none; }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: var(--radius-xs); }
.btn-icon { display: inline-grid; place-items: center; min-width: 36px; min-height: 36px; padding: 7px; border: 1px solid var(--border); border-radius: var(--radius-xs); background: var(--surface-2); color: var(--primary); cursor: pointer; }
.btn-icon:hover { background: var(--primary-soft); }
.btn-icon:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-xs { padding: 6px 11px; font-size: 12px; border-radius: 8px; box-shadow: none; }
.btn-lg { padding: 15px 24px; font-size: 16px; border-radius: var(--radius); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
    content: ""; position: absolute; width: 17px; height: 17px; border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .6s linear infinite;
}
.btn-outline.is-loading::after, .btn-ghost.is-loading::after { border-color: rgba(var(--primary-rgb),.35); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.45); animation: ripple .55s ease-out; pointer-events: none; }
.btn-outline .ripple, .btn-ghost .ripple, .btn-accent .ripple { background: rgba(var(--primary-rgb),.25); }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* ============ 5. Forms ============ */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.input, select, textarea {
    width: 100%; padding: 13px 15px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 15px; color: var(--text); background: var(--surface);
    transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
textarea { resize: vertical; min-height: 96px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.input-icon { position: relative; }
.input-icon > svg:first-child { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 44px; }
.input-icon .toggle-pw { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted); cursor: pointer; padding: 8px; border-radius: 8px; display: grid; place-items: center; }
.input-icon .toggle-pw:hover { color: var(--primary); background: var(--primary-soft); }

/* Admin form controls */
.admin-main input:not([type="hidden"]), .admin-main select, .admin-main textarea, .admin-main input[type="file"] { min-height: 44px; width: 100%; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s, background .2s; }
.admin-main input::placeholder, .admin-main textarea::placeholder { color: var(--muted); opacity: .75; }
.admin-main input:not([type="hidden"]):hover, .admin-main select:hover, .admin-main textarea:hover { border-color: var(--primary); }
.admin-main input:not([type="hidden"]):focus, .admin-main select:focus, .admin-main textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.admin-main input:disabled, .admin-main select:disabled, .admin-main textarea:disabled { cursor: not-allowed; opacity: .6; background: var(--surface-2); }
.admin-main input[aria-invalid="true"], .admin-main .is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(var(--danger-rgb), .12); }
.admin-main input[type="checkbox"], .admin-main input[type="radio"] { width: auto; min-height: auto; padding: 0; }
.admin-main input[type="file"] { padding: 8px; }

/* ============ Flash / Alerts ============ */
.flash {
    display: flex; align-items: center; gap: 11px;
    padding: 13px 15px; border-radius: var(--radius-sm); margin-bottom: 12px; font-size: 14px; font-weight: 600;
    box-shadow: var(--shadow-sm); border: 1px solid transparent; animation: slideDown .35s ease;
}
.flash::before { content: ""; width: 4px; align-self: stretch; border-radius: 4px; background: currentColor; opacity: .9; }
.flash-success { background: var(--success-soft); color: var(--success-dark); border-color: rgba(var(--success-rgb),.2); }
.flash-error { background: var(--danger-soft); color: var(--danger); border-color: rgba(var(--danger-rgb),.2); }
.flash-info { background: var(--info-soft); color: var(--info); }
.flash-warning { background: var(--accent-soft); color: var(--accent-dark); }
.flash .spacer { flex: 1; }
.flash-close { background: none; border: none; font-size: 20px; cursor: pointer; color: inherit; line-height: 1; opacity: .7; }
.flash-close:hover { opacity: 1; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.fee-conversion { margin: 12px 0 16px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); }
.fee-conversion .info-row { padding: 7px 0; }
.fee-conversion .info-row + .info-row { border-top: 1px solid var(--border); }
.copy-detail { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; }
.copy-detail + .copy-detail { border-top: 1px solid var(--border); }
.copy-detail-value { display: block; margin-top: 2px; word-break: break-word; }
.membership-copy-detail { align-items: flex-start; }
.membership-detail-copy { min-width: 0; flex: 1; }
.membership-detail-copy strong { display: block; color: var(--text); font-size: 13px; }
.membership-copy-detail .copy-detail-value { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.copy-payment-detail { flex: 0 0 auto; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.copy-payment-detail[data-copied="true"] { color: var(--success); border-color: var(--success); }
@media (max-width: 480px) {
  .membership-copy-detail { gap: 8px; }
  .copy-payment-detail { min-width: 76px; }
}

/* Floating dashboard support */
.floating-help-tab { position: fixed; right: 18px; bottom: 28px; z-index: 80; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 12px 16px; border: 1px solid rgba(220, 38, 38, .35); border-radius: 999px; background: var(--surface); color: #dc2626; box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 0 0 0 rgba(220, 38, 38, .35); font-weight: 800; text-decoration: none; animation: help-pulse 5s ease-in-out infinite; }
.floating-help-tab:hover { color: #b91c1c; border-color: #dc2626; transform: translateY(-2px); }
.floating-help-tab:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
@keyframes help-pulse { 0%, 72%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 0 0 0 rgba(220,38,38,.28); } 78% { box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 0 0 10px rgba(220,38,38,0); } 84% { box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 0 0 0 rgba(220,38,38,0); } }
@media (prefers-reduced-motion: reduce) { .floating-help-tab { animation: none; } }

/* Support */
.support-hero { display: flex; align-items: center; gap: 16px; padding: 20px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--primary-soft), var(--surface)); }
.support-hero h1 { margin: 0 0 5px; font-size: clamp(22px, 4vw, 30px); }
.support-hero p { margin: 0; max-width: 560px; }
.support-hero-icon, .support-contact-icon { display: grid; place-items: center; flex: 0 0 auto; color: var(--primary); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.support-hero-icon { width: 58px; height: 58px; }
.support-response { display: flex; align-items: center; gap: 8px; width: fit-content; padding: 9px 12px; margin-bottom: 22px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; }
.support-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.support-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.support-contact-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.support-contact-card:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.support-contact-card strong, .support-contact-card small { display: block; }
.support-contact-card small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.support-contact-icon { width: 42px; height: 42px; border-radius: 12px; }
.support-text-icon { font-size: 11px; font-weight: 800; letter-spacing: -.02em; }
.support-arrow { margin-left: auto; color: var(--primary); font-size: 18px; }
.support-faq-card { margin-bottom: 16px; }
.support-faq-list details { border-top: 1px solid var(--border); }
.support-faq-list details:first-child { border-top: 0; }
.support-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; cursor: pointer; list-style: none; font-weight: 700; }
.support-faq-list summary::-webkit-details-marker { display: none; }
.support-faq-list summary::after { content: '+'; color: var(--primary); font-size: 20px; font-weight: 400; }
.support-faq-list details[open] summary::after { content: '−'; }
.support-faq-list p { max-width: 760px; margin: -4px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.support-note { display: flex; align-items: flex-start; gap: 9px; padding: 13px 14px; border-radius: var(--radius-md); background: var(--surface-2); color: var(--muted); font-size: 12px; line-height: 1.5; }
.support-note svg { flex: 0 0 auto; color: var(--primary); margin-top: 1px; }
@media (max-width: 600px) {
  .floating-help-tab { right: 12px; bottom: 86px; min-height: 44px; padding: 10px 13px; font-size: 13px; }
  .support-hero { align-items: flex-start; padding: 16px; }
  .support-hero-icon { width: 48px; height: 48px; }
  .support-contact-grid { grid-template-columns: 1fr; }
  .support-response { width: 100%; border-radius: var(--radius-md); }
}

/* Searchable bank/provider selector */
.searchable-select { position: relative; }
.searchable-select .input { width: 100%; }
.search-options { display: none; position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% - 4px); max-height: 220px; overflow-y: auto; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.searchable-select.is-open .search-options { display: grid; gap: 2px; }
.search-option { border: 0; background: transparent; color: var(--text); text-align: left; padding: 10px 11px; border-radius: var(--radius-xs); cursor: pointer; font: inherit; font-size: 13px; }
.search-option:hover, .search-option:focus-visible { background: var(--primary-soft); color: var(--primary); outline: none; }
.search-option[hidden] { display: none; }

/* Toasts */
.toast-stack { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; width: calc(100% - 32px); max-width: 400px; pointer-events: none; }
.toast { pointer-events: auto; background: var(--surface); color: var(--text); border-radius: var(--radius-sm); padding: 13px 14px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; display: flex; align-items: flex-start; gap: 11px; border: 1px solid var(--border); border-left: 4px solid var(--primary); transition: opacity .26s ease, transform .26s ease; animation: slideDown .3s ease; }
.toast .toast-ico { flex-shrink: 0; display: grid; place-items: center; margin-top: 1px; color: var(--primary); }
.toast .toast-msg { flex: 1; line-height: 1.45; }
.toast .toast-close { flex-shrink: 0; background: none; border: none; cursor: pointer; color: var(--muted); padding: 2px; border-radius: 7px; display: grid; place-items: center; }
.toast .toast-close:hover { color: var(--text); background: var(--surface-2); }
.toast.success, .toast.toast-success { border-left-color: var(--success); }
.toast.toast-success .toast-ico { color: var(--success); }
.toast.error, .toast.toast-error { border-left-color: var(--danger); }
.toast.toast-error .toast-ico { color: var(--danger); }
.toast.toast-warning { border-left-color: var(--warning, #d97706); }
.toast.toast-warning .toast-ico { color: var(--warning, #d97706); }
.toast.toast-info { border-left-color: var(--primary); }
.toast.toast-info .toast-ico { color: var(--primary); }

/* Custom confirm dialog */
.tk-dialog-overlay { position: fixed; inset: 0; z-index: 320; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s ease; }
.tk-dialog-overlay.open { opacity: 1; }
.tk-dialog { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px 20px; box-shadow: var(--shadow-lg); text-align: center; transform: translateY(10px) scale(.97); transition: transform .22s ease; }
.tk-dialog-overlay.open .tk-dialog { transform: none; }
.tk-dialog-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin: 0 auto 14px; }
.tk-dialog-ico-primary { background: var(--primary-soft); color: var(--primary); }
.tk-dialog-ico-danger { background: var(--danger-soft); color: var(--danger); }
.tk-dialog-title { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.tk-dialog-msg { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0 0 20px; }
.tk-dialog-actions { display: flex; gap: 10px; }
.tk-dialog-actions .btn { flex: 1; }

/* Toggle switch (admin settings) */
.toggle-field { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.toggle-field-text { display: flex; flex-direction: column; gap: 4px; }
.toggle-field-label { font-weight: 700; font-size: 14px; }
.switch { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { width: 50px; height: 28px; border-radius: 999px; background: var(--border-strong); transition: background .2s; display: block; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked + .switch-track { background: var(--primary); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(22px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Withdrawal fee section (withdraw page) */
.fee-section { margin: 4px 0 8px; }
.fee-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.fee-divider::before, .fee-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.fee-callout { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 16px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary-dark, var(--primary)); border: 1px solid rgba(var(--primary-rgb), .25); margin-bottom: 12px; }
.fee-callout-label { font-size: 12px; font-weight: 600; opacity: .85; }
.fee-callout-amount { font-size: 24px; font-weight: 800; line-height: 1.1; }
.fee-label { display: block; font-size: 13px; font-weight: 700; margin: 6px 0 8px; }
.method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 380px) { .method-grid { grid-template-columns: 1fr; } }
.dz-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.upload-dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 156px; padding: 24px 16px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--surface-2); color: var(--muted); text-align: center; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.upload-dropzone:hover, .upload-dropzone.dragover, .upload-dropzone:focus-within { border-color: var(--primary); background: var(--primary-soft); color: var(--text); }
.upload-dropzone strong { color: var(--text); font-size: 14px; }
.upload-dropzone small { font-size: 11px; }
.upload-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface); color: var(--primary); font-size: 25px; font-weight: 800; }


/* ============ Auth ============ */
.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 18px; position: relative; overflow: hidden;
    background: radial-gradient(1100px 520px at 80% -10%, rgba(var(--secondary-rgb),.18), transparent 60%), radial-gradient(900px 500px at 10% 0%, rgba(var(--primary-rgb),.22), transparent 55%), var(--bg); }
.auth-body::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(var(--primary-rgb),.08) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000, transparent 70%); pointer-events: none; }
.auth-shell { width: 100%; max-width: 430px; position: relative; z-index: 1; }
.auth-brand { display: flex; align-items: center; gap: 11px; justify-content: center; margin-bottom: 22px; }
.brand-mark { width: 46px; height: 46px; border-radius: 14px; background: var(--hero-grad); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: 23px; box-shadow: var(--shadow-primary); }
.brand-mark.sm { width: 32px; height: 32px; font-size: 16px; border-radius: 10px; }
.brand-name { font-size: 23px; font-weight: 800; letter-spacing: -.5px; }
.auth-card { background: var(--surface); border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.auth-card h1 { font-size: 25px; margin-bottom: 5px; }
.auth-card .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--primary); font-weight: 700; }

/* ============ App shell ============ */
.app-body { max-width: 600px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: 96px; position: relative; }
.app-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); }
.app-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; }
.header-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.3px; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; color: var(--text); display: grid; place-items: center; padding: 9px; border-radius: 11px; background: none; border: none; cursor: pointer; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--surface-2); color: var(--primary); }
.header-bell { position: relative; color: var(--text); display: grid; place-items: center; padding: 9px; border-radius: 11px; transition: background .2s; }
.header-bell:hover { background: var(--surface-2); }
.badge-dot { position: absolute; top: 1px; right: 1px; background: var(--danger); color: #fff; font-size: 10px;
    font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--surface); }
.app-main { padding: 18px 16px; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.impersonate-bar { background: var(--accent); color: #3a2600; text-align: center; padding: 9px; font-size: 13px; font-weight: 700; }
.impersonate-bar a { text-decoration: underline; font-weight: 800; }

/* ============ 6. Bottom nav ============ */
.bottom-nav {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 600px;
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 9px 6px calc(9px + env(safe-area-inset-bottom)); z-index: 30; box-shadow: 0 -6px 24px rgba(16,24,40,.06);
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 700; transition: color .2s; padding-top: 2px; }
.nav-item svg { transition: transform .2s; }
.nav-item.active { color: var(--primary); background: var(--primary-soft); border-radius: var(--radius-xs); }
  .nav-item.active svg { transform: translateY(-1px); stroke-width: 2.4; }
  .nav-item.active:not(.nav-center)::after { content: ""; width: 4px; height: 4px; margin-top: -1px; border-radius: 50%; background: var(--primary); }
.nav-center { position: relative; }
.nav-center-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--hero-grad); color: #fff;
    display: grid; place-items: center; margin-top: -28px; box-shadow: 0 10px 22px rgba(var(--primary-rgb),.45); border: 4px solid var(--surface); transition: transform .2s; }
.nav-center:active .nav-center-btn { transform: scale(.94); }
.nav-center.active .nav-center-btn { background: var(--hero-grad); color: #fff; }

/* ============ 7. Cards & layout ============ */
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 16px; border: 1px solid var(--border); }
.card-title { font-size: 16px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; letter-spacing: -.2px; }
.card-title a { font-size: 13px; font-weight: 700; color: var(--primary); }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); font-weight: 800; margin: 4px 2px 11px; }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 12px; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.text-muted { color: var(--muted); } .text-sm { font-size: 13px; } .text-center { text-align: center; }

/* ============ 8. Balance hero ============ */
.hero {
    position: relative; overflow: hidden;
    background: var(--hero-grad);
    color: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-primary); margin-bottom: 18px;
}
.hero::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.12); top: -110px; right: -70px; }
.hero::before { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.08); bottom: -70px; left: -30px; }
.hero > * { position: relative; z-index: 1; }
.hero .greeting { font-size: 14.5px; opacity: .9; font-weight: 600; }
.hero .balance-label { font-size: 13px; opacity: .82; margin-top: 12px; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.hero .balance { font-size: 38px; font-weight: 800; letter-spacing: -1.5px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.hero .balance-sub { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.16); padding: 4px 10px; border-radius: 999px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 18px; }
.hero-stat { background: rgba(255,255,255,.14); border-radius: 14px; padding: 11px 12px; backdrop-filter: blur(4px); }
.hero-stat .v { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-stat .k { font-size: 11px; opacity: .85; font-weight: 600; }

/* ============ Stat tiles ============ */
.stat-tile { background: var(--surface); border-radius: var(--radius); padding: 17px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.stat-tile .v { font-size: 21px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat-tile .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat-tile.accent { background: var(--accent-soft); border-color: rgba(var(--accent-rgb),.25); }
.stat-tile.accent .v { color: var(--accent-dark); }
.stat-tile.green { background: var(--success-soft); border-color: rgba(var(--success-rgb),.22); }
.stat-tile.green .v { color: var(--success-dark); }

/* ============ Quick actions ============ */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick { display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--surface);
    border-radius: var(--radius-sm); padding: 15px 6px; box-shadow: var(--shadow-sm); font-size: 12px; font-weight: 700; text-align: center; border: 1px solid var(--border); transition: transform .16s, box-shadow .2s; }
.quick:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.quick .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--primary-soft); color: var(--primary);
    display: grid; place-items: center; }
.quick:nth-child(2) .ico { background: var(--secondary-soft); color: var(--secondary); }
.quick:nth-child(3) .ico { background: var(--success-soft); color: var(--success-dark); }
.quick:nth-child(4) .ico { background: var(--accent-soft); color: var(--accent-dark); }

/* Progress ring */
.ring-wrap { display: flex; align-items: center; gap: 14px; }
.ring { --val: 0; width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
    background: conic-gradient(var(--primary) calc(var(--val) * 1%), var(--surface-3) 0); display: grid; place-items: center; }
.ring::after { content: attr(data-label); width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--text); }
.progress-track { display: flex; flex-direction: column; gap: 5px; }
.progress-track .pt-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }

/* ============ 10. Badges & status ============ */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: -.01em; }
.badge-pending, .badge-warn { background: var(--accent-soft); color: var(--accent-dark); }
.badge-approved, .badge-active, .badge-paid, .badge-rewarded, .badge-ok { background: var(--success-soft); color: var(--success-dark); }
.badge-rejected, .badge-expired, .badge-banned, .badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-none { background: var(--surface-3); color: var(--muted); }
.badge-primary { background: var(--primary-soft); color: var(--primary-dark); }

/* ============ Lists ============ */
.list-item { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: none; }
.list-item .li-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--primary); flex-shrink: 0; }
.list-item .li-ico.credit { background: var(--success-soft); color: var(--success-dark); }
.list-item .li-ico.debit { background: var(--danger-soft); color: var(--danger); }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-weight: 700; font-size: 14px; }
.list-item .li-sub { font-size: 12px; color: var(--muted); }
.list-item .li-amt { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.li-amt.credit { color: var(--success); } .li-amt.debit { color: var(--danger); }

/* ============ Empty state ============ */
.empty { text-align: center; padding: 40px 18px; color: var(--muted); }
.empty .empty-ico { width: 64px; height: 64px; border-radius: 20px; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--primary); }
.empty svg { opacity: .9; }
.empty h3 { font-size: 16px; color: var(--text); margin-bottom: 5px; }
.empty p { font-size: 13.5px; }

/* ============ 11. Membership / tier cards ============ */
.tier { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); border: 1.5px solid var(--border); position: relative; transition: transform .16s, box-shadow .2s; }
.tier:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tier.featured { border-color: var(--primary); box-shadow: var(--shadow-primary); }
.tier.featured::before { content: "Popular"; position: absolute; top: 14px; right: 14px; background: var(--hero-grad); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 11px; border-radius: 999px; letter-spacing: .02em; }
.tier .tier-name { font-size: 18px; font-weight: 800; }
.tier .tier-price { font-size: 30px; font-weight: 800; color: var(--primary); margin: 8px 0; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.tier .tier-price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.tier ul { list-style: none; margin: 14px 0; }
.tier ul li { font-size: 13.5px; padding: 6px 0; display: flex; gap: 9px; align-items: center; color: var(--text); }
.tier ul li svg { color: var(--success); flex-shrink: 0; }

/* Payment method selector */
.method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.method-opt { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s, background .2s; background: var(--surface); }
.method-opt:hover { border-color: var(--primary); }
.method-opt.selected, .method-opt input:checked + * { border-color: var(--primary); }
.method-opt.selected { background: var(--primary-soft); border-color: var(--primary); }
.method-opt .m-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); flex-shrink: 0; }
.method-opt .m-name { font-weight: 700; font-size: 14px; }
.method-opt .m-sub { font-size: 12px; color: var(--muted); }

/* Upload dropzone */
.dropzone { border: 2px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 26px 18px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; background: var(--surface-2); }
.dropzone:hover, .dropzone.dragover { border-color: var(--primary); background: var(--primary-soft); }
.dropzone .dz-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto 12px; }
.dropzone .dz-title { font-weight: 700; font-size: 14px; }
.dropzone .dz-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.dz-preview { margin-top: 12px; display: none; }
.dz-preview img { max-height: 180px; border-radius: var(--radius-sm); margin: 0 auto; box-shadow: var(--shadow-sm); }
.dz-filename { font-size: 13px; font-weight: 600; margin-top: 8px; color: var(--success-dark); }

/* ============ Tabs / segmented ============ */
.segment { display: flex; background: var(--surface-2); border-radius: var(--radius-sm); padding: 5px; margin-bottom: 16px; border: 1px solid var(--border); }
.segment a, .segment button { flex: 1; text-align: center; padding: 10px; border-radius: 9px; font-size: 14px; font-weight: 700;
    color: var(--muted); background: none; border: none; cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
.segment a.active, .segment button.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }

/* ============ Stars ============ */
.stars { display: flex; gap: 6px; }
.stars button { background: none; border: none; cursor: pointer; padding: 2px; color: var(--border-strong); transition: color .15s, transform .15s; }
.stars button.on { color: var(--accent); }
.stars button:hover { transform: scale(1.15); }
.stars svg { width: 32px; height: 32px; }

/* ============ Modal ============ */
.modal-overlay { position: fixed; inset: 0; background: rgba(8,12,24,.55); backdrop-filter: blur(3px); display: none; align-items: flex-end; justify-content: center; z-index: 60; }
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--surface); width: 100%; max-width: 600px; border-radius: 24px 24px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto; animation: slideUp .28s cubic-bezier(.2,.8,.2,1); }
@keyframes slideUp { from { transform: translateY(30px); } to { transform: none; } }
.modal h3 { font-size: 19px; margin-bottom: 4px; }
.modal .modal-sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.modal-handle { width: 42px; height: 4px; border-radius: 4px; background: var(--border-strong); margin: 0 auto 16px; }

.reaction-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.reaction-option { position: relative; display: inline-flex; align-items: center; gap: 6px; min-width: 92px; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.reaction-option:hover { border-color: var(--primary); transform: translateY(-1px); }
.reaction-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.reaction-option input { position: absolute; opacity: 0; pointer-events: none; }
.reaction-option span { font-size: 19px; line-height: 1; }
.reaction-option small { font-size: 12px; font-weight: 700; }

/* ============ 9. Video ============ */
.video-wrap { border-radius: var(--radius-sm); overflow: hidden; background: #000; margin-bottom: 12px; }
  .video-wrap video, .video-wrap iframe { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; }
  .video-wrap iframe { background: #000; }
.progress { height: 9px; background: var(--surface-3); border-radius: 5px; overflow: hidden; margin: 10px 0; }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width .3s; border-radius: 5px; }

/* task cards */
.task-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); overflow: hidden; margin-bottom: 14px; transition: transform .16s, box-shadow .2s; }
.task-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.task-thumb { position: relative; aspect-ratio: 16/9; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.task-thumb .play { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--primary); display: grid; place-items: center; box-shadow: var(--shadow); }
.task-thumb .reward-chip { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #3a2600; font-weight: 800; font-size: 13px; padding: 4px 11px; border-radius: 999px; }
.task-thumb .dur-chip { position: absolute; bottom: 10px; right: 10px; background: rgba(8,12,24,.7); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.task-body { padding: 14px 16px; }
.task-body .t-title { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.task-body .t-sub { font-size: 12.5px; color: var(--muted); }

/* ============ PIN inputs ============ */
.pin-row { display: flex; gap: 10px; justify-content: center; margin: 16px 0; }
.pin-row input { width: 50px; height: 58px; text-align: center; font-size: 24px; font-weight: 800; border: 1.5px solid var(--border-strong); border-radius: 14px; background: var(--surface); color: var(--text); }
.pin-row input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }

/* ============ 13. Tables (admin) ============ */
.table-wrap, .table-scroll { overflow-x: auto; border-radius: var(--radius-sm); }
table.data, table.table, table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td,
table.table th, table.table td,
table.data-table th, table.data-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--border); }
table.data th, table.table th, table.data-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); white-space: nowrap; font-weight: 800; background: var(--surface-2); }
table.data td { white-space: nowrap; }
table.data tbody tr, table.table tbody tr, table.data-table tbody tr { transition: background .15s; }
table.data tr:hover td, table.table tbody tr:hover td, table.data-table tbody tr:hover td { background: var(--surface-2); }
.row-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; white-space: nowrap; }

/* ============ Admin shell ============ */
.admin-body { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar { width: 250px; background: var(--sidebar-grad); color: #c7cfe6; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; flex-shrink: 0; }
.admin-sidebar .brand-name { color: #fff; font-size: 19px; }
.admin-sidebar .admin-brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 20px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-nav a { display: flex; align-items: center; gap: 11px; padding: 12px 13px; border-radius: 12px; color: #97a2c2; font-size: 14px; font-weight: 700; margin-bottom: 3px; transition: background .18s, color .18s; }
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.active { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(var(--primary-rgb),.4); }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; }
.admin-topbar h1 { font-size: 19px; }
.admin-topbar .who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.admin-content { padding: 24px; animation: fadeUp .4s ease; }
.admin-mobile-nav { display: none; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.kpi .v { font-size: 27px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi .k { font-size: 13px; color: var(--muted); font-weight: 600; }

.divider { height: 1px; background: var(--border); margin: 16px 0; border: none; }
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--muted); }
.info-row .v { font-weight: 700; text-align: right; }
.copy-box { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 13px; word-break: break-all; border: 1px solid var(--border); }
.pre-block { white-space: pre-wrap; background: var(--surface-2); border-radius: var(--radius-sm); padding: 13px; font-size: 13px; border: 1px solid var(--border); }

/* ============ 14. Utilities ============ */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 23px; }
.page-head .muted { font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.text-xs { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.ta-right { text-align: right; }
.ta-center { text-align: center; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.cell-strong { font-weight: 800; }
.link { color: var(--primary); font-weight: 700; cursor: pointer; background: none; border: none; font: inherit; padding: 0; }
.link:hover { text-decoration: underline; }
.inline { display: inline; }

.pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #3a2600; font-size: 11px; font-weight: 800; margin-left: 4px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; border: 1px solid var(--border); }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.card-head h2 { font-size: 16px; }

.tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { padding: 9px 15px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; box-shadow: var(--shadow-sm); border: 1px solid var(--border); display: inline-flex; align-items: center; transition: background .18s, color .18s; }
.tab:hover { color: var(--primary); }
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 8px 18px rgba(var(--primary-rgb),.32); }
.tab.active .pill { background: rgba(255,255,255,.25); color: #fff; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filter-bar .input, .filter-bar select { width: auto; min-width: 180px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--surface); border-radius: var(--radius); padding: 19px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); position: relative; overflow: hidden; }
.stat-card .stat-ico { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.stat-value { font-size: 26px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; font-weight: 600; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }

.admin-grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.detail-list .info-row .v { max-width: 60%; word-break: break-word; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.export-row { display: flex; flex-wrap: wrap; gap: 10px; }
.wallet-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.attention-list .list-item .li-title a { color: var(--primary); }
.audit-mini .audit-action, .audit-action { font-family: var(--mono); font-size: 12px; color: var(--primary-dark); font-weight: 700; }

.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-close { background: none; border: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); }

/* Bar chart (signups) */
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 36px; background: linear-gradient(180deg, var(--primary), var(--secondary)); border-radius: 7px 7px 0 0; min-height: 4px; transition: height .5s cubic-bezier(.2,.8,.2,1); }
.bar-value { font-size: 12px; font-weight: 800; }
.bar-label { font-size: 11px; color: var(--muted); font-weight: 600; }

/* Theme toggle switch */
.theme-toggle { background: none; border: none; cursor: pointer; color: var(--muted); padding: 9px; border-radius: 11px; display: grid; place-items: center; transition: background .2s, color .2s; }
.theme-toggle:hover { background: var(--surface-2); color: var(--primary); }
html[data-theme="dark"] .theme-toggle .sun { display: block; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }

/* ============ 15. Responsive ============ */
@media (max-width: 860px) {
    .admin-sidebar { display: none; }
    .admin-mobile-nav { display: flex; gap: 4px; overflow-x: auto; white-space: nowrap; background: var(--sidebar-grad); padding: 10px 12px; position: sticky; top: 0; z-index: 11; }
    .admin-mobile-nav::-webkit-scrollbar { display: none; }
    .admin-mobile-nav a { display: inline-block; color: #c7cfe6; padding: 8px 13px; border-radius: 9px; font-size: 13px; font-weight: 700; }
    .admin-mobile-nav a.active { background: var(--primary); color: #fff; }
    .kpi-grid, .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-grid-2 { grid-template-columns: 1fr; }
    .wallet-figures { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .admin-content { padding: 18px 16px; }
}
@media (max-width: 420px) {
    .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .quick { padding: 12px 4px; font-size: 11px; }
    .quick .ico { width: 40px; height: 40px; }
    .hero .balance { font-size: 33px; }
    .method-grid { grid-template-columns: 1fr; }
    .kpi-grid, .stat-grid { grid-template-columns: 1fr; }
    .app-main { padding: 14px 13px; }
}
@media (min-width: 992px) {
    .app-body { max-width: 720px; }
    .bottom-nav { max-width: 720px; }
}


/* ============ Public landing page ============ */

/* ========================================================================
   15. PUBLIC LANDING PAGE
   ------------------------------------------------------------------------
   Scoped exclusively to .landing-body and landing-* components so the
   public homepage cannot accidentally override the authenticated app,
   admin area, or authentication layouts.
   ======================================================================== */

/* 15.1 Landing foundation */
.landing-body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--bg);
}

.landing-body main {
    min-width: 0;
}

.landing-container {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.landing-body .btn {
    flex: 0 0 auto;
}

.landing-body a {
    -webkit-tap-highlight-color: transparent;
}

/* 15.2 Header and navigation */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(16, 24, 40, .08);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

html[data-theme="dark"] .landing-header {
    border-bottom-color: rgba(255, 255, 255, .08);
    background: rgba(20, 27, 46, .94);
}

.landing-header-inner {
    width: min(1160px, calc(100% - 40px));
    min-height: 74px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--text-strong);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1;
}

.landing-brand:hover {
    color: var(--primary);
}

.landing-brand-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    box-shadow: var(--shadow-sm);
}

/* =========================================================
   LANDING NAVIGATION
   ========================================================= */

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}

.landing-nav > a:not(.btn) {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 11px;

    border-radius: 9px;

    color: var(--muted);

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;

    text-decoration: none;

    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}

.landing-nav > a:not(.btn):hover,
.landing-nav > a:not(.btn):focus-visible {
    color: var(--primary);
    background: var(--primary-soft);
}

.landing-nav > a:not(.btn):focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.landing-nav-cta {
    margin-left: 5px;
}


/* =========================================================
   LANDING MOBILE MENU BUTTON
   ========================================================= */

.landing-menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    padding: 0;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface);
    color: var(--text);

    cursor: pointer;

    transition:
        border-color 0.18s ease,
        color 0.18s ease,
        background-color 0.18s ease;
}

.landing-menu-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.landing-menu-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.landing-menu-toggle span {
    display: block;

    width: 18px;
    height: 2px;

    margin: 3px 0;

    border-radius: 999px;

    background: currentColor;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


/* =========================================================
   HAMBURGER → CLOSE ICON
   ========================================================= */

.landing-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.landing-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.landing-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}


/* =========================================================
   MOBILE LANDING NAVIGATION
   ========================================================= */

@media (max-width: 820px) {

    .landing-header-inner {
        position: relative;
    }

    /*
     * Show hamburger.
     */
    .landing-menu-toggle {
        display: inline-flex;
        flex-shrink: 0;

        position: relative;
        z-index: 1002;
    }

    /*
     * Hide navigation by default.
     */
    .landing-nav {
        display: none;

        position: absolute;

        top: calc(100% + 10px);
        left: 0;
        right: 0;

        z-index: 1001;

        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        gap: 4px;

        padding: 10px;

        border: 1px solid var(--border);
        border-radius: 14px;

        background: var(--surface);

        box-shadow: var(--shadow-lg, 0 16px 40px rgba(15, 23, 42, 0.12));
    }

    /*
     * THIS is the important rule.

     * Your JavaScript adds .is-open to .landing-nav.
     * This rule makes that state visible.
     */
    .landing-nav.is-open {
        display: flex;
    }

    /*
     * Mobile navigation links.
     */
    .landing-nav > a:not(.btn) {
        display: flex;

        width: 100%;
        min-height: 46px;

        align-items: center;
        justify-content: flex-start;

        padding: 11px 13px;

        border-radius: 9px;

        font-size: 14px;
    }

    /*
     * Mobile CTA.
     */
    .landing-nav .landing-nav-cta,
    .landing-nav > .btn {
        display: flex;

        width: 100%;
        min-height: 46px;

        align-items: center;
        justify-content: center;

        margin: 4px 0 0;

        text-align: center;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .landing-nav {
        top: calc(100% + 8px);

        padding: 8px;

        border-radius: 12px;
    }

    .landing-nav > a:not(.btn) {
        min-height: 44px;

        padding: 10px 12px;

        font-size: 13px;
    }

    .landing-menu-toggle {
        width: 42px;
        height: 42px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .landing-nav > a:not(.btn),
    .landing-menu-toggle,
    .landing-menu-toggle span {
        transition: none;
    }
}

/* 15.3 Hero */
.landing-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 86px 0 96px;
    background:
        radial-gradient(circle at 78% 28%, var(--primary-soft) 0, transparent 31%),
        var(--bg);
}

.landing-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 340px;
    height: 340px;
    right: -150px;
    bottom: -190px;
    border-radius: 50%;
    background: var(--accent-soft);
    opacity: .55;
    pointer-events: none;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
    align-items: center;
    gap: 64px;
}

.landing-hero-copy {
    min-width: 0;
}

.landing-eyebrow,
.landing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.landing-eyebrow {
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    letter-spacing: .035em;
    text-transform: none;
}

.landing-eyebrow-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px var(--success-soft);
}

.landing-hero h1 {
    max-width: 720px;
    margin: 20px 0 18px;
    color: var(--text-strong);
    font-size: clamp(42px, 5.6vw, 68px);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.02;
}

.landing-hero h1 span {
    color: var(--primary);
}

.landing-hero-copy > p {
    max-width: 630px;
    color: var(--muted);
    font-size: clamp(16px, 1.65vw, 18px);
    line-height: 1.75;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    margin-top: 28px;
}

.landing-trust-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 19px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.landing-dot-separator {
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
    border-radius: 50%;
    background: var(--border-strong);
}

/* 15.4 Hero product/dashboard preview */
.landing-hero-visual {
    position: relative;
    min-height: 450px;
    display: grid;
    place-items: center;
}

.landing-preview {
    position: relative;
    z-index: 2;
    width: min(100%, 475px);
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    transform: rotate(1deg);
}

.landing-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(var(--primary-rgb), .10), transparent 48%);
    pointer-events: none;
}

.landing-preview-top,
.landing-preview-brand,
.landing-preview-status,
.landing-preview-activity > div {
    display: flex;
    align-items: center;
}

.landing-preview-top {
    position: relative;
    justify-content: space-between;
    gap: 12px;
}

.landing-preview-brand {
    gap: 9px;
    min-width: 0;
    color: var(--text-strong);
    font-size: 13px;
}

.landing-preview-status {
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--success-soft);
    color: var(--success-dark);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.landing-preview-status i {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--success);
}

.landing-preview-balance {
    position: relative;
    padding: 30px 0 24px;
    border-bottom: 1px solid var(--border);
}

.landing-preview-balance span,
.landing-mini-card small,
.landing-preview-activity small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.landing-preview-balance strong {
    display: block;
    margin-top: 3px;
    color: var(--text-strong);
    font-size: 37px;
    letter-spacing: -.05em;
    line-height: 1.15;
}

.landing-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 16px;
}

.landing-mini-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface-2);
}

.landing-mini-card strong {
    display: block;
    margin-top: 8px;
    color: var(--text-strong);
    font-size: 13px;
}

.landing-mini-icon,
.landing-feature-icon,
.landing-category-icon {
    display: grid;
    place-items: center;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 12px;
}

.landing-mini-icon {
    width: 38px;
    height: 38px;
}

.landing-mini-icon.accent,
.landing-feature-icon.accent,
.landing-category-icon.accent {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.landing-preview-activity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 11px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
}

.landing-preview-activity > div {
    gap: 10px;
    min-width: 0;
}

.landing-preview-activity strong {
    display: block;
    color: var(--text-strong);
    font-size: 12px;
    line-height: 1.4;
}

.landing-activity-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    color: var(--primary);
    background: var(--primary-soft);
}

.landing-preview-arrow,
.landing-card-arrow {
    color: var(--primary);
    font-weight: 800;
}

.landing-preview-arrow {
    flex: 0 0 auto;
}

.landing-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.landing-orb-one {
    width: 260px;
    height: 260px;
    top: 18px;
    right: 0;
    background: var(--primary-soft);
    opacity: .8;
}

.landing-orb-two {
    width: 112px;
    height: 112px;
    bottom: 25px;
    left: 5%;
    background: var(--accent-soft);
    opacity: .75;
}

/* 15.5 Generic landing sections */
.landing-section {
    padding: 92px 0;
}

.landing-section-soft {
    background: var(--surface-2);
    border-block: 1px solid var(--border);
}

.landing-section-heading {
    max-width: 730px;
    margin: 0 auto 44px;
    text-align: center;
}

.landing-section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: none;
    text-align: left;
}

.landing-section-heading h2 {
    margin-top: 9px;
    color: var(--text-strong);
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -.045em;
    line-height: 1.08;
}

.landing-section-heading p {
    max-width: 650px;
    margin: 13px auto 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.landing-section-heading-row p {
    margin-left: 0;
}

/* 15.6 How it works */
.landing-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.landing-step {
    position: relative;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.landing-step-number {
    position: absolute;
    top: 18px;
    right: 18px;
    color: var(--border-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

.landing-step .landing-feature-icon {
    margin-bottom: 22px;
}

.landing-feature-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
}

.landing-step h3,
.landing-feature-card h3 {
    margin-bottom: 7px;
    color: var(--text-strong);
    font-size: 16px;
    line-height: 1.35;
}

.landing-step p,
.landing-feature-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* 15.7 Task categories and features */
.landing-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.landing-category-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 17px;
    min-width: 0;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.landing-category-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.landing-category-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
}

.landing-category-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.landing-category-card h3 {
    margin: 4px 0 7px;
    color: var(--text-strong);
    font-size: 20px;
    line-height: 1.25;
}

.landing-category-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.landing-card-arrow {
    font-size: 20px;
    line-height: 1;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.landing-feature-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.landing-feature-card .landing-feature-icon {
    margin-bottom: 18px;
}

/* 15.8 Membership */
.landing-membership-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    align-items: stretch;
}

.landing-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.landing-plan-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.landing-plan-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.landing-plan-name {
    padding-right: 70px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.landing-plan-price {
    margin: 8px 0 18px;
    color: var(--text-strong);
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.15;
}

.landing-plan-price small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
}

.landing-plan-card ul {
    display: grid;
    gap: 9px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.landing-plan-card li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.landing-plan-card li span {
    color: var(--success);
    font-weight: 900;
}

.landing-plan-card .btn {
    width: 100%;
    margin-top: auto;
}

.landing-empty-state {
    padding: 30px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    text-align: center;
}

/* 15.9 FAQ */
.landing-faq-wrap {
    display: grid;
    grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
    align-items: start;
    gap: 70px;
}

.landing-faq-wrap .landing-section-heading {
    margin: 0;
    text-align: left;
}

.landing-faq {
    min-width: 0;
    border-top: 1px solid var(--border);
}

.landing-faq details {
    border-bottom: 1px solid var(--border);
}

.landing-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 0;
    cursor: pointer;
    list-style: none;
    color: var(--text-strong);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
}

.landing-faq summary::-webkit-details-marker {
    display: none;
}

.landing-faq summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--primary);
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
}

.landing-faq details[open] summary::after {
    content: "−";
}

.landing-faq p {
    max-width: 720px;
    padding: 0 40px 20px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.landing-faq a {
    color: var(--primary);
    font-weight: 700;
}

/* 15.10 Final CTA */
.landing-cta {
    padding: 36px 0;
    border-block: 1px solid var(--border);
    background: var(--surface);
}

.landing-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.landing-cta h2 {
    margin-top: 5px;
    color: var(--text-strong);
    font-size: clamp(25px, 4vw, 35px);
    line-height: 1.15;
}

.landing-cta p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

/* 15.11 Footer */
.landing-footer {
    background: var(--text-strong);
    color: #fff;
}

.landing-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(130px, .8fr) minmax(130px, .8fr);
    gap: 70px;
    padding: 55px 0 45px;
}

.landing-footer-brand {
    color: #fff;
}

.landing-footer-brand:hover {
    color: #fff;
}

.landing-footer p {
    max-width: 390px;
    margin-top: 14px;
    color: #aeb7ca;
    font-size: 13px;
    line-height: 1.7;
}

.landing-footer h3 {
    margin-bottom: 13px;
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
}

.landing-footer-grid > div:not(:first-child) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.landing-footer-grid a:not(.landing-brand) {
    color: #aeb7ca;
    font-size: 12px;
    line-height: 1.5;
}

.landing-footer-grid a:not(.landing-brand):hover,
.landing-footer-grid a:not(.landing-brand):focus-visible {
    color: #fff;
}

.landing-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .10);
    padding: 17px 0;
    color: #8f99ad;
    font-size: 11px;
    line-height: 1.5;
}

/* 15.12 Responsive layout */
@media (max-width: 1080px) {
    .landing-hero-grid {
        gap: 44px;
    }

    .landing-membership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .landing-hero {
        padding: 70px 0 78px;
    }

    .landing-hero-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero-copy {
        max-width: 760px;
        margin-inline: auto;
        text-align: center;
    }

    .landing-hero-copy > p {
        margin-inline: auto;
    }

    .landing-actions,
    .landing-trust-row {
        justify-content: center;
    }

    .landing-hero-visual {
        min-height: 410px;
    }

    .landing-faq-wrap {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .landing-faq-wrap .landing-section-heading {
        max-width: 730px;
        margin-inline: auto;
        text-align: center;
    }

    .landing-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 820px) {
    .landing-header-inner {
        min-height: 68px;
    }

    .landing-menu-toggle {
        display: block;
    }

    .landing-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 20px;
        right: 20px;
        display: grid;
        gap: 3px;
        padding: 9px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: var(--surface);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-7px);
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    .landing-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .landing-nav > a:not(.btn) {
        min-height: 44px;
        padding: 11px 12px;
    }

    .landing-nav-cta {
        width: 100%;
        margin: 4px 0 0;
    }

    .landing-section-heading-row {
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .landing-container,
    .landing-header-inner {
        width: min(100% - 28px, 1160px);
    }

    .landing-hero {
        padding: 54px 0 62px;
    }

    .landing-hero h1 {
        font-size: clamp(36px, 11vw, 52px);
    }

    .landing-hero-visual {
        min-height: 350px;
    }

    .landing-preview {
        transform: none;
        padding: 18px;
        border-radius: 21px;
    }

    .landing-preview-balance {
        padding: 23px 0 18px;
    }

    .landing-preview-balance strong {
        font-size: 31px;
    }

    .landing-section {
        padding: 68px 0;
    }

    .landing-section-heading {
        margin-bottom: 34px;
    }

    .landing-section-heading-row {
        flex-direction: column;
    }

    .landing-section-heading-row .btn {
        align-self: flex-start;
    }

    .landing-category-grid,
    .landing-feature-grid,
    .landing-membership-grid {
        grid-template-columns: 1fr;
    }

    .landing-category-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .landing-card-arrow {
        grid-column: 2;
        justify-self: start;
    }

    .landing-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
        padding: 42px 0 35px;
    }

    .landing-footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .landing-container,
    .landing-header-inner {
        width: min(100% - 22px, 1160px);
    }

    .landing-brand {
        font-size: 18px;
    }

    .landing-brand-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .landing-hero h1 {
        font-size: 35px;
    }

    .landing-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-actions .btn {
        width: 100%;
    }

    .landing-trust-row {
        justify-content: center;
        text-align: center;
    }

    .landing-preview-grid {
        grid-template-columns: 1fr;
    }

    .landing-category-card {
        grid-template-columns: 1fr;
    }

    .landing-category-icon {
        width: 46px;
        height: 46px;
    }

    .landing-card-arrow {
        grid-column: auto;
    }

    .landing-faq summary {
        font-size: 14px;
    }

    .landing-faq p {
        padding-right: 0;
    }

    .landing-footer-grid {
        grid-template-columns: 1fr;
    }

    .landing-footer-grid > div:first-child {
        grid-column: auto;
    }
}

/* 15.13 Motion/accessibility */
@media (prefers-reduced-motion: reduce) {
    .landing-nav,
    .landing-menu-toggle span,
    .landing-category-card,
    .landing-nav > a:not(.btn) {
        transition: none;
    }

    .landing-category-card:hover {
        transform: none;
    }
}

@media (forced-colors: active) {
    .landing-preview,
    .landing-step,
    .landing-feature-card,
    .landing-category-card,
    .landing-plan-card,
    .landing-nav,
    .landing-menu-toggle {
        border: 1px solid CanvasText;
    }
}
