/* =====================================================================
   MyHostVault — customer dashboard + auth screens (+ shared with admin)
   Loaded after app.css (shares its tokens, buttons, forms, alerts).
   Design system: surface tokens (light + dark), aurora page background,
   glass top bar, dark gradient sidebar, gradient hero, glow status pills,
   stepper, motion (reveal, pulse), phone tab bar. No inline styles/scripts.
   ===================================================================== */

:root {
    --sidebar-w: 268px;
    --topbar-h: 64px;
    --tabbar-h: 64px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --dash-bg: #f1f4f9;

    --surface: #ffffff;
    --surface-2: #f6f8fb;
    --surface-3: #eef2f7;
    --page-bg: #f1f4f9;
    --line: rgba(15, 23, 42, 0.08);
    --line-strong: rgba(15, 23, 42, 0.16);
    --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -16px rgba(15, 23, 42, 0.22);
    --shadow-pop: 0 24px 60px -24px rgba(15, 23, 42, 0.4);
    --ring: 0 0 0 4px rgba(37, 99, 235, 0.14);

    --grad-primary: linear-gradient(135deg, #2563eb 0%, #4f46e5 60%, #7c3aed 100%);
    --grad-success: linear-gradient(135deg, #059669, #10b981);
    --grad-warning: linear-gradient(135deg, #d97706, #f59e0b);
    --grad-danger: linear-gradient(135deg, #dc2626, #f43f5e);
    --grad-hero: radial-gradient(120% 140% at 0% 0%, rgba(59, 130, 246, 0.55), transparent 55%), radial-gradient(90% 120% at 100% 0%, rgba(168, 85, 247, 0.5), transparent 55%), linear-gradient(135deg, #0b1f3a 0%, #111c44 55%, #1e1b4b 100%);
    --sidebar-bg: linear-gradient(180deg, #0b1f3a 0%, #0d2448 55%, #0f1d40 100%);

    --warning: #b45309;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    --info: #1d4ed8;
    --info-bg: #eff6ff;
    --whatsapp: #16a34a;
}

/* ---------- Dark theme (customer panel only; toggle in the top bar, falls back to the OS setting) ---------- */
html[data-theme="dark"] .customer-body { color-scheme: dark; }
html[data-theme="dark"] .customer-body,
html:not([data-theme="light"]) .customer-body.theme-auto-dark {
    --surface: #0f172a;
    --surface-2: #121c33;
    --surface-3: #18233d;
    --page-bg: #070b16;
    --line: rgba(148, 163, 184, 0.14);
    --line-strong: rgba(148, 163, 184, 0.3);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --navy: #f1f5f9;
    --border: var(--line);
    --border-strong: var(--line-strong);
    --bg-muted: #18233d;
    --primary-50: rgba(59, 130, 246, 0.14);
    --primary-100: rgba(59, 130, 246, 0.3);
    --success-bg: rgba(34, 197, 94, 0.14);
    --danger-bg: rgba(239, 68, 68, 0.14);
    --warning: #fbbf24;
    --warning-bg: rgba(245, 158, 11, 0.14);
    --warning-border: rgba(245, 158, 11, 0.32);
    --info: #93c5fd;
    --info-bg: rgba(59, 130, 246, 0.14);
    --success: #4ade80;
    --danger: #f87171;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 36px -16px rgba(0, 0, 0, 0.7);
    --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
    --ring: 0 0 0 4px rgba(96, 165, 250, 0.22);
    --primary: #60a5fa; --primary-600: #93c5fd;
    color: var(--text);
}
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .customer-body {
        --surface: #0f172a; --surface-2: #121c33; --surface-3: #18233d; --page-bg: #070b16;
        --line: rgba(148, 163, 184, 0.14); --line-strong: rgba(148, 163, 184, 0.3);
        --text: #e2e8f0; --text-muted: #94a3b8; --text-light: #64748b; --navy: #f1f5f9;
        --border: var(--line); --border-strong: var(--line-strong); --bg-muted: #18233d;
        --primary-50: rgba(59, 130, 246, 0.14); --primary-100: rgba(59, 130, 246, 0.3);
        --success-bg: rgba(34, 197, 94, 0.14); --danger-bg: rgba(239, 68, 68, 0.14);
        --warning: #fbbf24; --warning-bg: rgba(245, 158, 11, 0.14); --warning-border: rgba(245, 158, 11, 0.32);
        --info: #93c5fd; --info-bg: rgba(59, 130, 246, 0.14); --success: #4ade80; --danger: #f87171;
        --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 36px -16px rgba(0, 0, 0, 0.7);
        --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, 0.8); --ring: 0 0 0 4px rgba(96, 165, 250, 0.22);
        --primary: #60a5fa; --primary-600: #93c5fd;
        color: var(--text); color-scheme: dark;
    }
}
.customer-body input, .customer-body select, .customer-body textarea { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.customer-body .btn-outline { color: var(--navy); border-color: var(--line-strong); }
.customer-body .btn-outline:hover { background: var(--surface-3); border-color: var(--text-muted); }
.customer-body .btn-ghost { color: var(--navy); }
.customer-body .btn-ghost:hover { background: var(--surface-3); }
.customer-body .alert--success { background: var(--success-bg); color: var(--success); border-color: transparent; }
.customer-body .alert--danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.customer-body .alert--warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }
.customer-body .alert--warning .btn-primary { color: #fff; }
.customer-body .reveal-box { background: var(--warning-bg); border-color: var(--warning-border); color: var(--text); }
.customer-body code { color: var(--text); }
.customer-body .form__hint { color: var(--text-muted); }
.customer-body .form__field label { color: var(--navy); }

.brand__logo--on-dark { display: none; }
html[data-theme="dark"] .customer-body .brand__logo--on-light { display: none; }
html[data-theme="dark"] .customer-body .brand__logo--on-dark { display: inline-block; }
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .customer-body .brand__logo--on-light { display: none; }
    html:not([data-theme="light"]) .customer-body .brand__logo--on-dark { display: inline-block; }
}

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .reveal.is-inview { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.07s; }
.js .reveal[data-delay="2"] { transition-delay: 0.14s; }
.js .reveal[data-delay="3"] { transition-delay: 0.21s; }
.js .reveal[data-delay="4"] { transition-delay: 0.28s; }
@keyframes pulse-soft { 0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.35); } 50% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); } }
@keyframes float-orb { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-14px, 10px, 0) scale(1.08); } }
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

