:root {
    --bg:            #0a0a0b;
    --bg-raise:      #111113;
    --bg-raise-2:    #18181b;
    --text:          #f4f4f5;
    --muted:         #8b8b95;
    --accent:        #e4e4e7;
    --accent-dim:    rgba(255, 255, 255, 0.08);
    --accent-hover:  #ffffff;
    --accent-deep:   #27272a;
    --danger:        #dc2626;
    --danger-text:   #fca5a5;
    --warning:       #d97706;
    --border:        rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --code-bg:       #0e0e10;
    --input-bg:      rgba(255, 255, 255, 0.04);
    --light-1:       #fafafa;
    --light-2:       #ffffff;
    --on-light:      #0a0a0b;
    --on-accent:     #09090b;

    --radius:        14px;
    --radius-sm:     8px;
    --radius-lg:     18px;
    --font-display:  "Space Grotesk", sans-serif;
    --font-body:     "DM Sans", system-ui, sans-serif;
    --font-mono:     "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

    --glass:         rgba(12, 12, 14, 0.65);
    --glass-border:  rgba(255, 255, 255, 0.06);
    --glass-blur:    blur(40px) saturate(1.6);

    --lift:   cubic-bezier(0.22, 1, 0.36, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --snap:   cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; }

html, body {
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color .18s var(--lift); }
a:hover { color: var(--accent-hover); }

/* ─── YouTube video background ────────────────────────────────── */

.yt-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.yt-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.82) 100%);
    z-index: 1;
}
.yt-bg iframe {
    position: absolute;
    top: -60px;
    left: -60px;
    right: -60px;
    bottom: -60px;
    width: calc(100% + 120px);
    height: calc(100% + 120px);
    border: 0;
    object-fit: cover;
}
@media (min-aspect-ratio: 16/9) {
    .yt-bg iframe {
        height: 140%;
        top: -20%;
    }
}
@media (max-aspect-ratio: 16/9) {
    .yt-bg iframe {
        width: 140%;
        left: -20%;
    }
}

/* ─── Top navigation (replaces sidebar) ───────────────────────── */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 max(24px, 4vw);
    height: 64px;
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    animation: nav-enter 0.5s var(--lift) both;
}
@keyframes nav-enter {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.top-nav-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.03em;
    color: var(--text);
    text-decoration: none;
}
.top-nav-brand:hover { color: var(--text); }
.top-nav-brand .at { color: var(--accent); }

.top-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.top-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    transition: color .18s ease, background .18s ease;
    border: 1px solid transparent;
}
.top-nav-link:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}
.top-nav-link.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}
.top-nav-link svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.top-nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
}
.top-nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent);
    font-size: 13px;
    font-family: var(--font-display);
    overflow: hidden;
    flex-shrink: 0;
}
.top-nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.top-nav-signout {
    background: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    padding: 6px 14px;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.top-nav-signout:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(255,255,255,0.04);
}

/* ─── Main content area ───────────────────────────────────────── */

.dash-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 96px max(24px, 5vw) 64px;
    max-width: 960px;
    margin: 0 auto;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: reveal 0.6s var(--lift) 0.1s forwards;
}
.page-head h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.03em;
}
.page-head .sub {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scale-in {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

/* ─── Glass card ──────────────────────────────────────────────── */

.card {
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: border-color .22s var(--lift), transform .28s var(--lift), box-shadow .28s ease;
}
.card:hover {
    border-color: rgba(255,255,255,0.1);
}
.card-pad { padding: 24px 26px; }
.card-head {
    padding: 16px 26px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.card-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ─── Stats ───────────────────────────────────────────────────── */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }

.stat {
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 22px 24px;
    opacity: 0;
    animation: reveal 0.55s var(--lift) forwards;
    transition: border-color .22s ease, transform .28s var(--lift);
}
.stat:nth-child(1) { animation-delay: 0.15s; }
.stat:nth-child(2) { animation-delay: 0.22s; }
.stat:nth-child(3) { animation-delay: 0.29s; }
.stat:hover {
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}
.stat .label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}
.stat .value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    margin-top: 8px;
    letter-spacing: -0.03em;
    font-feature-settings: "tnum";
}
.stat .delta {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}
.stat .value.value-sm {
    font-size: 22px;
    line-height: 1.2;
}
.stats-3 { grid-template-columns: repeat(3, 1fr); }

