/* ================================================================ */
/*  LX 2.0 — website stylesheet                                     */
/* ================================================================ */

:root {
    /* Palette copied from the desktop loader. */
    --bg:            #0e0e0e;
    --bg-elev:       #171717;
    --panel:         #171717;
    --panel-alt:     #1c1c1c;
    --border:        #202020;
    --border-strong: #303030;
    --text:          #ffffff;
    --text-muted:    #8c8c8c;
    --text-dim:      #626067;

    --accent:        #8597fd;
    --accent-hot:    #9eacff;
    --accent-active: #6f82e0;
    --accent-glow:   rgba(133, 151, 253, 0.24);
    --accent-soft:   rgba(133, 151, 253, 0.10);

    --ok:            #4ade80;
    --warn:          #fbbf24;
    --err:           #f87171;

    --shadow:        0 20px 60px -20px rgba(0, 0, 0, 0.6);
    --radius:        7px;
    --radius-sm:     4px;
    --radius-lg:     10px;

    --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                     Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono:     'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo,
                     Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background:
        radial-gradient(860px 560px at 12% -12%, rgba(133, 151, 253, 0.08), transparent 62%),
        radial-gradient(720px 520px at 92% 100%, rgba(133, 151, 253, 0.045), transparent 64%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ------------------ Layout containers ------------------ */

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ------------------ Top nav ------------------ */

.nav {
    position: sticky; top: 0; z-index: 30;
    background: rgba(14, 14, 14, 0.84);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--border);
}
.nav__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.brand {
    display: inline-flex; align-items: center; gap: 12px;
    font-weight: 700; font-size: 18px; letter-spacing: 0.02em;
}
.brand__mark {
    /* Now an <img> — logo.png (white A on black). Rounded corners
       + soft glow to keep the visual weight of the original solid
       red block. object-fit contains keeps aspect ratio safe for
       any future retina swap. */
    display: inline-block;
    width: 32px; height: 32px;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
    box-shadow: none;
}
.nav__links {
    display: flex; align-items: center; gap: 6px;
    list-style: none; margin: 0; padding: 0;
}
.nav__links a {
    display: inline-flex; align-items: center;
    padding: 8px 14px; border-radius: 8px;
    color: var(--text-muted); font-weight: 500; font-size: 14px;
    transition: color 120ms ease, background 120ms ease;
}
.nav__links a:hover { color: var(--text); background: var(--panel); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

/* ------------------ Buttons ------------------ */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    font-family: inherit; font-size: 14px; font-weight: 600;
    letter-spacing: 0.005em;
    cursor: pointer; user-select: none;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text);
    transition: transform 120ms ease, background 120ms ease,
                border-color 120ms ease, box-shadow 200ms ease, color 120ms ease;
    white-space: nowrap;
}
/* The Webmail link is injected as an anchor, so normalize the browser's
   anchor metrics to the neighboring button controls. */
