:root {
    --bg: #0b0616;
    --bg-soft: #18102b;
    --text: #f2ebff;
    --muted: #bcaee8;
    --accent: #9a4dff;
    --accent-2: #6f33ff;
    --accent-3: #c266ff;
    --card: rgba(31, 19, 53, 0.78);
    --border: rgba(189, 146, 255, 0.3);
}

html[data-theme="light"] {
    --bg: #f5efff;
    --bg-soft: #ffffff;
    --text: #2b1848;
    --muted: #6d5b8d;
    --accent: #7a34f0;
    --accent-2: #6f33ff;
    --accent-3: #9f5dff;
    --card: rgba(255, 255, 255, 0.92);
    --border: rgba(133, 83, 212, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 540px at 8% -10%, rgba(159, 75, 255, .30), transparent 60%),
        radial-gradient(900px 500px at 94% 0%, rgba(109, 57, 255, .24), transparent 55%),
        linear-gradient(180deg, #140b24 0%, var(--bg) 46%, #090510 100%);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background .35s ease, color .35s ease;
}

html[data-theme="light"] body {
    background:
        radial-gradient(1200px 540px at 8% -10%, rgba(170, 127, 255, .24), transparent 60%),
        radial-gradient(900px 500px at 94% 0%, rgba(167, 120, 255, .18), transparent 55%),
        linear-gradient(180deg, #f9f4ff 0%, var(--bg) 46%, #efe6ff 100%);
}

.bg-glow {
    position: fixed;
    border-radius: 999px;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
    opacity: .55;
}
.bg-glow-1 { width: 360px; height: 360px; background: #aa54ff; top: 12%; left: -120px; animation: floaty 8s ease-in-out infinite; }
.bg-glow-2 { width: 300px; height: 300px; background: #6c3bff; right: -110px; bottom: 8%; animation: floaty 10s ease-in-out infinite reverse; }

@keyframes floaty {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-18px); }
}

.container { width: min(1140px, 92%); margin: 0 auto; }

.page-shell {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .35s ease, transform .35s ease;
}

body.is-page-leaving .page-shell {
    opacity: 0;
    transform: translateY(10px);
}

.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    background:
      radial-gradient(900px 340px at 50% 12%, rgba(174, 106, 255, .26), transparent 65%),
      rgba(10, 6, 18, .96);
    transition: opacity .35s ease, visibility .35s ease;
}

.site-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-orb {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 2px solid rgba(224, 195, 255, .5);
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 30px rgba(172, 105, 255, .45);
}

.loader-text {
    color: #f2e7ff;
    font-weight: 700;
    letter-spacing: .5px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

html[data-theme="light"] .site-preloader {
    background:
      radial-gradient(900px 340px at 50% 12%, rgba(164, 109, 243, .2), transparent 65%),
      rgba(250, 245, 255, .96);
}

html[data-theme="light"] .loader-text { color: #3a2165; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(14, 8, 24, 0.65);
    border-bottom: 1px solid rgba(190, 155, 255, 0.16);
    transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
    background: rgba(14, 8, 24, 0.90);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
}
.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: calc(var(--scroll-progress, 0) * 100%);
    background: linear-gradient(90deg, var(--accent), var(--accent-3));
    transition: width .12s linear;
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
    letter-spacing: .3px;
    font-size: 18px;
}

.theme-toggle {
    border: 1px solid var(--border);
    background: rgba(155, 82, 255, .12);
    color: var(--text);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: rgba(155, 82, 255, .12);
    color: var(--text);
    border-radius: 10px;
    width: 38px;
    height: 38px;
}

.site-nav { display: flex; gap: 18px; }
.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s ease, text-shadow .2s ease;
}
.site-nav a:hover {
    color: #fff;
    text-shadow: 0 0 16px rgba(198, 129, 255, .55);
}

.btn {
    border: 1px solid rgba(124,58,237,0.35);
    text-decoration: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 700;
    transition: all .2s ease;
}
.btn-primary {
    background: rgba(124,58,237,0.15);
    color: #fff;
}
.btn-ghost {
    display: inline-block;
    color: var(--text);
    background: rgba(124,58,237,0.15);
}
.btn:hover,
.btn-primary:hover,
.btn-ghost:hover,
.theme-toggle:hover {
    background: rgba(124,58,237,0.25);
    transform: translateY(-2px);
}

/* — Nav actions wrapper (theme toggle + cabinet btn) — */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.nav-actions .theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    opacity: .72;
    transition: opacity .2s, background .2s;
}
.nav-actions .theme-toggle:hover { opacity: 1; }
.btn-cabinet {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(124,58,237,.28), rgba(168,85,247,.18));
    color: #fff;
    border: 1px solid rgba(168,85,247,.45);
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(124,58,237,.22);
    transition: all .22s ease;
}
.btn-cabinet:hover {
    background: linear-gradient(135deg, rgba(124,58,237,.42), rgba(168,85,247,.30));
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(124,58,237,.35);
}

.flash-wrap {
    padding-top: 8px;
    padding-bottom: 0;
}

.flash-stack {
    display: grid;
    gap: 8px;
}

.flash-item {
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    font-size: 14px;
}

.flash-success {
    border-color: rgba(72, 187, 120, 0.35);
    background: rgba(72, 187, 120, 0.12);
}

.flash-danger {
    border-color: rgba(255, 90, 90, 0.36);
    background: rgba(255, 90, 90, 0.12);
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD — Modern VPN-style Personal Cabinet
   ═══════════════════════════════════════════════════════════ */

.dash { padding: 28px 0 48px; padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }

.dash-container { max-width: 1140px; }

/* ── Top bar ── */
.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.dash-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.dash-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.dash-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(147,83,255,.35), rgba(106,57,255,.25));
    border: 1px solid rgba(200,160,255,.25);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.dash-avatar-icon { width: 24px; height: 24px; color: #e0d0ff; }
.dash-username {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}
.dash-role {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--muted);
}

/* ── Buttons ── */
.dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(124,58,237,.3);
    border-radius: 10px;
    padding: 9px 16px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
    line-height: 1.3;
    font-family: inherit;
    color: var(--text);
    background: transparent;
}
.dash-btn-primary {
    background: linear-gradient(135deg, rgba(124,58,237,.5), rgba(147,83,255,.4));
    border-color: rgba(168,100,255,.4);
    color: #fff;
}
.dash-btn-primary:hover {
    background: linear-gradient(135deg, rgba(124,58,237,.65), rgba(147,83,255,.55));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124,58,237,.3);
}
.dash-btn-accent {
    background: rgba(124,58,237,.18);
    border-color: rgba(168,100,255,.35);
}
.dash-btn-accent:hover {
    background: rgba(124,58,237,.3);
    transform: translateY(-1px);
}
.dash-btn-outline {
    border-color: rgba(200,160,255,.25);
    background: rgba(255,255,255,.03);
}
.dash-btn-outline:hover {
    background: rgba(124,58,237,.15);
    transform: translateY(-1px);
}
.dash-btn-ghost {
    border-color: transparent;
    background: rgba(255,255,255,.04);
}
.dash-btn-ghost:hover {
    background: rgba(255,255,255,.08);
}
.dash-btn-sm { padding: 6px 12px; font-size: 13px; }
.dash-btn-block { width: 100%; justify-content: center; }

/* ── Status bar ── */
.dash-status-bar { margin-bottom: 20px; }
.dash-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid;
}
.dash-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    flex-shrink: 0;
}
.dash-status-online {
    border-color: rgba(72,187,120,.4);
    background: rgba(72,187,120,.1);
    color: #b8ffd0;
}
.dash-status-online .dash-status-dot {
    background: #48bb78;
    box-shadow: 0 0 10px rgba(72,187,120,.7);
    animation: statusPulse 2s ease-in-out infinite;
}
.dash-status-offline {
    border-color: rgba(255,193,7,.35);
    background: rgba(255,193,7,.08);
    color: #ffe8a3;
}
.dash-status-offline .dash-status-dot {
    background: #ffc107;
    box-shadow: 0 0 8px rgba(255,193,7,.5);
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

/* ── KPI cards ── */
.dash-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.dash-kpi-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(200,160,255,.14);
    background:
        linear-gradient(135deg, rgba(40,23,68,.55), rgba(26,15,44,.6));
    box-shadow: 0 4px 18px rgba(16,6,30,.25);
    transition: transform .2s ease, box-shadow .2s ease;
}
.dash-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16,6,30,.4);
}
.dash-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.dash-kpi-icon svg { width: 22px; height: 22px; }
.dash-kpi-icon--balance {
    background: linear-gradient(135deg, rgba(72,187,120,.25), rgba(72,187,120,.1));
    color: #6ee7a0;
}
.dash-kpi-icon--keys {
    background: linear-gradient(135deg, rgba(124,58,237,.3), rgba(124,58,237,.12));
    color: #c8a4ff;
}
.dash-kpi-icon--tx {
    background: linear-gradient(135deg, rgba(59,130,246,.25), rgba(59,130,246,.1));
    color: #93bbfd;
}
.dash-kpi-icon--shield {
    background: linear-gradient(135deg, rgba(236,72,153,.25), rgba(236,72,153,.1));
    color: #f9a8d4;
}
.dash-kpi-info { display: grid; gap: 2px; }
.dash-kpi-label { font-size: 12px; color: var(--muted); letter-spacing: .3px; }
.dash-kpi-value {
    font-size: 22px;
    font-weight: 800;
    color: #f5eeff;
    line-height: 1.2;
}
.dash-kpi-value small { font-size: 14px; font-weight: 600; color: var(--muted); }
.dash-kpi-value--sm { font-size: 16px; }

/* ── Trial banner ── */
.dash-trial-banner {
    position: relative;
    border-radius: 18px;
    padding: 28px 28px 28px 28px;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid rgba(72,187,120,.30);
    background:
        radial-gradient(500px 200px at 5% 50%, rgba(72,187,120,.14), transparent 65%),
        linear-gradient(135deg, rgba(35,20,60,.65), rgba(22,13,38,.7));
    box-shadow: 0 6px 28px rgba(72,187,120,.10);
}
.dash-trial-glow {
    position: absolute;
    top: -40%;
    right: -10%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(72,187,120,.18), transparent 70%);
    pointer-events: none;
}
.dash-trial-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1;
}
.dash-trial-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(72,187,120,.28), rgba(72,187,120,.12));
    color: #6ee7a0;
}
.dash-trial-icon svg { width: 26px; height: 26px; }
.dash-trial-text {
    flex: 1;
    min-width: 0;
}
.dash-trial-text h3 {
    font-size: 17px;
    font-weight: 800;
    color: #e8fce8;
    margin: 0 0 4px 0;
}
.dash-trial-text p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}
.dash-trial-form { flex-shrink: 0; }
.dash-trial-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(72,187,120,.45);
    background: linear-gradient(135deg, rgba(72,187,120,.30), rgba(72,187,120,.15));
    cursor: pointer;
    transition: all .22s ease;
    box-shadow: 0 4px 18px rgba(72,187,120,.18);
}
.dash-trial-btn:hover {
    background: linear-gradient(135deg, rgba(72,187,120,.45), rgba(72,187,120,.25));
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(72,187,120,.30);
}
.dash-link {
    color: #6ee7a0;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.dash-link:hover { color: #a2ffa2; }

/* ── Main grid (two-column) ── */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}
.dash-col-main { display: grid; gap: 20px; }
.dash-col-side { display: grid; gap: 20px; position: sticky; top: 80px; }

/* ── Cards ── */
.dash-card {
    border-radius: 18px;
    padding: 22px;
    border: 1px solid rgba(200,160,255,.13);
    background:
        linear-gradient(180deg, rgba(35,20,60,.6), rgba(22,13,38,.65));
    box-shadow: 0 6px 24px rgba(12,4,24,.3);
    transition: border-color .2s ease;
}
.dash-card:hover {
    border-color: rgba(200,160,255,.22);
}
.dash-card--highlight {
    border-color: rgba(124,58,237,.35);
    background:
        radial-gradient(380px 180px at 10% -20%, rgba(124,58,237,.16), transparent 60%),
        linear-gradient(180deg, rgba(35,20,60,.65), rgba(22,13,38,.7));
}
.dash-card--subtle {
    background: rgba(35,20,60,.35);
    border-color: rgba(200,160,255,.08);
}
.dash-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}
.dash-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #eee3ff;
}
.dash-card-title svg { width: 18px; height: 18px; color: var(--accent); }
.dash-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    border-radius: 8px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(124,58,237,.2);
    border: 1px solid rgba(124,58,237,.3);
    color: #d5bfff;
}

/* ── Keys list ── */
.dash-keys-list { display: grid; gap: 12px; }
.dash-key-item {
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(200,160,255,.1);
    background: rgba(255,255,255,.02);
    transition: background .2s ease, border-color .2s ease;
}
.dash-key-item:hover {
    background: rgba(124,58,237,.06);
    border-color: rgba(200,160,255,.18);
}
.dash-key-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.dash-key-server {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
}
.dash-key-server-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #48bb78;
    box-shadow: 0 0 8px rgba(72,187,120,.6);
    flex-shrink: 0;
}
.dash-key-server-name { color: #f0e6ff; }
.dash-key-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 6px;
    border-radius: 7px;
    background: rgba(124,58,237,.2);
    border: 1px solid rgba(124,58,237,.3);
    font-size: 12px;
    font-weight: 700;
    color: #d5bfff;
    letter-spacing: .3px;
    flex-shrink: 0;
}
.dash-key-item--selected {
    border-color: var(--accent) !important;
    background: rgba(124,58,237,.08) !important;
    box-shadow: 0 0 16px rgba(154,77,255,.12);
}
.dash-key-item { cursor: pointer; }
.dash-key-expire {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--muted);
}
.dash-key-url-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.dash-key-url {
    flex: 1;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(200,160,255,.08);
    font-size: 12px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'SF Mono', 'Fira Code', monospace;
}
.dash-copy-btn { position: relative; }
.dash-copy-btn.is-copied { border-color: rgba(72,187,120,.5); color: #48bb78; }
.dash-key-extend-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Unified extend form ── */
.dash-extend-unified-form {
    display: grid;
    gap: 16px;
}
.dash-form-group {
    display: grid;
    gap: 6px;
}
.dash-form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .2px;
}
.dash-form-label svg { color: var(--accent); }

/* ── Select & Input ── */
.dash-select,
.dash-input {
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(200,160,255,.15);
    background: rgba(0,0,0,.2);
    color: var(--text);
    padding: 0 12px;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
    width: 100%;
}
.dash-select:focus,
.dash-input:focus {
    border-color: rgba(124,58,237,.55);
    box-shadow: 0 0 0 3px rgba(124,58,237,.14);
}
.dash-select { cursor: pointer; }
.dash-key-extend-form .dash-select { flex: 1; min-width: 0; }

/* ── Plans grid ── */
.dash-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.dash-plan-card {
    border-radius: 14px;
    padding: 18px;
    border: 1px solid rgba(200,160,255,.12);
    background:
        linear-gradient(135deg, rgba(40,23,68,.45), rgba(26,15,44,.5));
    transition: border-color .2s ease, transform .2s ease;
}
.dash-plan-card:hover {
    border-color: rgba(124,58,237,.3);
    transform: translateY(-2px);
}
.dash-plan-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.dash-plan-head h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}
.dash-plan-server-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(154,77,255,.5);
    flex-shrink: 0;
}
.dash-plan-form {
    display: grid;
    gap: 10px;
}