/* ─── Profile picture ─────────────────────────────────────────── */

.avatar-img { object-fit: cover; padding: 0; }

.page-head-id {
    display: flex;
    align-items: center;
    gap: 18px;
}
.page-pfp {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    flex-shrink: 0;
    overflow: hidden;
}
.page-pfp.page-pfp-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
}

.pfp-row {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 14px;
}
.pfp-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
}
.pfp-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pfp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.pfp-upload-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.pfp-pick {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.pfp-pick input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.pfp-hint {
    flex-basis: 100%;
    margin-top: 4px;
}

/* ─── Buttons ─────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 18px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .1s ease;
    text-decoration: none;
}
.btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--border-strong);
    color: var(--text);
}
.btn:active { transform: scale(0.97); }

.btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #09090b;
    font-weight: 600;
    box-shadow: 0 4px 20px -4px rgba(255, 255, 255, 0.25);
}
.btn.primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #000000;
    box-shadow: 0 8px 32px -4px rgba(255, 255, 255, 0.4);
}

.btn.danger {
    color: var(--danger-text);
    border-color: rgba(217, 108, 108, 0.25);
    background: rgba(217, 108, 108, 0.08);
}
.btn.danger:hover { background: rgba(217, 108, 108, 0.14); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { height: 32px; padding: 0 14px; font-size: 12px; }
.btn.lg { height: 46px; padding: 0 28px; font-size: 15px; font-weight: 600; }

/* ─── Inputs ──────────────────────────────────────────────────── */

.input,
input[type="text"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
    width: 100%;
    height: 40px;
    padding: 0 16px;
    background: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font: inherit;
    outline: none;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
textarea { height: auto; padding: 12px 16px; resize: vertical; line-height: 1.5; }

textarea.code-editor {
    min-height: 360px;
    padding: 16px 18px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.65;
    background: var(--code-bg);
    tab-size: 4;
    -moz-tab-size: 4;
    white-space: pre;
    overflow: auto;
}
.input:focus, input:focus, select:focus, textarea:focus {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.input.sm { height: 32px; padding: 0 12px; font-size: 12px; }

.form-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.form-row .grow { flex: 1; min-width: 160px; }
.form-row label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    font-weight: 500;
}

.inline-form {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

/* ─── Flashes ─────────────────────────────────────────────────── */

.flashes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.flash {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.flash::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted);
    flex-shrink: 0;
}
.flash.success {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fecaca;
}
.flash.success::before { background: var(--accent); }
.flash.error {
    border-color: rgba(217, 108, 108, 0.3);
    color: var(--danger-text);
}
.flash.error::before { background: var(--danger); }

/* ─── Login / Register ────────────────────────────────────────── */

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    position: relative;
    z-index: 1;
}
.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 44px 36px 36px;
    position: relative;
    z-index: 1;
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    animation: scale-in 0.6s var(--lift) 0.15s forwards;
}
.login-brand {
    margin-bottom: 32px;
    text-align: center;
}
.login-brand .mark {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.04em;
}
.login-brand .mark .at { color: var(--accent); }
.login-brand .sub {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 8px;
    font-weight: 500;
}
.login-card label {
    display: block;
    margin: 18px 0 7px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}
.login-card .btn.primary {
    width: 100%;
    height: 44px;
    margin-top: 24px;
    font-weight: 600;
    font-size: 14px;
}
.login-foot {
    margin-top: 24px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-align: center;
}

/* ─── Tables ──────────────────────────────────────────────────── */