/* ---------- Auth screens ---------- */
.auth-body { background: var(--dash-bg); min-height: 100vh; }
.auth-wrap { max-width: 460px; margin: 0 auto; padding: 40px 20px 60px; }
.auth-brand { display: inline-flex; margin-bottom: 20px; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; box-shadow: var(--shadow-sm); }
.auth-card--wide { max-width: 640px; }
.auth-card__title { font-size: 1.5rem; margin-bottom: 6px; }
.auth-card__subtitle { color: var(--text-muted); margin-bottom: 20px; }
.auth-footer { text-align: center; color: var(--text-muted); margin-top: 18px; }
.auth-note { display: flex; gap: 8px; align-items: flex-start; background: var(--primary-50); color: var(--navy); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.93rem; margin-bottom: 16px; }
.auth-note .icon { color: var(--success); flex: none; margin-top: 3px; }
.auth-actions { margin-top: 20px; display: grid; gap: 12px; }
.form__row--between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.form__link { font-size: 0.93rem; }
.form__field--check label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.form__field--check input { margin-top: 4px; flex: none; width: 18px; height: 18px; }
.form__hint-inline { display: inline-block; margin-left: 10px; font-size: 0.9rem; }
.nav-toggle.is-open .nav-toggle__open { display: none; }
.nav-toggle.is-open .nav-toggle__close { display: block; }
.btn-sm { padding: 6px 12px; font-size: 0.86rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #991b1b; color: #fff; }
.btn-outline-danger { background: transparent; color: var(--danger); border-color: #fecaca; }
.btn-outline-danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 8px 20px -10px rgba(22, 163, 74, 0.7); }
.btn-whatsapp:hover { background: #15803d; color: #fff; transform: translateY(-1px); }
.icon--flip { transform: rotate(180deg); }

/* Premium primary button inside the customer panel */
.customer-body .btn-primary { background: var(--grad-primary); background-size: 200% 200%; border: 0; box-shadow: 0 10px 24px -12px rgba(79, 70, 229, 0.8); }
.customer-body .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(79, 70, 229, 0.9); animation: shimmer 1.6s linear infinite; }
.customer-body .btn { border-radius: 10px; }

/* ---------- Shell ---------- */
.dash-body { background: var(--dash-bg); }
.dash-body.nav-open { overflow: hidden; }
.customer-body {
    background-color: var(--page-bg);
    background-image: radial-gradient(60% 38% at 8% -6%, rgba(99, 102, 241, 0.16), transparent 60%), radial-gradient(45% 30% at 100% 0%, rgba(14, 165, 233, 0.14), transparent 60%), radial-gradient(40% 30% at 70% 100%, rgba(168, 85, 247, 0.08), transparent 60%);
    background-attachment: fixed;
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    color: var(--text);
}

.dash-topbar {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    height: var(--topbar-h); padding: 0 16px;
    background: #fff; border-bottom: 1px solid var(--border);
}
.customer-body .dash-topbar { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--line); }
.dash-topbar__left, .dash-topbar__right { display: flex; align-items: center; gap: 10px; }
.dash-topbar__link { color: var(--text-muted); font-weight: 500; font-size: 0.93rem; display: none; padding: 6px 10px; border-radius: 8px; }
.dash-topbar__link:hover { color: var(--navy); background: var(--surface-3); text-decoration: none; }
.dash-topbar__user { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); font-size: 0.93rem; min-width: 0; padding: 4px 8px 4px 4px; border-radius: 999px; }
.dash-topbar__user:hover { text-decoration: none; background: var(--surface-3); }
.dash-topbar__user .muted { display: none; }
.dash-topbar__name, .dash-topbar__logout { display: none; }
.dash-topbar .brand__name { font-size: 1.1rem; }
.topbar-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.topbar-pill--warning { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-border); }
.topbar-pill:hover { text-decoration: none; filter: brightness(0.97); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text-muted); cursor: pointer; transition: transform 0.2s var(--ease-out), background 0.2s; }
.theme-toggle:hover { color: var(--navy); background: var(--surface-3); transform: rotate(15deg); }
.theme-toggle__moon { display: none; }
html[data-theme="dark"] .theme-toggle__sun { display: none; }
html[data-theme="dark"] .theme-toggle__moon { display: inline; }
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .theme-toggle__sun { display: none; }
    html:not([data-theme="light"]) .theme-toggle__moon { display: inline; }
}

.avatar { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grad-primary); color: #fff; font-weight: 800; font-size: 1rem; flex: none; box-shadow: 0 6px 14px -6px rgba(79, 70, 229, 0.8); }
.avatar--sm { width: 30px; height: 30px; font-size: 0.85rem; }

.dash-shell { display: flex; min-height: calc(100vh - var(--topbar-h)); }

/* ---------- Sidebar ---------- */
.dash-sidebar {
    position: fixed; top: var(--topbar-h); bottom: 0; left: 0; z-index: 90;
    width: var(--sidebar-w);
    background: #fff; border-right: 1px solid var(--border);
    padding: 14px 12px 16px; overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s var(--ease-out);
    display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.dash-body.nav-open .dash-sidebar { transform: none; box-shadow: var(--shadow); }
.dash-nav { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; }
.dash-nav__heading { margin: 10px 12px 6px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); }
.dash-nav__link {
    display: flex; align-items: center; gap: 11px;
    width: 100%; padding: 10px 12px;
    border: 0; background: transparent; border-radius: 10px;
    color: var(--text); font-weight: 500; font-size: 0.94rem; text-align: left; cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.15s var(--ease-out);
}
.dash-nav__link .icon { color: var(--text-muted); flex: none; }
.dash-nav__link:hover { background: var(--bg-muted); text-decoration: none; }
.dash-nav__link.is-active { background: var(--primary-50); color: var(--primary); font-weight: 600; }
.dash-nav__link.is-active .icon { color: var(--primary); }
.dash-nav__count { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--warning); color: #fff; font-size: 0.72rem; font-weight: 800; text-align: center; }