/* ── Payment method selector ── */
.dash-pay-methods {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.dash-pay-method {
    cursor: pointer;
    flex: 1 1 0;
    min-width: 0;
}
.dash-pay-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.dash-pay-method-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1.5px solid rgba(200,160,255,.12);
    background: rgba(255,255,255,.03);
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all .18s ease;
    white-space: nowrap;
    text-align: center;
}
.dash-pay-method-pill small {
    font-weight: 400;
    opacity: .7;
}
.dash-pay-method input[type="radio"]:checked + .dash-pay-method-pill {
    border-color: var(--accent);
    background: rgba(124,58,237,.12);
    color: #fff;
    box-shadow: 0 0 12px rgba(154,77,255,.18);
}
.dash-pay-method:hover .dash-pay-method-pill {
    border-color: rgba(200,160,255,.25);
    background: rgba(124,58,237,.06);
}
.dash-pay-method--disabled {
    pointer-events: none;
    opacity: .4;
}
.dash-pay-method--disabled .dash-pay-method-pill {
    border-color: rgba(200,160,255,.06);
    background: rgba(255,255,255,.01);
    color: var(--text-muted);
}
.dash-key-extend-form .dash-pay-methods {
    flex-basis: 100%;
    order: 10;
}

/* ── Transactions ── */
.dash-tx-list { display: grid; gap: 8px; }
.dash-tx-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(200,160,255,.06);
    background: rgba(255,255,255,.015);
    transition: background .15s ease;
}
.dash-tx-item:hover {
    background: rgba(124,58,237,.05);
}
.dash-tx-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dash-tx-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.dash-tx-icon--paid,
.dash-tx-icon--success,
.dash-tx-icon--succeeded {
    background: rgba(72,187,120,.14);
    color: #6ee7a0;
}
.dash-tx-icon--pending,
.dash-tx-icon--waiting {
    background: rgba(255,193,7,.14);
    color: #ffd966;
}
.dash-tx-icon--failed,
.dash-tx-icon--canceled,
.dash-tx-icon--cancelled,
.dash-tx-icon--error {
    background: rgba(255,107,107,.14);
    color: #ff8a8a;
}
.dash-tx-amount {
    display: block;
    font-weight: 700;
    font-size: 15px;
}
.dash-tx-date {
    display: block;
    font-size: 12px;
    color: var(--muted);
}
.dash-tx-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    white-space: nowrap;
}
.dash-tx-badge--paid,
.dash-tx-badge--success,
.dash-tx-badge--succeeded {
    border-color: rgba(72,187,120,.4);
    background: rgba(72,187,120,.12);
    color: #b8ffd0;
}
.dash-tx-badge--pending,
.dash-tx-badge--waiting {
    border-color: rgba(255,193,7,.4);
    background: rgba(255,193,7,.1);
    color: #fff0bd;
}
.dash-tx-badge--failed,
.dash-tx-badge--canceled,
.dash-tx-badge--cancelled,
.dash-tx-badge--error {
    border-color: rgba(255,107,107,.4);
    background: rgba(255,107,107,.12);
    color: #ffd4d4;
}

/* ── Collapsible card ── */
.dash-card--collapsible .dash-card-toggle {
    cursor: pointer;
    user-select: none;
}
.dash-card-head-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-toggle-chevron {
    transition: transform .25s ease;
    color: var(--muted);
}
.dash-card--collapsible.is-collapsed .dash-toggle-chevron {
    transform: rotate(-90deg);
}
.dash-card-collapse {
    transition: max-height .3s ease, opacity .25s ease;
    max-height: 2000px;
    opacity: 1;
    overflow: hidden;
}
.dash-card--collapsible.is-collapsed .dash-card-collapse {
    max-height: 0;
    opacity: 0;
}

/* ── How-to instructions ── */
.dash-howto-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.dash-howto-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(200,160,255,.1);
    background: rgba(255,255,255,.02);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}
.dash-howto-tab:hover {
    background: rgba(124,58,237,.08);
    border-color: rgba(124,58,237,.2);
    color: var(--text);
}
.dash-howto-tab.active {
    background: rgba(124,58,237,.15);
    border-color: rgba(124,58,237,.35);
    color: #c4b5fd;
}
.dash-howto-panel {
    display: none;
}
.dash-howto-panel.active {
    display: block;
}
.dash-howto-steps {
    display: grid;
    gap: 10px;
}
.dash-howto-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(200,160,255,.06);
    background: rgba(255,255,255,.015);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    transition: background .15s ease;
}
.dash-howto-step:hover {
    background: rgba(124,58,237,.04);
}
.dash-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(124,58,237,.3), rgba(167,139,250,.2));
    color: #c4b5fd;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
}
.dash-howto-step strong {
    color: var(--text);
    font-weight: 700;
}
.dash-howto-step a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.dash-howto-step a:hover {
    color: #c4b5fd;
}
.dash-howto-step code {
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(124,58,237,.12);
    font-size: 12px;
    color: #e0d4ff;
}

/* ── Empty state ── */
.dash-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--muted);
}
.dash-empty-icon {
    width: 40px;
    height: 40px;
    color: rgba(200,160,255,.3);
    margin-bottom: 12px;
}
.dash-empty p {
    margin: 0 0 4px;
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
}
.dash-empty span {
    font-size: 13px;
}

/* ── Telegram linking card ── */
.dash-link-form {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}
.dash-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 12px;
    font-size: 12px;
    color: var(--muted);
}
.dash-divider::before,
.dash-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(200,160,255,.12);
}
.dash-hint {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}
.dash-hint--sm {
    margin: 6px 0 0;
    font-size: 12px;
    opacity: .7;
}
.dash-linked-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(72,187,120,.08);
    border: 1px solid rgba(72,187,120,.25);
    color: #b8ffd0;
}
.dash-linked-badge svg { flex-shrink: 0; }
.dash-linked-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
}
.dash-linked-id {
    display: block;
    font-size: 13px;
    color: var(--muted);
}

/* ── Quick nav ── */
.dash-quick-nav {
    display: grid;
    gap: 4px;
}
.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    transition: all .15s ease;
}
.dash-nav-link:hover {
    color: #fff;
    background: rgba(124,58,237,.12);
}
.dash-nav-link svg { color: var(--accent); }

/* ── Info list ── */
.dash-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.dash-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}
.dash-info-list li svg {
    color: #48bb78;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Light theme overrides ── */
html[data-theme="light"] .dash-kpi-card {
    background: linear-gradient(135deg, rgba(255,255,255,.8), rgba(245,239,255,.7));
    border-color: rgba(133,83,212,.15);
    box-shadow: 0 4px 18px rgba(133,83,212,.08);
}
html[data-theme="light"] .dash-kpi-value { color: #2b1848; }
html[data-theme="light"] .dash-card {
    background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(249,244,255,.8));
    border-color: rgba(133,83,212,.12);
    box-shadow: 0 4px 16px rgba(133,83,212,.06);
}
html[data-theme="light"] .dash-card--highlight {
    background:
        radial-gradient(380px 180px at 10% -20%, rgba(124,58,237,.06), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,.9), rgba(249,244,255,.85));
}
html[data-theme="light"] .dash-card--subtle {
    background: rgba(255,255,255,.5);
}
html[data-theme="light"] .dash-key-item {
    background: rgba(133,83,212,.03);
    border-color: rgba(133,83,212,.1);
}
html[data-theme="light"] .dash-key-number {
    background: rgba(124,58,237,.10);
    border-color: rgba(124,58,237,.2);
    color: #5b2e8c;
}
html[data-theme="light"] .dash-key-item--selected {
    border-color: var(--accent) !important;
    background: rgba(124,58,237,.06) !important;
    box-shadow: 0 0 12px rgba(154,77,255,.08);
}
html[data-theme="light"] .dash-form-label { color: #5a3a80; }
html[data-theme="light"] .dash-key-url {
    background: rgba(0,0,0,.04);
    border-color: rgba(133,83,212,.1);
}
html[data-theme="light"] .dash-select,
html[data-theme="light"] .dash-input {
    background: rgba(255,255,255,.6);
    border-color: rgba(133,83,212,.18);
}
html[data-theme="light"] .dash-plan-card {
    background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(249,244,255,.6));
    border-color: rgba(133,83,212,.12);
}
html[data-theme="light"] .dash-tx-item {
    background: rgba(133,83,212,.02);
    border-color: rgba(133,83,212,.06);
}
html[data-theme="light"] .dash-avatar {
    background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(147,83,255,.08));
    border-color: rgba(133,83,212,.2);
}
html[data-theme="light"] .dash-status-online {
    background: rgba(72,187,120,.08);
    color: #276749;
}
html[data-theme="light"] .dash-status-offline {
    background: rgba(255,193,7,.08);
    color: #975a16;
}
html[data-theme="light"] .dash-linked-badge {
    background: rgba(72,187,120,.06);
    border-color: rgba(72,187,120,.2);
    color: #276749;
}
html[data-theme="light"] .dash-pay-method-pill {
    border-color: rgba(90,50,150,.12);
    background: rgba(124,58,237,.03);
    color: #4a3170;
}
html[data-theme="light"] .dash-pay-method input[type="radio"]:checked + .dash-pay-method-pill {
    border-color: var(--accent);
    background: rgba(124,58,237,.10);
    color: #3b1a6e;
    box-shadow: 0 0 10px rgba(154,77,255,.12);
}
html[data-theme="light"] .dash-pay-method:hover .dash-pay-method-pill {
    border-color: rgba(124,58,237,.2);
    background: rgba(124,58,237,.06);
}
html[data-theme="light"] .dash-howto-tab {
    border-color: rgba(90,50,150,.1);
    background: rgba(124,58,237,.03);
    color: #5a3a80;
}
html[data-theme="light"] .dash-howto-tab.active {
    background: rgba(124,58,237,.1);
    border-color: rgba(124,58,237,.3);
    color: #3b1a6e;
}
html[data-theme="light"] .dash-howto-step {
    border-color: rgba(90,50,150,.08);
    background: rgba(124,58,237,.02);
    color: #2b1848;
}
html[data-theme="light"] .dash-howto-step:hover {
    background: rgba(124,58,237,.05);
}
html[data-theme="light"] .dash-step-num {
    background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(167,139,250,.12));
    color: #5b3a9e;
}
html[data-theme="light"] .dash-howto-step code {
    background: rgba(124,58,237,.08);
    color: #3b1a6e;
}
html[data-theme="light"] .dash-toggle-chevron {
    color: #64748b;
}

/* ═══════════════════════════════════════════════════════════
   Z-LAYOUT — Mobile-first Personal Cabinet v3
   Compact 4-zone layout: Header → KPI → Keys → Extend
   ═══════════════════════════════════════════════════════════ */

/* ── Zone 1: Header ── */
.z-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 10px;
}
.z-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.z-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: grid;
    place-items: center;
}
.z-avatar-icon { width: 18px; height: 18px; color: #fff; }
.z-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.z-username {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.z-tg-status {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}
.z-tg-on {
    color: #34d399;
    background: rgba(52, 211, 153, .12);
}
.z-tg-off {
    color: var(--muted);
    background: rgba(148, 163, 184, .08);
}
.z-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.z-hdr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all .2s;
}
.z-hdr-btn:hover {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(154, 77, 255, .08);
}
/* ── Dashboard page footer removed ── */
body:has(.dash) .site-footer {
    display: none;
}
body:has(.dash) .dash {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

/* ── Zone 2: KPI Stats Grid ── */
.z-kpi {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}
.z-kpi-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.z-kpi-item::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(154,77,255,.06), transparent 70%);
    pointer-events: none;
}
.z-kpi-ic {
    width: 20px;
    height: 20px;
    color: var(--accent);
    opacity: .7;
    margin-bottom: 2px;
}
.z-kpi--balance .z-kpi-ic { color: #34d399; }
.z-kpi--keys .z-kpi-ic { color: #60a5fa; }
.z-kpi--tx .z-kpi-ic { color: #c084fc; }
.z-kpi-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -.02em;
}
.z-kpi-val small {
    font-size: 13px;
    font-weight: 600;
    opacity: .6;
}
.z-kpi-val--status { font-size: 15px; font-weight: 700; }
.z-kpi-lbl {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
}
.z-shield-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-bottom: 4px;
}
.z-shield-on {
    background: #34d399;
    box-shadow: 0 0 8px rgba(52,211,153,.5);
}
.z-shield-off {
    background: #64748b;
}

/* ── Trial Banner ── */
.z-trial {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(34,197,94,.10));
    border: 1px solid rgba(34,197,94,.26);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 30px rgba(16,185,129,.10);
}
.z-trial-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.z-trial-ic {
    width: 28px;
    height: 28px;
    min-width: 28px;
    color: #4ade80;
}
.z-trial-left strong {
    font-size: 13px;
    color: var(--text);
    display: block;
    line-height: 1.2;
}
.z-trial-sub {
    font-size: 11px;
    color: var(--muted);
}
.z-trial-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 9px;
    border: none;
    background: linear-gradient(135deg, #10b981, #22c55e);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s, box-shadow .15s;
}
.z-trial-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(34,197,94,.35);
}

/* ── Generic Section ── */
.z-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
}
.z-section--highlight {
    border-color: rgba(154,77,255,.22);
    background: linear-gradient(135deg, var(--card), rgba(154,77,255,.04));
}
.z-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.z-section-head-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.z-section-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}
.z-section-title svg { width: 15px; height: 15px; color: var(--accent); opacity: .7; }
.z-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(154,77,255,.14);
    color: var(--accent-3);
}

/* ── Collapsible sections ── */
.z-section--collapse .z-section-toggle {
    cursor: pointer;
    user-select: none;
}
.z-toggle-chev {
    color: var(--muted);
    transition: transform .25s;
}
.z-section--collapse.is-collapsed .z-toggle-chev {
    transform: rotate(-90deg);
}
.z-collapse {
    max-height: 600px;
    overflow: hidden;
    transition: max-height .3s ease, opacity .2s;
    opacity: 1;
}
.z-section--collapse.is-collapsed .z-collapse {
    max-height: 0;
    opacity: 0;
}

/* ── Zone 3: Key Cards ── */
.z-keys {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.z-key {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(154,77,255,.04);
    border: 1px solid rgba(154,77,255,.10);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.z-key:hover {
    border-color: rgba(154,77,255,.24);
    background: rgba(154,77,255,.07);
}
.z-key--sel {
    border-color: var(--accent) !important;
    background: rgba(154,77,255,.10) !important;
    box-shadow: 0 0 0 1px var(--accent);
}
.z-key-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.z-key-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.z-key-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    opacity: .6;
}
.z-key-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 6px rgba(52,211,153,.5);
    flex-shrink: 0;
}
.z-key-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.z-key-exp {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
}
.z-key-url-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(148,163,184,.08);
}
.z-key-url {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: none;
    font-family: 'SF Mono', 'Fira Code', monospace;
}
.z-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all .2s;
}
.z-copy-btn:hover {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(154,77,255,.08);
}
.z-copy-btn.is-copied {
    color: #34d399;
    border-color: #34d399;
    background: rgba(52,211,153,.08);
}

/* ── Zone 4: Extend Form ── */
.z-extend-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.z-extend-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.z-select {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    cursor: pointer;
    transition: border-color .2s;
}
.z-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(154,77,255,.15);
}
.z-pay-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.z-pay-methods {
    display: flex;
    gap: 4px;
    flex: 1;
}
.z-pay-opt {
    cursor: pointer;
}
.z-pay-opt input { display: none; }
.z-pay-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    background: transparent;
    transition: all .2s;
    white-space: nowrap;
}
.z-pay-opt input:checked + .z-pay-pill {
    border-color: var(--accent);
    color: var(--text);
    background: rgba(154,77,255,.10);
    box-shadow: 0 0 0 1px var(--accent);
}
.z-pay-opt--disabled .z-pay-pill {
    opacity: .35;
    cursor: not-allowed;
}