table.atlas {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
table.atlas th, table.atlas td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
}
table.atlas th {
    background: rgba(255,255,255,0.02);
    color: var(--muted);
    font-weight: 500;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
table.atlas tr:last-child td { border-bottom: none; }
table.atlas tbody tr {
    transition: background .15s ease;
}
table.atlas tbody tr:hover td { background: rgba(255,255,255,0.03); }
table.atlas td.mono {
    font-family: var(--font-mono);
    color: var(--muted);
    font-size: 12px;
}
table.atlas td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ─── Pills / Tags ────────────────────────────────────────────── */

.pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}
.pill.ok {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: rgba(255, 255, 255, 0.2);
}
.pill.warn {
    background: rgba(217, 165, 83, 0.12);
    color: #e8c48a;
    border-color: rgba(217, 165, 83, 0.2);
}
.pill.bad {
    background: rgba(217, 108, 108, 0.12);
    color: var(--danger-text);
    border-color: rgba(217, 108, 108, 0.2);
}
.pill.muted {
    background: rgba(255,255,255,0.04);
    color: var(--muted);
    border-color: var(--glass-border);
}

.panel-title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
}

/* ─── Status pill ─────────────────────────────────────────────── */

.status-pill {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}
.status-pill.ok {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
    border-color: rgba(255, 255, 255, 0.2);
}
.status-pill.bad {
    background: rgba(255,255,255,0.04);
    color: var(--muted);
}

/* ─── Misc ────────────────────────────────────────────────────── */

.muted { color: var(--muted); }
.right { text-align: right; }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); }
.mark-link { text-decoration: none; color: inherit; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--glass-border); margin: 16px 0; }

.redeem-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.redeem-form .input { flex: 1; min-width: 200px; }

.info-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.info-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}
.info-list li:last-child { border-bottom: none; padding-bottom: 0; }

.grid-2 {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 20px;
}
@media (max-width: 1080px) { .grid-2 { grid-template-columns: 1fr; } }

.err-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
    position: relative;
    padding: 24px;
}
.err-inner { position: relative; z-index: 1; }
.err-code {
    font-family: var(--font-display);
    font-size: 80px;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.04em;
}
.err-msg {
    color: var(--muted);
    margin-top: 10px;
    font-size: 15px;
}

details.collapse > summary {
    cursor: pointer;
    list-style: none;
    color: var(--accent);
    font-size: 12px;
    padding: 4px 0;
}
details.collapse > summary::-webkit-details-marker { display: none; }
details.collapse[open] > summary { color: var(--text); }

/* ─── Responsive ──────────────────────────────────────────────── */

