/* =====================================================================
   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); border: 0; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12); }
.customer-body .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 10px -4px rgba(37, 99, 235, 0.45); filter: brightness(1.05); }
.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; }
.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: start; }
.form--inline .form__field--submit { display: grid; gap: 6px; align-self: start; }
.form--inline .form__field--submit::before { content: "\00a0"; font-weight: 600; font-size: 0.95rem; line-height: 1.5; }
.form--inline .form__field--submit .btn { width: 100%; height: 48px; padding-top: 0; padding-bottom: 0; }
.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); }

/* ---- Website section tabs ---- */
.wtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.wtabs__tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; color: var(--text-muted); text-decoration: none; transition: background 0.15s, color 0.15s; }
.wtabs__tab:hover { color: var(--navy); background: var(--surface-2); text-decoration: none; }
.wtabs__tab.is-active { background: var(--grad-primary); color: #fff; box-shadow: var(--ring); }

/* ---- 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: 0; padding: 4px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.dns-rec__row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dns-rec__row:last-of-type { border-bottom: 0; }
.dns-rec__label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); }
.dns-rec__val { min-width: 0; font-size: 0.92rem; color: var(--text); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.dns-rec__val code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; color: var(--navy); }
.dns-rec__val--long code { display: block; width: 100%; word-break: break-all; line-height: 1.5; }
.dns-rec__val small { font-size: 0.78rem; }
.dns-rec__note { margin: 0; padding: 8px 0 10px; font-size: 0.84rem; color: var(--text-muted); border-top: 1px solid var(--line); }
.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; }
.ssl-wait { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line-strong); }
.ssl-wait p { margin: 0; font-size: 0.92rem; }
.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) {
}
@media (max-width: 719px) {
    .where__list li { grid-template-columns: 1fr; gap: 2px; }
    .copy { flex-wrap: wrap; }
}

/* ---- Website overview: live strip, manage tiles, website rows ---- */
.section-title { font-size: 1.05rem; font-weight: 800; color: var(--navy); margin: 4px 0 10px; }
.live-strip { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.live-strip__item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.live-strip__item .icon { color: var(--success); flex: none; }
.live-strip__item.is-wait .icon { color: var(--warning); }
.live-strip__item div { display: grid; min-width: 0; }
.live-strip__item strong { color: var(--navy); font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-strip__item span { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-strip__item form { margin-left: auto; }
.mgrid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.mtile { display: grid; gap: 4px; padding: 18px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; box-shadow: var(--shadow-card); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.mtile .icon { color: var(--primary); margin-bottom: 6px; }
.mtile__title { font-weight: 700; color: var(--navy); font-size: 1rem; }
.mtile__sub { font-size: 0.82rem; color: var(--text-muted); }
.mtile:hover { transform: translateY(-2px); border-color: var(--primary-100); box-shadow: var(--shadow-pop); text-decoration: none; }
.mtile--primary { background: var(--grad-primary); border-color: transparent; color: #fff; }
.mtile--primary .icon, .mtile--primary .mtile__title { color: #fff; }
.mtile--primary .mtile__sub { color: #dbeafe; }
.wlist { display: grid; gap: 10px; }
.wrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.wrow__main { display: grid; gap: 6px; min-width: 0; }
.wrow__domain { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; color: var(--navy); text-decoration: none; word-break: break-all; }
.wrow__domain .icon { color: var(--primary); flex: none; }
.wrow__domain:hover { color: var(--primary); text-decoration: none; }
.wrow__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 0.84rem; color: var(--text-muted); }
.wrow__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 720px) {
    .live-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.wp-hero { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); margin-bottom: 16px; }
.wp-hero__brand { display: inline-flex; width: 56px; height: 56px; border-radius: 16px; align-items: center; justify-content: center; background: var(--grad-primary); color: #fff; flex: none; }
.wp-hero__text { display: grid; gap: 2px; min-width: 0; flex: 1 1 240px; }
.wp-hero__title { margin: 0; font-size: 1.3rem; font-weight: 800; color: var(--navy); word-break: break-all; }
.wp-hero__text p { margin: 0; }
.wp-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pw-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pw-mask { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--text-muted); }
.launch { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.launch__card { max-width: 520px; width: 100%; text-align: center; display: grid; gap: 14px; justify-items: center; padding: 36px 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.launch__card .icon { color: var(--primary); }
.launch__card h1 { margin: 0; font-size: 1.4rem; color: var(--navy); }
.launch__card p { margin: 0; color: var(--text); }
.btn-lg { padding: 12px 20px; font-size: 1rem; }

.res { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 18px; }
.res__item { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }
.res__head { display: flex; justify-content: space-between; gap: 10px; font-size: 0.86rem; color: var(--text-muted); }
.res__head strong { color: var(--navy); }
.res__track { margin-top: 0; }
.res__note { font-size: 0.8rem; color: var(--text-muted); }
.fm__meter { display: inline-block; width: 90px; height: 6px; margin: 0 6px 0 0; vertical-align: middle; }
@media (min-width: 720px) { .res { grid-template-columns: 1fr 1fr; } }

/* ---- File manager ---- */
.fm { display: grid; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); overflow: visible; }
.fm__bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); border-radius: 18px 18px 0 0; background: var(--surface-2); }
.fm .table-wrap { margin: 0; border: 0; border-radius: 0; }
.fm .table { margin: 0; }
.fm .table th { background: transparent; }
.fm .table tbody tr:hover td { background: var(--surface-2); }
.fm__foot { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--text-muted); }
.fm__chev { transform: rotate(90deg); }
.fm__menu[open] .fm__chev { transform: rotate(-90deg); }
.fm__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 0.92rem; min-width: 0; }
.fm__crumb { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 600; text-decoration: none; padding: 2px 6px; border-radius: 6px; }
.fm__crumb:hover { background: var(--surface-2); text-decoration: none; }
.fm__crumb.is-current { color: var(--navy); font-weight: 700; }
.fm__sep { color: var(--text-muted); }
.fm__usage { font-size: 0.84rem; color: var(--text-muted); white-space: nowrap; }
.fm__tools { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: flex-end; }
.fm__group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-left: 14px; border-left: 1px solid var(--line); }
.fm__group:first-child { padding-left: 0; border-left: 0; }
.fm__group-label { flex: 1 1 100%; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.fm__group--upload form { display: inline-flex; gap: 6px; }
.fm__popover--right .fm__popover-body { left: auto; right: 0; }
.fm__popover-label { font-size: 0.78rem; font-weight: 700; color: var(--navy); }
.fm__popover-input { width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; font-size: 0.9rem; background: var(--surface); color: var(--text); }
.fm__tool { position: relative; }
.fm__file-label { cursor: pointer; }
.fm__file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.fm__popover summary { list-style: none; cursor: pointer; }
.fm__popover summary::-webkit-details-marker { display: none; }
.fm__popover-body { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 260px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg, 0 20px 50px rgba(11, 31, 58, 0.18)); display: grid; gap: 10px; }
.fm__table td { vertical-align: middle; }
.fm__name { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; text-decoration: none; word-break: break-all; }
.fm__name .icon { color: var(--text-muted); flex: none; }
.fm__name--dir { color: var(--navy); font-weight: 600; }
.fm__name--dir .icon { color: var(--warning); }
a.fm__name:hover { color: var(--primary); text-decoration: none; }
.fm__menu { position: relative; display: inline-block; }
.fm__menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.fm__menu summary::-webkit-details-marker { display: none; }
.fm__menu-body { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 280px; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg, 0 20px 50px rgba(11, 31, 58, 0.18)); display: grid; gap: 4px; text-align: left; }
.fm__menu-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 0.9rem; text-align: left; cursor: pointer; text-decoration: none; }
.fm__menu-item:hover { background: var(--surface-2); color: var(--primary); text-decoration: none; }
.fm__menu-form { display: flex; gap: 6px; align-items: center; padding: 6px 10px; border-top: 1px solid var(--line); }
.fm__menu-form input[type="text"] { flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; font-size: 0.86rem; background: var(--surface); color: var(--text); }
.fm__menu-form--danger { flex-wrap: wrap; }
.fm__confirm { display: flex; align-items: center; gap: 6px; font-size: 0.84rem; color: var(--text); flex: 1 1 100%; }
.fm__editor { width: 100%; min-height: 60vh; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86rem; line-height: 1.5; padding: 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--text); tab-size: 4; resize: vertical; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 719px) {
    .fm__menu-body { min-width: 240px; }
}
.fm .table-wrap { overflow: visible; }
@media (max-width: 719px) {
    .fm .table-wrap { overflow-x: auto; }
    .fm__menu-body { position: static; min-width: 0; margin-top: 6px; box-shadow: none; }
}
.fm.is-dragging { outline: 3px dashed var(--primary); outline-offset: -3px; }
.fm__uploads { padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--info-bg); display: grid; gap: 10px; }
.fm__uploads-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.fm__uploads-head strong { color: var(--navy); }
.fm__uploads-head .muted { flex: 1 1 auto; font-size: 0.84rem; }
.fm__uploads-list { display: grid; gap: 8px; }
.fm__upload { display: grid; gap: 4px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.fm__upload-head { display: flex; gap: 10px; align-items: center; font-size: 0.88rem; }
.fm__upload-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--navy); }
.fm__upload-pct { font-variant-numeric: tabular-nums; color: var(--text-muted); }
.fm__upload-cancel { border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: 0.8rem; cursor: pointer; }
.fm__upload-cancel:hover { color: var(--danger); }
.fm__upload-track { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.fm__upload-bar { height: 100%; width: 0; border-radius: 999px; background: var(--grad-primary); transition: width 0.2s linear; }
.fm__upload.is-done .fm__upload-bar { background: var(--grad-success); }
.fm__upload.is-failed .fm__upload-bar { background: var(--grad-danger); }
.fm__upload-meta { font-size: 0.8rem; color: var(--text-muted); }
.fm__upload.is-failed .fm__upload-meta { color: var(--danger); }
.fm__bulk { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.fm__bulk-label { font-weight: 700; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.fm__bulk-count { display: inline-flex; min-width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); font-weight: 800; font-size: 0.82rem; padding: 0 8px; }
.fm__bulk.is-active .fm__bulk-label { color: var(--navy); }
.fm__bulk.is-active .fm__bulk-count { background: var(--grad-primary); color: #fff; }
.fm__bulk-actions { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; opacity: 0.55; transition: opacity 0.15s; }
.fm__bulk.is-active .fm__bulk-actions { opacity: 1; }
.fm__bulk-actions .fm__popover { position: relative; }
.fm__bulk-hint { flex: 1 1 100%; font-size: 0.8rem; }
.fm__check { width: 36px; text-align: center; }
.fm__check input { width: 16px; height: 16px; accent-color: var(--primary); }
.fm__date { white-space: nowrap; }
@media (min-width: 1100px) { .fm__bulk-hint { flex: 0 1 auto; margin-left: auto; } }
.fm__uploads[hidden] { display: none; }
.fm__bulk.is-shake { animation: fm-shake 0.4s; }
@keyframes fm-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (max-width: 719px) {
    .fm__table { min-width: 640px; }
    .fm__name { word-break: normal; white-space: nowrap; }
    .fm__group { padding-left: 0; border-left: 0; flex: 1 1 100%; }
    .fm__bulk-hint { flex: 1 1 100%; }
}
.fm__btn-repair { background: var(--warning-bg); color: #92400e; border: 1px solid var(--warning-border, #fcd34d); }
.fm__btn-repair:hover { background: #fde68a; color: #78350f; }
.customer-body[data-theme="dark"] .fm__btn-repair, html[data-theme="dark"] .customer-body .fm__btn-repair { color: #fbbf24; }

/* ---- Toast alerts (one place for every action's result) ---- */
.toast-stack { position: fixed; top: calc(var(--topbar-h, 4px) + 12px); right: 16px; z-index: 300; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 42px 14px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgba(11, 31, 58, 0.35), 0 2px 8px rgba(11, 31, 58, 0.08); pointer-events: auto; overflow: hidden; animation: toast-in 0.28s var(--ease-out, ease-out); }
.toast.is-leaving { opacity: 0; transform: translateX(16px); transition: opacity 0.25s, transform 0.25s; }
.toast__icon { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; flex: none; color: #fff; }
.toast__body { display: grid; gap: 2px; min-width: 0; }
.toast__title { font-size: 0.86rem; font-weight: 800; color: var(--navy); }
.toast__text { font-size: 0.92rem; color: var(--text); overflow-wrap: anywhere; }
.toast__close { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; padding: 6px; border-radius: 8px; display: inline-flex; }
.toast__close:hover { background: var(--surface-2); color: var(--navy); }
.toast__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; animation: toast-bar 7s linear forwards; }
.toast--success .toast__icon, .toast--success .toast__bar { background: var(--grad-success); }
.toast--info .toast__icon, .toast--info .toast__bar { background: var(--grad-primary); }
.toast--warning .toast__icon, .toast--warning .toast__bar { background: var(--grad-warning); }
.toast--danger .toast__icon, .toast--danger .toast__bar { background: var(--grad-danger); }
.toast--success { border-color: rgba(16, 185, 129, 0.35); }
.toast--warning { border-color: rgba(245, 158, 11, 0.45); }
.toast--danger { border-color: rgba(239, 68, 68, 0.4); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 719px) { .toast-stack { top: 12px; right: 12px; left: 12px; width: auto; } .dash-body .toast-stack { top: auto; bottom: 76px; } }
@media (prefers-reduced-motion: reduce) { .toast, .toast__bar { animation: none; } }

/* ---- Customer sidebar, premium pass: flat deep navy, no gradients, no glows ---- */
.customer-body .dash-sidebar { background: #0b1324; padding: 20px 14px 18px; box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.14) transparent; }
.customer-body .dash-sidebar::-webkit-scrollbar { width: 6px; }
.customer-body .dash-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 999px; }
.customer-body .dash-sidebar::-webkit-scrollbar-track { background: transparent; }
.customer-body .dash-nav { gap: 2px; margin-bottom: 18px; }
.customer-body .dash-nav__heading { margin: 4px 12px 8px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; color: rgba(148, 163, 184, 0.55); display: block; }
.customer-body .dash-nav__heading::after { content: none; }
.customer-body .dash-nav__link { position: relative; padding: 10px 12px; border-radius: 10px; font-size: 0.93rem; font-weight: 500; letter-spacing: 0.005em; color: #aab8d0; transition: background 0.15s, color 0.15s; }
.customer-body .dash-nav__link .icon { width: 20px; height: 20px; padding: 0; border-radius: 0; background: transparent; color: #7c8db0; box-shadow: none; transition: color 0.15s; }
.customer-body .dash-nav__link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; transform: none; }
.customer-body .dash-nav__link:hover .icon { background: transparent; color: #c7d2e5; }
.customer-body .dash-nav__link.is-active { background: rgba(96, 165, 250, 0.14); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.18); }
.customer-body .dash-nav__link.is-active::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 20px; transform: translateY(-50%); border-radius: 0 999px 999px 0; background: #60a5fa; }
.customer-body .dash-nav__link.is-active .icon { background: transparent; color: #93c5fd; box-shadow: none; }
.customer-body .dash-nav + .dash-nav__heading, .customer-body .dash-nav__heading:not(:first-child) { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.06); margin-top: 6px; }
.customer-body .dash-nav__link .icon { transition: color 0.15s, transform 0.15s; }
.customer-body .dash-nav__link:hover .icon { transform: translateX(1px); }
.customer-body .dash-nav__count { background: #f59e0b; color: #1f1300; }
.customer-body .dash-sidebar__help { padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: #94a3b8; }
.customer-body .dash-sidebar__help p { color: #aab8d0; }
.customer-body .dash-sidebar__help strong { color: #fff; }
.customer-body .dash-sidebar__help .btn-outline { color: #e2e8f0; border-color: rgba(255, 255, 255, 0.18); background: transparent; }
.customer-body .dash-sidebar__help .btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }
.customer-body .dash-sidebar__help .btn-primary { box-shadow: none; }
.customer-body .user-card { border-color: rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); box-shadow: none; }
.customer-body .user-card:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); }
.customer-body .user-card__name { color: #fff; }
.customer-body .user-card__email { color: #8b9bb8; }
.customer-body .user-card .icon { color: #8b9bb8; }

/* ---- File editor ---- */
.ed-card .card__body { padding: 0; }
.ed { display: grid; }
.ed__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius, 16px) var(--radius, 16px) 0 0; }
.ed__file { display: flex; gap: 10px; align-items: center; min-width: 0; }
.ed__file-icon { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; background: var(--primary-soft, rgba(79, 70, 229, 0.12)); color: var(--primary); flex: 0 0 auto; }
.ed__name { font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ed__path { font-size: 0.8rem; word-break: break-all; }
.ed__tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed__toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-muted); margin-right: 6px; cursor: pointer; }
.ed__body { display: grid; grid-template-columns: auto 1fr; background: var(--surface); }
.ed__gutter { margin: 0; padding: 12px 10px 12px 14px; overflow: hidden; text-align: right; user-select: none; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86rem; line-height: 1.5; color: var(--text-muted); background: var(--surface-2); border-right: 1px solid var(--line); min-width: 3.2em; }
.ed__area.fm__editor { border: 0; border-radius: 0; min-height: 62vh; padding: 12px 14px; }
.ed__area.fm__editor:focus { outline: none; box-shadow: inset 0 0 0 2px var(--primary-soft, rgba(79, 70, 229, 0.25)); }
.ed.is-wrap .ed__gutter { display: none; }
.ed.is-dirty .ed__head { border-bottom-color: var(--warning); }
.ed__status { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--text-muted); border-radius: 0 0 var(--radius, 16px) var(--radius, 16px); }
.ed__status-hint { margin-left: auto; }
@media (max-width: 719px) {
    .ed__status-hint { margin-left: 0; flex: 1 1 100%; }
    .ed__tools { width: 100%; }
}

/* ---- Generic popover (details based; closed on outside click by app.js initPopovers) ---- */
.pop { position: relative; display: inline-block; }
.pop summary { list-style: none; cursor: pointer; }
.pop summary::-webkit-details-marker { display: none; }
.pop__body { position: absolute; z-index: 25; top: calc(100% + 6px); left: 0; width: 300px; max-width: 92vw; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg, 0 20px 50px rgba(11, 31, 58, 0.18)); display: grid; gap: 10px; text-align: left; }
.pop__body--right { left: auto; right: 0; }
.pop__text { margin: 0; font-size: 0.86rem; color: var(--text); line-height: 1.5; }
.pop__label { font-size: 0.78rem; font-weight: 700; color: var(--navy); }
.pop__input { width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; font-size: 0.9rem; background: var(--surface); color: var(--text); }
.pop__body .btn { justify-self: start; }

/* ---- Input group with a fixed prefix (database name) ---- */
.ig { display: flex; align-items: stretch; border: 1px solid var(--border-strong, var(--line-strong)); border-radius: var(--radius-sm, 8px); background: #fff; overflow: hidden; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.ig:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft, rgba(79, 70, 229, 0.18)); }
.ig--invalid { border-color: var(--danger); }
.ig__prefix { display: inline-flex; align-items: center; padding: 0 12px; background: var(--surface-2); color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; border-right: 1px solid var(--line); white-space: nowrap; }
.form__field .ig input { border: 0; border-radius: 0; box-shadow: none; background: transparent; min-width: 0; }
.form__field .ig input:focus { box-shadow: none; }
[data-theme="dark"] .ig { background: var(--surface); }

/* ---- Databases tab ---- */
.db-create__form { display: grid; }
.db-create__row { display: flex; gap: 12px; align-items: stretch; }
.db-create__row .ig { flex: 1 1 auto; min-width: 0; }
.db-create__btn { flex: 0 0 auto; white-space: nowrap; align-self: stretch; height: auto; padding-top: 0; padding-bottom: 0; }
.db-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.db-row:first-child { padding-top: 0; }
.db-row:last-child { border-bottom: 0; padding-bottom: 0; }
.db-row__icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; background: var(--primary-soft, rgba(79, 70, 229, 0.12)); color: var(--primary); }
.db-row__info { display: grid; gap: 4px; min-width: 0; flex: 1 1 260px; }
.db-row__name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; color: var(--navy); }
.db-row__name .copy { max-width: 100%; }
.db-row__name .copy__value { font-size: 1rem; font-weight: 700; color: var(--navy); white-space: nowrap; word-break: normal; overflow: hidden; text-overflow: ellipsis; }
.db-row__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.84rem; color: var(--text-muted); }
.db-row__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: 0 1 auto; margin-left: auto; }
.db-row__secret { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--success-bg); border: 1px solid rgba(16, 185, 129, 0.35); }
.db-row__secret-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--success); font-size: 0.86rem; }
.db-empty { display: grid; justify-items: center; gap: 8px; padding: 22px 12px; text-align: center; color: var(--text-muted); }
.db-empty .icon { color: var(--primary); }
.db-empty p { margin: 0; max-width: 48ch; }
.kv--cols { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 24px; }
@media (max-width: 719px) {
    .db-create__row { flex-direction: column; }
    .db-create__btn { width: 100%; padding-top: 11px; padding-bottom: 11px; }
    .db-row__actions { flex: 1 1 100%; justify-content: flex-start; margin-left: 0; }
    .db-row__name .copy__value { white-space: normal; overflow-wrap: anywhere; }
    .pop__body, .pop__body--right { left: 0; right: auto; }
}

