/* ==========================================================================
   Wynsense — design system
   ========================================================================== */

:root {
    --bg: #07070b;
    --bg-soft: #0b0b12;
    --bg-elev: #101018;

    --card: rgba(255, 255, 255, 0.035);
    --card-hover: rgba(255, 255, 255, 0.065);
    --line: rgba(255, 255, 255, 0.085);
    --line-strong: rgba(255, 255, 255, 0.16);

    --text: #f3f3f8;
    --text-soft: #c9c9d6;
    --muted: #8e8ea3;

    --accent: #8b5cf6;
    --accent-soft: #a78bfa;
    --accent-2: #22d3ee;

    --ok: #34d399;
    --warn: #fbbf24;
    --danger: #fb7185;

    --radius: 16px;
    --radius-lg: 24px;
    --radius-sm: 10px;

    --shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.85);
    --ring: 0 0 0 1px rgba(255, 255, 255, 0.06);

    --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", "SF Mono", ui-monospace, Consolas, monospace;

    --nav-h: 68px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

::selection {
    background: rgba(139, 92, 246, 0.35);
    color: #fff;
}

/* ---------------------------------------------------------------- backdrop */

.backdrop {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 15% -10%, rgba(139, 92, 246, 0.20), transparent 60%),
        radial-gradient(760px 460px at 88% 6%, rgba(34, 211, 238, 0.14), transparent 62%),
        radial-gradient(900px 600px at 50% 110%, rgba(139, 92, 246, 0.12), transparent 65%);
}

.backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    animation: float 18s ease-in-out infinite;
}

.orb-a {
    width: 420px;
    height: 420px;
    top: -140px;
    left: -80px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.55), transparent 70%);
}

.orb-b {
    width: 380px;
    height: 380px;
    top: 60px;
    right: -120px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.42), transparent 70%);
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, 32px, 0) scale(1.06); }
}

/* -------------------------------------------------------------------- nav */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.nav.is-stuck {
    background: rgba(7, 7, 11, 0.78);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--line);
}

.nav-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 16px;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.9);
}