@media (max-width: 640px) {
    .top-nav { padding: 0 16px; height: 56px; }
    .top-nav-links { gap: 2px; }
    .top-nav-link span.nav-label { display: none; }
    .top-nav-link { padding: 8px 10px; }
    .dash-main { padding: 80px 16px 48px; }
    .page-head-id { flex-wrap: wrap; }
    .pfp-row { flex-direction: column; align-items: flex-start; }
    .stats { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════ */
/* OLD SIDEBAR — kept for admin pages only                       */
/* ═══════════════════════════════════════════════════════════════ */

.app {
    display: grid;
    grid-template-columns: 248px 1fr;
    min-height: 100vh;
    position: relative;
}
.sidebar {
    background: var(--bg-raise);
    border-right: 1px solid var(--border);
    padding: 24px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 0;
    height: 100vh;
}
.brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 0 10px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.brand-mark {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 21px;
    letter-spacing: -0.02em;
}
.brand-mark .at { color: var(--accent); }
.brand-link { text-decoration: none; color: inherit; }
.brand-link:hover { color: inherit; }
.brand-sub {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-weight: 500;
    font-size: 13.5px;
    border: 1px solid transparent;
    transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.nav-item:hover {
    background: var(--bg-raise-2);
    color: var(--text);
    border-color: var(--border);
}
.nav-item.active {
    background: var(--accent-dim);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
}
.nav-icon {
    width: 16px; height: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; opacity: .85;
}
.nav-item.active .nav-icon { opacity: 1; color: var(--accent); }
.sidebar-foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-foot form { margin: 0; }
.sidebar-foot .who {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px;
    color: var(--text);
}
.sidebar-foot .avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent-dim);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; color: var(--accent); font-size: 12px;
    font-family: var(--font-display);
}
.sidebar-foot .host {
    padding: 6px 10px; font-size: 11px; letter-spacing: 0.04em; color: var(--muted);
}
.main {
    padding: 32px 40px 64px;
    max-width: 1280px;
}
@media (max-width: 820px) {
    .app { grid-template-columns: 1fr; }
    .sidebar {
        position: relative; height: auto;
        flex-direction: row; flex-wrap: wrap;
        align-items: center; gap: 8px; padding: 16px;
    }
    .brand { border-bottom: none; margin-bottom: 0; padding-bottom: 0; width: 100%; }
    .sidebar-foot { display: none; }
    .main { padding: 24px 18px 48px; }
}

/* ═══════════════════════════════════════════════════════════════ */
/* PUBLIC SITE — landing page                                    */
/* ═══════════════════════════════════════════════════════════════ */

.site-nav {
    position: sticky;
    top: 0; z-index: 100;
    display: flex; align-items: center;
    justify-content: space-between; gap: 16px;
    padding: 14px max(24px, 5vw);
    background: rgba(10, 10, 11, 0.9);
    border-bottom: 1px solid var(--border);
}
.site-links-mid {
    position: absolute; left: 50%; transform: translateX(-50%);
}
@media (max-width: 820px) { .site-links-mid { display: none; } }
.site-logo {
    font-family: var(--font-display);
    font-weight: 700; font-size: 22px; letter-spacing: -0.03em;
    color: var(--text); text-decoration: none;
}
.site-logo:hover { color: var(--text); }
.site-logo .at { color: var(--accent); }
.site-logo.sm { font-size: 18px; }
.site-links { display: flex; align-items: center; gap: 28px; }
.site-links a { color: var(--muted); font-weight: 500; font-size: 14px; text-decoration: none; }
.site-links a:hover { color: var(--text); }
.inline-nav-form { margin: 0; display: inline; }
.site-flashes { max-width: 1200px; margin: 0 auto; padding: 12px max(24px, 5vw) 0; position: relative; z-index: 10; }
.site-foot { border-top: 1px solid var(--border); padding: 48px max(24px, 5vw); margin-top: 0; }
.site-foot-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot-links a { color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; }
.site-foot-links a:hover { color: var(--text); }

.x3-hero { padding: 72px max(24px, 5vw) 56px; position: relative; z-index: 1; }
.x3-hero-inner { max-width: 1200px; margin: 0 auto; }
.x3-tag { margin: 0 0 20px; color: var(--muted); font-size: 13px; font-weight: 500; }
.x3-hero h1 { font-family: var(--font-display); font-size: clamp(48px, 8vw, 88px); font-weight: 700; letter-spacing: -0.045em; line-height: 0.95; margin: 0; max-width: 720px; }
.x3-hero h1 .accent { color: var(--accent); }
.x3-lead { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 560px; margin: 28px 0 0; }
.x3-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.ghost-link { color: var(--muted); font-size: 13.5px; font-weight: 500; border-bottom: 1px solid var(--border-strong); padding-bottom: 2px; transition: color .14s ease, border-color .14s ease; }
.ghost-link:hover { color: var(--text); border-color: var(--text); }

/* All the x3/lp landing styles remain the same... */
.x3-feature-list { margin-top: 0; }
.x3-feature-list li { border-top: 1px solid var(--border); padding: 18px 0; display: block; }
.x3-feature-list li:last-child { border-bottom: 1px solid var(--border); }
.x3-feature-list strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.x3-feature-list p { color: var(--muted); margin: 0; font-size: 13.5px; line-height: 1.6; }
.x3-feature-list code { background: var(--code-bg); padding: 1px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; align-items: baseline; font-size: 13px; }
.dl dt { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.10em; }
.dl dd { margin: 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--text); }
.x3-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 64px; max-width: 900px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 720px) { .x3-stats { grid-template-columns: repeat(2, 1fr); } }
.x3-stat { background: var(--bg-raise); padding: 24px 20px; text-align: center; }
.x3-stat-val { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.x3-stat-lbl { color: var(--muted); font-size: 12px; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.x3-section { padding: 80px max(24px, 5vw); position: relative; z-index: 1; }
.x3-section-alt { background: var(--bg-raise); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.x3-section-inner { max-width: 1200px; margin: 0 auto; }
.x3-kicker { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; }
.x3-section-title { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 32px; }
.x3-num-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .x3-num-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .x3-num-grid { grid-template-columns: 1fr; } }
.x3-num-card { background: var(--bg-raise); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; min-height: 180px; }
.x3-section-alt .x3-num-card { background: var(--bg); }
.x3-num { display: block; font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.x3-num-card h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.x3-num-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.x3-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .x3-split { grid-template-columns: 1fr; } }
.x3-split-copy h2 { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 16px; }
.x3-bullets { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.x3-bullets li { position: relative; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.x3-bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.x3-split-panel h3 { margin-top: 4px; }
.x3-price-rows { margin-top: 20px; display: flex; flex-direction: column; gap: 0; }
.x3-price-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.x3-price-row.highlight { color: var(--accent); border-bottom: none; padding-bottom: 0; }
.x3-price-row strong { font-family: var(--font-display); }
.x3-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .x3-steps { grid-template-columns: 1fr; } }
.x3-step { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-raise); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-dim); border: 1px solid rgba(255, 255, 255, 0.25); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--font-display); font-size: 14px; }
.x3-step strong { display: block; margin-bottom: 4px; font-size: 15px; }
.x3-step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.x3-cta { padding: 88px max(24px, 5vw); text-align: center; position: relative; z-index: 1; border-top: 1px solid var(--border); }
.x3-cta-inner { max-width: 560px; margin: 0 auto; }
.x3-cta h2 { font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.x3-cta p { margin: 12px 0 0; font-size: 15px; }
@media (max-width: 640px) { .site-nav { padding: 14px 20px; } .site-links { gap: 16px; } .x3-hero { padding-top: 48px; } .x3-section { padding: 56px 20px; } .x3-cta { padding: 64px 20px; } }

/* LP sections preserved */
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 max(20px, 4vw); position: relative; z-index: 1; }
.lp-hero { position: relative; min-height: min(92vh, 920px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100px 20px 72px; overflow: hidden; }
.lp-hero-glow { position: absolute; inset: -20% 10% auto; height: 55%; background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%); pointer-events: none; z-index: 0; }
.lp-hero-gridlines { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.35; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%); }
.lp-hero-inner { position: relative; z-index: 2; width: 100%; max-width: 820px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.lp-announce { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: 28px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500; transition: background .18s ease, border-color .18s ease, transform .2s ease; }
.lp-announce:hover { color: var(--text); background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.35); transform: translateY(-1px); }
.lp-announce-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 8px; border-radius: 999px; background: var(--accent); color: #09090b; }
.lp-announce-text { color: var(--text); opacity: 0.88; }
.lp-announce-arrow { color: var(--accent); font-size: 14px; }
.lp-hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 11vw, 104px); line-height: 0.92; letter-spacing: -0.045em; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-hero-title-sub { font-size: clamp(16px, 2.4vw, 22px); font-weight: 500; letter-spacing: -0.02em; color: var(--muted); line-height: 1.3; }
.lp-hero-tagline { margin: 22px 0 0; font-family: var(--font-display); font-size: clamp(20px, 3vw, 28px); font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.lp-hero-lead { margin: 14px 0 0; max-width: 34rem; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.lp-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.lp-btn-main { min-width: 160px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 12px 40px -12px rgba(255, 255, 255, 0.3); }
.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; width: min(100%, 520px); margin-top: 48px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg-raise); }
.lp-stat { padding: 18px 12px; text-align: center; border-right: 1px solid var(--border); }
.lp-stat:last-child { border-right: 0; }
.lp-stat-v { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lp-stat-l { display: block; margin-top: 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 500; }
.lp-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; width: 28px; height: 44px; border: 1px solid var(--border-strong); border-radius: 16px; display: flex; justify-content: center; padding-top: 8px; text-decoration: none; }
.lp-scroll span { width: 4px; height: 8px; border-radius: 4px; background: var(--accent); animation: lp-scroll 1.6s ease-in-out infinite; }
@keyframes lp-scroll { 0% { opacity: 1; transform: translateY(0); } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; transform: translateY(0); } }
.lp-section { padding: 100px 0 20px; position: relative; z-index: 1; }
.lp-section-alt { margin-top: 80px; padding: 88px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-raise) 0%, var(--bg) 100%); }
.lp-head { margin-bottom: 40px; max-width: 36rem; }
.lp-head-center { margin-left: auto; margin-right: auto; text-align: center; max-width: 40rem; }
.lp-kicker { margin: 0 0 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); }
.lp-h2 { font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 42px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
.lp-sub { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.lp-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lp-mod { position: relative; background: var(--bg-raise); border: 1px solid var(--border); border-radius: 14px; padding: 26px 22px 22px; transition: border-color .2s ease, background .2s ease, transform .28s var(--lift), box-shadow .28s ease; overflow: hidden; }
.lp-mod::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .18s ease; }
.lp-mod:hover { border-color: var(--border-strong); background: var(--bg-raise-2); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.75); }
.lp-mod:hover::after { background: var(--accent); }
.lp-mod-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; transition: color .2s ease, letter-spacing .25s ease; }
.lp-mod:hover .lp-mod-num { color: var(--accent); letter-spacing: 0.14em; }
.lp-mod h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.lp-mod p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.lp-mod-lg { grid-column: span 2; grid-row: span 2; padding: 32px 28px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 55%), var(--bg-raise); }
.lp-mod-lg h3 { font-size: 26px; margin-bottom: 14px; }
.lp-mod-lg p { font-size: 14.5px; max-width: 36rem; }
.lp-mod-wide { grid-column: span 2; }
.lp-mod-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.lp-mod-tags li { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); color: var(--text); transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.lp-mod:hover .lp-mod-tags li { border-color: rgba(255, 255, 255, 0.25); }
.lp-mod-tags li:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); }
.lp-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-why-card { text-align: center; padding: 28px 20px 24px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s ease, transform .28s var(--lift), box-shadow .28s ease; }
.lp-why-card:hover { border-color: rgba(255, 255, 255, 0.25); transform: translateY(-2px); box-shadow: 0 16px 36px -22px rgba(255, 255, 255, 0.25); }
.lp-why-icon { width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #e4e4e7, #a1a1aa); color: #09090b; transition: transform .35s var(--lift), box-shadow .3s ease; }
.lp-why-card:hover .lp-why-icon { transform: scale(1.08) rotate(-4deg); box-shadow: 0 10px 24px -8px rgba(255, 255, 255, 0.35); }
.lp-why-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.lp-why-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-steps li { background: var(--bg-raise); border: 1px solid var(--border); border-radius: 14px; padding: 28px 22px; display: flex; flex-direction: column; gap: 16px; min-height: 180px; transition: border-color .2s ease, transform .28s ease, box-shadow .28s ease; }
.lp-steps li:hover { border-color: rgba(255, 255, 255, 0.25); transform: translateY(-3px); box-shadow: 0 16px 36px -24px rgba(0,0,0,0.7); }
.lp-step-n { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); line-height: 1; transition: transform .3s var(--lift); }
.lp-steps li:hover .lp-step-n { transform: scale(1.08); }
.lp-steps h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.lp-steps p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.lp-steps code { font-family: var(--font-mono); font-size: 11.5px; background: var(--code-bg); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; color: var(--text); }
.lp-faq-wrap { max-width: 720px; }
.lp-faq { display: flex; flex-direction: column; gap: 8px; }
.lp-faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .2s ease; }
.lp-faq-item:hover { border-color: var(--border-strong); }
.lp-faq-item[open] { border-color: rgba(255, 255, 255, 0.25); }
.lp-faq-item summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 14.5px; display: flex; align-items: center; justify-content: space-between; gap: 16px; user-select: none; transition: color .15s ease; }
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after { content: "+"; font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--accent); line-height: 1; transition: transform .25s ease; }
.lp-faq-item[open] summary::after { content: "\2212"; transform: rotate(180deg); }
.lp-faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 13.5px; line-height: 1.6; animation: reveal 0.35s ease; }
.lp-faq-item code { font-family: var(--font-mono); font-size: 11.5px; background: var(--code-bg); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; }
.lp-final { padding: 100px 0 110px; position: relative; z-index: 1; }
.lp-final-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding: 40px 36px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.2); background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), transparent 50%), var(--bg-raise); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.lp-final-inner:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.35); box-shadow: 0 24px 60px -30px rgba(255, 255, 255, 0.35); }
.lp-final-copy .lp-sub { max-width: 28rem; }
.lp-final .lp-hero-cta { margin-top: 0; justify-content: flex-start; }