/* ---- Input group suffix (mailbox @domain) ---- */
.ig__suffix { display: inline-flex; align-items: center; padding: 0 12px; background: var(--surface-2); color: var(--navy); font-weight: 600; font-size: 0.92rem; border-left: 1px solid var(--line); white-space: nowrap; flex: 0 0 auto; }
.ig input { flex: 1 1 120px; }
@media (max-width: 719px) { .ig { flex-wrap: wrap; } .ig__suffix { flex: 1 1 100%; border-left: 0; border-top: 1px solid var(--line); padding: 6px 12px; font-size: 0.84rem; } }

/* ---- Email DNS checklist ---- */
.dnsx .card__actions form { display: inline-flex; }
.dnsx__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dnsx__item { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 12px; background: var(--surface); border-left-width: 4px; }
.dnsx__item--success { border-left-color: var(--success); }
.dnsx__item--warning { border-left-color: var(--warning); }
.dnsx__item--danger { border-left-color: var(--danger); }
.dnsx__item--muted { border-left-color: var(--line-strong); }
.dnsx__item .dns-rec { border: 1px solid var(--line); padding: 2px 14px; background: var(--surface-2); }
.dnsx__item .dns-rec__val code { background: var(--surface); }
.dnsx__item .dns-rec__row { border-bottom-color: rgba(15, 23, 42, 0.06); }
.dnsx__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dnsx__num { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-2); color: var(--navy); font-weight: 800; font-size: 0.82rem; flex: none; }
.dnsx__title { display: grid; gap: 2px; flex: 1 1 240px; min-width: 0; }
.dnsx__title strong { color: var(--navy); }
.dnsx__title .muted { font-size: 0.86rem; }
.dnsx__head form { margin-left: auto; }