#webmail-btn {
    line-height: normal;
    text-decoration: none;
    vertical-align: middle;
}
.btn:disabled, .btn[aria-disabled="true"] {
    opacity: 0.5; pointer-events: none;
}
.btn--primary {
    background: linear-gradient(180deg, var(--accent-hot) 0%, var(--accent) 100%);
    color: #fff;
    border-color: rgba(133, 151, 253, 0.52);
    box-shadow: 0 8px 22px -8px var(--accent-glow),
                inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -8px var(--accent-glow),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn--ghost {
    color: var(--text);
    background: var(--panel);
    border-color: var(--border);
}
.btn--ghost:hover {
    background: var(--panel-alt);
    border-color: var(--border-strong);
}
.btn--danger {
    background: #261416;
    color: #ff7373;
    border-color: rgba(248, 113, 113, 0.30);
}
.btn--danger:hover {
    background: #35191d;
    border-color: rgba(248, 113, 113, 0.5);
}
.btn--block { display: flex; width: 100%; }

/* ------------------ Hero ------------------ */

.hero {
    padding: 88px 0 72px;
    position: relative;
}
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
}
.hero__text {
    min-width: 0;
}
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-hot);
    font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(133, 151, 253, 0.24);
}
.hero__eyebrow::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-hot);
    box-shadow: 0 0 12px var(--accent);
}
.hero h1 {
    font-size: clamp(34px, 4.4vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 22px 0 18px;
    background: linear-gradient(180deg, #ffffff 0%, #b7b7c6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero h1 span {
    background: linear-gradient(180deg, var(--accent-hot), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p {
    max-width: 560px;
    color: var(--text-muted);
    font-size: 17px;
    margin: 0 0 30px;
}
.hero__cta {
    display: flex; gap: 14px; flex-wrap: wrap;
}
.hero__media {
    min-width: 0;   /* let the grid shrink the iframe */
    display: grid;
    gap: 12px;
}
.hero__media-caption {
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* ------------------ Sections ------------------ */

.section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}
.section__head { max-width: 700px; margin-bottom: 40px; }
.section__eyebrow {
    display: inline-block;
    color: var(--accent-hot); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    margin-bottom: 12px;
}
.section__title {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700; letter-spacing: -0.015em;
    margin: 0 0 12px;
}
.section__desc { color: var(--text-muted); font-size: 16px; margin: 0; }

/* ------------------ Video wrapper (used in hero) ------------------ */

.video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(133, 151, 253, 0.06),
                0 0 60px -20px var(--accent-glow);
}
.video-wrap iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
    display: block;
}

/* ------------------ Feature grid ------------------ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.feature {
    padding: 26px 24px;
    background: linear-gradient(180deg, var(--panel) 0%, var(--bg-elev) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 160ms ease, border-color 160ms ease,
                box-shadow 160ms ease;
}
.feature:hover {
    transform: translateY(-3px);
    border-color: rgba(133, 151, 253, 0.32);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(133, 151, 253, 0.08);
}
.feature__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-hot);
    margin-bottom: 16px;
    font-size: 20px;
}
.feature h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.feature p  { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ------------------ Pricing ------------------ */

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.price {
    background: linear-gradient(180deg, var(--panel) 0%, var(--bg-elev) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    position: relative;
    transition: transform 160ms ease, border-color 160ms ease;
}
.price--featured {
    border-color: rgba(133, 151, 253, 0.4);
    box-shadow: 0 20px 44px -20px var(--accent-glow),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.price--featured::before {
    content: 'BEST VALUE';
    position: absolute; top: -11px; left: 24px;
    font-size: 10px; font-weight: 800; letter-spacing: 0.14em;
    background: linear-gradient(180deg, var(--accent-hot), var(--accent));
    color: #fff;
    padding: 4px 10px; border-radius: 999px;
}
.price:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.price h3    { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.price__amount { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 4px; }
.price__amount small { font-size: 15px; color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.price__desc { color: var(--text-muted); font-size: 14px; margin: 0 0 24px; }
.price ul { list-style: none; margin: 0 0 24px; padding: 0; }
.price ul li {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 0; font-size: 14px; color: var(--text);
}
.price ul li::before {
    content: '✓'; color: var(--accent-hot); font-weight: 700;
}

/* ------------------ Footer ------------------ */

.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted); font-size: 13px;
}
.footer__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    flex-wrap: wrap;
}

/* ================================================================ */
/*  Dashboard                                                       */
/* ================================================================ */

.dash {
    padding: 48px 0 96px;
    display: grid; gap: 24px;
}

.dash__profile {
    display: flex; align-items: center; gap: 20px;
    padding: 24px;
    background: linear-gradient(180deg, var(--panel) 0%, var(--bg-elev) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.avatar {
    width: 76px; height: 76px; border-radius: 50%;
    background: var(--panel-alt);
    border: 2px solid var(--border-strong);
    object-fit: cover; flex-shrink: 0;
}
.dash__profile-body h2 {
    margin: 0 0 4px; font-size: 22px; font-weight: 700;
}
.dash__profile-body p {
    margin: 0; color: var(--text-muted); font-size: 14px;
}
.dash__profile-body .lx-username {
    display: inline-block; margin-top: 6px;
    padding: 3px 10px; border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent-hot);
    border: 1px solid transparent;   /* keep outer height in sync with .lx-uid */
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 600;
    line-height: 1.4;
}
.dash__ids {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
    margin-top: 6px;
}
.dash__ids .lx-username { margin-top: 0; }
.lx-uid {
    display: inline-block;
    padding: 3px 10px; border-radius: 6px;
    background: var(--panel-alt);
    color: var(--text-muted);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.02em;
}
.lx-uid:empty { display: none; }
/* LX Team admin badge. Orange to stand out from the red LX username
   badge — same shape / height / typography so they align cleanly. */
.lx-admin {
    display: inline-block;
    padding: 3px 10px; border-radius: 6px;
    background: rgba(230, 126, 34, 0.14);     /* --warn 10% */
    color: #ffb26b;
    border: 1px solid rgba(230, 126, 34, 0.42);
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.08em;
}

.dash__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.stat {
    padding: 22px 22px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.stat__label {
    display: block;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.stat__value {
    font-size: 26px; font-weight: 700; letter-spacing: -0.01em;
    line-height: 1.2;
}
.stat__value--good  { color: var(--ok); }
.stat__value--warn  { color: var(--warn); }
.stat__value--bad   { color: var(--err); }
.stat__hint {
    display: block; margin-top: 6px;
    font-size: 12px; color: var(--text-dim);
}
.stat__value--mono { font-family: var(--font-mono); font-size: 15px; word-break: break-all; }

.card {
    padding: 26px 26px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.card h3 {
    margin: 0 0 6px;
    font-size: 18px; font-weight: 700;
}
.card p {
    margin: 0 0 20px;
    color: var(--text-muted); font-size: 14px;
}

.form-row { display: grid; gap: 14px; margin-bottom: 18px; }
.form-row label {
    display: block; font-size: 12px; font-weight: 600;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.form-row input[type="password"],
.form-row input[type="text"] {
    display: block; width: 100%;
    padding: 12px 14px;
    background: var(--bg-elev);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit; font-size: 14px;
    outline: none; transition: border-color 120ms ease;
}
.form-row input:focus { border-color: var(--accent); }

.card__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------ Toast ------------------ */

.toast-region {
    position: fixed; bottom: 24px; right: 24px;
    display: grid; gap: 10px; z-index: 100;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    padding: 12px 18px; border-radius: 10px;
    background: var(--panel);
    border: 1px solid var(--border-strong);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
    font-size: 14px; color: var(--text);
    max-width: 380px;
    animation: slideIn 200ms ease;
}
.toast--ok  { border-color: rgba(74, 222, 128, 0.36); }
.toast--err { border-color: rgba(248, 113, 113, 0.42); }
.toast--info { border-color: rgba(133, 151, 253, 0.36); }
@keyframes slideIn {
    from { transform: translateY(10px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ------------------ Auth error page ------------------ */

.auth-error-body {
    min-height: 100vh;
    display: grid; place-items: center;
    padding: 24px;
}
.auth-error__card {
    max-width: 480px;
    background: linear-gradient(180deg, var(--panel), var(--bg-elev));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 30px;
    text-align: center;
}
.auth-error__badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(248, 113, 113, 0.15);
    color: #ff9a9a;
    font-family: var(--font-mono);
    font-size: 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.auth-error__card h1 { margin: 0 0 8px; font-size: 22px; }
.auth-error__card p  { color: var(--text-muted); margin: 0 0 24px; }
.auth-error__actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ------------------ Loading state ------------------ */

.dash--loading {
    min-height: 40vh;
    display: grid; place-items: center;
}
.spinner {
    width: 32px; height: 32px; border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

/* ------------------ Responsive ------------------ */

@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .hero p    { max-width: none; }
}

@media (max-width: 640px) {
    .nav__links { display: none; }
    .hero { padding: 56px 0 40px; }
    .section { padding: 56px 0; }
    .dash__profile { flex-direction: column; text-align: center; align-items: center; }
}


/* ================================================================ */
/*  Claim (Discord OAuth ok but no LX account yet)                  */
/* ================================================================ */

.claim-body { min-height: 100vh; }

.claim {
    padding: 48px 0 96px;
    display: grid;
    gap: 20px;
    max-width: 720px;
    margin: 0 auto;
}
/* Each card gets a subtle drop shadow so — even at wider gaps — the
   eye reads them as distinct floating blocks rather than one long
   panel with dividers. */
.claim > .card,
.claim > .claim__profile,
.claim > .claim__notice {
    box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.6);
}
.claim__profile {
    display: flex; align-items: center; gap: 20px;
    padding: 26px;
    background: linear-gradient(180deg, var(--panel) 0%, var(--bg-elev) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.claim__profile .avatar { width: 76px; height: 76px; }
.claim__profile-body h1 {
    font-size: 26px; font-weight: 700; margin: 6px 0 8px;
    letter-spacing: -0.01em;
}
.claim__profile-body h1 span {
    background: linear-gradient(180deg, var(--accent-hot), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.claim__eyebrow {
    display: inline-block;
    padding: 3px 10px; border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-hot);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    border: 1px solid rgba(133, 151, 253, 0.24);
}
.claim__sub {
    margin: 0; color: var(--text-muted);
    font-size: 15px; line-height: 1.6;
}

.claim__card .form-row { margin-bottom: 20px; }

/* Big fat, mono license input. */
.license-input {
    font-family: var(--font-mono) !important;
    font-size: 18px !important;
    letter-spacing: 0.04em !important;
    padding: 16px 18px !important;
}

.claim__hint {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--err);
    min-height: 18px;
}

.claim__notice {
    padding: 16px 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-muted);
}
.claim__notice a { color: var(--accent-hot); }
.claim__notice a:hover { text-decoration: underline; }
.claim__notice-title {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 4px;
}

@media (max-width: 640px) {
    .claim__profile { flex-direction: column; text-align: center; }
}
.lx-media-creator {
    display: inline-block;
    padding: 3px 10px; border-radius: 6px;
    background: rgba(133, 151, 253, 0.14);
    color: var(--accent, #aebaff);
    border: 1px solid rgba(133, 151, 253, 0.42);
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

/* ================================================================ */
/*  Launcher preview — visual language shared with Lx External      */
/* ================================================================ */

.hero__media .video-wrap { display: none; }

.launcher-preview {
    overflow: hidden;
    min-height: 410px;
    color: #fff;
    background: #0e0e0e;
    border: 1px solid #202020;
    border-radius: 6px;
    box-shadow: 0 32px 80px -34px rgba(0, 0, 0, .86),
                0 0 0 1px rgba(133, 151, 253, .05),
                0 0 58px -30px rgba(133, 151, 253, .38);
}
.launcher-preview__bar {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    border-bottom: 1px solid #202020;
    background: #121212;
    font-size: 12px;
    color: #8c8c8c;
}
.launcher-preview__name { display: inline-flex; align-items: center; gap: 8px; }
.launcher-preview__name i,
.launcher-preview__status i {
    width: 6px;
    height: 6px;
    display: inline-block;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(133, 151, 253, .8);
}
.launcher-preview__dots { display: flex; gap: 6px; }
.launcher-preview__dots b {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #303030;
}
.launcher-preview__dots b:last-child { background: #3d2024; }
.launcher-preview__content {
    width: min(292px, calc(100% - 48px));
    margin: 0 auto;
    padding: 33px 0 25px;
    text-align: center;
    transform: translateY(-14px);
}
.launcher-preview__logo {
    width: 58px;
    height: 58px;
    display: block;
    margin: 0 auto 12px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    mix-blend-mode: normal;
}
.launcher-preview__welcome { font-size: 16px; font-weight: 600; }
.launcher-preview__welcome strong { color: var(--accent); font-weight: 600; }
.launcher-preview__content > p {
    margin: 4px 0 23px;
    color: #8c8c8c;
    font-size: 13px;
}
.launcher-preview__fields { display: grid; gap: 6px; text-align: left; }
.launcher-preview__fields span { color: #8c8c8c; font-size: 12px; }
.launcher-preview__fields div {
    height: 35px;
    margin: 0 0 10px;
    border: 1px solid #202020;
    border-radius: 3px;
    background: #171717;
}
.launcher-preview__fields div:first-of-type { border-color: rgba(133, 151, 253, .75); }
.launcher-preview__load {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 39px;
    border: 1px solid rgba(174, 187, 255, .45);
    border-radius: 5px;
    background: var(--accent);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 24px -15px rgba(133,151,253,.7);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.launcher-preview__load span { font-size: 16px; line-height: 1; }
.launcher-preview__status {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 15px;
    border-top: 1px solid #202020;
    color: #626067;
    font-size: 11px;
}
.launcher-preview__status i { width: 5px; height: 5px; background: #4ade80; box-shadow: 0 0 9px rgba(74,222,128,.7); }
.launcher-preview__status span { margin-left: auto; color: #8c8c8c; }

@media (max-width: 640px) {
    .launcher-preview { min-height: 390px; }
}

/* ================================================================ */
/*  Landing page — product workspace                                */
/* ================================================================ */

.landing-body {
    background: #0e0e0e;
    color: #f5f5f7;
    font-size: 15px;
}
.landing-body::before {
    content: '';
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px) 0 0 / 72px 72px,
        linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px) 0 0 / 72px 72px,
        radial-gradient(760px 420px at 77% 7%, rgba(133,151,253,.10), transparent 72%);
    mask-image: linear-gradient(to bottom, #000 0, rgba(0,0,0,.28) 48%, transparent 79%);
}
.landing-wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.landing-nav {
    position: sticky;
    z-index: 30;
    top: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(14,14,14,.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.landing-nav__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.landing-brand { display: inline-flex; align-items: center; gap: 10px; color: #f7f7f8; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.landing-brand img { border-radius: 8px; background: #171717; box-shadow: 0 0 0 1px #262626; }
.landing-brand > span > span { margin: 0 2px; color: var(--accent); }
.landing-nav__links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.landing-nav__links a, .landing-text-link { color: #8c8c8c; font-size: 13px; font-weight: 500; transition: color .16s ease; }
.landing-nav__links a:hover, .landing-text-link:hover { color: #fff; }
.landing-nav__actions { display: flex; align-items: center; gap: 20px; }
.landing-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 17px;
    border: 1px solid rgba(180,193,255,.48);
    border-radius: 6px;
    background: linear-gradient(135deg, #98a7ff, #7d90ef);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.23), 0 12px 26px -18px rgba(133,151,253,.9);
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    transition: transform .16s ease, filter .16s ease, border-color .16s ease;
}
.landing-button:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }
.landing-button--small { min-height: 36px; padding: 0 13px; font-size: 12px; }
.landing-button--quiet {
    border-color: #292929;
    background: #171717;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
    color: #d5d5da;
}
.landing-button--quiet:hover { border-color: #393939; background: #1c1c1c; color: #fff; }
.landing-button--block { width: 100%; }

.landing-hero { padding: 96px 0 80px; }
.landing-hero__grid { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(42px, 7vw, 106px); }
.landing-status, .landing-kicker {
    color: #a7b4ff;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .10em;
    text-transform: uppercase;
}
.landing-status { display: inline-flex; align-items: center; gap: 9px; }
.landing-status i { width: 6px; height: 6px; border-radius: 99px; background: #4ade80; box-shadow: 0 0 10px rgba(74,222,128,.85); }
.landing-hero h1 { max-width: 610px; margin: 22px 0 21px; color: #f8f8fa; font-size: clamp(42px, 5.1vw, 70px); font-weight: 700; letter-spacing: -.06em; line-height: .98; }
.landing-hero h1 em { color: #91a1ff; font-style: normal; }
.landing-lead { max-width: 480px; margin: 0; color: #9b9b9f; font-size: 16px; line-height: 1.7; }
.landing-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 31px; }
.landing-proof { display: flex; gap: 26px; margin-top: 58px; }
.landing-proof > div { display: grid; gap: 3px; }
.landing-proof strong { color: #c4cdff; font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.landing-proof span { color: #68686b; font-size: 11px; white-space: nowrap; }

.client-window { overflow: hidden; border: 1px solid #2a2a2a; border-radius: 9px; background: #121212; box-shadow: 0 42px 90px -42px #000, 0 0 70px -42px rgba(133,151,253,.75); }
.client-window__topbar { display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 0 15px; border-bottom: 1px solid #252525; background: #161616; }
.client-window__title { display: flex; align-items: center; gap: 8px; color: #8a8a8e; font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; }
.client-window__title i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(133,151,253,.8); }
.client-window__controls { display: flex; gap: 6px; }
.client-window__controls b { width: 7px; height: 7px; border-radius: 50%; background: #343434; }
.client-window__controls b:last-child { background: #503034; }
.client-window__body { display: grid; grid-template-columns: 132px 1fr; min-height: 386px; }
.client-sidebar { display: flex; flex-direction: column; padding: 22px 12px 16px; border-right: 1px solid #252525; background: #141414; }
.client-sidebar img { width: 42px; height: 42px; margin: 0 9px 24px; border-radius: 10px; box-shadow: 0 0 0 1px #282828; }
.client-sidebar__label { margin: 0 9px 8px; color: #5f5f62; font-family: var(--font-mono); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.client-sidebar a { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; padding: 8px 9px; border-radius: 4px; color: #858589; font-size: 11px; }
.client-sidebar a:hover { color: #d7d7dc; background: #1b1b1b; }
.client-sidebar a.is-active { color: #c8d0ff; background: rgba(133,151,253,.12); }
.client-sidebar a b { color: #626267; font-family: var(--font-mono); font-size: 9px; font-weight: 500; }
.client-sidebar a.is-active b { color: var(--accent); }
.client-sidebar__label--lower { margin-top: auto; }
.client-sidebar__session { display: flex; align-items: center; gap: 6px; margin: 0 9px; color: #89898d; font-size: 10px; }
.client-sidebar__session i, .client-main__foot i { width: 5px; height: 5px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 7px rgba(74,222,128,.72); }
.client-main { display: flex; flex-direction: column; padding: 30px; background: linear-gradient(135deg, #171717, #141414); }
.client-main__heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.client-main__heading span, .client-card__eyebrow { color: #77777b; font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: .11em; }
.client-main__heading h2 { margin: 6px 0 0; color: #eeeeef; font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.client-main__avatar { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #343434; border-radius: 50%; color: #abb6fd; font-family: var(--font-mono); font-size: 9px; }
.client-main__grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 9px; margin-top: 25px; }
.client-card { display: flex; min-height: 121px; flex-direction: column; padding: 15px; border: 1px solid #292929; border-radius: 5px; background: #1a1a1a; }
.client-card--primary { border-color: rgba(133,151,253,.34); background: linear-gradient(135deg, rgba(133,151,253,.15), rgba(133,151,253,.04)); }
.client-card strong { margin-top: 12px; color: #efeff1; font-size: 18px; font-weight: 600; letter-spacing: -.03em; }
.client-card small { margin-top: 4px; color: #77777b; font-size: 10px; }
.client-card__good { color: #68d891 !important; }
.client-card__line { display: flex; align-items: center; gap: 4px; margin-top: auto; }
.client-card__line i, .client-card__line span { height: 3px; flex: 1; border-radius: 99px; background: #343434; }
.client-card__line i { background: var(--accent); }
.client-list { display: grid; gap: 1px; margin-top: 9px; border: 1px solid #292929; border-radius: 5px; overflow: hidden; }
.client-list > div { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 14px; background: #191919; color: #b3b3b6; font-size: 11px; }
.client-list > div + div { border-top: 1px solid #252525; }
.client-list i { position: relative; display: block; width: 21px; height: 11px; border-radius: 99px; background: #383838; }
.client-list i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: #878787; }
.client-list i.is-on { background: rgba(133,151,253,.45); }
.client-list i.is-on::after { left: 12px; background: #b9c3ff; }
.client-main__foot { display: flex; justify-content: space-between; margin-top: auto; padding-top: 17px; color: #626267; font-family: var(--font-mono); font-size: 9px; }
.client-main__foot span:first-child { display: flex; align-items: center; gap: 6px; }

.landing-strip { border-top: 1px solid #242424; border-bottom: 1px solid #242424; background: #141414; }
.landing-strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.landing-strip span { position: relative; padding: 18px 18px; color: #86868a; font-family: var(--font-mono); font-size: 10px; text-align: center; text-transform: uppercase; letter-spacing: .07em; }
.landing-strip span + span { border-left: 1px solid #242424; }
.landing-strip span::before { content: '✦'; position: absolute; left: 18px; color: #8798fa; }

.landing-overview, .landing-features, .landing-access { padding: 126px 0; }
.landing-section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: end; margin-bottom: 48px; }
.landing-section-head h2, .landing-features h2, .landing-access h2 { grid-column: 1; margin: 14px 0 0; color: #f0f0f2; font-size: clamp(35px, 4vw, 55px); font-weight: 650; line-height: 1.03; letter-spacing: -.055em; }
.landing-section-head p { grid-column: 2; max-width: 390px; margin: 0 0 4px; color: #929296; line-height: 1.7; }
.landing-overview__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.landing-overview__feature { position: relative; display: flex; min-height: 308px; flex-direction: column; justify-content: space-between; padding: 28px; border: 1px solid #292929; border-radius: 7px; background: #171717; overflow: hidden; }
.landing-overview__feature--wide { grid-column: 1 / -1; min-height: 286px; background: linear-gradient(120deg, #191919, #15151a); }
.landing-overview__feature::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border: 1px solid rgba(133,151,253,.13); border-radius: 50%; box-shadow: 0 0 0 42px rgba(133,151,253,.025), 0 0 0 84px rgba(133,151,253,.016); pointer-events: none; }
.landing-feature-number { color: #7f8df0; font-family: var(--font-mono); font-size: 11px; }
.landing-overview__feature h3 { position: relative; z-index: 1; max-width: 430px; margin: 0 0 8px; color: #e8e8eb; font-size: 22px; font-weight: 600; letter-spacing: -.035em; }
.landing-overview__feature p { position: relative; z-index: 1; max-width: 400px; margin: 0; color: #88888c; font-size: 13px; line-height: 1.65; }
.setting-bars { position: absolute; z-index: 2; top: 33px; right: 38px; display: grid; width: 280px; gap: 15px; padding: 17px; border: 1px solid #313131; border-radius: 5px; background: rgba(19,19,19,.91); box-shadow: 0 20px 36px -25px #000; }
.setting-bars > div { display: grid; grid-template-columns: 74px 1fr 22px; align-items: center; gap: 10px; color: #858589; font-size: 10px; }
.setting-bars i { display: block; height: 3px; border-radius: 99px; background: #333333; overflow: hidden; }
.setting-bars i b { display: block; width: 63%; height: 100%; background: var(--accent); }
.setting-bars > div:nth-child(2) i b { width: 38%; }
.setting-bars em { color: #b0b8ec; font-family: var(--font-mono); font-size: 9px; font-style: normal; text-align: right; }
.setting-bars strong { grid-column: 2 / 4; color: #d3d3d6; font-family: var(--font-mono); font-size: 10px; font-weight: 500; text-align: right; }
.profile-chip { position: relative; z-index: 2; display: flex; align-items: center; align-self: flex-start; gap: 7px; padding: 8px 10px; border: 1px solid #2d2d2d; border-radius: 4px; background: #1c1c1c; color: #b1b1b5; font-family: var(--font-mono); font-size: 10px; }
.profile-chip i { width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }.profile-chip span { margin-left: 8px; color: #65cf8b; }
.color-study { position: relative; z-index: 2; display: flex; gap: 7px; }.color-study i { width: 27px; height: 27px; border: 1px solid #363636; border-radius: 50%; background: #202020; }.color-study i:nth-child(2) { background: #8597fd; border-color: #aab7ff; }.color-study i:nth-child(3) { background: #4ade80; }.color-study i:nth-child(4) { background: #f87171; }

.landing-features { border-top: 1px solid #242424; background: #131313; }
.landing-features__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(60px, 9vw, 145px); align-items: start; }
.landing-features h2, .landing-access h2 { margin: 14px 0 18px; }
.landing-features__intro p, .landing-access__intro p { max-width: 360px; margin: 0; color: #8d8d91; line-height: 1.7; }
.landing-text-link--arrow { display: inline-flex; gap: 9px; margin-top: 30px; color: #b8c2ff; }.landing-text-link--arrow span { font-size: 16px; line-height: .75; }
.landing-feature-list { border-top: 1px solid #2b2b2b; }
.landing-feature-list article { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; padding: 23px 0; border-bottom: 1px solid #2b2b2b; transition: padding .18s ease; }
.landing-feature-list article:hover { padding-left: 8px; }.landing-feature-list article > span { color: #6f7ed9; font-family: var(--font-mono); font-size: 10px; }.landing-feature-list h3 { margin: 0 0 5px; color: #dedee1; font-size: 16px; font-weight: 600; }.landing-feature-list p { max-width: 390px; margin: 0; color: #828286; font-size: 12px; line-height: 1.6; }.landing-feature-list > article > b { color: #7988e8; font-size: 16px; font-weight: 400; }

.landing-access { background: #0e0e0e; }.landing-access__intro { max-width: 530px; margin-bottom: 48px; }.access-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.access-card { position: relative; display: flex; min-height: 415px; flex-direction: column; padding: 28px; border: 1px solid #292929; border-radius: 7px; background: #171717; }.access-card--featured { border-color: rgba(133,151,253,.6); background: linear-gradient(155deg, rgba(133,151,253,.14), #171717 42%); box-shadow: 0 26px 52px -36px rgba(133,151,253,.72); }.access-card__tag { position: absolute; top: -11px; left: 22px; padding: 4px 9px; border: 1px solid rgba(172,185,255,.38); border-radius: 99px; background: #8294f4; color: #fff; font-family: var(--font-mono); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }.access-card__term { color: #909095; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }.access-card__price { margin-top: 9px; color: #f1f1f3; font-size: 43px; font-weight: 650; letter-spacing: -.06em; }.access-card__price small { color: #89898e; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0; }.access-card > p { min-height: 46px; margin: 10px 0 22px; color: #89898d; font-size: 12px; line-height: 1.6; }.access-card ul { display: grid; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }.access-card li { display: flex; align-items: center; gap: 8px; color: #c2c2c6; font-size: 12px; }.access-card li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(133,151,253,.75); }.access-card .landing-button { margin-top: auto; }

.landing-footer { border-top: 1px solid #242424; background: #121212; }.landing-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; color: #77777b; font-size: 11px; }.landing-footer__inner > div { display: flex; gap: 18px; }.landing-footer__inner > div a:hover { color: #dddde0; }

@media (max-width: 980px) {
    .landing-hero__grid, .landing-features__grid { grid-template-columns: 1fr; }
    .landing-hero__copy { max-width: 640px; }
    .landing-proof { margin-top: 38px; }
    .client-window { max-width: 690px; width: 100%; }
    .landing-features__grid { gap: 46px; }
    .access-grid { grid-template-columns: 1fr; }
    .access-card { min-height: 0; }.access-card > p { min-height: 0; }
}
@media (max-width: 700px) {
    .landing-wrap { width: min(100% - 32px, 560px); }
    .landing-nav__inner { min-height: 62px; gap: 14px; }.landing-nav__links, .landing-nav__actions .landing-text-link { display: none; }
    .landing-hero { padding: 64px 0 56px; }.landing-hero h1 { font-size: clamp(39px, 13vw, 57px); }.landing-lead { font-size: 15px; }
    .landing-proof { flex-wrap: wrap; gap: 14px 23px; }.client-window__body { grid-template-columns: 88px 1fr; min-height: 330px; }.client-sidebar { padding: 16px 8px 12px; }.client-sidebar img { margin: 0 7px 18px; width: 34px; height: 34px; }.client-sidebar a { justify-content: center; padding: 9px 4px; font-size: 0; }.client-sidebar a b { font-size: 9px; }.client-sidebar__label, .client-sidebar__session { display: none; }.client-main { padding: 21px; }.client-main__grid { grid-template-columns: 1fr; }.client-card { min-height: 100px; }.client-card:last-child { display: none; }.client-main__foot { margin-top: 15px; }.landing-strip__inner { grid-template-columns: repeat(2, 1fr); }.landing-strip span { padding: 14px 8px 14px 21px; font-size: 8px; text-align: left; }.landing-strip span:nth-child(3) { border-left: 0; border-top: 1px solid #242424; }.landing-strip span:nth-child(4) { border-top: 1px solid #242424; }.landing-strip span::before { left: 8px; }
    .landing-overview, .landing-features, .landing-access { padding: 76px 0; }.landing-section-head { display: block; margin-bottom: 30px; }.landing-section-head p { margin-top: 20px; }.landing-overview__grid { grid-template-columns: 1fr; }.landing-overview__feature, .landing-overview__feature--wide { grid-column: auto; min-height: 250px; padding: 22px; }.setting-bars { position: relative; top: auto; right: auto; width: 100%; margin-top: 23px; }.landing-overview__feature--wide { min-height: 350px; }.landing-features h2, .landing-access h2, .landing-section-head h2 { font-size: 39px; }.landing-footer__inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 22px 0; }.landing-footer__inner > div { gap: 14px; }
}
@media (max-width: 390px) {
    .landing-nav__actions { margin-left: auto; }.landing-button--small { padding: 0 10px; }.landing-hero__actions .landing-button { width: 100%; }.client-window__body { grid-template-columns: 1fr; }.client-sidebar { display: none; }.client-main { min-height: 344px; }
}

/* Light refinements for the classic landing layout. */
.hero__note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 11px;
}
.hero__note i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 10px rgba(74, 222, 128, .65);
}
.section--compact { padding-top: 68px; }
.section--pricing { background: linear-gradient(180deg, rgba(255,255,255,.012), transparent 42%); }
.section--showcase { background: rgba(255,255,255,.012); }
.section--showcase { padding: 72px 0; }
.showcase {
    max-width: 1160px;
    display: grid;
    grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: clamp(32px, 6vw, 78px);
}
.showcase .section__head { margin: 0; }
.showcase .section__title { margin-bottom: 10px; }
.showcase__video { box-shadow: 0 30px 80px -35px rgba(0,0,0,.9), 0 0 50px -30px var(--accent-glow); }

/* A quieter alternative to the usual marketing-card grid. */
.feature-grid--command {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 54px;
    row-gap: 0;
}
.feature-grid--command .feature {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 15px;
    align-items: start;
    min-height: 132px;
    padding: 25px 0;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    box-shadow: none;
}
.feature-grid--command .feature:hover {
    transform: none;
    border-color: var(--border-strong);
    box-shadow: none;
}
.feature-grid--command .feature__icon {
    width: 34px;
    height: 34px;
    grid-row: span 2;
    margin: 0;
    border-radius: 7px;
    background: rgba(133, 151, 253, .12);
    font-size: 16px;
}
.feature-grid--command .feature h3 {
    align-self: end;
    margin: 2px 0 7px;
    font-size: 16px;
}
.feature-grid--command .feature p {
    grid-column: 2;
    max-width: 360px;
    font-size: 13px;
}
@media (max-width: 640px) {
    .hero__note { margin-top: 22px; }
    .section--compact { padding-top: 56px; }
    .section--showcase { padding: 56px 0; }
    .showcase { grid-template-columns: 1fr; gap: 25px; }
    .feature-grid--command { grid-template-columns: 1fr; gap: 0; }
    .feature-grid--command .feature { min-height: 0; padding: 21px 0; }
}

/* ------------------ Terms of Service ------------------ */

.terms-page { background: var(--bg); }
.terms-hero {
    padding: 76px 0 68px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(640px 300px at 18% 0%, rgba(133, 151, 253, .13), transparent 72%),
        linear-gradient(180deg, rgba(255,255,255,.015), transparent);
}
.terms-hero__inner { max-width: 1160px; }
.terms-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-hot);
    font: 600 11px/1 var(--font-mono);
    letter-spacing: .11em;
    text-transform: uppercase;
}
.terms-hero__eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 13px var(--accent);
}
.terms-hero h1 {
    margin: 16px 0 12px;
    color: var(--text);
    font-size: clamp(38px, 5vw, 62px);
    letter-spacing: -.052em;
    line-height: 1;
}
.terms-hero p { max-width: 520px; margin: 0; color: var(--text-muted); font-size: 16px; }
.terms-layout {
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr);
    gap: clamp(30px, 6vw, 76px);
    padding-top: 50px;
    padding-bottom: 88px;
}
.terms-nav {
    position: sticky;
    top: 92px;
    align-self: start;
    display: grid;
    gap: 3px;
    padding: 14px 0;
}
.terms-nav__label {
    margin: 0 0 8px 12px;
    color: var(--text-dim);
    font: 600 10px/1 var(--font-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.terms-nav a {
    padding: 7px 12px;
    border-left: 1px solid transparent;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.3;
    transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
.terms-nav a:hover { color: var(--text); border-left-color: var(--accent); background: rgba(133,151,253,.06); }
.terms-card {
    min-width: 0;
    padding: clamp(26px, 4vw, 48px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(255,255,255,.024), rgba(255,255,255,.008));
    box-shadow: var(--shadow);
}
.terms-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 29px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    font: 11px/1.4 var(--font-mono);
}
.terms-card__meta strong { color: var(--text-muted); font-weight: 500; }
.terms-card p, .terms-card li { color: var(--text-muted); font-size: 14px; line-height: 1.75; }
.terms-card p { margin: 0 0 16px; }
.terms-card strong { color: var(--text); font-weight: 600; }
.terms-card h2 {
    scroll-margin-top: 105px;
    margin: 42px 0 12px;
    color: var(--text);
    font-size: 18px;
    letter-spacing: -.018em;
    line-height: 1.3;
}
.terms-card h2::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 17px;
    margin: 0 10px 0 0;
    border-radius: 3px;
    vertical-align: -2px;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(133,151,253,.55);
}
.terms-card ul { margin: 12px 0 19px; padding: 0; list-style: none; }
.terms-card li { position: relative; margin: 8px 0; padding-left: 18px; }
.terms-card li::before { content: ''; position: absolute; top: .8em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.terms-card .bad { color: #ff8a8f; font-weight: 600; }
.terms-card > p a { color: var(--accent-hot); text-decoration: underline; text-decoration-color: rgba(158,172,255,.36); text-underline-offset: 3px; }
.terms-card__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 25px; border-top: 1px solid var(--border); }
.terms-footer { border-top: 1px solid var(--border); background: rgba(255,255,255,.012); }
.terms-footer__inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; color: var(--text-dim); font-size: 12px; }
.terms-footer a { color: var(--text-muted); }
.terms-footer a:hover { color: var(--text); }
@media (max-width: 800px) {
    .terms-hero { padding: 56px 0 50px; }
    .terms-layout { display: block; padding-top: 30px; }
    .terms-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 28px; padding: 0; }
    .terms-nav__label { grid-column: 1 / -1; margin-left: 0; }
    .terms-nav a { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
}
@media (max-width: 500px) {
    .terms-hero h1 { font-size: 39px; }
    .terms-card { padding: 24px 19px; }
    .terms-card__meta { align-items: flex-start; flex-direction: column; gap: 5px; }
    .terms-nav { grid-template-columns: 1fr; }
    .terms-footer__inner { min-height: 96px; align-items: flex-start; justify-content: center; flex-direction: column; }
}


/* ================================================================ */
/* Configs modal (dashboard "Configs" button + share-code manager)  */
/* ================================================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal__scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
}

.modal__panel {
    position: relative;
    width: min(640px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: var(--panel);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom,
        var(--panel-alt), transparent);
}

.modal__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.modal__close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.modal__close:hover {
    background: var(--panel-alt);
    color: var(--text);
}

.modal__body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Section wrappers inside the modal */

.cfg-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cfg-section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.cfg-section__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.cfg-section__hint {
    font-size: 12.5px;
    color: var(--text-dim);
    line-height: 1.45;
    margin-top: 2px;
}

/* List of user's own configs / active share codes */

.cfg-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cfg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s ease;
}
.cfg-row:hover { border-color: var(--border-strong); }

.cfg-row__label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
}

.cfg-row__meta {
    font-size: 11.5px;
    color: var(--text-dim);
    letter-spacing: 0.2px;
}

.cfg-row__actions {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}

.cfg-row__actions .btn {
    padding: 5px 10px;
    font-size: 12.5px;
}

.cfg-share-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.6px;
    user-select: all;
}

.cfg-empty {
    padding: 14px;
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
    background: var(--bg-elev);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

/* Redeem form */

.cfg-redeem {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 8px;
    align-items: stretch;
}

.cfg-redeem input {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 11px;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    border-radius: var(--radius);
    letter-spacing: 0.6px;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.cfg-redeem input:focus {
    border-color: var(--accent);
    background: var(--panel-alt);
}

.cfg-redeem button {
    white-space: nowrap;
}

.cfg-msg {
    padding: 9px 12px;
    font-size: 12.5px;
    border-radius: var(--radius);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.cfg-msg--ok { color: var(--ok);   border-color: rgba(74, 222, 128, 0.24); background: rgba(74, 222, 128, 0.06); }
.cfg-msg--err { color: var(--err);  border-color: rgba(248, 113, 113, 0.24); background: rgba(248, 113, 113, 0.06); }

@media (max-width: 520px) {
    .cfg-redeem { grid-template-columns: 1fr; }
    .cfg-row { flex-direction: column; align-items: stretch; }
    .cfg-row__actions { justify-content: flex-end; }
}


/* Compact panel variant for confirmation dialogs */
.modal__panel--sm {
    width: min(440px, 100%);
}

.confirm-body {
    margin: 0 0 18px 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-wrap;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.confirm-actions .btn {
    min-width: 90px;
}



/* ================================================================ */
/* HWID reset modal (dashboard "Reset HWID" button)                */
/* ================================================================ */

.hwid-modal__lead {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.55;
}

#hwid-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#hwid-form textarea {
    display: block;
    width: 100%;
    resize: vertical;
    min-height: 92px;
    max-height: 240px;
    padding: 11px 13px;
    background: var(--bg-elev);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    transition: border-color 120ms ease;
}
#hwid-form textarea:focus { border-color: var(--accent); }

.hwid-modal__meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin: 8px 0 18px;
    font-size: 12px;
    color: var(--text-dim);
}
.hwid-modal__count {
    font-family: var(--font-mono);
    letter-spacing: 0.03em;
}
.hwid-modal__count--warn { color: var(--warn); }
.hwid-modal__count--bad  { color: var(--err); }

@media (max-width: 520px) {
    .hwid-modal__meta { justify-content: flex-start; }
}