/* ── Autopay ── */
.z-autopay-opt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: .84em;
    margin-top: 4px;
}
.z-autopay-opt input[type="checkbox"] {
    accent-color: var(--accent, #9a4dff);
    width: 14px; height: 14px;
}
.z-autopay-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted, #999);
}
.z-autopay-opt input:checked ~ .z-autopay-label {
    color: var(--accent, #9a4dff);
}
.z-autopay-list { display: flex; flex-direction: column; gap: 6px; }
.z-autopay-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius, 10px);
    background: var(--card-bg, rgba(255,255,255,.03));
    border: 1px solid var(--border, rgba(255,255,255,.06));
}
.z-autopay-info { display: flex; flex-direction: column; gap: 2px; }
.z-autopay-card-title { font-weight: 600; font-size: .9em; }
.z-autopay-plan { font-size: .82em; color: var(--text-muted, #888); }
.z-autopay-next { font-size: .78em; color: var(--accent, #9a4dff); }
.z-btn-danger-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid #ef4444;
    border-radius: 6px;
    background: transparent;
    color: #ef4444;
    font-size: .78em;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.z-btn-danger-sm:hover {
    background: #ef4444;
    color: #fff;
}

.z-btn-extend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 9px;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s, box-shadow .15s;
}
.z-btn-extend:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(154,77,255,.35);
}

/* ── Buy Section ── */
.z-plans {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.z-plan-card {
    padding: 12px;
    border-radius: 10px;
    background: rgba(154,77,255,.03);
    border: 1px solid rgba(154,77,255,.10);
}
.z-plan-head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}
.z-plan-head h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}
.z-plan-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 6px rgba(52,211,153,.4);
}
.z-plan-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.z-btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 16px;
    border-radius: 9px;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.z-btn-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(154,77,255,.35);
}

/* ── Howto ── */
.z-howto-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}
.z-howto-tab {
    flex: 1;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
}
.z-howto-tab.active {
    border-color: var(--accent);
    color: var(--text);
    background: rgba(154,77,255,.10);
}
.z-howto-panel { display: none; }
.z-howto-panel.active { display: block; }
.z-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.z-steps li {
    counter-increment: step;
    position: relative;
    padding: 6px 8px 6px 30px;
    font-size: 12px;
    color: var(--text);
    line-height: 1.4;
    border-radius: 8px;
    background: rgba(148,163,184,.04);
}
.z-steps li::before {
    content: counter(step);
    position: absolute;
    left: 8px;
    top: 7px;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: rgba(154,77,255,.15);
    color: var(--accent-3);
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
}
.z-steps li a { color: var(--accent-3); }

/* ── Transactions ── */
.z-tx-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.z-tx-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(148,163,184,.04);
}
.z-tx-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.z-tx-ic {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 7px;
    display: grid;
    place-items: center;
}
.z-tx-ic--paid, .z-tx-ic--success, .z-tx-ic--succeeded {
    background: rgba(52,211,153,.12);
    color: #34d399;
}
.z-tx-ic--pending, .z-tx-ic--waiting {
    background: rgba(251,191,36,.12);
    color: #fbbf24;
}
.z-tx-ic--cancelled, .z-tx-ic--failed, .z-tx-ic--unknown {
    background: rgba(248,113,113,.12);
    color: #f87171;
}
.z-tx-amount {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}
.z-tx-date {
    display: block;
    font-size: 10px;
    color: var(--muted);
}
.z-tx-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.z-tx-badge--paid, .z-tx-badge--success, .z-tx-badge--succeeded {
    background: rgba(52,211,153,.12);
    color: #34d399;
}
.z-tx-badge--pending, .z-tx-badge--waiting {
    background: rgba(251,191,36,.12);
    color: #fbbf24;
}
.z-tx-badge--cancelled, .z-tx-badge--failed, .z-tx-badge--unknown {
    background: rgba(248,113,113,.12);
    color: #f87171;
}

/* ── Telegram Linking ── */
.z-hint {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 10px;
    line-height: 1.4;
}
.z-link-form { margin-bottom: 8px; }
.z-link-row {
    display: flex;
    gap: 6px;
}
.z-input {
    flex: 1;
    height: 36px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
}
.z-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(154,77,255,.15);
}
.z-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
}
.z-btn-sm:hover {
    border-color: var(--accent);
    background: rgba(154,77,255,.08);
}
.z-btn-accent {
    border-color: var(--accent);
    background: rgba(154,77,255,.10);
    color: var(--accent-3);
}
.z-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    font-size: 10px;
    color: var(--muted);
}
.z-divider::before, .z-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.z-linked {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #34d399;
}
.z-linked-id {
    margin-left: auto;
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
}

/* ── CTA: Link Telegram for levels ── */
.z-cta-levels {
    border: 1px dashed rgba(133,83,212,.28) !important;
    background: linear-gradient(135deg, rgba(133,83,212,.08), rgba(99,102,241,.06)) !important;
}
.z-cta-levels-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.z-cta-levels-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(133,83,212,.14);
    color: var(--accent);
}
.z-cta-levels-text { flex: 1; min-width: 0; }
.z-cta-levels-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--heading);
}
.z-cta-levels-desc {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0 0 12px;
}
.z-cta-levels-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ── Level card (client & referral) ── */
.z-level-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.z-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(133,83,212,.12);
    align-self: flex-start;
}
.z-level-badge--ref {
    background: rgba(16,185,129,.12);
}
.z-level-icon {
    font-size: 18px;
    line-height: 1;
}
.z-level-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--heading);
}

/* Perks list */
.z-level-perks {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.z-level-perk {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
}
.z-level-perk svg { color: var(--accent); opacity: .7; flex-shrink: 0; }
.z-level-perk--muted { color: var(--muted); }
.z-level-perk--muted svg { color: var(--muted); opacity: .5; }

/* Stats row (referral) */
.z-level-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.z-level-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 6px;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}
.z-level-stat-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--heading);
}
.z-level-stat-lbl {
    font-size: 10.5px;
    color: var(--muted);
    text-align: center;
}

/* Next level & progress */
.z-level-next {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.z-level-next-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}
.z-level-next-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--heading);
}
.z-level-progress-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.z-level-progress-label {
    font-size: 11.5px;
    color: var(--muted);
}
.z-level-progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}
.z-level-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-3, #a78bfa));
    transition: width .4s ease;
    min-width: 2px;
}

/* Light theme overrides for levels */
html[data-theme="light"] .z-level-badge { background: rgba(133,83,212,.10); }
html[data-theme="light"] .z-level-badge--ref { background: rgba(16,185,129,.10); }
html[data-theme="light"] .z-level-stat { background: rgba(133,83,212,.04); border-color: rgba(133,83,212,.10); }
html[data-theme="light"] .z-level-next { background: rgba(133,83,212,.03); border-color: rgba(133,83,212,.10); }
html[data-theme="light"] .z-level-progress-bar { background: rgba(133,83,212,.10); }
html[data-theme="light"] .z-cta-levels {
    background: linear-gradient(135deg, rgba(133,83,212,.06), rgba(99,102,241,.04)) !important;
    border-color: rgba(133,83,212,.20) !important;
}

/* ── Empty state ── */
.z-empty {
    text-align: center;
    padding: 20px 10px;
}
.z-empty--sm { padding: 12px 10px; }
.z-empty-ic {
    width: 32px;
    height: 32px;
    color: var(--muted);
    opacity: .4;
    margin-bottom: 8px;
}
.z-empty p {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 4px;
}
.z-empty span {
    font-size: 11px;
    color: var(--muted);
    opacity: .7;
}
.z-link { color: var(--accent-3); text-decoration: underline; }

/* ── Z-layout: Desktop expansion (>= 768px) ── */
@media (min-width: 768px) {
    .z-header { padding: 12px 18px; }
    .z-username { font-size: 17px; max-width: 220px; }
    .z-kpi { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .z-kpi-item { padding: 14px 16px; }
    .z-kpi-val { font-size: 22px; }
    .z-section { padding: 18px; }
    .z-extend-selects { grid-template-columns: 1fr 1fr; gap: 8px; }
    .z-key { padding: 12px 14px; }
    .z-key-url { font-size: 12px; }
    .dash-container { max-width: 680px; }
}

/* ── Z-layout: Large desktop (>= 1024px) ── */
@media (min-width: 1024px) {
    .dash-container { max-width: 780px; }
    .z-kpi-val { font-size: 24px; }
    .z-section { padding: 20px; border-radius: 16px; }
}

/* ── Z-layout: Small phones (< 380px) ── */
@media (max-width: 380px) {
    .z-extend-selects { grid-template-columns: 1fr; }
    .z-pay-row { flex-direction: column; align-items: stretch; }
    .z-btn-extend { width: 100%; justify-content: center; }
    .z-kpi-val { font-size: 17px; }
    .z-header-info { flex-direction: column; align-items: flex-start; gap: 2px; }
    .z-level-stats { grid-template-columns: 1fr; }
    .z-cta-levels-inner { flex-direction: column; align-items: center; text-align: center; }
}

/* ── Z-layout: Light theme overrides ── */
html[data-theme="light"] .z-header { background: #fff; border-color: rgba(133,83,212,.10); }
html[data-theme="light"] .z-kpi-item { background: #fff; border-color: rgba(133,83,212,.10); }
html[data-theme="light"] .z-section { background: #fff; border-color: rgba(133,83,212,.10); }
html[data-theme="light"] .z-key { background: rgba(133,83,212,.04); border-color: rgba(133,83,212,.10); }
html[data-theme="light"] .z-key:hover { background: rgba(133,83,212,.07); border-color: rgba(133,83,212,.20); }
html[data-theme="light"] .z-key--sel { border-color: var(--accent) !important; background: rgba(133,83,212,.08) !important; }
html[data-theme="light"] .z-plan-card { background: rgba(133,83,212,.03); border-color: rgba(133,83,212,.10); }
html[data-theme="light"] .z-hdr-btn { border-color: rgba(133,83,212,.14); color: #64748b; }
html[data-theme="light"] .z-hdr-btn:hover { background: rgba(133,83,212,.06); color: #1e293b; }
html[data-theme="light"] .z-select { background: #fff; border-color: rgba(133,83,212,.14); }
html[data-theme="light"] .z-input { background: #fff; border-color: rgba(133,83,212,.14); }
html[data-theme="light"] .z-pay-pill { border-color: rgba(133,83,212,.14); }
html[data-theme="light"] .z-copy-btn { border-color: rgba(133,83,212,.14); color: #64748b; }
html[data-theme="light"] .z-copy-btn:hover { color: var(--accent); border-color: var(--accent); }
html[data-theme="light"] .z-toggle-chev { color: #64748b; }
html[data-theme="light"] .z-tx-item { background: rgba(133,83,212,.03); }
html[data-theme="light"] .z-trial {
    background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(34,197,94,.08));
    border-color: rgba(34,197,94,.22);
}

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES — Login / Register / Forgot / Reset
   ═══════════════════════════════════════════════════════════ */

.auth-section {
    padding: 40px 0 60px;
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
}

.auth-container {
    width: min(980px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(200,160,255,.16);
    box-shadow:
        0 24px 64px rgba(12,4,24,.45),
        0 0 0 1px rgba(255,255,255,.03) inset;
}

.auth-container--narrow {
    max-width: 480px;
    grid-template-columns: 1fr;
}

.auth-card {
    position: relative;
    padding: 40px 36px;
    background:
        linear-gradient(180deg, rgba(28,16,48,.85), rgba(18,10,32,.9));
    display: grid;
    gap: 24px;
    align-content: center;
}

.auth-card-glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(124,58,237,.2), transparent 70%);
    pointer-events: none;
}

.auth-header {
    display: grid;
    gap: 10px;
}

.auth-header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.auth-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.auth-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(124,58,237,.3), rgba(147,83,255,.15));
    border: 1px solid rgba(200,160,255,.25);
    margin-bottom: 4px;
}

.auth-icon-wrap svg {
    width: 24px;
    height: 24px;
    color: #d5bfff;
}

.auth-icon-wrap--accent {
    background: linear-gradient(135deg, rgba(59,130,246,.25), rgba(99,102,241,.15));
    border-color: rgba(99,130,255,.3);
}

.auth-icon-wrap--accent svg { color: #93bbfd; }

.auth-icon-wrap--warning {
    background: linear-gradient(135deg, rgba(255,193,7,.25), rgba(245,158,11,.12));
    border-color: rgba(255,193,7,.35);
}

.auth-icon-wrap--warning svg { color: #ffd966; }

.auth-icon-wrap--success {
    background: linear-gradient(135deg, rgba(72,187,120,.25), rgba(72,187,120,.12));
    border-color: rgba(72,187,120,.35);
}

.auth-icon-wrap--success svg { color: #6ee7a0; }

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 6px;
}

.auth-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.auth-field label svg { color: rgba(200,160,255,.5); }

.auth-field input {
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(200,160,255,.15);
    background: rgba(0,0,0,.25);
    color: var(--text);
    padding: 0 16px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-field input::placeholder {
    color: rgba(200,160,255,.3);
}

.auth-field input:focus {
    border-color: rgba(124,58,237,.55);
    box-shadow: 0 0 0 4px rgba(124,58,237,.12);
    background: rgba(0,0,0,.35);
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(124,58,237,.35);
    padding: 0 24px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s ease;
    color: var(--text);
    background: transparent;
    text-decoration: none;
}

.auth-btn-primary {
    background: linear-gradient(135deg, rgba(124,58,237,.55), rgba(147,83,255,.45));
    border-color: rgba(168,100,255,.45);
    color: #fff;
    box-shadow: 0 4px 16px rgba(124,58,237,.25);
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, rgba(124,58,237,.7), rgba(147,83,255,.6));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124,58,237,.35);
}

.auth-btn-outline {
    border-color: rgba(200,160,255,.25);
    background: rgba(255,255,255,.03);
}

.auth-btn-outline:hover {
    background: rgba(124,58,237,.12);
    transform: translateY(-1px);
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-footer a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s ease;
}

.auth-footer a:hover { color: #fff; }

.auth-footer-dot {
    color: rgba(200,160,255,.2);
    font-size: 12px;
}

/* Auth side panel */
.auth-side {
    display: grid;
    place-items: center;
    padding: 40px 36px;
    background:
        radial-gradient(400px 250px at 80% 20%, rgba(124,58,237,.2), transparent 60%),
        radial-gradient(300px 200px at 20% 80%, rgba(59,130,246,.12), transparent 60%),
        linear-gradient(135deg, rgba(35,20,60,.9), rgba(20,10,36,.95));
    border-left: 1px solid rgba(200,160,255,.08);
}

.auth-side-content {
    text-align: center;
    max-width: 300px;
}

.auth-side-icon {
    width: 56px;
    height: 56px;
    color: rgba(200,160,255,.4);
    margin-bottom: 16px;
}

.auth-side-content h2 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
}

.auth-side-content p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.auth-side-features {
    display: grid;
    gap: 10px;
}

.auth-side-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(200,160,255,.1);
    background: rgba(255,255,255,.02);
    font-size: 14px;
    font-weight: 600;
    color: #e0d0ff;
}

.auth-side-feature svg { color: var(--accent); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   ENHANCED PAGES — About / Contact / Documents / Home
   ═══════════════════════════════════════════════════════════ */

.hero--compact {
    padding: 48px 0 12px;
}

.hero-cta-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid;
    transition: all .25s ease;
}

.hero-cta-btn--primary {
    background: linear-gradient(135deg, rgba(124,58,237,.55), rgba(147,83,255,.45));
    border-color: rgba(168,100,255,.45);
    color: #fff;
    box-shadow: 0 6px 24px rgba(124,58,237,.3);
}

.hero-cta-btn--primary:hover {
    background: linear-gradient(135deg, rgba(124,58,237,.7), rgba(147,83,255,.6));
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(124,58,237,.4);
}

.hero-cta-btn--trial {
    background: linear-gradient(135deg, #059669, #16a34a);
    border-color: rgba(34,197,94,.5);
    color: #fff;
    box-shadow: 0 6px 24px rgba(34,197,94,.28);
}
.hero-cta-btn--trial:hover {
    background: linear-gradient(135deg, #047857, #15803d);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(34,197,94,.4);
}

.hero-cta-btn--outline {
    border-color: rgba(200,160,255,.3);
    background: rgba(255,255,255,.03);
    color: var(--text);
}

.hero-cta-btn--outline:hover {
    background: rgba(124,58,237,.15);
    transform: translateY(-2px);
}

/* About value cards */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.about-value-card {
    text-align: center;
    padding: 28px 20px !important;
}

.about-value-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(147,83,255,.1));
    border: 1px solid rgba(200,160,255,.2);
}

.about-value-icon svg {
    width: 24px;
    height: 24px;
    color: #c8a4ff;
}

.about-mission {
    padding: 28px !important;
    border: 1px solid rgba(125,249,255,.15) !important;
    background:
        radial-gradient(500px 150px at 10% -20%, rgba(125,249,255,.06), transparent 60%),
        rgba(255,255,255,.02) !important;
}

.about-mission a {
    color: #c8a4ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Contact cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

.contact-card {
    text-align: center;
    padding: 28px 20px !important;
    display: flex;
    flex-direction: column;
}

.contact-card p {
    margin: 0;
    flex: 1;
}

.contact-card .auth-btn {
    margin-top: 14px !important;
    align-self: center;
}

.contact-card--primary {
    border-color: rgba(124,58,237,.3) !important;
    background:
        radial-gradient(300px 150px at 50% -20%, rgba(124,58,237,.14), transparent 60%),
        rgba(255,255,255,.02) !important;
}

.contact-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, rgba(124,58,237,.3), rgba(147,83,255,.15));
    border: 1px solid rgba(200,160,255,.25);
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
    color: #d5bfff;
}

.contact-card-icon--muted {
    background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(147,83,255,.06));
    border-color: rgba(200,160,255,.12);
}

/* Enhanced document items — merged into base .doc-item above */

.doc-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: fit-content;
    padding: 6px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(147,83,255,.08));
    border: 1px solid rgba(200,160,255,.15);
    flex: 0 0 auto;
    flex-grow: 0;
    align-self: center;
}

.doc-item-icon svg {
    width: 16px;
    height: 16px;
    color: #c8a4ff;
}

.doc-item > div:not(.doc-item-icon) {
    flex: 1;
    display: grid;
    gap: 2px;
    min-width: 0;
}

.doc-item-arrow {
    width: 18px;
    height: 18px;
    color: var(--muted);
    flex-shrink: 0;
    transition: transform .2s ease, color .2s ease;
}

.doc-item:hover .doc-item-arrow {
    transform: translateX(3px);
    color: var(--accent);
}

/* Review stars */
.review-stars {
    color: #ffc107;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.review-item h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-item h3 svg { color: var(--muted); }

/* Light theme auth overrides */
html[data-theme="light"] .auth-card {
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(249,244,255,.92));
}

html[data-theme="light"] .auth-side {
    background:
        radial-gradient(400px 250px at 80% 20%, rgba(124,58,237,.08), transparent 60%),
        linear-gradient(135deg, rgba(249,244,255,.95), rgba(240,232,255,.9));
    border-left-color: rgba(133,83,212,.1);
}

html[data-theme="light"] .auth-field input {
    background: rgba(255,255,255,.6);
    border-color: rgba(133,83,212,.18);
}

html[data-theme="light"] .auth-field input::placeholder {
    color: rgba(133,83,212,.3);
}

html[data-theme="light"] .auth-field input:focus {
    background: rgba(255,255,255,.8);
}

html[data-theme="light"] .auth-container {
    border-color: rgba(133,83,212,.15);
    box-shadow: 0 24px 64px rgba(133,83,212,.12);
}

html[data-theme="light"] .auth-side-feature {
    background: rgba(124,58,237,.04);
    border-color: rgba(133,83,212,.1);
    color: #3a2165;
}

html[data-theme="light"] .auth-icon-wrap {
    background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(147,83,255,.06));
    border-color: rgba(133,83,212,.18);
}

html[data-theme="light"] .about-value-icon,
html[data-theme="light"] .contact-card-icon {
    background: linear-gradient(135deg, rgba(124,58,237,.1), rgba(147,83,255,.04));
    border-color: rgba(133,83,212,.15);
}

html[data-theme="light"] .doc-item-icon {
    background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(147,83,255,.03));
    border-color: rgba(133,83,212,.12);
}