.brand-mark svg {
    width: 16px;
    height: 16px;
    stroke: #0b0b12;
    stroke-width: 2.4;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.nav-links a {
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 14px;
    transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-spacer {
    flex: 1;
}

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

.nav-profile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 6px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.nav-profile:hover {
    border-color: var(--line-strong);
    background: var(--card-hover);
}

.nav-profile .avatar {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 12px;
}

.nav-profile .np-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.nav-profile .np-meta b {
    font-size: 13px;
    font-weight: 700;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-profile .np-meta small {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

/* ----------------------------------------------------------------- buttons */

.btn {
    --btn-bg: transparent;
    --btn-border: var(--line-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 11px;
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    --btn-border: transparent;
    background: linear-gradient(135deg, var(--accent), #6366f1 55%, var(--accent-2));
    color: #08080d;
    box-shadow: 0 16px 40px -18px rgba(139, 92, 246, 0.95);
}

.btn-primary:hover {
    box-shadow: 0 20px 50px -16px rgba(139, 92, 246, 1);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line);
    color: var(--text-soft);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.btn-sm {
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 9px;
}

.btn-danger {
    border-color: rgba(251, 113, 133, 0.35);
    background: rgba(251, 113, 133, 0.1);
    color: #fecdd3;
}

.btn-danger:hover {
    background: rgba(251, 113, 133, 0.18);
}

.btn-block {
    width: 100%;
}

/* ------------------------------------------------------------------ layout */

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

section {
    position: relative;
}

.section {
    padding: 96px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}

.section-head {
    max-width: 660px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-head h2 {
    margin: 18px 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

/* -------------------------------------------------------------------- hero */

.hero {
    padding: 84px 0 64px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    margin: 22px 0 20px;
    font-size: clamp(38px, 5.6vw, 66px);
    line-height: 1.03;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.grad {
    background: linear-gradient(120deg, var(--accent-soft) 0%, #c4b5fd 35%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    margin: 0 0 32px;
    max-width: 520px;
    color: var(--muted);
    font-size: 17px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
    font-size: 13px;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-trust svg {
    width: 15px;
    height: 15px;
    stroke: var(--ok);
    stroke-width: 2.4;
}

/* preview panel */

.preview {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    box-shadow: var(--shadow);
    padding: 14px;
    overflow: hidden;
}

.preview::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(139, 92, 246, 0.55), transparent 40%, rgba(34, 211, 238, 0.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.preview-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 8px 14px;
}

.preview-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.preview-bar i:nth-child(1) { background: #ff5f57; }
.preview-bar i:nth-child(2) { background: #febc2e; }
.preview-bar i:nth-child(3) { background: #28c840; }

.preview-bar span {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
}

.preview-body {
    border-radius: 14px;
    background: rgba(6, 6, 10, 0.72);
    border: 1px solid var(--line);
    padding: 16px;
}

.preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
    font-size: 13px;
}

.preview-row:last-child {
    border-bottom: 0;
}

.preview-row .k {
    color: var(--muted);
}

.preview-row .v {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-soft);
    white-space: nowrap;
}

.pill-ok {
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(52, 211, 153, 0.12);
    color: #a7f3d0;
}

.pill-warn {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.12);
    color: #fde68a;
}

.pill-danger {
    border-color: rgba(251, 113, 133, 0.32);
    background: rgba(251, 113, 133, 0.12);
    color: #fecdd3;
}

.pill-accent {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.14);
    color: #ddd6fe;
}

/* ------------------------------------------------------------------- stats */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 64px;
}

.stat {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    padding: 20px 22px;
}

.stat .num {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stat .lbl {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

/* ------------------------------------------------------------------ cards */

.grid {
    display: grid;
    gap: 18px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    padding: 26px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
    background: var(--card-hover);
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.card .icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: linear-gradient(140deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.14));
    border: 1px solid var(--line);
}

.card .icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-soft);
    stroke-width: 1.9;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* ---------------------------------------------------------------- pricing */

.pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
}

.price {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--card);
    padding: 30px;
}

.price.featured {
    border-color: rgba(139, 92, 246, 0.45);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.14), rgba(255, 255, 255, 0.02));
    box-shadow: 0 30px 70px -30px rgba(139, 92, 246, 0.6);
}

.price .tag {
    position: absolute;
    top: -11px;
    left: 30px;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #08080d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: grid;
    place-items: center;
}

.price h3 {
    margin: 0 0 6px;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.price .amount {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 8px 0 4px;
}

.price .amount b {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.price .amount span {
    color: var(--muted);
    font-size: 14px;
}

.price .desc {
    color: var(--muted);
    font-size: 13.5px;
    margin: 0 0 22px;
}

.price ul {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    display: grid;
    gap: 11px;
    font-size: 14px;
    color: var(--text-soft);
}

.price li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.price li svg {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    flex: none;
    stroke: var(--ok);
    stroke-width: 2.6;
}

.price .btn {
    margin-top: auto;
}

/* --------------------------------------------------------------------- faq */

.faq {
    display: grid;
    gap: 10px;
    max-width: 820px;
    margin: 0 auto;
}

.faq details {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    padding: 4px 20px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.faq details[open] {
    border-color: var(--line-strong);
    background: var(--card-hover);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 0;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    font-size: 20px;
    font-weight: 300;
    color: var(--muted);
    transition: transform 0.2s ease;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq .answer {
    padding: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}

/* --------------------------------------------------------------------- cta */

.cta-band {
    position: relative;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(600px 240px at 50% 0%, rgba(139, 92, 246, 0.28), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    padding: 56px 32px;
    text-align: center;
    overflow: hidden;
}

.cta-band h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 3.4vw, 36px);
    letter-spacing: -0.03em;
}

.cta-band p {
    margin: 0 auto 26px;
    max-width: 520px;
    color: var(--muted);
}

.cta-band .row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ------------------------------------------------------------------ footer */

.footer {
    border-top: 1px solid var(--line);
    padding: 40px 0 32px;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--text);
}

/* ==========================================================================
   Auth pages
   ========================================================================== */

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
}

.auth-card {
    width: min(430px, 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(12, 12, 19, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    padding: 34px;
}

.auth-head {
    text-align: center;
    margin-bottom: 26px;
}

.auth-head .brand {
    justify-content: center;
    margin-bottom: 20px;
}

.auth-head h1 {
    margin: 0 0 8px;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.auth-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-soft);
    letter-spacing: 0.02em;
}

.input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input::placeholder {
    color: #5f5f74;
}

.input:focus {
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}

textarea.input {
    height: auto;
    min-height: 90px;
    padding: 12px 14px;
    resize: vertical;
}

select.input {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.form-note {
    margin-top: 16px;
    text-align: center;
    color: var(--muted);
    font-size: 13.5px;
}

.form-note a {
    color: var(--accent-soft);
    font-weight: 600;
}

.form-note a:hover {
    text-decoration: underline;
}

.alert {
    display: none;
    margin-bottom: 16px;
    padding: 11px 14px;
    border-radius: 11px;
    font-size: 13.5px;
    border: 1px solid transparent;
}

.alert.show {
    display: block;
}

.alert-error {
    border-color: rgba(251, 113, 133, 0.35);
    background: rgba(251, 113, 133, 0.1);
    color: #fecdd3;
}

.alert-ok {
    border-color: rgba(52, 211, 153, 0.32);
    background: rgba(52, 211, 153, 0.1);
    color: #a7f3d0;
}

/* ==========================================================================
   App (dashboard / admin)
   ========================================================================== */

.app {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid var(--line);
    background: rgba(8, 8, 13, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.sidebar .brand {
    padding: 0 8px;
}

.side-nav {
    display: grid;
    gap: 4px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.16s ease;
    background: none;
    text-align: left;
    width: 100%;
}

.side-link svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 1.9;
    flex: none;
}

.side-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.side-link.active {
    color: var(--text);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.04));
    border-color: rgba(139, 92, 246, 0.28);
}

.side-foot {
    margin-top: auto;
    display: grid;
    gap: 8px;
}

.side-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card);
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    color: #08080d;
    background: linear-gradient(135deg, var(--accent-soft), var(--accent-2));
    flex: none;
}

.side-user .meta {
    min-width: 0;
}

.side-user .meta b {
    display: block;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-user .meta small {
    color: var(--muted);
    font-size: 11.5px;
}

.main {
    min-width: 0;
    padding: 26px 30px 60px;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.topbar h1 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.025em;
}

.topbar .sub {
    color: var(--muted);
    font-size: 13.5px;
    margin-top: 3px;
}

.topbar-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

.kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 26px;
}

.kpi {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    padding: 18px 20px;
}

.kpi .lbl {
    color: var(--muted);
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kpi .lbl svg {
    width: 15px;
    height: 15px;
    stroke: var(--accent-soft);
    stroke-width: 2;
}

.kpi .val {
    margin-top: 10px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.kpi .val.mono {
    font-family: var(--mono);
    font-size: 15px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.panel-head h2 {
    margin: 0;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.panel-head .spacer {
    flex: 1;
}

.panel-body {
    padding: 22px;
}

.tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.03);
}

.tab {
    height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s ease;
}

.tab.active {
    background: rgba(139, 92, 246, 0.2);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.3);
}

/* ------------------------------------------------------------------ tables */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

thead th {
    text-align: left;
    padding: 12px 16px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.015);
}

tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.mono {
    font-family: var(--mono);
    font-size: 12.5px;
}

.muted {
    color: var(--muted);
}

.row-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.row-user b {
    font-size: 13.5px;
    font-weight: 600;
}

.row-user small {
    color: var(--muted);
    font-size: 11.5px;
    display: block;
}

.empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.empty svg {
    width: 34px;
    height: 34px;
    margin: 0 auto 12px;
    stroke: #4a4a5e;
    stroke-width: 1.6;
}

/* --------------------------------------------------------------- utilities */

.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 200;
    display: grid;
    gap: 10px;
    width: min(340px, calc(100vw - 40px));
}

.toast {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: rgba(16, 16, 24, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    font-size: 13.5px;
    animation: toast-in 0.24s ease;
}

.toast.ok { border-color: rgba(52, 211, 153, 0.4); }
.toast.err { border-color: rgba(251, 113, 133, 0.4); }

.toast svg {
    width: 17px;
    height: 17px;
    flex: none;
    margin-top: 1px;
    stroke-width: 2.2;
}

.toast.ok svg { stroke: var(--ok); }
.toast.err svg { stroke: var(--danger); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.copy-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.35);
    font-family: var(--mono);
    font-size: 12.5px;
    overflow: hidden;
}

.copy-field span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon-btn {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    flex: none;
    transition: all 0.16s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.icon-btn svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-soft);
    stroke-width: 2;
}

.divider {
    height: 1px;
    background: var(--line);
    margin: 22px 0;
}

.hidden {
    display: none !important;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .grid-3,
    .pricing {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .app {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        overflow-x: auto;
        padding: 14px 16px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .sidebar .brand span:last-child {
        display: none;
    }

    .side-nav {
        display: flex;
        gap: 6px;
    }

    .side-link {
        white-space: nowrap;
        width: auto;
    }

    .side-foot {
        margin-top: 0;
        margin-left: auto;
    }

    .side-user {
        display: none;
    }

    .main {
        padding: 20px 16px 60px;
    }
}

@media (max-width: 720px) {
    .nav-links {
        display: none;
    }

    .section {
        padding: 68px 0;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .stats,
    .kpis {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        padding: 48px 0 40px;
    }

    .topbar {
        flex-wrap: wrap;
    }

    .topbar-actions {
        width: 100%;
        margin-left: 0;
    }
}

/* ================================================================== */
/*  Dashboard 2.0 — top nav, sidebar card, detail rows, animations     */
/* ================================================================== */

.dash-body {
    min-height: 100vh;
}

/* ------------------------------------------------------------- top nav */

.topnav {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 7, 11, 0.72);
    backdrop-filter: blur(14px);
}

.topnav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.topnav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
}

.topnav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.topnav-link svg {
    width: 15px;
    height: 15px;
    stroke-width: 1.9;
    stroke: currentColor;
}

.topnav-link:hover {
    color: var(--text);
    background: var(--card);
}

.topnav-link.active {
    color: var(--text);
    background: var(--card-hover);
    border-color: var(--line);
}

.topnav-right {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 5px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--card);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.user-chip:hover {
    border-color: var(--line-strong);
    background: var(--card-hover);
}

.user-chip .avatar {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 12px;
}

.user-chip-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.user-chip-meta b {
    font-size: 12.5px;
    font-weight: 700;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chip-meta small {
    font-size: 10.5px;
    color: var(--muted);
    font-weight: 600;
}

.user-chip .chev {
    width: 14px;
    height: 14px;
    stroke: var(--muted);
    stroke-width: 2;
    transition: transform .2s ease;
}

.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    padding: 6px;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: #101018;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-6px) scale(.98);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 50;
}

.user-menu.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.user-menu a,
.user-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-soft);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.user-menu a:hover,
.user-menu button:hover {
    background: var(--card-hover);
    color: var(--text);
}

/* -------------------------------------------------------------- layout */

.dash {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 24px 60px;
}

.dash-head {
    margin-bottom: 22px;
    animation: viewIn .4s cubic-bezier(.22, 1, .36, 1) both;
}

.dash-head h1 {
    margin: 0 0 6px;
    font-size: 27px;
    letter-spacing: -0.025em;
    font-weight: 800;
}

.dash-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
}

.dash-grid {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.dash-side {
    position: sticky;
    top: 78px;
}

.dash-main {
    min-width: 0;
}

/* --------------------------------------------------------- side card */

.side-card {
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--card);
    animation: viewIn .45s cubic-bezier(.22, 1, .36, 1) both;
}

.side-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 6px 4px 14px;
    border-bottom: 1px solid var(--line);
}

.avatar-lg {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 16px;
}

.side-profile-meta {
    min-width: 0;
}

.side-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.side-name-row b {
    font-size: 14px;
    font-weight: 700;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-profile-meta small {
    font-size: 11.5px;
}

.pill-sm {
    padding: 2px 7px;
    font-size: 10px;
}

.side-section {
    padding: 14px 6px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.side-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-soft);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}

.side-link svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 1.9;
    opacity: .8;
}