/* ---- Mail app settings table ---- */
.mailapp { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mailapp__row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); align-items: center; }
.mailapp__row:first-child { border-top: 0; }
.mailapp__row--head { background: var(--surface-2); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); padding: 8px 14px; }
.mailapp__k { font-weight: 600; color: var(--navy); }
.mailapp__v { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; overflow-wrap: anywhere; }
.mailapp__v code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; color: var(--navy); }
.mailapp__tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--info-bg); color: var(--info); font-size: 0.78rem; font-weight: 700; }
@media (max-width: 719px) { .mailapp__row { grid-template-columns: 1fr; gap: 4px; } .mailapp__row--head { display: none; } }

/* ---- Cron jobs ---- */
.cronf { display: grid; gap: 18px; }
.cronf__step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; }
.cronf__num { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary-soft, rgba(79, 70, 229, 0.12)); color: var(--primary); font-weight: 800; font-size: 0.9rem; margin-top: 26px; }
.cronf__body { min-width: 0; }
.cronf__grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
.cronf__grid--when { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); }
.cronf__grid--last { grid-template-columns: minmax(0, 1fr) auto; }
[data-cron-field][hidden] { display: none; }
.cronf .form__field--submit { align-self: end; }
.cronf .form__field--submit .btn { height: 48px; }
.cron-out { flex: 1 1 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.cron-out summary { cursor: pointer; padding: 10px 14px; font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.cron-out__pre { margin: 0; padding: 12px 14px; border-top: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; color: var(--text); }
.list-plain { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--text); }
@media (max-width: 719px) { .cronf__grid, .cronf__grid--when, .cronf__grid--last { grid-template-columns: 1fr; } .cronf__step { grid-template-columns: 1fr; } .cronf__num { margin-top: 0; } .cronf .form__field--submit .btn { width: 100%; } }

/* ---- Switches, radio sets, two-factor setup ---- */
.switch { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start; cursor: pointer; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.switch input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { position: relative; display: block; width: 46px; height: 26px; border-radius: 999px; background: var(--line-strong); transition: background 0.15s; margin-top: 2px; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.switch input:checked + .switch__track { background: var(--success); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 3px var(--primary-soft, rgba(79, 70, 229, 0.25)); }
.switch__text { display: grid; gap: 2px; color: var(--navy); }
.switch__text small { color: var(--text-muted); font-size: 0.84rem; line-height: 1.5; }
.radio-set { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; display: grid; gap: 8px; }
.radio-set legend { font-weight: 600; color: var(--navy); padding: 0 6px; }
.radio-set__item { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.card--danger { border-color: rgba(239, 68, 68, 0.35); }
.tf-setup { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.tf-setup__qr { padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.tf-setup__qr svg { display: block; width: 200px; height: 200px; }
.tf-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin-top: 10px; }
.tf-codes code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(245, 158, 11, 0.4); border-radius: 8px; padding: 6px 8px; text-align: center; font-weight: 700; }
.tf-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 719px) { .tf-setup { grid-template-columns: 1fr; } }
.radio-set--tight { padding: 8px 10px; gap: 6px; font-size: 0.9rem; }
.pop__body .radio-set legend { font-size: 0.8rem; }

/* ---- Account backups ---- */
.bk-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.bk-when { display: grid; gap: 2px; }
.bk-when__label { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); }
.bk-when__date { font-size: 1.25rem; color: var(--navy); }
.bk-inside { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.bk-inside summary { cursor: pointer; font-weight: 600; color: var(--primary); font-size: 0.92rem; }
.bk-sites { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; gap: 8px; }
.bk-sites li { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.bk-sites__domain { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); }
.bk-sites__links { display: inline-flex; flex-wrap: wrap; gap: 6px; }

/* ---- Account settings: hero + settings cards ---- */
.acct-hero { display: flex; gap: 16px; align-items: center; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-bottom: 18px; flex-wrap: wrap; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.4rem; }
.acct-hero__body { flex: 1 1 260px; min-width: 0; display: grid; gap: 2px; }
.acct-hero__name { margin: 0; font-size: 1.25rem; color: var(--navy); }
.acct-hero__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 0.92rem; overflow-wrap: anywhere; }
.sc-list { display: grid; gap: 18px; }
.sc { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; scroll-margin-top: 90px; box-shadow: var(--shadow-card); }
.sc__head { padding: 18px 22px 0; }
.sc__head h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--navy); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc__head p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.sc__body { padding: 18px 22px 22px; display: grid; gap: 14px; }
.sc__text { margin: 0; color: var(--text); line-height: 1.6; }
.sc__grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sc__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sc__grid .form__field input { height: 46px; }
.sc__foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; padding: 12px 22px; border-top: 1px solid var(--line); background: var(--surface-2); }
.sc__foot-note { margin-right: auto; color: var(--text-muted); font-size: 0.86rem; }
.sc__foot-field { flex: 1 1 240px; max-width: 360px; margin-left: auto; }
.sc__foot-field input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; background: var(--surface); color: var(--text); }
.sc__foot-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft, rgba(79, 70, 229, 0.18)); }
.sc__foot .btn { height: 44px; white-space: nowrap; }
.sc__foot-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sc__foot .pop__body { bottom: calc(100% + 6px); top: auto; }
.tf-setup { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.tf-setup__steps { margin: 0; }
.sess { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sess__item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.sess__icon { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--primary); flex: none; }
.sess__body { display: grid; gap: 2px; min-width: 0; }
.sess__body strong { color: var(--navy); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sess__body small { color: var(--text-muted); }
@media (max-width: 900px) { .sc__grid, .sc__grid--3 { grid-template-columns: 1fr; } .tf-setup { grid-template-columns: 1fr; } .sc__foot-field { max-width: none; flex-basis: 100%; } .sc__foot .btn { width: 100%; } .sc__foot-note { flex-basis: 100%; } }

/* ---- Support ticket form ---- */
.tk-aside { display: grid; gap: 16px; align-content: start; }
.tk-tips, .tk-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tk-tips li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 0.92rem; line-height: 1.5; }
.tk-tips .icon { color: var(--success); flex: none; margin-top: 3px; }
.tk-links a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); font-weight: 600; text-decoration: none; background: var(--surface-2); }
.tk-links a:hover { border-color: var(--primary); color: var(--primary); }
.sc__foot-note .icon { vertical-align: -2px; margin-right: 4px; }
.sc textarea { min-height: 180px; }