.hero {
    padding: 52px 0 0;
    position: relative;
    --hero-shift: 0px;
}
.section-tight { padding-top: 0; padding-bottom: 0; }
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(165, 93, 255, .12), transparent 64%);
    transform: translateY(var(--hero-shift));
    transition: transform .12s linear;
    pointer-events: none;
}
.hero h1 {
    margin: 0 0 8px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.06;
    text-shadow: 0 8px 34px rgba(131, 72, 255, .35);
}
.hero p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(16px, 2.2vw, 18px);
    max-width: 820px;
}

.hero-badge {
    margin: 0 0 10px;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(157, 84, 255, .14);
    color: #ead7ff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.hero-chips {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hero-chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(201, 168, 255, .36);
    background: rgba(157, 84, 255, .12);
    color: #eddfff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
}

.hero-chips span svg { flex-shrink: 0; color: var(--accent); }

.status-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
}
.status-strip span {
    color: var(--muted);
    border: 0;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    padding: 8px 10px;
    text-align: center;
    font-size: 14px;
}

.smart-routing-section {
    padding-top: 2px;
    padding-bottom: 10px;
}

.after-routing-section {
    padding-top: 2px;
}

.routing-mode-switch {
    margin-top: 14px;
    display: inline-flex;
    gap: 8px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}

.routing-mode-btn {
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.routing-mode-btn:hover {
    color: var(--text);
    background: rgba(124,58,237,0.16);
}

.routing-mode-btn.is-active {
    color: #f2e8ff;
    background: rgba(124,58,237,0.24);
    border-color: rgba(124,58,237,0.45);
}

.routing-mode-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    opacity: .9;
}

.routing-map-card {
    margin-top: 16px;
    padding: 18px;
}

.routing-map-shell {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background:
            radial-gradient(760px 300px at 58% 34%, rgba(125, 249, 255, .14), transparent 70%),
            radial-gradient(820px 330px at 35% 78%, rgba(120, 80, 255, .22), transparent 74%),
            linear-gradient(180deg, rgba(4,6,22,.92), rgba(2,3,16,.95));
    min-height: 390px;
    animation: mapFadeIn .9s ease both;
}

.routing-globe-wrap {
    position: relative;
    width: 100%;
    min-height: 390px;
    border-radius: 12px;
    overflow: hidden;
    background:
            radial-gradient(620px 240px at 50% 18%, rgba(125, 249, 255, .25), transparent 56%),
            radial-gradient(980px 420px at 50% 88%, rgba(120, 80, 255, .34), transparent 70%),
            linear-gradient(180deg, #030012 0%, #040019 42%, #02000d 100%);
}

.routing-globe-wrap::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background:
            repeating-linear-gradient(
                0deg,
                rgba(125, 249, 255, .05) 0,
                rgba(125, 249, 255, .05) 1px,
                transparent 1px,
                transparent 28px
            ),
            repeating-linear-gradient(
                90deg,
                rgba(120, 80, 255, .045) 0,
                rgba(120, 80, 255, .045) 1px,
                transparent 1px,
                transparent 34px
            );
        mix-blend-mode: screen;
        opacity: .32;
}

.routing-globe-wrap::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background:
            linear-gradient(180deg, rgba(124,58,237,.12), rgba(125,249,255,.03)),
            radial-gradient(500px 180px at 70% 25%, rgba(125,249,255,.08), transparent 66%);
}

.routing-globe {
    width: 100%;
    height: 390px;
    min-height: 390px;
}

.routing-globe canvas {
    display: block;
}

.routing-globe-tooltip {
    position: absolute;
    left: 16px;
    bottom: 16px;
    max-width: min(380px, calc(100% - 32px));
    border-radius: 10px;
    border: 1px solid rgba(125,249,255,0.35);
    background: rgba(8, 10, 27, 0.78);
    color: #efe6ff;
    backdrop-filter: blur(6px);
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.routing-globe-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.routing-globe-legend {
    position: absolute;
    right: 14px;
    top: 14px;
    display: grid;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(8, 10, 27, 0.62);
    border: 1px solid rgba(125,249,255,0.2);
}

.routing-globe-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #dac5ff;
    font-size: 12px;
    font-weight: 600;
}

.routing-globe-legend i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #a855f7;
    box-shadow: 0 0 12px rgba(125, 249, 255, .65), 0 0 8px rgba(168, 85, 247, .85);
}

.routing-globe-legend span:first-child i {
    background: #7df9ff;
    box-shadow: 0 0 14px rgba(125, 249, 255, .9);
}
.routing-globe-legend span:nth-child(4) i {
    background: #f97316;
    box-shadow: 0 0 14px rgba(249, 115, 22, .85);
}

.globe-node-tag {
    color: #ecdfff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(125, 249, 255, 0.5);
    background: rgba(9, 12, 30, 0.76);
    white-space: nowrap;
    transform: translate(-50%, -145%);
    box-shadow: 0 0 16px rgba(125, 249, 255, 0.35), 0 0 10px rgba(122, 66, 217, 0.42);
    pointer-events: none;
}

body.docs-page .site-preloader,
body.docs-page .page-shell,
body.docs-page .reveal {
    transition: none !important;
    animation: none !important;
}

body.docs-page .page-shell,
body.docs-page .reveal,
body.docs-page .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
}

.routing-map-fallback {
    display: none;
    position: absolute;
    inset: auto 12px 12px 12px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(13, 9, 26, 0.68);
}

.fallback-title {
    color: #f1e6ff;
    font-weight: 700;
    font-size: 14px;
}

.fallback-line {
    margin-top: 6px;
    color: #dec9ff;
    font-weight: 600;
    font-size: 13px;
}

.fallback-note {
    margin-top: 6px;
    color: #b8a2da;
    font-size: 12px;
}

.routing-map-shell.is-fallback .routing-globe {
    display: none;
}

.routing-map-shell.is-fallback .routing-map-fallback {
    display: block;
}

@keyframes mapFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.routing-map {
    width: 100%;
    height: 100%;
    min-height: 390px;
    display: block;
}

.continent {
    fill: rgba(255,255,255,0.06);
    stroke: rgba(255,255,255,0.08);
    stroke-width: 1;
}

.infra-lines path {
    fill: none;
    stroke: rgba(212, 193, 255, .24);
    stroke-width: 1;
    opacity: .1;
}

.route-base {
    fill: none;
    stroke: rgba(179, 142, 255, .35);
    stroke-width: 2;
}

.route-alt {
    opacity: .55;
}

.route-flow {
    fill: none;
    stroke: url(#routeGlow);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-dasharray: 10 18;
    animation: dashFlow 2.2s linear infinite;
}

.mode-latency { display: none; }

.routing-map-shell[data-routing-state="latency"] .mode-stability { display: none; }
.routing-map-shell[data-routing-state="latency"] .mode-latency { display: initial; }

@keyframes dashFlow {
    to { stroke-dashoffset: -180; }
}

.packet {
    fill: #e9d4ff;
    filter: drop-shadow(0 0 7px rgba(173, 111, 255, .9));
}

.packet-soft {
    fill: rgba(229, 205, 255, .8);
}

.map-node .node-core {
    fill: #c8a2ff;
    filter: drop-shadow(0 0 9px rgba(124,58,237,0.85));
}

.map-node .node-pulse {
    fill: none;
    stroke: rgba(170, 130, 255, .52);
    stroke-width: 1.4;
    animation: nodePulseSvg 2.2s ease-in-out infinite;
    transform-origin: center;
}

.map-node-label {
    fill: #efe5ff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1px;
    paint-order: stroke;
    stroke: rgba(22, 12, 39, .66);
    stroke-width: 3px;
}

@keyframes nodePulseSvg {
    0%, 100% { transform: scale(1); opacity: .75; }
    50% { transform: scale(1.15); opacity: 1; }
}

.routing-benefits {
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.routing-ping {
    margin-top: 6px;
}

.roadmap-teaser {
    display: grid;
    gap: 14px;
    align-items: start;
    border: 1px solid rgba(125,249,255,0.2);
    background:
      radial-gradient(640px 180px at 10% -10%, rgba(125,249,255,.08), transparent 65%),
      radial-gradient(520px 220px at 96% 110%, rgba(168,85,247,.12), transparent 70%),
      rgba(255,255,255,0.02);
}

.roadmap-teaser .btn {
    width: fit-content;
}

.roadmap-page-hero {
    padding-top: 58px;
    padding-bottom: 30px;
}

.roadmap-page-section {
    padding-top: 20px;
}

.roadmap-timeline {
    position: relative;
    display: grid;
    gap: 16px;
    padding-left: 58px;
}

.roadmap-timeline-line {
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(125,249,255,.5), rgba(168,85,247,.52), rgba(125,249,255,.4));
    border-radius: 999px;
}

.roadmap-event {
    position: relative;
    border: 1px solid rgba(125,249,255,.18);
    background:
      linear-gradient(180deg, rgba(36, 22, 62, .55), rgba(26, 14, 46, .45));
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.roadmap-event:hover {
    transform: translateY(-3px);
    border-color: rgba(125,249,255,.34);
    box-shadow: 0 14px 30px rgba(52, 25, 98, .28), 0 0 18px rgba(125,249,255,.16);
}

.roadmap-event-dot {
    position: absolute;
    left: -46px;
    top: 22px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #efe5ff;
    border: 1px solid rgba(125,249,255,.4);
    background: radial-gradient(circle at 35% 30%, rgba(125,249,255,.35), rgba(124,58,237,.32));
    box-shadow: 0 0 0 5px rgba(125,249,255,.08), 0 0 16px rgba(125,249,255,.34);
}

.roadmap-event-dot i {
    width: 15px;
    height: 15px;
}

.roadmap-event-meta {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #dfcfff;
    border-radius: 999px;
    border: 1px solid rgba(189, 146, 255, 0.34);
    background: rgba(124,58,237,.14);
}

.roadmap-event h3 {
    margin: 10px 0 8px;
}

.roadmap-cta {
    text-align: center;
    border: 1px solid rgba(125,249,255,.2);
    background:
      radial-gradient(480px 160px at 50% 0%, rgba(125,249,255,.09), transparent 70%),
      rgba(255,255,255,0.02);
}

.roadmap-cta p {
    margin-top: 8px;
}

.roadmap-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.review-item h3 {
    margin: 0 0 10px;
}

.routing-ping-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.routing-ping-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.latency-results {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.latency-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}

.latency-name {
    font-weight: 600;
    color: var(--text);
}

.latency-ping {
    font-weight: 700;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
}

.latency-ping.is-ok {
    color: #d8c5ff;
    background: rgba(124,58,237,0.22);
}

.latency-ping.is-timeout {
    color: #ffd1d1;
    background: rgba(255,90,90,0.18);
    border-color: rgba(255,90,90,0.34);
}

.latency-empty {
    color: var(--muted);
    font-size: 14px;
    padding: 8px 2px;
}

.speedtest-item {
    grid-template-columns: 1.1fr 2fr auto;
    gap: 12px;
}

.speedtest-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
}

.speedtest-metrics span {
    color: #d8c5ff;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    padding: 5px 8px;
}

.speedtest-metrics b {
    color: #f1e7ff;
    margin-right: 4px;
}

html[data-theme="light"] .routing-mode-switch {
    background: rgba(122, 52, 240, 0.06);
    border-color: rgba(122, 52, 240, 0.14);
}

html[data-theme="light"] .routing-mode-btn.is-active {
    color: #2f1853;
}

html[data-theme="light"] .routing-map-shell {
    background:
      radial-gradient(760px 300px at 58% 34%, rgba(136, 86, 228, .12), transparent 72%),
      linear-gradient(180deg, rgba(108, 60, 184, .06), rgba(108, 60, 184, .03));
}

html[data-theme="light"] .routing-globe-tooltip {
    background: rgba(255,255,255,0.84);
    color: #2f1a53;
    border-color: rgba(96, 46, 182, 0.18);
}

html[data-theme="light"] .routing-globe-legend {
    background: rgba(255,255,255,0.72);
    border-color: rgba(96, 46, 182, 0.16);
}

html[data-theme="light"] .routing-globe-legend span {
    color: #4a2a7f;
}

.routing-benefits .card {
    border-radius: 14px;
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all .2s ease;
}

.routing-benefits .card:hover {
    transform: translateY(-4px);
}

.benefit-index {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(124,58,237,0.22);
    border: 1px solid rgba(124,58,237,0.38);
    color: #d9c4ff;
    font-size: 12px;
    margin-bottom: 8px;
}

.section { padding: 28px 0; }
.section h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 32px); font-weight: 700; }
.section .lead { color: var(--muted); margin-bottom: 8px; font-size: 16px; opacity: .8; }