.side-link:hover {
    background: var(--card-hover);
    color: var(--text);
}

.side-link.active {
    background: var(--card-hover);
    color: var(--text);
}

.side-help {
    margin-top: 16px;
    padding: 13px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.side-help b {
    display: block;
    font-size: 12.5px;
}

.side-help small {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--muted);
}

.side-help-buttons {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.side-help-buttons .btn {
    flex: 1;
    opacity: .55;
    cursor: not-allowed;
}

/* -------------------------------------------------------------- cards */

.view-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.view-in {
    animation: viewIn .34s cubic-bezier(.22, 1, .36, 1) both;
}

.view-in .card {
    animation: viewIn .42s cubic-bezier(.22, 1, .36, 1) both;
}

.view-in .card:nth-child(1) { animation-delay: .02s; }
.view-in .card:nth-child(2) { animation-delay: .07s; }
.view-in .grid-2 .card:nth-child(1) { animation-delay: .1s; }
.view-in .grid-2 .card:nth-child(2) { animation-delay: .14s; }

@keyframes viewIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.card-head h2 {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.card-head p {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* -------------------------------------------------------- detail rows */

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.018);
    margin-bottom: 14px;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
}

.detail-label svg {
    width: 15px;
    height: 15px;
    stroke: var(--muted);
    stroke-width: 1.9;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.detail-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.detail-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    flex: none;
}

.detail-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--muted);
    stroke-width: 1.9;
}

