:root {
    --bg: #08050a;
    --surface: rgba(22, 13, 21, 0.78);
    --border: rgba(255, 150, 220, 0.14);
    --border-strong: rgba(255, 120, 210, 0.28);
    --text: #f7eef6;
    --muted: #b39aaf;
    --accent: #ff3aec;
    --accent-2: #b14bff;
    --accent-soft: rgba(255, 58, 236, 0.14);
    --glow: 0 10px 36px rgba(255, 40, 180, 0.28);
    --danger: #ff5d6c;
    --ok: #3ee0a0;
    --font: Inter, "Segoe UI", system-ui, sans-serif;
    --mono: "JetBrains Mono", Consolas, monospace;
}

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

html { color-scheme: dark; }

body {
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    background: #07060a;
    line-height: 1.5;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(680px 420px at 18% 0%, rgba(255, 58, 236, 0.16), transparent 62%),
        radial-gradient(520px 380px at 90% 8%, rgba(177, 75, 255, 0.12), transparent 58%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at 40% 0%, #000 10%, transparent 68%);
}

a { color: inherit; text-decoration: none; }

.top, .wrap { position: relative; z-index: 1; }

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 999px;
}

.nav-link:hover { color: #fff; }

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: 1.05rem;
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(255, 40, 180, 0.22);
}

.admin-btn, .ghost-btn {
    border: 1px solid var(--border-strong);
    background: rgba(255, 58, 236, 0.08);
    color: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.86rem;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255, 58, 236, 0.05);
}

.admin-btn:hover, .ghost-btn:hover {
    background: rgba(255, 58, 236, 0.16);
    box-shadow: var(--glow);
}

.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

.stage {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 420px);
    gap: 56px;
    align-items: center;
    padding: 28px 0 48px;
}

.hero { padding: 12px 0 0; position: relative; }

.eyebrow {
    color: #ff8af3;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

h1 {
    font-size: clamp(2.5rem, 4.8vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 700;
    max-width: 11ch;
    background: linear-gradient(135deg, #fff 8%, #ff8af3 52%, #c07bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 { position: relative; z-index: 1; }

.vapor-title {
    position: relative;
}

.vapor-title canvas {
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.vapor-title.is-live {
    background: none;
    -webkit-text-fill-color: initial;
    color: transparent;
}

.vapor-title.is-live .vapor-source {
    background: none;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.lead {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    max-width: 42ch;
    color: var(--muted);
    font-size: 1.05rem;
}

.points {
    position: relative;
    z-index: 2;
    list-style: none;
    display: grid;
    gap: 14px;
    margin-top: 28px;
    max-width: 440px;
}

.points li {
    display: grid;
    gap: 2px;
    padding-left: 16px;
    border-left: 2px solid rgba(255, 58, 236, 0.55);
}

.points strong {
    font-size: 0.92rem;
    letter-spacing: -0.02em;
}

.points span {
    color: var(--muted);
    font-size: 0.88rem;
}

.access {
    position: relative;
    background: linear-gradient(180deg, rgba(24, 16, 24, 0.92), rgba(12, 10, 14, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 18px 18px 8px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
}

.access h2 {
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.access::before {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff3aec, #c07bff, transparent);
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    margin-bottom: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.tab {
    border: 0;
    background: transparent;
    color: var(--muted);
    border-radius: 11px;
    padding: 11px 10px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 650;
    cursor: pointer;
}

.tab.is-on {
    background: rgba(255, 58, 236, 0.16);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 58, 236, 0.28);
}

.pane { display: none; padding: 8px 6px 16px; }
.pane.is-on { display: block; }

.card {
    background: linear-gradient(180deg, rgba(24, 16, 24, 0.92), rgba(12, 10, 14, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

.card h2 {
    font-size: 1.3rem;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.card > p, .hint { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }

label {
    display: block;
    margin: 14px 0 7px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

input {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(8, 5, 9, 0.72);
    color: var(--text);
    border-radius: 12px;
    padding: 13px 14px;
    font: inherit;
    outline: none;
}

input:focus {
    border-color: rgba(255, 80, 220, 0.75);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

button.primary {
    width: 100%;
    margin-top: 18px;
    border: 0;
    border-radius: 12px;
    padding: 13px 16px;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: var(--glow);
}

button.primary:hover { filter: brightness(1.06); }
button.primary:disabled { opacity: 0.65; cursor: wait; }

.msg { margin-top: 14px; font-size: 0.9rem; }
.msg.bad { color: var(--danger); }
.msg.ok { color: var(--ok); }

.facts { display: grid; gap: 0; margin-top: 8px; }

.fact {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
}

.fact span { color: var(--muted); }
.fact b { font-weight: 650; text-align: right; word-break: break-all; }

.key { font-family: var(--mono); font-size: 0.84rem; color: #ffd2f6; }

.warn {
    margin: 14px 0 4px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 93, 108, 0.12);
    color: var(--danger);
}

.foot { color: var(--muted); font-size: 0.82rem; padding-bottom: 28px; }

.account-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 8px;
}

.account-head h1 { max-width: none; font-size: clamp(1.8rem, 4vw, 2.8rem); }

@media (max-width: 860px) {
    .stage {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 12px;
    }
    .hero h1 { max-width: 12ch; }
    .account-head { align-items: flex-start; flex-direction: column; }
    .top, .wrap { width: min(1120px, calc(100% - 32px)); }
}