.grid-3,
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.split {
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 16px;
}

.feature-list {
    margin: 12px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}
.stat-grid div {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.02);
}
.stat-grid b {
    display: block;
    font-size: clamp(36px, 4.2vw, 42px);
    line-height: 1;
    font-weight: 700;
    color: #fff;
}
.stat-grid span {
    color: var(--muted);
    font-size: 14px;
    opacity: .7;
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.timeline::before {
    content: "";
    position: absolute;
    top: 34px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(214, 183, 255, .45), transparent);
    z-index: 0;
}
.timeline-item { position: relative; z-index: 1; }
.step {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid rgba(223, 196, 255, .62);
    background: rgba(164, 91, 255, .2);
    margin-bottom: 10px;
}

.faq-list { display: grid; gap: 12px; }
.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { margin-bottom: 10px; }

.trust-wall {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 16px;
}
.showcase-lg {
    grid-row: span 2;
    min-height: 260px;
    background:
      linear-gradient(180deg, rgba(197, 140, 255, .2), rgba(98, 53, 160, .1)),
      radial-gradient(circle at 85% 15%, rgba(255,255,255,.12), transparent 35%);
}
.showcase-art {
    width: 100%;
    margin-top: 12px;
    border-radius: 12px;
    border: 1px solid rgba(215, 183, 255, .28);
    background: rgba(255,255,255,.03);
}
.showcase-sm { min-height: 122px; }

.marquee-wrap {
    margin-top: 14px;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(140, 78, 228, .12);
}
.marquee-track {
    display: flex;
    gap: 28px;
    padding: 10px 0;
    white-space: nowrap;
    animation: marquee 22s linear infinite;
}
.marquee-track span {
    color: #f0deff;
    font-weight: 700;
    letter-spacing: .8px;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.wow-banner {
    text-align: center;
    background:
      radial-gradient(700px 180px at 50% 0%, rgba(192, 118, 255, .28), transparent 70%),
      linear-gradient(180deg, rgba(201, 146, 255, .16), rgba(100, 53, 170, .12));
}
.wow-banner h2 { margin-bottom: 10px; }
.wow-banner p { color: #e6d8ff !important; }

.to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 120;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(222, 190, 255, .48);
    background: rgba(158, 88, 255, .32);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}
.to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.trust-item {
    position: relative;
    overflow: hidden;
}
.trust-item::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -20%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(198, 120, 255, .25), transparent 70%);
    pointer-events: none;
}

.integration-cloud {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    border: 1px solid rgba(210, 176, 255, .4);
    background: rgba(137, 71, 232, .16);
    color: #f0e3ff;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
}

.card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all .2s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }

.card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.card-title-row i {
    width: 22px;
    height: 22px;
    color: #cbb4ff;
    flex: 0 0 auto;
}
.card-title-row h2,
.card-title-row h3 {
    margin: 0;
}

.summary-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.summary-title i {
    width: 20px;
    height: 20px;
    color: #cbb4ff;
}

html[data-theme="light"] .site-header {
    background: rgba(251, 248, 255, 0.82);
}
html[data-theme="light"] .site-header.is-scrolled {
    background: rgba(250, 245, 255, 0.96);
}
html[data-theme="light"] .site-nav a:hover {
    color: #2d1750;
    text-shadow: none;
}
html[data-theme="light"] .card {
    background: rgba(255,255,255,0.92);
    border-color: rgba(60, 20, 120, 0.08);
    box-shadow: 0 10px 24px rgba(92, 45, 160, .08);
}
html[data-theme="light"] .site-footer {
    background: rgba(247, 239, 255, .95);
}

.price { font-size: 30px; font-weight: 800; margin: 8px 0; color: #fff; }
.price-sub { color: var(--muted); margin: 0; }

.doc-list { display: grid; gap: 12px; }
.doc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.doc-item:hover {
    transform: translateY(-2px);
    border-color: rgba(230, 191, 255, .7);
    box-shadow: 0 8px 24px rgba(124,58,237,.12);
}
.doc-item small { color: var(--muted); }

.legal-content {
    background: rgba(24, 14, 42, .8);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}
.legal-content h1, .legal-content h2, .legal-content h3 { margin-top: 0; }
.legal-content p, .legal-content li { color: #e6ddff; line-height: 1.64; }
.legal-content ul { margin-top: 8px; }
.doc-back { margin-bottom: 14px; }

html[data-theme="light"] .legal-content {
    background: rgba(255,255,255,0.96);
    border-color: rgba(60, 20, 120, 0.08);
}
html[data-theme="light"] .legal-content h1,
html[data-theme="light"] .legal-content h2,
html[data-theme="light"] .legal-content h3 {
    color: #2b1848;
}
html[data-theme="light"] .legal-content p,
html[data-theme="light"] .legal-content li {
    color: #3f2b63;
}
html[data-theme="light"] .doc-item {
    background: rgba(255,255,255,0.96);
}

.site-footer {
    margin-top: 64px;
    border-top: 1px solid rgba(217, 187, 255, .2);
    background: rgba(9, 5, 18, .88);
    padding: 32px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}
.site-footer h4 { margin: 0 0 10px; }
.site-footer a { color: #dcc5ff; text-decoration: none; }
.site-footer ul { margin: 0; padding-left: 18px; }
.copyright { margin-top: 20px; color: var(--muted); font-size: 14px; }

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   MODERNIZATION — Routing section header, feature cards,
   improved responsive, visual enhancements
   ═══════════════════════════════════════════════════════════ */

/* Routing section header centering */
.routing-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 6px;
}

.routing-section-header h2 {
    margin-top: 4px;
}

/* Feature cards with icon blocks */
.feature-card {
    text-align: center;
    padding: 28px 22px !important;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(124,58,237,.14), transparent 70%);
    pointer-events: none;
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, rgba(124,58,237,.25), rgba(147,83,255,.12));
    border: 1px solid rgba(200,160,255,.22);
    transition: transform .25s ease;
}

.feature-card:hover .feature-card-icon {
    transform: scale(1.08);
}

.feature-card-icon i,
.feature-card-icon svg {
    width: 26px;
    height: 26px;
    color: #d5bfff;
}

.feature-card-icon--blue {
    background: linear-gradient(135deg, rgba(59,130,246,.25), rgba(99,102,241,.12));
    border-color: rgba(99,130,255,.25);
}

.feature-card-icon--blue i,
.feature-card-icon--blue svg { color: #93bbfd; }

.feature-card-icon--green {
    background: linear-gradient(135deg, rgba(72,187,120,.25), rgba(72,187,120,.1));
    border-color: rgba(72,187,120,.25);
}

.feature-card-icon--green i,
.feature-card-icon--green svg { color: #6ee7a0; }

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

/* Routing benefit cards modernized */
.routing-benefit-card {
    position: relative;
    overflow: hidden;
}

.routing-benefit-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124,58,237,.06), transparent 60%);
    pointer-events: none;
}

/* Light theme feature card overrides */
html[data-theme="light"] .feature-card-icon {
    background: linear-gradient(135deg, rgba(124,58,237,.1), rgba(147,83,255,.04));
    border-color: rgba(133,83,212,.15);
}

html[data-theme="light"] .feature-card-icon--blue {
    background: linear-gradient(135deg, rgba(59,130,246,.1), rgba(99,102,241,.04));
    border-color: rgba(99,130,255,.15);
}

html[data-theme="light"] .feature-card-icon--green {
    background: linear-gradient(135deg, rgba(72,187,120,.1), rgba(72,187,120,.04));
    border-color: rgba(72,187,120,.15);
}

/* Improved document items hover */
.doc-item-icon {
    transition: transform .2s ease;
}

.doc-item:hover .doc-item-icon {
    transform: scale(1.06);
}

/* Smooth section fade-in on scroll */
.section[data-aos] {
    transition: opacity .5s ease, transform .5s ease;
}

/* Footer modernization */
.site-footer {
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: .4;
}

/* ═══════════════════════════════════════════════════════════
   IMPROVED RESPONSIVE — Better phone/tablet adaptation
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .grid-3, .price-grid, .footer-grid, .timeline, .split, .trust-wall, .showcase-grid, .status-strip, .routing-benefits, .reviews-grid { grid-template-columns: 1fr; }
    .timeline::before { display: none; }
    .roadmap-timeline { padding-left: 42px; }
    .roadmap-event-dot { left: -34px; }
    .roadmap-page-hero { padding-top: 48px; padding-bottom: 20px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-actions .btn-cabinet {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 8px;
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .nav-actions .btn-cabinet .btn-cabinet-label { display: none; }
    .nav-actions .theme-toggle { margin-left: auto; }
    .site-nav {
        display: none;
        position: absolute;
        top: 58px;
        right: 4%;
        width: min(260px, 92%);
        flex-direction: column;
        gap: 10px;
        background: rgba(20, 11, 34, .95);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 12px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 14px 30px rgba(0,0,0,.3);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 8px 12px; border-radius: 10px; }
    .site-nav a:hover { background: rgba(124,58,237,.12); }
    .hero { padding-top: 52px; padding-bottom: 2px; }
    .showcase-lg { grid-row: auto; min-height: auto; }
    .section { padding: 22px 0; }
    .section-tight { padding-top: 2px; padding-bottom: 4px; }
    .smart-routing-section { padding-top: 2px; padding-bottom: 8px; }
    .after-routing-section { padding-top: 2px; }
    .routing-map-shell,
    .routing-map,
    .routing-globe,
    .routing-globe-wrap { min-height: 320px; height: 320px; }
    .map-node-label { font-size: 12px; }
    .routing-mode-switch { width: 100%; }
    .routing-mode-btn { flex: 1; }
    .latency-item {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .speedtest-item {
        grid-template-columns: 1fr;
    }
    /* Dashboard responsive */
    .dash-grid { grid-template-columns: 1fr; gap: 14px; }
    .dash-col-main { gap: 14px; }
    .dash-col-side { position: static; }
    .dash-kpi-row { grid-template-columns: repeat(2, 1fr); }
    .dash-topbar { gap: 12px; }
    .dash-key-extend-form { flex-wrap: wrap; }
    .dash-key-extend-form .dash-select { flex: 1 1 100%; }
    /* Mobile: compact dashboard */
    .dash-topbar-left .dash-avatar { width: 36px; height: 36px; }
    .dash-topbar-left .dash-avatar-icon { width: 18px; height: 18px; }
    .dash-username { font-size: 16px; }
    .dash-status-bar { margin-bottom: 12px; }
    .dash-status-pill { padding: 5px 14px; font-size: 12px; }
    .dash-kpi-card { padding: 12px 14px; gap: 10px; }
    .dash-kpi-icon { width: 34px; height: 34px; border-radius: 9px; }
    .dash-kpi-icon svg { width: 18px; height: 18px; }
    .dash-kpi-label { font-size: 11px; }
    .dash-kpi-value { font-size: 18px; }
    .dash-kpi-value--sm { font-size: 14px; }
    .dash-card { padding: 16px; border-radius: 14px; }
    .dash-card-head { margin-bottom: 12px; }
    /* Mobile: collapse transactions by default */
    .dash-card--collapsible.is-collapsed .dash-card-collapse { max-height: 0; opacity: 0; }
    /* Mobile: hide sidebar sections for compact layout */
    .dash-col-side { display: none; }
    /* Mobile: howto tabs compact */
    .dash-howto-tabs { gap: 4px; }
    .dash-howto-tab { padding: 6px 10px; font-size: 12px; flex: 1; justify-content: center; }
    .dash-howto-step { padding: 8px 10px; font-size: 12px; gap: 10px; }
    .dash-step-num { min-width: 22px; height: 22px; font-size: 11px; }
    /* Auth responsive */
    .auth-container { grid-template-columns: 1fr; max-width: 480px; }
    .auth-side { display: none; }
    .auth-card { padding: 32px 24px; }
    /* Pages responsive */
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-cta-btn { flex: 1; justify-content: center; }
    /* Footer responsive */
    .footer-grid { gap: 28px; }
    .site-footer { padding: 28px 0 18px; }
    /* Feature cards better spacing */
    .feature-card { padding: 22px 18px !important; }
    .routing-section-header { text-align: left; }
}