.detail-cell small {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 1px;
}

.detail-cell b {
    display: block;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-cell b.hwid-value {
    font-family: ui-monospace, "Consolas", monospace;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--accent-soft);
    cursor: pointer;
    transition: color 0.16s ease;
}

.detail-cell b.hwid-value:hover {
    color: var(--accent-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ------------------------------------------------------- subscription */

.sub-value {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-value b {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.license-box {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.license-box > small {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 6px;
}

.license-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg-elev);
}

.license-row code {
    flex: 1;
    min-width: 0;
    font-family: ui-monospace, "Consolas", monospace;
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--accent-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.icon-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 1.9;
}

.icon-btn:hover {
    background: var(--card-hover);
    color: var(--text);
}

.link-btn {
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: color .16s ease, text-decoration-color .16s ease;
}

.link-btn:hover {
    color: var(--accent-soft);
    text-decoration-color: currentColor;
}

/* -------------------------------------------------------------- system */

.sys-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.sys-grid > div {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.018);
}

.sys-grid small {
    display: block;
    font-size: 10.5px;
    color: var(--muted);
    margin-bottom: 3px;
}

.sys-grid b {
    font-size: 12.5px;
    font-weight: 700;
}

/* --------------------------------------------------------- responsive */

@media (max-width: 900px) {
    .dash-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dash-side {
        position: static;
    }

    .grid-2,
    .detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .topnav-links {
        display: none;
    }
}

/* ================================================================== */
/*  Minimal auth pages (login / register)                              */
/* ================================================================== */

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
}

.auth-brand {
    position: fixed;
    top: 22px;
    left: 26px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    opacity: 0;
    animation: viewIn .5s cubic-bezier(.22, 1, .36, 1) .05s both;
}

.minimal-auth {
    width: 100%;
    max-width: 372px;
    animation: viewIn .5s cubic-bezier(.22, 1, .36, 1) both;
}

.minimal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

.minimal-badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 10px var(--accent-2);
}