@media (max-width: 900px) { .lp-modules { grid-template-columns: 1fr 1fr; } .lp-mod-lg, .lp-mod-wide { grid-column: span 2; grid-row: auto; } .lp-why { grid-template-columns: 1fr 1fr; } .lp-steps { grid-template-columns: 1fr; } .lp-hero { min-height: auto; padding: 80px 16px 64px; } }
@media (max-width: 560px) { .lp-modules, .lp-why { grid-template-columns: 1fr; } .lp-mod-lg, .lp-mod-wide { grid-column: auto; } .lp-stats { grid-template-columns: 1fr; width: 100%; } .lp-stat { border-right: 0; border-bottom: 1px solid var(--border); } .lp-stat:last-child { border-bottom: 0; } .lp-final-inner { padding: 28px 20px; } .lp-section { padding-top: 72px; } .lp-section-alt { margin-top: 56px; padding: 64px 0; } .lp-scroll { display: none; } }

/* ─── Landing animations ──────────────────────────────────────── */
@keyframes lp-fade-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lp-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lp-scale-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes lp-glow-pulse { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes lp-grid-drift { from { background-position: 0 0, 0 0; } to { background-position: 64px 64px, 64px 64px; } }
@keyframes lp-badge-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); } 50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); } }
@keyframes lp-shine { 0% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(220%) skewX(-18deg); } }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.lp-hero-inner > * { opacity: 0; animation: lp-fade-up 0.75s var(--lift) forwards; }
.lp-hero-inner > .lp-announce { animation-delay: 0.05s; }
.lp-hero-inner > .lp-hero-title { animation-delay: 0.16s; }
.lp-hero-inner > .lp-hero-tagline { animation-delay: 0.28s; }
.lp-hero-inner > .lp-hero-lead { animation-delay: 0.38s; }
.lp-hero-inner > .lp-hero-cta { animation-delay: 0.48s; }
.lp-hero-inner > .lp-stats { animation-delay: 0.6s; animation-name: lp-scale-in; }
.lp-hero-glow { animation: lp-glow-pulse 6s ease-in-out infinite; }
.lp-hero-gridlines { animation: lp-grid-drift 28s linear infinite; }
.lp-announce-badge { animation: lp-badge-pulse 2.4s ease-out infinite; }
.lp-announce-arrow { display: inline-block; transition: transform .2s ease; }
.lp-announce:hover .lp-announce-arrow { transform: translateX(4px); }
.lp-btn-main { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .25s ease, background .18s ease; }
.lp-btn-main::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.22) 50%, transparent 65%); transform: translateX(-120%) skewX(-18deg); pointer-events: none; }
.lp-btn-main:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 16px 48px -10px rgba(255, 255, 255, 0.35); }
.lp-btn-main:hover::before { animation: lp-shine 0.7s ease forwards; }
.lp-scroll { animation: lp-float 2.4s ease-in-out infinite; transition: border-color .2s ease, opacity .2s ease; }
.lp-scroll:hover { border-color: var(--accent); opacity: 1; }
.lp-reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--lift), transform 0.7s var(--lift); will-change: opacity, transform; }
.lp-reveal.is-in { opacity: 1; transform: translateY(0); }
.lp-reveal-d1 { transition-delay: 0.05s; } .lp-reveal-d2 { transition-delay: 0.12s; } .lp-reveal-d3 { transition-delay: 0.19s; } .lp-reveal-d4 { transition-delay: 0.26s; } .lp-reveal-d5 { transition-delay: 0.33s; } .lp-reveal-d6 { transition-delay: 0.4s; } .lp-reveal-d7 { transition-delay: 0.47s; }
.lp-stat-v { transition: color .25s ease, transform .25s ease; }
.lp-stats:hover .lp-stat-v { color: #fff; }
body:has(.lp-hero) .site-nav { animation: lp-fade-in 0.5s ease both; }

/* Reseller */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; align-items: stretch; }
@media (max-width: 980px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 24px 22px; opacity: 0; transform: translateY(20px); animation: lp-fade-up .6s var(--lift) forwards; transition: transform 220ms var(--lift), border-color 220ms ease, background 220ms ease; }
.plan-card:nth-child(1) { animation-delay: .04s; } .plan-card:nth-child(2) { animation-delay: .10s; } .plan-card:nth-child(3) { animation-delay: .16s; } .plan-card:nth-child(4) { animation-delay: .22s; }
.plan-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.plan-card.featured { border-color: rgba(255, 255, 255, 0.25); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), var(--bg-raise) 65%); transform: scale(1.035); }
.plan-card.featured:hover { transform: scale(1.035) translateY(-4px); }
.plan-tag { position: absolute; top: -11px; left: 22px; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 999px; }
.plan-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 500; }
.plan-price { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; font-feature-settings: "tnum"; }
.plan-price .cur { font-size: 20px; opacity: .7; margin-left: 2px; }
.plan-price-old { font-family: var(--font-display); font-size: 15px; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.2); margin-top: 6px; }
.plan-days { font-size: 12px; color: var(--muted); margin-top: -10px; }
.plan-card form { margin-top: auto; }
.plan-card .btn { width: 100%; }
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: lp-badge-pulse 2s ease-out infinite; }
.status-pill.pending { background: rgba(255,255,255,0.04); color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.pay-block { margin-bottom: 20px; } .pay-block:last-child { margin-bottom: 0; }
.pay-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; }
.pay-row { display: flex; align-items: stretch; gap: 8px; }
.pay-value { flex: 1; background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-family: var(--font-mono); font-size: 14px; word-break: break-all; display: flex; align-items: center; }
.pay-value.lg { font-size: 18px; font-weight: 600; }
.copy-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-raise-2); color: var(--muted); cursor: pointer; transition: color 150ms ease, border-color 150ms ease, transform 100ms ease; }
.copy-btn:hover { color: var(--text); border-color: var(--border-strong); }
.copy-btn:active { transform: scale(0.94); }
.copy-btn.copied { color: var(--accent); border-color: rgba(255, 255, 255, 0.25); }
.progress-track { height: 4px; border-radius: 999px; background: var(--bg-raise-2); overflow: hidden; margin-top: 14px; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 999px; width: 100%; transition: width 1s linear; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