@media (max-width: 540px) {
    .container { width: 94%; }
    .hero { padding-top: 40px; padding-bottom: 2px; }
    .hero h1 { font-size: clamp(28px, 9vw, 36px); }
    .hero-chips span { width: auto; text-align: left; }
    .stat-grid { grid-template-columns: 1fr; }
    .card { padding: 16px; }
    .site-footer { margin-top: 42px; }
    .marquee-track { animation-duration: 16s; }
    .routing-map-shell,
    .routing-map,
    .routing-globe,
    .routing-globe-wrap { min-height: 260px; height: 260px; }
    .map-node-label { font-size: 11px; }
    .routing-globe-legend {
        right: 10px;
        top: 10px;
        gap: 4px;
        padding: 6px 8px;
    }
    .routing-globe-legend span { font-size: 11px; }
    .routing-globe-tooltip {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
        font-size: 12px;
        padding: 8px 10px;
    }
    .speedtest-metrics {
        grid-template-columns: 1fr;
    }
    .roadmap-timeline {
        padding-left: 0;
    }
    .roadmap-timeline-line,
    .roadmap-event-dot {
        display: none;
    }
    .roadmap-page-hero {
        padding-top: 40px;
        padding-bottom: 14px;
    }
    /* Dashboard mobile — ultra compact */
    .dash { padding: 6px 0 16px; }
    .dash-container { gap: 6px; }
    .dash-topbar { margin-bottom: 8px; padding: 10px; gap: 8px; }
    .dash-topbar-left { gap: 8px; }
    .dash-username { font-size: 15px; }
    .dash-avatar { width: 30px; height: 30px; border-radius: 8px; }
    .dash-avatar-icon { width: 16px; height: 16px; }
    .dash-role { font-size: 11px; }
    .dash-topbar-right { width: 100%; gap: 6px; }
    .dash-topbar-right .dash-btn { flex: 1; justify-content: center; padding: 7px 10px; font-size: 12px; }
    .dash-status-bar { margin-bottom: 6px; }
    .dash-status-pill { padding: 4px 12px; font-size: 11px; }
    .dash-status-dot { width: 7px; height: 7px; }
    .dash-kpi-row { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
    .dash-kpi-card { padding: 8px 6px; gap: 0; flex-direction: column; align-items: center; text-align: center; }
    .dash-kpi-icon { width: 26px; height: 26px; border-radius: 7px; margin-bottom: 4px; }
    .dash-kpi-icon svg { width: 14px; height: 14px; }
    .dash-kpi-label { font-size: 9px; }
    .dash-kpi-value { font-size: 15px; }
    .dash-kpi-value small { font-size: 10px; }
    .dash-kpi-value--sm { font-size: 12px; }
    .dash-grid { gap: 10px; }
    .dash-col-main { gap: 10px; }
    .dash-card { padding: 12px; border-radius: 12px; }
    .dash-card-head { margin-bottom: 8px; }
    .dash-card-title { font-size: 13px; }
    .dash-card-title svg { width: 14px; height: 14px; }
    .dash-plans-grid { grid-template-columns: 1fr; }
    .dash-key-url { font-size: 11px; }
    .dash-trial-banner { padding: 12px; margin-bottom: 8px; border-radius: 12px; }
    .dash-trial-content { flex-direction: column; text-align: center; gap: 8px; }
    .dash-trial-icon { width: 36px; height: 36px; min-width: 36px; border-radius: 9px; }
    .dash-trial-icon svg { width: 18px; height: 18px; }
    .dash-trial-text h3 { font-size: 14px; }
    .dash-trial-text p { font-size: 12px; }
    .dash-trial-btn { width: 100%; justify-content: center; padding: 10px 16px; font-size: 13px; }
    /* Howto compact */
    .dash-howto-tabs { gap: 3px; }
    .dash-howto-tab { padding: 5px 6px; font-size: 11px; }
    .dash-howto-step { padding: 6px 8px; font-size: 11px; gap: 8px; }
    .dash-step-num { min-width: 20px; height: 20px; font-size: 10px; }
    /* Auth mobile */
    .auth-section { padding: 20px 0 40px; }
    .auth-card { padding: 28px 20px; }
    .auth-header h1 { font-size: 22px; }
    .auth-field input { height: 44px; font-size: 14px; }
    .auth-btn { height: 44px; font-size: 14px; }
    /* Hero CTA mobile */
    .hero-cta-row { flex-direction: column; }
    .hero-cta-btn { width: 100%; justify-content: center; padding: 12px 20px; font-size: 15px; }
    .hero--compact { padding-top: 36px; }
    /* Feature cards mobile */
    .feature-card { padding: 20px 16px !important; cursor: default; }
    .feature-card:hover { transform: none !important; box-shadow: none !important; }
    .feature-card:hover .feature-card-icon { transform: none !important; }
    .hero-chips span { width: auto; display: inline-flex; }
    .hero-chips { justify-content: flex-start; }
    .feature-card-icon { width: 48px; height: 48px; }
    /* Section spacing mobile */
    .section h2 { font-size: clamp(22px, 6vw, 28px); }
    .section .lead { font-size: 14px; }
    /* Nav mobile touch targets */
    .site-nav a { padding: 10px 14px; font-size: 15px; }
    /* Light theme mobile nav */
    html[data-theme="light"] .site-nav {
        background: rgba(255,250,255,.96);
        border-color: rgba(133,83,212,.12);
    }
    /* Document items mobile */
    .doc-item { padding: 12px 14px; gap: 12px; }
    .doc-item-icon {
        width: fit-content;
        height: fit-content;
        padding: 5px;
        border-radius: 7px;
        flex: 0 0 auto;
        flex-grow: 0;
    }
    .doc-item-icon svg { width: 16px; height: 16px; }
    /* About/contact cards mobile */
    .about-value-card,
    .contact-card { padding: 22px 16px !important; }
    .about-value-icon,
    .contact-card-icon { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    .route-flow,
    .map-node .node-pulse {
        animation: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   v2 — Comprehensive Public Site Modernization
   Animated gradients · Glass depth · Micro-interactions
   ═══════════════════════════════════════════════════════════ */

/* ── Icon utility classes (replaces inline width/height) ── */
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 26px; height: 26px; }

/* ── Enhanced Hero ── */
.hero {
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(154,77,255,.18), transparent 65%);
    transform: translateX(-50%);
    pointer-events: none;
    animation: heroPulse 6s ease-in-out infinite;
}
@keyframes heroPulse {
    0%, 100% { opacity: .6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

.hero h1 {
    background: linear-gradient(135deg, #fff 10%, #d4b5ff 50%, #a26bff 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html[data-theme="light"] .hero h1 {
    background: linear-gradient(135deg, #1a0a3e 10%, #5b2ca0 50%, #7c3aed 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-badge {
    animation: badgeGlow 3s ease-in-out infinite alternate;
}
@keyframes badgeGlow {
    0% { box-shadow: 0 0 0 rgba(157,84,255,0); }
    100% { box-shadow: 0 0 16px rgba(157,84,255,.3); }
}

.hero-chips span {
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
}
.hero-chips span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(157,84,255,.08), transparent);
    opacity: 0;
    transition: opacity .2s ease;
}
.hero-chips span:hover {
    transform: translateY(-2px);
    border-color: rgba(201,168,255,.6);
    box-shadow: 0 4px 16px rgba(157,84,255,.2);
}
.hero-chips span:hover::after { opacity: 1; }

/* ── Hero CTA buttons enhancement ── */
.hero-cta-btn {
    position: relative;
    overflow: hidden;
}
.hero-cta-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
    transition: left .5s ease;
}
.hero-cta-btn:hover::after {
    left: 100%;
}

/* ── Status strip animated dots ── */
.status-strip span {
    position: relative;
    transition: all .2s ease;
}
.status-strip span:hover {
    background: rgba(124,58,237,.1);
    transform: translateY(-2px);
}

/* ── Enhanced Section headings ── */
.section h2 {
    position: relative;
    display: inline-block;
}
.section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 40px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-3));
    transition: width .35s ease;
}
.section:hover h2::after {
    width: 72px;
}

/* ── Card glass depth v2 ── */
.card {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.card::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(180deg, rgba(200,160,255,.06), transparent 70%);
    transition: top .45s ease;
    pointer-events: none;
    z-index: 0;
}
.card:hover::after {
    top: 0;
}
.card > * { position: relative; z-index: 1; }

/* ── Enhanced stat grid numbers ── */
.stat-grid b {
    background: linear-gradient(135deg, #fff, #d4b5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html[data-theme="light"] .stat-grid b {
    background: linear-gradient(135deg, #2b1848, #6f33ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Timeline steps glow ── */
.step {
    transition: all .25s ease;
    box-shadow: 0 0 0 rgba(164,91,255,0);
}
.timeline-item:hover .step {
    box-shadow: 0 0 18px rgba(164,91,255,.35);
    background: rgba(164,91,255,.35);
    transform: scale(1.08);
}

.timeline-item h3 { transition: color .2s ease; }
.timeline-item:hover h3 { color: var(--accent-3); }

/* ── FAQ accordion animation ── */
.faq-item {
    transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item[open] {
    border-color: rgba(189,146,255,.45);
    box-shadow: 0 4px 20px rgba(124,58,237,.1);
}
.faq-item summary {
    transition: color .2s ease;
    padding: 4px 0;
    position: relative;
}
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    color: var(--accent);
    transition: transform .3s ease;
}
.faq-item[open] summary::after {
    content: "−";
    transform: translateY(-50%) rotate(180deg);
}

/* ── Roadmap timeline enhanced ── */
.roadmap-event {
    transition: all .25s ease;
}
.roadmap-event:hover {
    transform: translateX(6px);
}
.roadmap-event-dot {
    transition: all .25s ease;
}
.roadmap-event:hover .roadmap-event-dot {
    box-shadow: 0 0 14px rgba(124,58,237,.5);
    transform: scale(1.2);
}

/* ── Reviews cards ── */
.review-item {
    transition: all .25s ease;
}
.review-item:hover {
    transform: translateY(-4px);
}
.review-stars {
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Wow banner animated gradient ── */
.wow-banner {
    position: relative;
    overflow: hidden;
}
.wow-banner::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 0deg, rgba(192,118,255,.2), rgba(124,58,237,.3), rgba(192,118,255,.2));
    animation: wowBorderSpin 8s linear infinite;
    z-index: -1;
    border-radius: inherit;
}
@keyframes wowBorderSpin {
    to { transform: rotate(360deg); }
}

/* ── To-top button ── */
.to-top {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.to-top:hover {
    background: rgba(158,88,255,.55);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(158,88,255,.35);
}

/* ── Marquee subtle gradient ── */
.marquee-wrap {
    position: relative;
    overflow: hidden;
}
.marquee-wrap::before,
.marquee-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.marquee-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg), transparent);
}
.marquee-wrap::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg), transparent);
}

/* ── Chip tags hover ── */
.chip {
    transition: all .2s ease;
    cursor: default;
}
.chip:hover {
    background: rgba(137,71,232,.28);
    border-color: rgba(210,176,255,.6);
    transform: translateY(-1px);
}

/* ── Benefit index numbered circles ── */
.benefit-index {
    transition: all .25s ease;
    font-weight: 800;
}
.routing-benefit-card:hover .benefit-index {
    background: rgba(124,58,237,.4);
    box-shadow: 0 0 12px rgba(124,58,237,.35);
    transform: scale(1.1);
}

/* ── Header brand gradient ── */
.brand {
    background: linear-gradient(135deg, #fff, #d4b5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity .2s ease;
}
.brand:hover { opacity: .85; }
html[data-theme="light"] .brand {
    background: linear-gradient(135deg, #2b1848, #6f33ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Nav links animated underline ── */
.site-nav a {
    position: relative;
}
.site-nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
    transition: width .25s ease;
}
.site-nav a:hover::after {
    width: 100%;
}

/* ── Header theme & menu toggle polish ── */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}
.theme-toggle:hover {
    background: rgba(155,82,255,.24);
    box-shadow: 0 0 14px rgba(155,82,255,.2);
}

/* ── Dashboard KPI cards shimmer ── */
.dash-kpi-card {
    position: relative;
    overflow: hidden;
}
.dash-kpi-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
    transition: left .6s ease;
    pointer-events: none;
}
.dash-kpi-card:hover::after {
    left: 100%;
}

/* ── Dashboard key items enhanced ── */
.dash-key-item {
    transition: all .2s ease;
}
.dash-key-item:hover {
    border-color: rgba(189,146,255,.45);
}

/* ── Dashboard transaction badges pulse ── */
.dash-tx-badge--pending {
    animation: pendingPulse 2s ease-in-out infinite;
}
@keyframes pendingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}

/* ── Auth page animated glow ── */
.auth-card-glow {
    animation: authGlowPulse 5s ease-in-out infinite;
}
@keyframes authGlowPulse {
    0%, 100% { opacity: .5; transform: scale(1); }
    50% { opacity: .8; transform: scale(1.05); }
}

/* ── Smooth global selection color ── */
::selection {
    background: rgba(154,77,255,.35);
    color: #fff;
}
html[data-theme="light"] ::selection {
    background: rgba(122,52,240,.25);
    color: #2b1848;
}

/* ── Focus-visible for keyboard navigation ── */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Scroll progress bar enhanced ── */
.site-header::after {
    transition: width .12s linear, opacity .2s ease;
}

/* ── Smooth page transitions ── */
.page-shell {
    animation: pageIn .45s ease both;
}
@keyframes pageIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Footer enhanced ── */
.site-footer a {
    transition: color .2s ease;
    position: relative;
}
.site-footer a:hover {
    color: var(--accent-3);
}

.copyright {
    opacity: .7;
    transition: opacity .2s ease;
}
.copyright:hover { opacity: 1; }

/* ── Flash messages auto-dismiss styling ── */
.flash-item {
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.flash-item::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--accent);
    animation: flashCountdown 5s linear forwards;
}
@keyframes flashCountdown {
    from { width: 100%; }
    to { width: 0; }
}

/* ── Light theme additional v2 polish ── */
html[data-theme="light"] .hero::before {
    background: radial-gradient(circle, rgba(122,52,240,.1), transparent 65%);
}
html[data-theme="light"] .hero-badge {
    color: #5b2ca0;
    border-color: rgba(133,83,212,.25);
    background: rgba(122,52,240,.08);
}
html[data-theme="light"] .hero-chips span {
    color: #4a2a7f;
    background: rgba(122,52,240,.06);
    border-color: rgba(133,83,212,.2);
}
html[data-theme="light"] .card::after {
    background: linear-gradient(180deg, rgba(122,52,240,.04), transparent 70%);
}
html[data-theme="light"] .step {
    border-color: rgba(133,83,212,.35);
    background: rgba(122,52,240,.08);
    color: #5b2ca0;
}
html[data-theme="light"] .timeline::before {
    background: linear-gradient(90deg, transparent, rgba(133,83,212,.3), transparent);
}
html[data-theme="light"] .faq-item[open] {
    border-color: rgba(133,83,212,.25);
    box-shadow: 0 4px 20px rgba(122,52,240,.06);
}
html[data-theme="light"] .review-stars {
    background: linear-gradient(90deg, #e6a800, #cc8800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html[data-theme="light"] .chip {
    background: rgba(122,52,240,.06);
    border-color: rgba(133,83,212,.2);
    color: #5b2ca0;
}
html[data-theme="light"] .benefit-index {
    background: rgba(122,52,240,.08);
    border-color: rgba(133,83,212,.25);
    color: #5b2ca0;
}
html[data-theme="light"] .marquee-track span {
    color: #5b2ca0;
}
html[data-theme="light"] .wow-banner p {
    color: #4a2a7f !important;
}
html[data-theme="light"] .flash-item::before {
    background: var(--accent);
    opacity: .5;
}
html[data-theme="light"] .status-strip span {
    background: rgba(122,52,240,.03);
}
html[data-theme="light"] .dash-kpi-card::after {
    background: linear-gradient(90deg, transparent, rgba(122,52,240,.03), transparent);
}

/* ── v2 responsive adjustments ── */
@media (max-width: 900px) {
    .section h2::after { display: none; }
    .marquee-wrap::before,
    .marquee-wrap::after { width: 30px; }
}
@media (max-width: 540px) {
    .hero::before { width: 340px; height: 340px; top: -60px; }
}

/* ═══════════════════════════════════════════════════════════
   HERO V3 — Premium Mobile-First Redesign
   Уровень: $10M+ SaaS (Stripe / Linear / Vercel)
   ═══════════════════════════════════════════════════════════ */

/* ── Base layout ── */
.hero-v3 {
    position: relative;
    padding: 32px 0 0;
    overflow: hidden;
    min-height: 100svh;
    display: flex;
    align-items: center;
}
.hero-v3__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

/* ── Ambient orbs ── */
.hero-v3__orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}
.hero-v3__orb--1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(154,77,255,.30), rgba(111,51,255,.12), transparent 70%);
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    animation: heroOrbFloat 8s ease-in-out infinite;
}
.hero-v3__orb--2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(194,102,255,.20), transparent 65%);
    bottom: -80px;
    right: -60px;
    animation: heroOrb2Float 10s ease-in-out infinite;
}

@keyframes heroOrbFloat {
    0%, 100% { transform: translateX(-50%) translateY(0) scale(1); opacity: .7; }
    50% { transform: translateX(-50%) translateY(-20px) scale(1.08); opacity: 1; }
}
@keyframes heroOrb2Float {
    0%, 100% { transform: translateY(0) scale(1); opacity: .5; }
    50% { transform: translateY(-14px) scale(1.06); opacity: .8; }
}

/* ── Grid lines (subtle cyberpunk mesh) ── */
.hero-v3__grid-lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(154,77,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(154,77,255,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 35%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 35%, black 20%, transparent 70%);
    opacity: .6;
}