.minimal-title {
    margin: 14px 0 26px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.minimal-field {
    margin-bottom: 14px;
}

.minimal-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

.minimal-input {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    height: 44px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--card);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.minimal-input:focus-within {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.06);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.minimal-input > svg {
    width: 15px;
    height: 15px;
    flex: none;
    stroke: var(--muted);
    stroke-width: 1.9;
    transition: stroke .18s ease;
}

.minimal-input:focus-within > svg {
    stroke: var(--accent-soft);
}

.minimal-input input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 13.5px;
}

.minimal-input input::placeholder {
    color: var(--muted);
}

.pw-toggle {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}

.pw-toggle svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 1.9;
}

.pw-toggle:hover {
    color: var(--text);
    background: var(--card-hover);
}

.auth-submit {
    margin-top: 10px;
}

.minimal-note {
    margin: 20px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
}

.minimal-note a {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 600;
}

.minimal-note a:hover {
    text-decoration: underline;
}

/* header chip that replaces the login buttons after signing in */

.nav-profile {
    animation: chipIn .34s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes chipIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.96);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ================================================================== */
/*  Landing page                                                       */
/* ================================================================== */

.landing {
    overflow-x: hidden;
}

/* -------------------------------------------------------- floating nav */

.lp-nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    width: min(980px, calc(100% - 32px));
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(10, 10, 16, 0.62);
    backdrop-filter: blur(16px);
    transition: background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.lp-nav.is-stuck {
    background: rgba(8, 8, 13, 0.86);
    border-color: var(--line-strong);
    box-shadow: 0 18px 50px -28px rgba(0, 0, 0, 0.9);
}