/* Customer sidebar: dark gradient with glowing active item */
.customer-body .dash-sidebar { background: var(--sidebar-bg); border-right: 0; box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06); }
.customer-body .dash-nav__heading { color: rgba(148, 163, 184, 0.75); }
.customer-body .dash-nav__link { color: #cbd5e1; }
.customer-body .dash-nav__link .icon { color: #7f93b3; }
.customer-body .dash-nav__link:hover { background: rgba(255, 255, 255, 0.07); color: #fff; transform: translateX(2px); }
.customer-body .dash-nav__link:hover .icon { color: #bfdbfe; }
.customer-body .dash-nav__link.is-active { background: linear-gradient(90deg, rgba(59, 130, 246, 0.32), rgba(99, 102, 241, 0.12)); color: #fff; box-shadow: inset 3px 0 0 #60a5fa, 0 8px 20px -12px rgba(59, 130, 246, 0.9); }
.customer-body .dash-nav__link.is-active .icon { color: #93c5fd; }
.customer-body .dash-nav__count { background: var(--grad-warning); color: #1f1300; }
.dash-sidebar__foot { display: grid; gap: 10px; }
.dash-sidebar__help { font-size: 0.86rem; color: var(--text-muted); padding: 12px; background: var(--bg-muted); border-radius: 12px; }
.dash-sidebar__help p { margin: 0 0 4px; }
.dash-sidebar__help-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.customer-body .dash-sidebar__help { background: rgba(255, 255, 255, 0.06); color: #94a3b8; border: 1px solid rgba(255, 255, 255, 0.08); }
.customer-body .dash-sidebar__help strong { color: #fff; }
.customer-body .dash-sidebar__help .btn-outline { color: #e2e8f0; border-color: rgba(255, 255, 255, 0.25); }
.customer-body .dash-sidebar__help .btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); }
.user-card:hover { text-decoration: none; border-color: var(--primary-100); background: var(--primary-50); }
.user-card__body { display: grid; min-width: 0; flex: 1; }
.user-card__name { font-weight: 600; font-size: 0.9rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card__email { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card .icon { color: var(--text-light); flex: none; }
.customer-body .user-card { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
.customer-body .user-card:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.customer-body .user-card__name { color: #fff; }
.customer-body .user-card__email { color: #94a3b8; }
.customer-body .user-card .icon { color: #64748b; }

/* ---------- Mobile tab bar ---------- */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-top: 1px solid var(--line);
}
.tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-muted); font-size: 0.68rem; font-weight: 600; border-radius: 12px; transition: background 0.2s, color 0.2s; }
.tabbar__item:hover { text-decoration: none; }
.tabbar__item.is-active { color: var(--primary); background: var(--primary-50); }
.tabbar__item .icon { transition: transform 0.2s var(--ease-out); }
.tabbar__item.is-active .icon { transform: translateY(-1px) scale(1.08); }
.customer-body .wa-button { bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Main + page head ---------- */
.dash-main { flex: 1; min-width: 0; padding: 20px 16px 48px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }
.back-link:hover { color: var(--primary); text-decoration: none; }
.dash-page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.dash-page-title { font-size: 1.7rem; margin: 0 0 4px; letter-spacing: -0.02em; font-weight: 800; }
.dash-page-subtitle { color: var(--text-muted); margin: 0; max-width: 62ch; }
.dash-page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.dash-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 12px; }
.section-title h2 { font-size: 1.1rem; margin: 0; letter-spacing: -0.01em; }
.section-title .link-arrow { font-size: 0.9rem; }

/* ---------- Next step hero ---------- */
.next-step {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 24px 22px; margin-bottom: 20px;
    border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--grad-hero); color: #fff;
    position: relative; overflow: hidden; isolation: isolate;
    box-shadow: var(--shadow-pop);
}
.next-step::before, .next-step::after { content: ""; position: absolute; border-radius: 50%; filter: blur(30px); z-index: -1; opacity: 0.8; animation: float-orb 9s ease-in-out infinite; }
.next-step::before { width: 300px; height: 300px; right: -80px; top: -120px; background: rgba(96, 165, 250, 0.55); }
.next-step::after { width: 220px; height: 220px; left: 30%; bottom: -140px; background: rgba(168, 85, 247, 0.5); animation-delay: -4s; }
.next-step__icon { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 16px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; flex: none; backdrop-filter: blur(6px); }
.next-step__kicker { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 8px; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #dbeafe; }
.next-step__kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #60a5fa; box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.25); }
.next-step__title { font-size: 1.45rem; margin: 0 0 6px; line-height: 1.2; color: #fff; letter-spacing: -0.02em; font-weight: 800; }
.next-step__text { margin: 0; color: rgba(226, 232, 240, 0.86); max-width: 70ch; }
.next-step__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.next-step .btn-primary { background: #fff; color: var(--navy, #0b1f3a); box-shadow: 0 10px 24px -12px rgba(255, 255, 255, 0.6); animation: none; }
html[data-theme="dark"] .next-step .btn-primary, .next-step .btn-primary { color: #0b1f3a; }
.next-step .btn-primary:hover { background: #eff6ff; }
.next-step .btn-light { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.next-step .btn-light:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.next-step--warning { background: radial-gradient(120% 140% at 0% 0%, rgba(251, 191, 36, 0.45), transparent 55%), radial-gradient(90% 120% at 100% 0%, rgba(249, 115, 22, 0.45), transparent 55%), linear-gradient(135deg, #3a1d05 0%, #5b2a06 55%, #7c2d12 100%); }
.next-step--warning::before { background: rgba(251, 191, 36, 0.5); }
.next-step--warning::after { background: rgba(249, 115, 22, 0.45); }
.next-step--warning .next-step__kicker { color: #fef3c7; }
.next-step--warning .next-step__kicker::before { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.25); }
.next-step--warning .btn-primary { color: #431407; }
.next-step--danger { background: radial-gradient(120% 140% at 0% 0%, rgba(251, 113, 133, 0.45), transparent 55%), radial-gradient(90% 120% at 100% 0%, rgba(239, 68, 68, 0.4), transparent 55%), linear-gradient(135deg, #3b0a12 0%, #5f0f1e 55%, #7f1d1d 100%); }
.next-step--danger::before { background: rgba(251, 113, 133, 0.5); }
.next-step--danger::after { background: rgba(239, 68, 68, 0.45); }
.next-step--danger .next-step__kicker { color: #fecdd3; }
.next-step--danger .next-step__kicker::before { background: #fb7185; box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.25); }
.next-step--danger .btn-primary { color: #4c0519; }
.next-step--success { background: radial-gradient(120% 140% at 0% 0%, rgba(52, 211, 153, 0.45), transparent 55%), radial-gradient(90% 120% at 100% 0%, rgba(20, 184, 166, 0.4), transparent 55%), linear-gradient(135deg, #052e16 0%, #064e3b 55%, #065f46 100%); }
.next-step--success::before { background: rgba(52, 211, 153, 0.5); }
.next-step--success::after { background: rgba(20, 184, 166, 0.45); }
.next-step--success .next-step__kicker { color: #d1fae5; }
.next-step--success .next-step__kicker::before { background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25); }
.next-step--success .btn-primary { color: #052e16; }
.next-step--info .next-step__icon { animation: pulse-soft 1.8s ease-in-out infinite; }

/* ---------- Getting-started checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.checklist__item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 8px; border-radius: 12px; transition: background 0.15s; }
.checklist__item:hover { background: var(--surface-2); }
.checklist__mark { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--line-strong); color: var(--text-light); font-size: 0.78rem; font-weight: 800; flex: none; margin-top: 1px; }
.checklist__item.is-done .checklist__mark { background: var(--grad-success); border-color: transparent; color: #fff; }
.checklist__item.is-next .checklist__mark { border-color: transparent; background: var(--grad-primary); color: #fff; box-shadow: var(--ring); }
.checklist__item.is-next { background: var(--primary-50); }
.checklist__body { display: grid; gap: 1px; min-width: 0; }
.checklist__label { font-weight: 600; color: var(--navy); }
.checklist__item.is-done .checklist__label { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.checklist__hint { font-size: 0.85rem; color: var(--text-muted); }
.checklist__item .link-arrow { margin-left: auto; font-size: 0.86rem; white-space: nowrap; align-self: center; }
.progress { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress__bar { display: block; height: 100%; background: var(--grad-primary); border-radius: 999px; transition: width 0.8s var(--ease-out); }
.progress__bar--0 { width: 2%; } .progress__bar--17 { width: 17%; } .progress__bar--33 { width: 33%; } .progress__bar--50 { width: 50%; } .progress__bar--67 { width: 67%; } .progress__bar--83 { width: 83%; } .progress__bar--100 { width: 100%; }

/* ---------- Service cards (svc) ---------- */
.service-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-card); display: grid; gap: 14px; position: relative; overflow: hidden; transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s; }
.svc:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); border-color: var(--line-strong); }
.svc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--line-strong); }
.svc::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(59, 130, 246, 0.14), transparent); pointer-events: none; }
.svc--success::before { background: var(--grad-success); }
.svc--success::after { background: radial-gradient(closest-side, rgba(16, 185, 129, 0.16), transparent); }
.svc--info::before { background: var(--grad-primary); }
.svc--warning::before { background: var(--grad-warning); }
.svc--warning::after { background: radial-gradient(closest-side, rgba(245, 158, 11, 0.16), transparent); }
.svc--danger::before { background: var(--grad-danger); }
.svc--danger::after { background: radial-gradient(closest-side, rgba(244, 63, 94, 0.14), transparent); }
.svc__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.svc__ident { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.svc__icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 14px; background: var(--grad-primary); color: #fff; flex: none; box-shadow: 0 10px 20px -10px rgba(79, 70, 229, 0.8); }
.svc--success .svc__icon { background: var(--grad-success); box-shadow: 0 10px 20px -10px rgba(16, 185, 129, 0.8); }
.svc--warning .svc__icon { background: var(--grad-warning); box-shadow: 0 10px 20px -10px rgba(245, 158, 11, 0.8); }
.svc--danger .svc__icon { background: var(--grad-danger); box-shadow: 0 10px 20px -10px rgba(244, 63, 94, 0.8); }
.svc__title { font-size: 1.14rem; margin: 0 0 2px; letter-spacing: -0.01em; }
.svc__title a { color: var(--navy); }
.svc__meta { margin: 0; font-size: 0.86rem; color: var(--text-muted); }
.svc__explain { margin: 0; color: var(--text); font-size: 0.95rem; }
.svc__explain strong { color: var(--navy); }
.svc__stepper { margin: 0; }
.svc__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.svc--compact { padding: 16px; gap: 10px; }
.svc--compact .svc__icon { width: 38px; height: 38px; }
.svc--compact .svc__title { font-size: 1.02rem; }

.facts { margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; display: grid; gap: 4px; min-width: 0; transition: background 0.2s; }
.fact:hover { background: var(--surface-3); }
.fact dt { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.fact dt .icon { color: var(--primary); }
.fact dd { margin: 0; font-weight: 700; color: var(--navy); font-size: 1.02rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.fact dd small { display: block; font-weight: 500; color: var(--text-muted); font-size: 0.8rem; }
.fact dd .muted { font-weight: 500; font-size: 0.9rem; }
.fact dd a { display: inline-flex; align-items: center; gap: 4px; }

.setup-pulse { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--info); font-size: 0.93rem; }
.setup-pulse__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad-primary); animation: pulse-soft 1.4s ease-in-out infinite; }

/* ---------- Status pill ---------- */
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; flex: none; border: 1px solid transparent; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.status--success { background: var(--success-bg); color: var(--success); }
.status--info { background: var(--info-bg); color: var(--info); }
.status--warning { background: var(--warning-bg); color: var(--warning); }
.status--danger { background: var(--danger-bg); color: var(--danger); }
.status--muted { background: var(--bg-muted); color: var(--text-muted); }
.status--pulse::before { animation: pulse-soft 1.4s ease-in-out infinite; }

/* ---------- Stepper ---------- */
.stepper { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.stepper__step { display: flex; gap: 12px; align-items: flex-start; position: relative; }
.stepper__step:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: -14px; width: 2px; background: var(--line-strong); border-radius: 2px; }
.stepper__step.is-done:not(:last-child)::before { background: var(--grad-success); }
.stepper__dot { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); color: var(--text-muted); flex: none; font-size: 0.8rem; font-weight: 800; position: relative; z-index: 1; }
.stepper__step.is-done .stepper__dot { background: var(--grad-success); border-color: transparent; color: #fff; }
.stepper__step.is-current .stepper__dot { border-color: transparent; background: var(--grad-primary); color: #fff; box-shadow: var(--ring); animation: pulse-soft 1.6s ease-in-out infinite; }
.stepper__step.is-failed .stepper__dot { background: var(--grad-danger); border-color: transparent; color: #fff; }
.stepper__body { display: grid; gap: 1px; padding-top: 3px; }
.stepper__label { font-weight: 600; color: var(--text-muted); font-size: 0.93rem; }
.stepper__step.is-done .stepper__label, .stepper__step.is-current .stepper__label { color: var(--navy); }
.stepper__step.is-current .stepper__label { color: var(--primary); }
html[data-theme="dark"] .stepper__step.is-current .stepper__label { color: #93c5fd; }
.stepper__step.is-failed .stepper__label { color: var(--danger); }
.stepper__hint { font-size: 0.84rem; color: var(--text-muted); }
.stepper--compact { display: flex; flex-wrap: wrap; gap: 6px 0; align-items: center; margin: 0; }
.stepper--compact .stepper__step { align-items: center; gap: 6px; }
.stepper--compact .stepper__step::before { display: none; }
.stepper--compact .stepper__dot { width: 22px; height: 22px; font-size: 0.7rem; }
.stepper--compact .stepper__label { font-size: 0.84rem; }
.stepper--compact .stepper__step:not(:last-child)::after { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--line-strong); margin: 0 8px; border-radius: 2px; }
.stepper--compact .stepper__step.is-done:not(:last-child)::after { background: var(--grad-success); }
@media (max-width: 639px) {
    .stepper--compact .stepper__step:not(:last-child)::after { width: 12px; margin: 0 6px; }
    .stepper--compact .stepper__label { font-size: 0.8rem; }
}

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.customer-body .card { background: var(--surface); border-color: var(--line); border-radius: 20px; box-shadow: var(--shadow-card); }
.dash-grid .card { margin-bottom: 0; }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 0; }
.card__title { font-size: 1.05rem; margin: 0; letter-spacing: -0.01em; }
.card__subtitle { color: var(--text-muted); font-size: 0.9rem; margin: 4px 0 0; }
.card__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card__body { padding: 16px 20px 20px; }
.card--danger { border-color: #fecaca; }
.customer-body .card--danger { border-color: rgba(239, 68, 68, 0.35); }
.card--danger .card__title { color: var(--danger); }
.card--soft { background: var(--primary-50); border-color: var(--primary-100); box-shadow: none; }
.customer-body .card--soft { background: linear-gradient(135deg, var(--primary-50), transparent); }

/* ---------- Stats ---------- */
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.stat-card {
    display: grid; gap: 2px; grid-template-columns: 1fr; grid-template-areas: "icon" "label" "value" "hint";
    padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.customer-body .stat-card { background: var(--surface); border-color: var(--line); border-radius: 18px; box-shadow: var(--shadow-card); }
.stat-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--grad-primary); opacity: 0; transition: opacity 0.25s; }
.stat-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.stat-card:hover::after { opacity: 1; }
.stat-card__icon { grid-area: icon; color: #fff; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; background: var(--grad-primary); border-radius: 11px; margin-bottom: 8px; box-shadow: 0 8px 18px -10px rgba(79, 70, 229, 0.9); }
.stat-card__label { grid-area: label; font-size: 0.74rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.stat-card__value { grid-area: value; font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1.2; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-card__hint { grid-area: hint; font-size: 0.84rem; color: var(--text-muted); }
.stat-card--warning .stat-card__icon { background: var(--grad-warning); box-shadow: 0 8px 18px -10px rgba(245, 158, 11, 0.9); }
.stat-card--warning::after { background: var(--grad-warning); }
.stat-card--success .stat-card__icon { background: var(--grad-success); box-shadow: 0 8px 18px -10px rgba(16, 185, 129, 0.9); }
.stat-card--success::after { background: var(--grad-success); }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.badge--lg { font-size: 0.86rem; padding: 5px 12px; }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--info { background: var(--primary-50); color: var(--primary); }
html[data-theme="dark"] .badge--info { color: #93c5fd; }
.badge--warning { background: var(--warning-bg); color: var(--warning); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--muted { background: var(--bg-muted); color: var(--text-muted); }

/* ---------- Lists & key-value ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list__item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list__item:last-child { border-bottom: 0; padding-bottom: 0; }
.list__item:first-child { padding-top: 0; }
.list__title { font-weight: 600; color: var(--navy); }
.list__meta { margin: 2px 0 0; font-size: 0.86rem; color: var(--text-muted); }
.list__end { display: flex; align-items: center; gap: 10px; flex: none; }

.kv { margin: 0; display: grid; gap: 12px; }
.kv > div { display: grid; grid-template-columns: 1fr; gap: 2px; }
.kv dt { font-size: 0.74rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.kv dd { margin: 0; color: var(--text); font-weight: 500; }
.kv--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kv--tight { gap: 4px; }
.kv--tight dt { text-transform: none; letter-spacing: 0; font-weight: 500; }
.kv--tight > div { grid-template-columns: auto 1fr; gap: 10px; }

.meter { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.meter__bar { display: block; height: 100%; background: var(--grad-primary); border-radius: 999px; }
.meter__bar--10 { width: 10%; } .meter__bar--20 { width: 20%; } .meter__bar--30 { width: 30%; } .meter__bar--40 { width: 40%; } .meter__bar--50 { width: 50%; }
.meter__bar--60 { width: 60%; } .meter__bar--70 { width: 70%; } .meter__bar--80 { width: 80%; background: var(--grad-warning); } .meter__bar--90 { width: 90%; background: var(--grad-danger); } .meter__bar--100 { width: 100%; background: var(--grad-danger); }

/* ---------- Tables ---------- */
.table { width: 100%; font-size: 0.93rem; }
.table th, .table td { padding: 11px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); font-weight: 700; background: var(--surface-2); }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover td { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table__actions { text-align: right; white-space: nowrap; }
.table__actions form { display: inline; }
.table--kv th { width: 34%; color: var(--navy); font-weight: 600; background: transparent; }
.table code, .code-chip { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.code-chip { display: inline-block; font-size: 1.15rem; font-weight: 700; padding: 8px 14px; color: var(--navy); }
.break-all { word-break: break-all; }
.pagination-wrap { margin-top: 16px; }
.table__sub { display: block; font-size: 0.82rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

@media (max-width: 719px) {
    .table--cards, .table--cards tbody, .table--cards tr, .table--cards td { display: block; width: 100%; }
    .table--cards thead { display: none; }
    .table--cards tr { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 12px; margin-bottom: 10px; }
    .table--cards tbody tr:hover td { background: transparent; }
    .table--cards td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; }
    .table--cards td:last-child { border-bottom: 0; }
    .table--cards td::before { content: attr(data-label); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); flex: none; }
    .table--cards td.num, .table--cards td.table__actions { text-align: right; }
    .table--cards td.table__actions::before { content: ""; }
    .table--cards td.table__actions .btn { width: 100%; }
    .table--cards td[data-label=""]::before { display: none; }
}

/* ---------- Summary strip ---------- */
.summary-strip { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 18px; margin-bottom: 16px; border-radius: 18px; border: 1px solid var(--warning-border); background: var(--warning-bg); color: var(--warning); }
.summary-strip strong { color: var(--navy); font-size: 1.2rem; }
.summary-strip p { margin: 0; }

/* ---------- How it works strip ---------- */
.howto { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 16px; }
.howto__step { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card); }
.howto__num { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 10px; background: var(--grad-primary); color: #fff; font-weight: 800; font-size: 0.82rem; flex: none; box-shadow: 0 8px 16px -10px rgba(79, 70, 229, 0.9); }
.howto__step strong { display: block; color: var(--navy); font-size: 0.95rem; }
.howto__step div span { font-size: 0.86rem; color: var(--text-muted); }

/* ---------- Website rows ---------- */
.site-row { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.site-row:last-child { border-bottom: 0; padding-bottom: 0; }
.site-row:first-child { padding-top: 0; }
.site-row__head { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.site-row__domain { font-weight: 700; color: var(--navy); font-size: 1.02rem; display: inline-flex; align-items: center; gap: 8px; }
.site-row__domain .icon { color: var(--primary); }
.site-row__hint { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.site-row__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.84rem; color: var(--text-muted); }
.site-row__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.action-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.action-tile-form { display: contents; }
.action-tile {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 16px;
    background: var(--surface); color: var(--navy); font: inherit; font-weight: 600; text-align: left; cursor: pointer;
    box-shadow: var(--shadow-card); transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.2s;
}
.action-tile .icon { color: var(--primary); }
html[data-theme="dark"] .action-tile .icon { color: #93c5fd; }
.action-tile small { font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }
.action-tile:hover { transform: translateY(-2px); border-color: var(--primary-100); text-decoration: none; box-shadow: var(--shadow-pop); }
.action-tile--primary { background: var(--grad-primary); border-color: transparent; color: #fff; }
.action-tile--primary .icon, .action-tile--primary small { color: #dbeafe; }
.action-tile--disabled { opacity: 0.6; cursor: not-allowed; }
.action-tile--disabled:hover { transform: none; border-color: var(--line); box-shadow: var(--shadow-card); }

/* ---------- Panel login box ---------- */
.panel-box { display: grid; gap: 14px; }
.panel-box__row { display: grid; gap: 4px; }
.panel-box__row dt { font-size: 0.74rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.panel-box__row dd { margin: 0; }
.panel-box__url { font-size: 1.02rem; font-weight: 700; word-break: break-all; }
.explain { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--info-bg); color: var(--text); font-size: 0.9rem; border: 1px solid var(--primary-100); }
.explain .icon { color: var(--primary); flex: none; margin-top: 2px; }
.explain p { margin: 0; }
.explain strong { color: var(--navy); }

/* ---------- Help box ---------- */
.help-box { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; margin-bottom: 16px; box-shadow: var(--shadow-card); }
.help-box__icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 14px; background: var(--grad-success); color: #fff; flex: none; box-shadow: 0 10px 20px -10px rgba(16, 185, 129, 0.9); }
.help-box__title { margin: 0 0 2px; font-weight: 700; color: var(--navy); }
.help-box__text { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.help-box__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ---------- Order flow ---------- */
.plan-pick { padding: 20px; }
.plan-pick--featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-card); }
.plan-pick__name { font-size: 1.2rem; margin-bottom: 2px; }
.plan-pick__price { margin: 10px 0 14px; color: var(--text-muted); }
.plan-pick__price strong { color: var(--navy); font-size: 1.5rem; }

.choice-list { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-50); box-shadow: var(--ring); }
.choice input { flex: none; width: 18px; height: 18px; }
.choice__body { flex: 1; display: grid; gap: 2px; }
.choice__title { font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.choice__meta { color: var(--text-muted); font-size: 0.9rem; }
.choice__price { font-weight: 700; color: var(--navy); white-space: nowrap; }
.order-summary__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; margin: 14px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.order-summary__total strong { font-size: 1.5rem; color: var(--navy); }
.order-summary .form__link { display: block; text-align: center; margin-top: 10px; }
.steps-list { padding-left: 1.2em; margin: 0 0 16px; display: grid; gap: 8px; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Invoice ---------- */
.invoice__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.invoice__brand { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin: 0; }
.invoice__billto { margin-bottom: 18px; }
.invoice__items tfoot th { font-weight: 600; color: var(--text-muted); }
.invoice__total th, .invoice__total td { font-size: 1.05rem; color: var(--navy); font-weight: 800; border-top: 2px solid var(--line-strong); }

/* ---------- Tickets ---------- */
.thread { display: grid; gap: 12px; margin-bottom: 16px; }
.thread__message { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.thread__message--staff { border-color: var(--primary-100); background: var(--primary-50); }
.thread__meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.86rem; color: var(--text-muted); margin-bottom: 8px; }
.thread__meta strong { color: var(--navy); }
.prewrap { white-space: pre-wrap; word-wrap: break-word; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 44px 20px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 20px; margin-bottom: 16px; }
.empty-state__icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 18px; background: var(--grad-primary); color: #fff; margin-bottom: 12px; box-shadow: 0 12px 24px -12px rgba(79, 70, 229, 0.9); }
.empty-state__title { font-size: 1.2rem; margin-bottom: 6px; }
.empty-state__text { color: var(--text-muted); max-width: 480px; margin: 0 auto 16px; }

/* ---------- Misc ---------- */
.h6 { font-size: 0.95rem; margin-bottom: 8px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.danger-details summary { list-style: none; display: inline-flex; cursor: pointer; }
.danger-details summary::-webkit-details-marker { display: none; }
.form--inline { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: end; }
.form__field--submit .btn { width: 100%; }
.alert--warning { background: var(--warning-bg); color: #92400e; border-color: var(--warning-border); }
.alert--warning .btn { margin-top: 8px; }
.alert--info { background: var(--info-bg); color: var(--navy); border-color: var(--primary-100); }
.alert--info .icon { color: var(--primary); flex: none; margin-top: 2px; }
.customer-body .alert { border-radius: 16px; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
    .dash-main { padding: 24px 24px 56px; }
    .form--inline { grid-template-columns: 1fr auto; }
    .form--inline:has(select) { grid-template-columns: 1fr 1fr auto; }
    .form__field--submit .btn { width: auto; }
    .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-grid--wide { grid-template-columns: 1fr; }
    .action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .howto { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dash-topbar__link, .dash-topbar__name, .dash-topbar__logout { display: inline; }
    .dash-topbar__user .muted { display: inline; }
    .next-step { padding: 28px 28px; }
    .next-step__title { font-size: 1.65rem; }
}

@media (min-width: 960px) {
    .customer-body { padding-bottom: 0; }
    .tabbar { display: none; }
    .customer-body .wa-button { bottom: calc(18px + var(--sticky-h, 0px)); }
    .dash-sidebar-toggle { display: none; }
    .dash-sidebar { transform: none; box-shadow: none; }
    .dash-main { margin-left: var(--sidebar-w); padding: 30px 36px 64px; }
    .dash-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-grid--order { grid-template-columns: 1.5fr 1fr; align-items: start; }
    .dash-grid--main { grid-template-columns: 1.6fr 1fr; align-items: start; }
    .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .stat-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .action-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .kv--grid { grid-template-columns: repeat(4, 1fr); }
    .dash-page-title { font-size: 1.9rem; }
}

@media (min-width: 1280px) {
    .dash-main > * { max-width: 1180px; }
}

@media (prefers-reduced-motion: reduce) {
    .next-step::before, .next-step::after, .next-step--info .next-step__icon, .setup-pulse__dot, .status--pulse::before, .stepper__step.is-current .stepper__dot, .customer-body .btn-primary:hover { animation: none; }
    .svc, .stat-card, .action-tile, .js .reveal { transition: none; }
}

/* ---------- Invoice document ---------- */
.inv { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px; margin-bottom: 16px; box-shadow: var(--shadow-card); }
.inv::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad-primary); }
.inv__stamp { position: absolute; right: 10px; top: 10px; transform: rotate(-10deg); padding: 3px 12px; border: 2.5px solid currentColor; border-radius: 8px; font-weight: 900; letter-spacing: 0.14em; font-size: 0.72rem; opacity: 0.28; pointer-events: none; }
.inv__stamp--success { color: var(--success); }
.inv__stamp--warning { color: var(--warning); }
.inv__stamp--danger { color: var(--danger); }
.inv__stamp--muted { color: var(--text-muted); }
.inv__stamp--info { color: var(--primary); }
.inv__head { display: grid; gap: 22px; grid-template-columns: 1fr; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.inv__logo { height: 36px; width: auto; margin-bottom: 10px; }
html[data-theme="dark"] .inv__logo { filter: brightness(0) invert(1); }
.inv__from-name { margin: 0; font-weight: 800; color: var(--navy); }
.inv__from-line { margin: 2px 0 0; color: var(--text-muted); font-size: 0.92rem; }
.inv__kicker { margin: 0 0 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.inv__number { margin: 0 0 10px; font-size: 1.35rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.inv__meta-rows { margin: 0; display: grid; gap: 6px; }
.inv__meta-rows div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: center; font-size: 0.93rem; }
.inv__meta-rows dt { color: var(--text-muted); }
.inv__meta-rows dd { margin: 0; font-weight: 600; color: var(--navy); }
.inv__parties { display: grid; gap: 18px; grid-template-columns: 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
.inv__party-name { margin: 0; font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.inv__party--total { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; justify-items: start; }
.inv__big { margin: 0; font-size: 1.9rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; line-height: 1.1; }
.inv__items { margin-top: 6px; }
.inv__items thead th { background: transparent; border-bottom: 2px solid var(--line-strong); }
.inv__items td { padding-top: 14px; padding-bottom: 14px; }
.inv__foot { display: grid; gap: 18px; grid-template-columns: 1fr; padding-top: 18px; }
.inv__notes p { margin: 0 0 4px; font-size: 0.9rem; color: var(--text); }
.inv__totals { margin: 0; display: grid; gap: 8px; align-self: start; }
.inv__totals div { display: flex; justify-content: space-between; gap: 16px; font-size: 0.95rem; }
.inv__totals dt { color: var(--text-muted); }
.inv__totals dd { margin: 0; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.inv__totals-grand { padding-top: 10px; border-top: 2px solid var(--line-strong); }
.inv__totals-grand dt, .inv__totals-grand dd { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.inv__totals-due dd { color: var(--warning); }
@media (min-width: 720px) {
    .inv { padding: 32px 32px; }
    .inv__head { grid-template-columns: 1fr auto; }
    .inv__meta { text-align: right; }
    .inv__meta-rows div { grid-template-columns: 1fr auto; }
    .inv__meta-rows dt { text-align: right; }
    .inv__parties { grid-template-columns: 1.2fr 1.2fr 1fr; }
    .inv__foot { grid-template-columns: 1.4fr minmax(260px, 0.8fr); }
}

/* ---------- Spec sheet rows (label left, value right) ---------- */
.spec { margin: 0; display: grid; }
.spec__row { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec__row:first-child { padding-top: 0; }
.spec__row:last-child { border-bottom: 0; padding-bottom: 0; }
.spec__row dt { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.spec__row dt .icon { color: var(--primary); flex: none; }
html[data-theme="dark"] .spec__row dt .icon { color: #93c5fd; }
.spec__row dd { margin: 0; color: var(--navy); font-weight: 600; font-size: 0.97rem; min-width: 0; overflow-wrap: anywhere; }
.spec__row dd small { display: block; color: var(--text-muted); font-weight: 400; font-size: 0.82rem; margin-top: 1px; }
.spec__row dd .meter { margin-top: 8px; max-width: 320px; }
.spec__row dd code { font-size: 0.88rem; }

/* ---------- Dashboard columns: even 16px rhythm between stacked cards ---------- */
.dash-grid > div { display: grid; gap: 16px; align-content: start; min-width: 0; }
.dash-grid .card, .dash-grid .help-box, .dash-grid .service-grid, .dash-grid .svc, .dash-grid .empty-state { margin-bottom: 0; }
.dash-grid .section-title { margin: 0; }
.dash-grid .section-title + .service-grid, .dash-grid .section-title + .empty-state { margin-top: -4px; }
.card__actions .link-arrow { white-space: nowrap; }

/* ---------- How-it-works strip: number badge readable, description muted ---------- */
.howto__step { align-items: center; }
.howto__step .howto__num { width: 34px; height: 34px; font-size: 0.92rem; color: #fff; font-weight: 800; }
.howto__step div { display: grid; gap: 2px; min-width: 0; }
.howto__step div > span { font-size: 0.86rem; color: var(--text-muted); }

/* ---------- Plan picker (dashboard Order Hosting) ---------- */
.plan-pick { display: grid; gap: 0; align-content: start; }
.plan-pick header { margin-bottom: 4px; }
.plan-pick .plan-card__features { list-style: none; margin: 0 0 22px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.plan-pick .plan-card__features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.93rem; color: var(--text); }
.plan-pick .plan-card__features .icon { color: var(--success); flex: none; margin-top: 3px; }
.plan-pick > .btn { margin-top: auto; }
.customer-body .plan-pick--featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-card); }

/* ---- Copy buttons, DNS record cards and the "do this now" guide (My Websites) ---- */
.copy { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.copy__value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--navy); word-break: break-all; min-width: 0; }
.copy--big .copy__value { font-size: 1.1rem; font-weight: 700; padding: 10px 14px; }
.copy__btn { display: inline-flex; align-items: center; gap: 5px; flex: none; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.copy__btn:hover { border-color: var(--primary); color: var(--primary); }
.copy__btn.is-copied { background: var(--grad-success); border-color: transparent; color: #fff; }
.copy__btn.is-failed { border-color: var(--danger); color: var(--danger); }
.dns-rec { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.dns-rec__field { display: grid; gap: 4px; }
.dns-rec__label { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); }
.dns-rec__plain { color: var(--text); font-size: 0.92rem; padding: 6px 0; }
.dns-rec__note { margin: 0; font-size: 0.84rem; color: var(--text-muted); }
.dns-list { display: grid; gap: 12px; }
.guide { position: relative; padding: 18px; border-radius: 16px; border: 1px solid var(--primary-100); background: var(--info-bg); display: grid; gap: 12px; }
.guide--success { border-color: rgba(16, 185, 129, 0.35); background: var(--success-bg, var(--surface-2)); }
.guide--warning { border-color: rgba(245, 158, 11, 0.4); background: var(--warning-bg, var(--surface-2)); }
.guide--danger { border-color: rgba(239, 68, 68, 0.35); background: var(--danger-bg, var(--surface-2)); }
.guide__head { display: flex; align-items: center; gap: 10px; }
.guide__head .icon { color: var(--primary); flex: none; }
.guide--success .guide__head .icon { color: var(--success); }
.guide--warning .guide__head .icon { color: var(--warning); }
.guide--danger .guide__head .icon { color: var(--danger); }
.guide__kicker { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.guide__title { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.guide p { margin: 0; color: var(--text); }
.guide__steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text); }
.guide__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.where { border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; background: var(--surface); }
.where summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--navy); list-style: none; display: flex; align-items: center; gap: 8px; }
.where summary::-webkit-details-marker { display: none; }
.where summary .icon { color: var(--primary); }
.where[open] summary { border-bottom: 1px solid var(--line); }
.where__list { margin: 0; padding: 12px 0; display: grid; gap: 8px; font-size: 0.9rem; }
.where__list li { display: grid; grid-template-columns: 120px 1fr; gap: 8px; color: var(--text); }
.where__list li strong { color: var(--navy); font-weight: 600; }
.where__list p { margin: 12px 0 0; }
.alt { margin-top: 4px; }
.alt summary { cursor: pointer; color: var(--primary); font-weight: 600; font-size: 0.92rem; }
.alt > div { margin-top: 12px; display: grid; gap: 12px; }
@media (min-width: 720px) {
    .dns-rec { grid-template-columns: 90px 160px 1fr 150px; align-items: end; }
    .dns-rec__note { grid-column: 1 / -1; }
    .dns-rec__field--value .copy { width: 100%; }
    .dns-rec__field--value .copy__value { flex: 1; }
}
@media (max-width: 719px) {
    .where__list li { grid-template-columns: 1fr; gap: 2px; }
    .copy { flex-wrap: wrap; }
}