/* ── Noise texture ── */
.hero-v3__noise {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

/* ── Trust badge ── */
.hero-v3__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(72,187,120,.3);
    background: rgba(72,187,120,.08);
    color: #a0f0c0;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .3px;
    margin-bottom: 24px;
    animation: badgeFadeSlide .8s ease-out both;
}
.hero-v3__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #48bb78;
    box-shadow: 0 0 8px rgba(72,187,120,.6);
    animation: pulseLive 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulseLive {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(72,187,120,.6); }
    50% { opacity: .4; box-shadow: 0 0 16px rgba(72,187,120,.3); }
}
@keyframes badgeFadeSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Title ── */
.hero-v3__title {
    margin: 0 0 16px;
    font-size: clamp(32px, 8vw, 60px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e0c6ff 40%, #b87fff 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: titleReveal .9s ease-out .15s both;
}
.hero-v3__title-accent {
    background: linear-gradient(135deg, #c084fc 0%, #9a4dff 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mobile-br { display: none; }

@keyframes titleReveal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Subtitle — increased bottom margin for spacing before CTA ── */
.hero-v3__subtitle {
    margin: 0 auto 64px;
    max-width: 520px;
    font-size: clamp(15px, 3.5vw, 18px);
    line-height: 1.55;
    color: var(--muted);
    opacity: .88;
    animation: subtitleReveal .9s ease-out .25s both;
}
@keyframes subtitleReveal {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: .88; transform: translateY(0); }
}

/* ── CTA buttons ── */
.hero-v3__cta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
    animation: ctaReveal .9s ease-out .35s both;
}
@keyframes ctaReveal {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-v3__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid;
    transition: all .28s cubic-bezier(.22,1,.36,1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
}
.hero-v3__btn--sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 12px;
}

/* Primary CTA */
.hero-v3__btn--primary {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    border-color: rgba(168,100,255,.5);
    color: #fff;
    box-shadow:
        0 0 0 0 rgba(124,58,237,0),
        0 8px 32px rgba(124,58,237,.35),
        inset 0 1px 0 rgba(255,255,255,.12);
}
.hero-v3__btn--primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 4px rgba(124,58,237,.15),
        0 16px 48px rgba(124,58,237,.4),
        inset 0 1px 0 rgba(255,255,255,.15);
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}
.hero-v3__btn--primary:active {
    transform: translateY(-1px);
}
.hero-v3__btn-arrow {
    display: inline-flex;
    transition: transform .25s ease;
    font-weight: 400;
}
.hero-v3__btn--primary:hover .hero-v3__btn-arrow {
    transform: translateX(3px);
}

/* Shimmer effect on primary button */
.hero-v3__btn--primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
    animation: btnShimmer 3s ease-in-out 1s infinite;
}
@keyframes btnShimmer {
    0% { left: -100%; }
    40% { left: 100%; }
    100% { left: 100%; }
}

/* Ghost CTA (telegram) */
.hero-v3__btn--ghost {
    border-color: rgba(200,160,255,.22);
    background: rgba(124,58,237,.08);
    color: var(--text);
    box-shadow: none;
}
.hero-v3__btn--ghost:hover {
    background: rgba(124,58,237,.16);
    border-color: rgba(200,160,255,.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124,58,237,.12);
}

/* ── Social proof pills — wrap on mobile, no overflow ── */
.hero-v3__proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 36px;
    animation: proofReveal .9s ease-out .45s both;
}
@keyframes proofReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-v3__proof-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(240,228,255,.7);
    background: rgba(154,77,255,.06);
    border: 1px solid rgba(200,160,255,.12);
    transition: all .22s ease;
    white-space: nowrap;
}
.hero-v3__proof-item svg {
    color: var(--accent);
    flex-shrink: 0;
    opacity: .75;
}
.hero-v3__proof-item:hover {
    background: rgba(154,77,255,.12);
    border-color: rgba(200,160,255,.25);
    color: #f0e4ff;
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   HERO — Dynamic Speedtest Server Cards
   ══════════════════════════════════════════ */
.hero-v3__servers {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    animation: mockupFloat 6s ease-in-out infinite;
}

.hero-v3__server-card {
    border-radius: 14px;
    border: 1px solid rgba(200,160,255,.12);
    background:
        linear-gradient(135deg, rgba(30,18,52,.7), rgba(20,12,36,.75));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 16px;
    transition: all .25s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.hero-v3__server-card:hover {
    border-color: rgba(200,160,255,.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,.3);
}

.hero-v3__server-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.hero-v3__server-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    flex-shrink: 0;
}
.hero-v3__server-dot--ok {
    background: #48bb78;
    box-shadow: 0 0 6px rgba(72,187,120,.5);
}
.hero-v3__server-dot--err {
    background: #f56565;
    box-shadow: 0 0 6px rgba(245,101,101,.5);
}
.hero-v3__server-name {
    font-size: 13px;
    font-weight: 700;
    color: rgba(240,228,255,.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-v3__server-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.hero-v3__server-metric {
    text-align: center;
}
.hero-v3__server-metric-val {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #f0e4ff;
    line-height: 1.2;
}
.hero-v3__server-metric-label {
    display: block;
    font-size: 10.5px;
    color: rgba(188,174,232,.5);
    font-weight: 500;
}

.hero-v3__server-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    padding: 16px;
    opacity: .7;
}

/* Skeleton loader */
.hero-v3__server-card--skeleton {
    display: grid;
    gap: 10px;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}
.skel-line {
    height: 12px;
    border-radius: 6px;
    background: rgba(200,160,255,.08);
}
.skel-w60 { width: 60%; }
.skel-w80 { width: 80%; }
.skel-w40 { width: 40%; }
@keyframes skeletonPulse {
    0%, 100% { opacity: .5; }
    50% { opacity: 1; }
}

/* ── Trust strip ── */
.hero-v3__strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0 12px;
    -webkit-overflow-scrolling: touch;
}
.hero-v3__strip::-webkit-scrollbar { display: none; }

.hero-v3__strip-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(200,160,255,.08);
    background: rgba(154,77,255,.04);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all .2s ease;
    flex-shrink: 0;
}
.hero-v3__strip-item svg {
    color: var(--accent);
    flex-shrink: 0;
    opacity: .6;
}
.hero-v3__strip-item:hover {
    background: rgba(154,77,255,.10);
    border-color: rgba(200,160,255,.18);
    transform: translateY(-1px);
}

@keyframes mockupFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ═══════════════════════════════════════════════════
   V3 SECTIONS — Unified page components
   ═══════════════════════════════════════════════════ */

/* ── Section base ── */
.v3-section {
    padding: 40px 0;
}
.v3-section--tight {
    padding: 0;
}

.v3-section__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 28px;
}

/* ── Badge (section label) ── */
.v3-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(157, 84, 255, .10);
    color: #ead7ff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    animation: badgeGlow 3s ease-in-out infinite alternate;
}
@keyframes badgeGlow {
    0% { box-shadow: 0 0 0 rgba(157,84,255,0); }
    100% { box-shadow: 0 0 14px rgba(157,84,255,.25); }
}

/* ── Section titles ── */
.v3-section__title {
    margin: 6px 0 10px;
    font-size: clamp(26px, 4.5vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 0%, #e0c6ff 50%, #b87fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.v3-section__lead {
    color: var(--muted);
    font-size: 15px;
    opacity: .8;
    line-height: 1.5;
    margin: 0;
}

/* ── Card base (v3) ── */
.v3-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.v3-card::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(180deg, rgba(200,160,255,.05), transparent 70%);
    transition: top .4s ease;
    pointer-events: none;
    z-index: 0;
}
.v3-card:hover::after { top: 0; }
.v3-card > * { position: relative; z-index: 1; }