.lp-nav-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 12px 9px 16px;
}

.lp-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 auto;
}

.lp-links a {
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color .18s ease, background .18s ease;
}

.lp-links a:hover {
    color: var(--text);
    background: var(--card-hover);
}

/* --------------------------------------------------------------- hero */

.lp-hero {
    position: relative;
    padding: 168px 24px 104px;
    text-align: center;
    overflow: hidden;
}

.lp-hero-grid {
    position: absolute;
    inset: -10% -10% 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(ellipse 60% 55% at 50% 32%, #000 10%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 32%, #000 10%, transparent 72%);
    pointer-events: none;
}

.lp-hero-glow {
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 620px;
    background:
        radial-gradient(circle at 42% 46%, rgba(139, 92, 246, 0.30), transparent 58%),
        radial-gradient(circle at 62% 40%, rgba(34, 211, 238, 0.16), transparent 55%);
    filter: blur(28px);
    pointer-events: none;
}

.lp-hero-inner {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
}

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--muted);
    text-transform: uppercase;
}

.lp-eyebrow::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 12px var(--accent-2);
}

.lp-title {
    margin: 18px 0 20px;
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.lp-title .grad {
    background: linear-gradient(100deg, var(--accent-soft) 0%, var(--accent-2) 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lp-sub {
    max-width: 560px;
    margin: 0 auto 30px;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.65;
}

.lp-hero-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 13px 26px;
    font-size: 14.5px;
}

.lp-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 44px;
    color: var(--muted);
}

.lp-stats b {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.lp-stats small {
    font-size: 11.5px;
}

.lp-stat-sep {
    width: 1px;
    height: 26px;
    background: var(--line);
}

/* ----------------------------------------------------------- sections */

.lp-section {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 88px 24px;
}

.lp-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: 56px;
    align-items: center;
}

.lp-split-text h2,
.lp-center h2,
.lp-pricing-head h2 {
    margin: 14px 0 16px;
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.lp-split-text p {
    margin: 0 0 22px;
    max-width: 440px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.lp-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.lp-center {
    text-align: center;
}

.lp-center-sub {
    max-width: 520px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ------------------------------------------------------------ modules */

.lp-modules {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(18, 18, 26, 0.72);
    box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.95);
}

.lp-module {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 12px;
    transition: background .18s ease;
}

.lp-module:hover {
    background: var(--card-hover);
}

.lp-module-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    flex: none;
}

.lp-module-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent-soft);
    stroke-width: 1.9;
}

.lp-module-text {
    flex: 1;
    min-width: 0;
}

.lp-module-text b {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.lp-module-text small {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 1px;
}

.lp-switch {
    position: relative;
    width: 34px;
    height: 19px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    flex: none;
    transition: background .2s ease;
}

.lp-switch::after {
    content: "";
    position: absolute;
    top: 2.5px;
    left: 2.5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d5d5e2;
    transition: transform .2s cubic-bezier(.22, 1, .36, 1), background .2s ease;
}

.lp-switch.on {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
}

.lp-switch.on::after {
    transform: translateX(15px);
    background: #0b0b12;
}

.lp-chips {
    display: flex;
    gap: 6px;
    padding: 12px 4px 2px;
}

.lp-chip {
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.lp-chip.active {
    border-color: transparent;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #08080d;
}

/* ------------------------------------------------------------- mock UI */

.lp-shot {
    max-width: 620px;
    margin: 34px auto 0;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #0c0c13;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 50px 90px -55px rgba(0, 0, 0, 0.95);
}

.lp-shot-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.lp-shot-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.lp-shot-bar em {
    margin-left: 8px;
    font-style: normal;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

.lp-shot-body {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 190px;
}

.lp-shot-side {
    padding: 12px 10px;
    border-right: 1px solid var(--line);
}

.lp-shot-item {
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.lp-shot-item.active {
    background: rgba(139, 92, 246, 0.14);
    color: var(--accent-soft);
}

.lp-shot-main {
    padding: 12px 14px;
}

.lp-shot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 12.5px;
    color: var(--text-soft);
}

.lp-shot-row i {
    position: relative;
    width: 30px;
    height: 17px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
}

.lp-shot-row i::after {
    content: "";
    position: absolute;
    top: 2.5px;
    left: 2.5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cfcfdd;
}

.lp-shot-row i.on {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
}

.lp-shot-row i.on::after {
    transform: translateX(13px);
    background: #0b0b12;
}

.lp-shot-slider {
    height: 5px;
    margin-top: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.lp-shot-slider span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ------------------------------------------------------------ pricing */

.lp-pricing-head {
    text-align: center;
    margin-bottom: 34px;
}

.lp-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.lp-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(18, 18, 26, 0.62);
    transition: transform .22s cubic-bezier(.22, 1, .36, 1), border-color .22s ease, background .22s ease;
}

.lp-plan:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    background: rgba(22, 22, 32, 0.8);
}

.lp-plan-hot {
    border-color: rgba(139, 92, 246, 0.45);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.10), rgba(18, 18, 26, 0.7));
}

.lp-plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #08080d;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.lp-plan-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.lp-plan-top h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.lp-plan-price {
    text-align: right;
}

.lp-plan-price b {
    display: block;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lp-plan-price small {
    font-size: 10.5px;
    color: var(--muted);
}

.lp-plan-list {
    list-style: none;
    margin: 14px 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}

.lp-plan-list li {
    position: relative;
    padding-left: 20px;
    font-size: 12.5px;
    color: var(--text-soft);
}

.lp-plan-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1.6px solid var(--accent-soft);
}

.lp-plan-list li::after {
    content: "";
    position: absolute;
    left: 5.6px;
    top: 8.6px;
    width: 4px;
    height: 2px;
    border-left: 1.6px solid var(--accent-soft);
    border-bottom: 1.6px solid var(--accent-soft);
    transform: rotate(-45deg);
}

/* ---------------------------------------------------------------- faq */

.lp-faq {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lp-faq details {
    border-radius: 13px;
    border: 1px solid var(--line);
    background: rgba(18, 18, 26, 0.55);
    overflow: hidden;
}

.lp-faq summary {
    padding: 14px 16px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-faq summary::-webkit-details-marker {
    display: none;
}

.lp-faq summary::after {
    content: "+";
    color: var(--muted);
    font-weight: 400;
    font-size: 16px;
}

.lp-faq details[open] summary::after {
    content: "−";
}

.lp-faq p {
    margin: 0;
    padding: 0 16px 14px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--muted);
}

/* ---------------------------------------------------------------- cta */

.lp-cta {
    padding: 20px 24px 90px;
}

.lp-cta-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 54px 24px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background:
        radial-gradient(ellipse 70% 120% at 50% 0%, rgba(139, 92, 246, 0.16), transparent 70%),
        rgba(18, 18, 26, 0.6);
    text-align: center;
}

.lp-cta-inner h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.lp-cta-inner p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 14px;
}

/* ------------------------------------------------------------- footer */

.lp-footer {
    border-top: 1px solid var(--line);
    padding: 44px 24px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.lp-footer-word {
    font-size: clamp(48px, 11vw, 120px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: .9;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 26px;
    user-select: none;
}

.lp-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.lp-footer-links {
    display: flex;
    gap: 16px;
}

.lp-footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    transition: color .16s ease;
}

.lp-footer-links a:hover {
    color: var(--text);
}

/* --------------------------------------------------------- responsive */

@media (max-width: 900px) {
    .lp-links {
        display: none;
    }

    .lp-nav-inner {
        justify-content: space-between;
    }

    .lp-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .lp-plans {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-hero {
        padding-top: 130px;
    }

    .lp-shot-body {
        grid-template-columns: 110px minmax(0, 1fr);
    }
}