.v3-card:hover {
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.v3-card--glass {
    background:
        linear-gradient(135deg, rgba(30,18,52,.6), rgba(20,12,36,.65));
}
.v3-card h3 { margin: 0 0 8px; }
.v3-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.v3-card a { color: var(--accent-3); }

.v3-card__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.v3-card__title-row i, .v3-card__title-row svg {
    width: 22px;
    height: 22px;
    color: #cbb4ff;
    flex: 0 0 auto;
}
.v3-card__title-row h2,
.v3-card__title-row h3 { margin: 0; }

/* ── Grid ── */
.v3-grid {
    display: grid;
    gap: 14px;
}
.v3-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.v3-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ── Feature mini card (routing benefits) ── */
.v3-feature-mini {
    text-align: center;
    padding: 22px 18px !important;
}
.v3-feature-mini__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, rgba(124,58,237,.25), rgba(147,83,255,.12));
    border: 1px solid rgba(200,160,255,.2);
    transition: transform .25s ease, box-shadow .25s ease;
}
.v3-feature-mini:hover .v3-feature-mini__icon {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(124,58,237,.25);
}
.v3-feature-mini__icon i, .v3-feature-mini__icon svg {
    width: 22px; height: 22px; color: #d5bfff;
}
.v3-feature-mini__icon--blue {
    background: linear-gradient(135deg, rgba(59,130,246,.25), rgba(99,102,241,.12));
    border-color: rgba(99,130,255,.22);
}
.v3-feature-mini__icon--blue i, .v3-feature-mini__icon--blue svg { color: #93bbfd; }
.v3-feature-mini__icon--green {
    background: linear-gradient(135deg, rgba(72,187,120,.25), rgba(72,187,120,.1));
    border-color: rgba(72,187,120,.22);
}
.v3-feature-mini__icon--green i, .v3-feature-mini__icon--green svg { color: #6ee7a0; }
.v3-feature-mini h3 { font-size: 16px; }

/* ── Feature card (larger) ── */
.v3-feature-card {
    text-align: center;
    padding: 28px 22px !important;
}
.v3-feature-card::before {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(124,58,237,.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.v3-feature-card__icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, rgba(124,58,237,.25), rgba(147,83,255,.12));
    border: 1px solid rgba(200,160,255,.22);
    transition: transform .25s ease;
}
.v3-feature-card:hover .v3-feature-card__icon { transform: scale(1.08); }
.v3-feature-card__icon i, .v3-feature-card__icon svg { width: 26px; height: 26px; color: #d5bfff; }
.v3-feature-card__icon--blue { background: linear-gradient(135deg, rgba(59,130,246,.25), rgba(99,102,241,.12)); border-color: rgba(99,130,255,.25); }
.v3-feature-card__icon--blue i, .v3-feature-card__icon--blue svg { color: #93bbfd; }
.v3-feature-card__icon--green { background: linear-gradient(135deg, rgba(72,187,120,.25), rgba(72,187,120,.1)); border-color: rgba(72,187,120,.25); }
.v3-feature-card__icon--green i, .v3-feature-card__icon--green svg { color: #6ee7a0; }
.v3-feature-card h3 { font-size: 17px; }

/* ── Split layout (Why us) ── */
.v3-split {
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 16px;
}
.v3-split__main,
.v3-split__side {
    align-self: start;
}

/* ── Feature list (checkmarks) ── */
.v3-feature-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.v3-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.5;
}
.v3-feature-list li i, .v3-feature-list li svg {
    color: #48bb78;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Stat grid ── */
.v3-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}
.v3-stat {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px;
    background: rgba(255,255,255,0.02);
    text-align: center;
}
.v3-stat b {
    display: block;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #d4b5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.v3-stat span {
    color: var(--muted);
    font-size: 12.5px;
    opacity: .7;
    margin-top: 2px;
    display: block;
}

/* ── Timeline ── */
.v3-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.v3-timeline::before {
    content: "";
    position: absolute;
    top: 34px;
    left: 8%; right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(214, 183, 255, .4), transparent);
    z-index: 0;
}
.v3-timeline__item {
    position: relative;
    z-index: 1;
}
.v3-timeline__step {
    display: inline-flex;
    width: 38px; height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    border: 1px solid rgba(223, 196, 255, .5);
    background: rgba(164, 91, 255, .18);
    margin-bottom: 10px;
    transition: all .25s ease;
}
.v3-timeline__item:hover .v3-timeline__step {
    box-shadow: 0 0 16px rgba(164,91,255,.3);
    background: rgba(164,91,255,.32);
    transform: scale(1.08);
}

/* ── Roadmap banner ── */
.v3-roadmap-banner {
    display: grid;
    gap: 16px;
    border-color: rgba(125,249,255,0.18);
    background:
        radial-gradient(640px 180px at 10% -10%, rgba(125,249,255,.06), transparent 65%),
        radial-gradient(520px 220px at 96% 110%, rgba(168,85,247,.08), transparent 70%),
        rgba(255,255,255,0.02) !important;
    padding: 32px !important;
}
.v3-roadmap-banner__content {
    display: grid;
    gap: 12px;
}

/* ── Reviews ── */
.v3-review {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.v3-review__stars {
    font-size: 16px;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.v3-review__text {
    flex: 1;
    font-size: 14px !important;
    line-height: 1.55 !important;
}
.v3-review__author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}
.v3-review__author svg { color: var(--muted); opacity: .6; }

/* ── FAQ ── */
.v3-faq {
    display: grid;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto;
}
.v3-faq__item summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    position: relative;
    padding-right: 30px;
    transition: color .2s ease;
}
.v3-faq__item summary::-webkit-details-marker { display: none; }
.v3-faq__item summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    color: var(--accent);
    transition: transform .3s ease;
}
.v3-faq__item[open] summary::after {
    content: "−";
    transform: translateY(-50%) rotate(180deg);
}
.v3-faq__item summary svg {
    color: var(--accent);
    flex-shrink: 0;
    opacity: .7;
}
.v3-faq__item[open] {
    border-color: rgba(189,146,255,.35);
    box-shadow: 0 4px 16px rgba(124,58,237,.08);
}
.v3-faq__item[open] summary { margin-bottom: 10px; }
.v3-faq__item p {
    padding-left: 28px;
}

/* ── CTA banner (bottom of page) ── */
.v3-cta-banner {
    text-align: center;
    padding: 48px 24px !important;
    border-color: rgba(168,100,255,.2);
    background:
        radial-gradient(700px 200px at 50% 0%, rgba(192, 118, 255, .22), transparent 70%),
        linear-gradient(180deg, rgba(201, 146, 255, .12), rgba(100, 53, 170, .08)) !important;
    overflow: hidden;
}
.v3-cta-banner__glow {
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(168,85,247,.15), transparent 60%);
    pointer-events: none;
    animation: heroOrbFloat 8s ease-in-out infinite;
    z-index: 0;
}
.v3-cta-banner__title {
    font-size: clamp(24px, 5vw, 38px);
    font-weight: 800;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #fff, #d4b5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.v3-cta-banner__text {
    color: var(--muted) !important;
    font-size: 15px !important;
    margin-bottom: 24px !important;
    opacity: .85;
}
.v3-cta-banner__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.v3-cta-banner__btn-cabinet {
    color: #7c3aed;
}

.v3-cta-banner__btn-cabinet i,
.v3-cta-banner__btn-cabinet span {
    color: #7c3aed;
}

/* ═══════════════════════════════════════════════════
   V3 — Responsive
   ═══════════════════════════════════════════════════ */

/* ── Desktop (>900px) ── */
@media (min-width: 901px) {
    .hero-v3 {
        padding: 80px 0 40px;
        min-height: auto;
    }
    .hero-v3__title {
        font-size: clamp(42px, 5vw, 62px);
    }
    .hero-v3__subtitle {
        max-width: 600px;
        font-size: 18px;
        margin-bottom: 58px;
    }
    .hero-v3__proof {
        gap: 10px;
    }
    .hero-v3__strip {
        justify-content: center;
        overflow: visible;
    }
    .hero-v3__servers {
        max-width: 900px;
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-v3__grid-lines {
        background-size: 80px 80px;
    }
    .v3-section {
        padding: 48px 0;
    }
}

/* ── Tablets (541-900px) ── */
@media (max-width: 900px) {
    .hero-v3 {
        padding: 24px 0 0;
        min-height: 100svh;
    }
    .hero-v3__title {
        font-size: clamp(30px, 7.5vw, 46px);
    }
    .hero-v3__servers {
        grid-template-columns: repeat(2, 1fr);
    }
    .v3-grid--3 { grid-template-columns: 1fr; }
    .v3-split { grid-template-columns: 1fr; }
    .v3-timeline {
        grid-template-columns: 1fr;
    }
    .v3-timeline::before { display: none; }
    .v3-section {
        padding: 32px 0;
    }
    .v3-reviews { grid-template-columns: 1fr !important; }
}

/* ── Mobile (<540px) ── */
@media (max-width: 540px) {
    .hero-v3 {
        padding: 16px 0 0;
        min-height: 100svh;
    }
    .hero-v3__inner {
        padding: 0 4px;
    }
    .mobile-br { display: inline; }

    .hero-v3__badge {
        font-size: 11.5px;
        padding: 6px 12px;
        margin-bottom: 20px;
    }

    .hero-v3__title {
        font-size: clamp(28px, 8.5vw, 38px);
        line-height: 1.10;
        letter-spacing: -.025em;
        margin-bottom: 14px;
    }

    .hero-v3__subtitle {
        font-size: 14.5px;
        line-height: 1.5;
        margin-bottom: 56px;
        padding: 0 8px;
    }

    .hero-v3__cta {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 0;
        margin-bottom: 24px;
    }
    .hero-v3__btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 14px;
    }

    /* Proof pills — wrap, no scroll, fit screen */
    .hero-v3__proof {
        gap: 6px;
        margin-bottom: 24px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
    }
    .hero-v3__proof-item {
        font-size: 11.5px;
        padding: 5px 10px;
    }

    .hero-v3__servers {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .hero-v3__server-card {
        padding: 12px 14px;
        border-radius: 12px;
    }
    .hero-v3__server-metric-val { font-size: 14px; }
    .hero-v3__server-metric-label { font-size: 10px; }

    .hero-v3__orb--1 {
        width: 320px;
        height: 320px;
        top: -100px;
    }
    .hero-v3__orb--2 {
        width: 200px;
        height: 200px;
    }
    .hero-v3__grid-lines {
        background-size: 40px 40px;
    }

    .hero-v3__strip {
        gap: 6px;
        padding: 6px 0 10px;
    }
    .hero-v3__strip-item {
        font-size: 12px;
        padding: 7px 12px;
    }

    .v3-section {
        padding: 24px 0;
    }
    .v3-section__header {
        margin-bottom: 20px;
    }
    .v3-section__title {
        font-size: clamp(22px, 6vw, 28px);
    }
    .v3-section__lead {
        font-size: 14px;
    }
    .v3-card {
        padding: 16px;
        border-radius: 14px;
    }
    .v3-feature-card {
        padding: 22px 18px !important;
    }
    .v3-feature-mini {
        padding: 18px 16px !important;
    }
    .v3-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
    .v3-cta-banner {
        padding: 32px 16px !important;
    }
    .v3-cta-banner__actions {
        flex-direction: column;
    }
}

/* ── Small phones (<380px) ── */
@media (max-width: 380px) {
    .hero-v3__title {
        font-size: 26px;
    }
    .hero-v3__subtitle {
        font-size: 13.5px;
    }
    .hero-v3__btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    .hero-v3__proof-item {
        font-size: 11px;
        padding: 5px 9px;
    }
    .hero-v3__servers {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════
   V3 — Light theme overrides
   ═══════════════════════════════════════════════════ */
html[data-theme="light"] .hero-v3__badge {
    color: #166534;
    background: rgba(72,187,120,.08);
    border-color: rgba(72,187,120,.2);
}
html[data-theme="light"] .hero-v3__badge-dot {
    box-shadow: 0 0 6px rgba(72,187,120,.4);
}
html[data-theme="light"] .hero-v3__title,
html[data-theme="light"] .v3-section__title,
html[data-theme="light"] .v3-cta-banner__title {
    background: linear-gradient(135deg, #1a0a3e 0%, #5b2ca0 40%, #7c3aed 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html[data-theme="light"] .hero-v3__title-accent {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html[data-theme="light"] .hero-v3__subtitle,
html[data-theme="light"] .v3-section__lead {
    color: #6d5b8d;
}
html[data-theme="light"] .hero-v3__btn--primary {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    box-shadow: 0 8px 32px rgba(124,58,237,.2);
}
html[data-theme="light"] .hero-v3__btn--primary:hover {
    box-shadow:
        0 0 0 4px rgba(124,58,237,.1),
        0 16px 48px rgba(124,58,237,.25);
}
html[data-theme="light"] .hero-v3__btn--ghost {
    background: rgba(122,52,240,.06);
    border-color: rgba(133,83,212,.2);
    color: #4a2a7f;
}
html[data-theme="light"] .hero-v3__btn--ghost:hover {
    background: rgba(122,52,240,.12);
    border-color: rgba(133,83,212,.3);
}
html[data-theme="light"] .v3-cta-banner__btn-cabinet,
html[data-theme="light"] .v3-cta-banner__btn-cabinet i,
html[data-theme="light"] .v3-cta-banner__btn-cabinet span {
    color: #7a34f0;
}
html[data-theme="light"] .hero-v3__proof-item {
    color: #6d5b8d;
    background: rgba(122,52,240,.04);
    border-color: rgba(133,83,212,.12);
}
html[data-theme="light"] .hero-v3__proof-item svg {
    color: #7c3aed;
}
html[data-theme="light"] .hero-v3__server-card {
    background: linear-gradient(135deg, rgba(255,255,255,.85), rgba(245,240,255,.9));
    border-color: rgba(133,83,212,.12);
    box-shadow: 0 4px 16px rgba(92,45,160,.06);
}
html[data-theme="light"] .hero-v3__server-name {
    color: #2b1848;
}
html[data-theme="light"] .hero-v3__server-metric-val {
    color: #2b1848;
}
html[data-theme="light"] .hero-v3__server-metric-label {
    color: #8673a7;
}
html[data-theme="light"] .hero-v3__strip-item {
    background: rgba(122,52,240,.03);
    border-color: rgba(133,83,212,.1);
    color: #6d5b8d;
}
html[data-theme="light"] .hero-v3__strip-item svg {
    color: #7c3aed;
}
html[data-theme="light"] .hero-v3__grid-lines {
    background-image:
        linear-gradient(rgba(122,52,240,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122,52,240,.03) 1px, transparent 1px);
}
html[data-theme="light"] .hero-v3__orb--1 {
    background: radial-gradient(circle, rgba(122,52,240,.12), rgba(133,83,212,.06), transparent 70%);
}
html[data-theme="light"] .hero-v3__orb--2 {
    background: radial-gradient(circle, rgba(168,85,247,.10), transparent 65%);
}
html[data-theme="light"] .v3-badge {
    color: #5b2ca0;
    border-color: rgba(133,83,212,.25);
    background: rgba(122,52,240,.08);
}
html[data-theme="light"] .v3-card {
    background: rgba(255,255,255,0.92);
    border-color: rgba(60, 20, 120, 0.08);
    box-shadow: 0 8px 20px rgba(92, 45, 160, .06);
}
html[data-theme="light"] .v3-card::after {
    background: linear-gradient(180deg, rgba(122,52,240,.03), transparent 70%);
}
html[data-theme="light"] .v3-card p {
    color: #6d5b8d;
}
html[data-theme="light"] .v3-feature-card__icon {
    background: linear-gradient(135deg, rgba(124,58,237,.1), rgba(147,83,255,.04));
    border-color: rgba(133,83,212,.15);
}
html[data-theme="light"] .v3-feature-card__icon--blue {
    background: linear-gradient(135deg, rgba(59,130,246,.1), rgba(99,102,241,.04));
    border-color: rgba(99,130,255,.15);
}
html[data-theme="light"] .v3-feature-card__icon--green {
    background: linear-gradient(135deg, rgba(72,187,120,.1), rgba(72,187,120,.04));
    border-color: rgba(72,187,120,.15);
}
html[data-theme="light"] .v3-feature-mini__icon {
    background: linear-gradient(135deg, rgba(124,58,237,.1), rgba(147,83,255,.04));
    border-color: rgba(133,83,212,.15);
}
html[data-theme="light"] .v3-feature-mini__icon--blue {
    background: linear-gradient(135deg, rgba(59,130,246,.1), rgba(99,102,241,.04));
}
html[data-theme="light"] .v3-feature-mini__icon--green {
    background: linear-gradient(135deg, rgba(72,187,120,.1), rgba(72,187,120,.04));
}
html[data-theme="light"] .v3-feature-list li i,
html[data-theme="light"] .v3-feature-list li svg {
    color: #059669;
}
html[data-theme="light"] .v3-stat {
    background: rgba(122,52,240,.03);
    border-color: rgba(133,83,212,.1);
}
html[data-theme="light"] .v3-stat b {
    background: linear-gradient(135deg, #2b1848, #6f33ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html[data-theme="light"] .v3-timeline__step {
    border-color: rgba(133,83,212,.3);
    background: rgba(122,52,240,.08);
    color: #5b2ca0;
}
html[data-theme="light"] .v3-timeline::before {
    background: linear-gradient(90deg, transparent, rgba(133,83,212,.25), transparent);
}
html[data-theme="light"] .v3-review__stars {
    background: linear-gradient(90deg, #e6a800, #cc8800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html[data-theme="light"] .v3-faq__item[open] {
    border-color: rgba(133,83,212,.2);
    box-shadow: 0 4px 16px rgba(122,52,240,.05);
}
html[data-theme="light"] .v3-cta-banner {
    background:
        radial-gradient(700px 200px at 50% 0%, rgba(170,127,255,.15), transparent 70%),
        linear-gradient(180deg, rgba(200,170,255,.08), rgba(240,230,255,.95)) !important;
}
html[data-theme="light"] .v3-cta-banner__text {
    color: #6d5b8d !important;
}

/* ═══════════════════════════════════════════════════════════════
   NETWORK MAP — Infinity Connect Infrastructure Visualization
   ═══════════════════════════════════════════════════════════════ */

/* Container */
.nmap-wrap {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 16px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(90, 40, 180, 0.12), transparent 70%),
        linear-gradient(160deg, #050014 0%, #08001e 40%, #050014 100%);
    contain: layout style paint;
}
@media (max-width: 900px) {
    .nmap-wrap { height: 340px; border-radius: 12px; }
}
@media (max-width: 560px) {
    .nmap-wrap { height: 280px; }
}

/* Canvas */
.nmap-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Vignette overlay */
.nmap-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(ellipse 100% 100% at 50% 50%, transparent 50%, rgba(5, 0, 20, 0.55) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Subtle border glow */
.nmap-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(139, 92, 246, 0.12);
    pointer-events: none;
    z-index: 3;
}

/* ── Glassmorphism Tooltip ── */
.nmap-tip {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    min-width: 0;
    width: min(86vw, 250px);
    max-width: calc(100% - 16px);
    padding: 0;
    background: rgba(12, 6, 30, 0.82);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 14px;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(139, 92, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    transform: translate(0, 0) scale(0.96);
    display: none;
    font-size: 13px;
    color: #e2d9f3;
}
.nmap-tip.is-visible {
    opacity: 1;
    display: block;
    transform: translate(var(--tx, 0), var(--ty, 0)) scale(1);
}

.nmap-tip__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}
.nmap-tip__flag {
    font-size: 22px;
    line-height: 1;
}
.nmap-tip__name { flex: 1; min-width: 0; }
.nmap-tip__city {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nmap-tip__country {
    font-size: 11px;
    color: rgba(200, 180, 255, 0.55);
    margin-top: 2px;
}
.nmap-tip__quality {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.nmap-tip__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding: 12px 16px 10px;
}
.nmap-tip__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.nmap-tip__val {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.nmap-tip__label {
    font-size: 10px;
    color: rgba(200, 180, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.nmap-tip__hint {
    padding: 6px 16px 12px;
    font-size: 10px;
    color: rgba(200, 180, 255, 0.35);
    text-align: center;
}

@media (max-width: 560px) {
    .nmap-tip {
        width: min(92vw, 220px);
        max-width: calc(100% - 10px);
        border-radius: 12px;
        font-size: 12px;
    }
    .nmap-tip__head {
        gap: 8px;
        padding: 10px 10px 7px;
    }
    .nmap-tip__flag {
        font-size: 18px;
    }
    .nmap-tip__city {
        font-size: 12px;
    }
    .nmap-tip__country,
    .nmap-tip__quality {
        font-size: 10px;
    }
    .nmap-tip__grid {
        padding: 8px 10px 6px;
        gap: 0;
    }
    .nmap-tip__val {
        font-size: 12px;
    }
    .nmap-tip__label {
        font-size: 9px;
        letter-spacing: 0.02em;
    }
    .nmap-tip__hint {
        padding: 4px 10px 8px;
        font-size: 9px;
    }
}

/* ── Legend (bottom-left) ── */
.nmap-leg {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: rgba(12, 6, 30, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    font-size: 11px;
    color: rgba(200, 180, 255, 0.65);
    flex-wrap: wrap;
}
@media (max-width: 560px) {
    .nmap-leg {
        gap: 6px;
        padding: 5px 8px;
        font-size: 9px;
        bottom: 8px;
        left: 8px;
    }
}

.nmap-leg__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.nmap-leg__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.nmap-leg__sep {
    width: 1px;
    height: 14px;
    background: rgba(139, 92, 246, 0.15);
}
.nmap-leg__stat {
    font-weight: 600;
    color: rgba(200, 180, 255, 0.8);
}

/* ── Info Panel (top-right) — selected/best server ── */
.nmap-info {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    padding: 9px 11px;
    min-width: 144px;
    max-width: min(46vw, 210px);
    background: rgba(12, 6, 30, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 12px;
    font-size: 12px;
    color: #e2d9f3;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.nmap-info.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
@media (max-width: 560px) {
    .nmap-info {
        top: 8px;
        right: 8px;
        padding: 6px 8px;
        font-size: 10px;
        min-width: 112px;
        max-width: min(52vw, 148px);
        border-radius: 10px;
    }
}

.nmap-info__badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 4px;
}
.nmap-info__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    animation: nmap-pulse 1.8s ease-in-out infinite;
}
.nmap-info__server {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nmap-info__stats {
    display: flex;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    flex-wrap: wrap;
}
.nmap-info__stats span:first-child {
    font-weight: 700;
}

@media (max-width: 560px) {
    .nmap-info__badge {
        gap: 4px;
        font-size: 8px;
        margin-bottom: 3px;
    }
    .nmap-info__dot {
        width: 6px;
        height: 6px;
    }
    .nmap-info__server {
        font-size: 11px;
        margin-bottom: 3px;
    }
    .nmap-info__stats {
        gap: 6px;
        font-size: 10px;
    }
}

@keyframes nmap-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ── Map section title override ── */
.nmap-section-title {
    text-align: center;
    margin-bottom: 8px;
}

/* ── Light theme adjustments ── */
html[data-theme="light"] .nmap-wrap {
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(122, 52, 240, 0.06), transparent 70%),
        linear-gradient(160deg, #1a0e30 0%, #12082a 40%, #1a0e30 100%);
}
html[data-theme="light"] .nmap-tip,
html[data-theme="light"] .nmap-leg,
html[data-theme="light"] .nmap-info {
    background: rgba(20, 12, 40, 0.85);
    color: #e2d9f3;
}

/* ── Fallback for no-JS / accessibility ── */
.nmap-fallback {
    display: none;
    padding: 40px 20px;
    text-align: center;
    color: rgba(200, 180, 255, 0.55);
    font-size: 14px;
}
.nmap-wrap.is-fallback .nmap-canvas { display: none; }
.nmap-wrap.is-fallback .nmap-fallback { display: block; }
.nmap-wrap.is-fallback .nmap-leg,
.nmap-wrap.is-fallback .nmap-tip,
.nmap-wrap.is-fallback .nmap-info { display: none; }
