:root {
    --bg: #060a08;
    --surface: rgba(14, 22, 18, 0.55);
    --surface-hover: rgba(22, 36, 29, 0.7);
    --border: rgba(34, 197, 94, 0.16);
    --border-strong: rgba(34, 197, 94, 0.32);
    --green: #22c55e;
    --green-soft: rgba(34, 197, 94, 0.12);
    --green-glow: rgba(34, 197, 94, 0.35);
    --text-main: #f3f4f6;
    --text-muted: #94a3b8;
    --dim: #64748b;
    --danger: #f87171;
    --warn: #fbbf24;
    --r-1: 12px;
    --r-2: 16px;
    --r-3: 22px;
    --glass-bg: linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), rgba(12, 20, 15, 0.36);
    --glass-border: rgba(255, 255, 255, 0.16);
    --glass-shadow: 0 10px 34px rgba(0, 0, 0, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.16), inset 0 0 24px rgba(34, 197, 94, 0.05);
    --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
    --t: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- фон: WebGL-шейдер + подложка ---------- */

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

.bg-fallback {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 50% at 20% 20%, rgba(34, 197, 94, 0.14), transparent 70%),
        radial-gradient(50% 45% at 85% 75%, rgba(52, 211, 153, 0.10), transparent 70%),
        var(--bg);
}

#bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.bg-veil {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 50% 40%, transparent 46%, rgba(6, 10, 8, 0.60) 100%);
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.92em; color: #cfe9d8; }
h1, h2 { line-height: 1.2; margin: 0; }

/* ---------- шапка ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    background: rgba(6, 10, 8, 0.55);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--text-main); }
.brand:hover { text-decoration: none; }
.brand img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4), 0 4px 14px rgba(0, 0, 0, 0.45);
}
.brand-text { display: flex; flex-direction: column; font-weight: 700; font-size: 16px; line-height: 1.12; letter-spacing: -0.01em; }
.brand-text small { font-weight: 500; font-size: 10.5px; color: var(--dim); letter-spacing: 0.05em; text-transform: uppercase; margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--text-main); text-decoration: none; }

.nav-cta, .nav-ghost {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    font: inherit;
    cursor: pointer;
    transition: var(--t);
}
.nav-cta { background: var(--green); color: #04140a !important; border-color: transparent; font-weight: 600; }
.nav-cta:hover { box-shadow: 0 0 24px var(--green-glow); }
.nav-ghost { color: var(--text-main) !important; }
.nav-ghost:hover { background: var(--surface-hover); }

/* ---------- каркас ---------- */

.wrap {
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
    width: min(1080px, 100% - 40px);
    margin: 0 auto;
    padding: 52px 0 72px;
}

/* ---------- стекло ---------- */

.glass {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-3);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    transition: border-color 0.4s var(--t), box-shadow 0.5s var(--t), transform 0.4s var(--t);
}

.glass::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 197, 94, 0.16), transparent 62%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.glass:hover::before { opacity: 1; }
.glass:hover {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.6), 0 0 44px -14px rgba(34, 197, 94, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.glass > * { position: relative; z-index: 1; }

/* ---------- главная ---------- */

.hero { padding: 30px 0 44px; max-width: 800px; }
.hero h1 { margin: 20px 0 18px; font-size: clamp(38px, 7vw, 68px); letter-spacing: -0.03em; }
.accent { color: var(--green); }
.lead { color: var(--text-muted); font-size: 17px; max-width: 620px; margin: 0 0 24px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.price-tag { font-size: 26px; font-weight: 700; }
.price-tag span { font-size: 15px; font-weight: 500; color: var(--dim); }

.slots { margin-top: 20px; max-width: 420px; }
.slots-bar { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.slots-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #16a34a, var(--green)); transition: width 600ms var(--t); }
.slots-text { margin-top: 9px; color: var(--text-muted); font-size: 13px; }
.slots-text b { color: var(--text-main); }
.slots-inline { margin-top: 12px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin: 8px 0 24px; }
.card {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.card h2 { font-size: 23px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-muted); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card .slots-card { margin-top: 2px; }
.card .btn { margin-top: auto; }

.list { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 14px; }
.list li { margin: 4px 0; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: var(--t);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); border-color: transparent; color: #04140a; }
.btn-primary:hover { box-shadow: 0 0 30px var(--green-glow); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18); }
.btn-danger { color: var(--danger); border-color: rgba(248, 113, 113, 0.35); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.12); }
.btn-wide { width: 100%; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dim);
    font-weight: 700;
    margin-bottom: 12px;
}

.steps { padding: 26px; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.step-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.step-list span {
    flex: 0 0 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--green-soft);
    border: 1px solid var(--border);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

/* ---------- страницы ---------- */

.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; letter-spacing: -0.02em; }
.crumb { margin: 0 0 10px; font-size: 12.5px; color: var(--dim); letter-spacing: 0.03em; }
.crumb a { color: var(--text-muted); }

.notice {
    border: 1px solid var(--border);
    background: rgba(34, 197, 94, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--r-2);
    padding: 14px 16px;
    margin-bottom: 20px;
    color: #c9f3d6;
    font-size: 14px;
}

.picker { padding: 28px; margin-bottom: 26px; }

.bubbles { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.bubble {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font: inherit;
    cursor: pointer;
    transition: var(--t);
}
.bubble.is-active { background: var(--green-soft); border-color: var(--border-strong); color: #c9f3d6; }

.big-input {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-bottom: 12px;
    margin-bottom: 14px;
    transition: border-color var(--t);
}
.big-input:focus-within { border-bottom-color: rgba(34, 197, 94, 0.55); }

.big-line {
    font-family: var(--mono);
    font-weight: 700;
    font-size: clamp(30px, 6.6vw, 58px);
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--text-main);
    overflow-wrap: anywhere;
    word-break: normal;
}

.big-typed {
    display: inline;
    outline: none;
    min-width: 1ch;
    caret-color: var(--green);
}
.big-typed:empty::before {
    content: attr(data-placeholder);
    color: rgba(148, 163, 184, 0.5);
    pointer-events: none;
}
.big-suffix {
    display: inline;
    white-space: nowrap;
    color: var(--dim);
}

.check-line { min-height: 24px; margin-bottom: 18px; }
.status { font-size: 14px; color: var(--text-muted); }
.status[data-state="ok"] { color: var(--green); }
.status[data-state="bad"] { color: var(--warn); }
.status[data-state="loading"] { color: var(--dim); }

.target { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-grow { flex: 1 1 260px; }
.field-label { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.field input, .field select {
    height: 44px;
    padding: 0 14px;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font: inherit;
    min-width: 0;
}
.field input:focus, .field select:focus {
    outline: none;
    border-color: var(--border-strong);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}
.field select option { background: #0b120e; }

.hint { color: var(--dim); font-size: 13px; margin: 10px 0 0; }
.picker-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.fine { color: var(--dim); font-size: 13px; }

.err { color: var(--danger); font-size: 14px; margin: 10px 0 0; }
.muted { color: var(--dim); }

.rules { border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 24px; }

.auth { max-width: 460px; margin: 18px auto; padding: 30px; }
.auth h1 { font-size: 32px; margin-bottom: 10px; }
.form { display: grid; gap: 16px; margin: 24px 0 18px; }
.code-input { font-family: var(--mono); font-size: 22px; letter-spacing: 8px; text-align: center; }
.link-btn { background: none; border: 0; color: var(--green); font: inherit; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }
[data-tg-unlink] { margin-left: 8px; }

.empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }

.domain-list { display: grid; gap: 16px; }
.domain-card { padding: 22px; border-radius: var(--r-2); }
.domain-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.domain-head h2 { font-size: 20px; word-break: break-all; }
.domain-meta { display: grid; gap: 6px; color: var(--text-muted); font-size: 14px; margin-bottom: 14px; }
.meta-label { color: var(--dim); display: inline-block; min-width: 96px; }
.target-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.domain-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.history summary { cursor: pointer; color: var(--text-muted); font-size: 14px; }
.history-list { margin-top: 8px; }

.status-active { color: var(--green); }
.status-grace, .status-provisioning { color: var(--warn); }
.status-blocked, .status-canceled, .status-refunded { color: var(--danger); }
.status-paid { color: var(--green); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat { border: 1px solid var(--glass-border); border-radius: var(--r-2); padding: 14px 16px; color: var(--dim); font-size: 13px; background: var(--glass-bg); backdrop-filter: blur(16px) saturate(175%); -webkit-backdrop-filter: blur(16px) saturate(175%); }
.stat span { display: block; font-size: 26px; font-weight: 700; color: var(--text-main); }

.table-block { margin-bottom: 32px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-2); background: rgba(8, 14, 10, 0.5); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; }
.table th { color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.table tr:last-child td { border-bottom: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form input {
    height: 32px;
    width: 110px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    padding: 0 8px;
    font: inherit;
    font-size: 12px;
}
.audit { list-style: none; padding: 0; font-size: 13px; }
.audit li { padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }

.pay-state { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-2); background: rgba(255, 255, 255, 0.03); margin: 18px 0; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(34, 197, 94, 0.25); border-top-color: var(--green); animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- подвал: прижат к низу экрана, но не наезжает на контент ---------- */

.foot {
    position: relative;
    z-index: 1;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(6, 10, 8, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 24px 26px;
    color: var(--dim);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.foot a { color: var(--text-muted); }
.foot a:hover { color: var(--green); }
.foot-note { color: var(--dim); }

@media (max-width: 720px) {
    .wrap { width: calc(100% - 28px); padding: 30px 0 52px; }
    .nav { padding: 11px 14px; }
    .nav-links { gap: 12px; }
    .nav-name { display: none; }
    .brand-text small { display: none; }
    .picker, .auth { padding: 20px; }
    .big-line { font-size: clamp(24px, 8.6vw, 34px); }
    .hero { padding: 18px 0 32px; }
    .hero h1 { font-size: clamp(34px, 10vw, 48px); }
    .foot { flex-direction: column; padding: 18px 16px 22px; }
    .steps { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .glass, .btn, .slots-fill { transition: none; }
}

/* ---------- шапка: пользователь ---------- */

.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 220px;
    color: var(--text-main);
}
.nav-user:hover { color: var(--green); text-decoration: none; }
.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}
.nav-avatar-empty {
    background: rgba(34, 197, 94, 0.16);
    color: var(--green);
    font-weight: 700;
    font-size: 13px;
}
.nav-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

/* ---------- /net ---------- */

.net-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr);
    gap: 22px;
    align-items: center;
    padding: 26px 0 40px;
}
.net-hero h1 { font-size: clamp(38px, 6vw, 60px); }
.net-hero-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: var(--r-2);
}
.net-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(16, 122, 62, 0.9));
    color: #04140a;
    flex: 0 0 56px;
}
.net-hero-badge b { display: block; font-size: 15px; }
.net-hero-badge small { color: var(--dim); font-size: 12.5px; }

.net-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--r-2);
    margin-bottom: 26px;
    flex-wrap: wrap;
}
.net-status b { display: block; font-size: 16px; margin-top: 2px; }

.net-features { margin: 10px 0 30px; }
.net-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 14px;
}
.net-feature { padding: 20px; border-radius: var(--r-2); }
.net-feature h3 { margin: 0 0 8px; font-size: 16px; }
.net-feature p { margin: 0; color: var(--text-muted); font-size: 14px; }

.net-proto {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
    gap: 22px;
    padding: 26px;
    border-radius: var(--r-2);
    margin-bottom: 34px;
}
.net-proto h2 { margin: 4px 0 10px; font-size: 24px; }
.net-proto p { margin: 0; color: var(--text-muted); font-size: 14px; }
.net-proto-facts { display: grid; gap: 12px; align-content: start; }
.net-proto-facts div { display: flex; align-items: baseline; gap: 10px; }
.net-proto-facts b { font-size: 22px; color: var(--green); min-width: 78px; }
.net-proto-facts span { color: var(--dim); font-size: 13px; }

.net-plans-block { margin-bottom: 34px; }
.net-plans {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 18px;
}
.net-plan {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    padding: 18px;
    border-radius: var(--r-2);
    border: 1px solid var(--glass-border);
    background: var(--surface);
    color: var(--text-main);
    font: inherit;
    cursor: pointer;
    text-align: left;
    transition: border-color var(--t), background var(--t), transform var(--t);
}
.net-plan:hover { border-color: rgba(34, 197, 94, 0.4); transform: translateY(-2px); }
.net-plan.is-active {
    border-color: var(--green);
    background: linear-gradient(160deg, rgba(34, 197, 94, 0.16), rgba(14, 22, 18, 0.6));
    box-shadow: 0 0 0 1px var(--green) inset;
}
.net-plan-title { font-size: 14px; color: var(--text-muted); }
.net-plan-price { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.net-plan-sub { font-size: 12.5px; color: var(--dim); }

.net-buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-radius: var(--r-2);
    flex-wrap: wrap;
}
.net-total { display: flex; flex-direction: column; color: var(--dim); font-size: 13px; }
.net-total b { font-size: 26px; color: var(--text-main); letter-spacing: -0.02em; }

.net-utilities { margin-top: 8px; }
.net-utils-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin: 14px 0;
}
.net-util { padding: 16px 18px; border-radius: var(--r-2); }
.net-util h3 { margin: 0 0 8px; font-size: 14px; }
.net-util .list { font-size: 13px; }

/* ---------- вход через Telegram ---------- */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 6px 0 14px;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.09);
}
.tg-login { display: grid; gap: 12px; justify-items: stretch; margin-bottom: 18px; }
.btn-tg {
    background: linear-gradient(180deg, #2aabee, #2399d6);
    border-color: rgba(42, 171, 238, 0.7);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px -14px rgba(42, 171, 238, 0.9);
}
.btn-tg::before {
    content: "";
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M21.9 4.3 18.7 19c-.2 1-.9 1.3-1.7.8l-4.7-3.5-2.3 2.2c-.3.3-.5.5-1 .5l.4-4.9 8.9-8c.4-.3-.1-.5-.6-.2L6.8 12.9 2.1 11.4c-1-.3-1-1 .2-1.5L20.6 3c.9-.3 1.6.2 1.3 1.3z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.btn-tg:hover { background: linear-gradient(180deg, #3cb7f5, #26a3e2); }
.btn-tg:active { transform: translateY(1px); }

/* ---------- профиль ---------- */

.account-head { margin-bottom: 18px; }
.profile {
    padding: 24px;
    border-radius: var(--r-2);
    margin-bottom: 28px;
}
.profile-main { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(14, 22, 18, 0.7));
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
    position: relative;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-initial { font-size: 38px; font-weight: 800; color: var(--green); }
.profile-avatar.is-busy::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 8, 0.65);
}
.avatar-spinner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--green);
    animation: spin 800ms linear infinite;
}
.profile-id { flex: 1 1 240px; display: grid; gap: 8px; }
.nick-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nick-form input {
    height: 38px;
    min-width: 0;
    flex: 1 1 180px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    padding: 0 12px;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
}
.avatar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.file-btn { position: relative; overflow: hidden; }
.profile-rows { display: grid; gap: 12px; margin-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 18px; }
.profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.profile-row .meta-label { min-width: 0; display: block; margin-bottom: 2px; }
.ok-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    color: var(--green);
    font-size: 11.5px;
}
.tg-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.account-section { margin-bottom: 34px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 22px; }

.sub-shell { padding: 20px; border-radius: var(--r-2); }
.sub-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.sub-tab {
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 13.5px;
    padding: 6px 12px;
    border-radius: 9px;
    cursor: pointer;
}
.sub-tab:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.04); }
.sub-tab.is-active { color: #04140a; background: var(--green); font-weight: 600; }
.sub-panel { min-height: 90px; }
.sub-loading { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 14px; }
.spinner-dark {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, 0.25);
    border-top-color: var(--green);
    animation: spin 900ms linear infinite;
    display: inline-block;
}
.sub-status-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; }
.sub-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.sub-dot[data-state="ok"] { background: var(--green); box-shadow: 0 0 10px var(--green-glow); }
.sub-dot[data-state="bad"] { background: var(--danger); }
.sub-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.sub-data { display: grid; gap: 10px; margin: 14px 0 0; }
.sub-data div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 8px; }
.sub-data dt { color: var(--dim); font-size: 13px; }
.sub-data dd { margin: 0; font-weight: 600; text-align: right; }
.ref-links { display: grid; gap: 10px; margin: 14px 0; }
.ref-links input { font-family: var(--mono); font-size: 12.5px; }
.ref-stats { display: flex; gap: 22px; flex-wrap: wrap; margin: 6px 0 4px; }
.ref-stats div { display: flex; flex-direction: column; color: var(--dim); font-size: 12.5px; }
.ref-stats b { font-size: 22px; color: var(--text-main); }

@media (max-width: 860px) {
    .net-hero { grid-template-columns: 1fr; padding-top: 10px; }
    .net-hero-badge { display: none; }
    .net-proto { grid-template-columns: 1fr; }
    .net-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .net-plans { grid-template-columns: 1fr 1fr; gap: 8px; }
    .net-plan { padding: 14px; }
    .net-plan-price { font-size: 20px; }
    .profile { padding: 18px; }
    .profile-avatar { width: 76px; height: 76px; flex-basis: 76px; }
    .net-buy { align-items: flex-start; }
    .net-buy-actions { width: 100%; }
    .net-buy-actions .btn { width: 100%; }
}

/* ---------- футер: реквизиты ---------- */

.foot-legal { display: flex; flex-direction: column; gap: 6px; }
.foot-links a { color: var(--text-muted); }
.foot-links a:hover { color: var(--green); }
.foot .mono { font-family: var(--mono); }

/* ---------- /net: оформление как на pay ---------- */

.net-checkout { margin: 6px 0 34px; }
.net-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 388px;
    gap: 26px;
    align-items: start;
}
.net-plans-col .label { display: block; margin-bottom: 14px; }

.plans {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.plan {
    position: relative;
    z-index: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 20px;
    min-height: 154px;
    background: var(--glass-bg);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r-2);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    color: var(--text-main);
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color var(--t), background var(--t), box-shadow var(--t), transform 160ms var(--t);
}
@media (hover: hover) {
    .plan:hover { border-color: rgba(255, 255, 255, 0.26); background: linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)), rgba(12, 20, 15, 0.34); }
}
.plan:active { transform: scale(0.98); }
.plan.is-active {
    color: #fff;
    background: linear-gradient(160deg, rgba(34, 197, 94, 0.14), rgba(34, 197, 94, 0.03)), var(--glass-bg);
    border-color: var(--green);
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.25), inset 0 0 15px rgba(34, 197, 94, 0.06);
}
.plan.is-active .plan-title { color: #fff; }
.plan-title { font-size: 15px; font-weight: 600; color: var(--text-muted); transition: color var(--t); }
.plan-price {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    margin-top: auto;
    color: #fff;
}
.plan-sub { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.plan-tag {
    position: absolute;
    top: -10px;
    right: 12px;
    font-size: 11px;
    font-weight: 800;
    background: var(--green);
    color: #04120a;
    padding: 3px 8px;
    border-radius: 8px;
}

.plan-visual {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0 16%, #000 44%);
    mask-image: linear-gradient(90deg, transparent 0 16%, #000 44%);
}
.fan {
    position: absolute;
    bottom: -42px;
    right: -12px;
    width: 92px;
    height: 118px;
    transition: transform 320ms var(--t);
}
.plan[data-plan="6m"] .fan,
.plan[data-plan="12m"] .fan { transform: rotate(-20deg); }
.plan[data-plan="1m"] .fan { right: -26px; transform: rotate(10deg); }
.fan-tile {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: 14px;
    border: 1px solid rgba(34, 197, 94, 0.22);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='118'%3E%3Cpath d='M16 96 42 66m0 0 24 14m-24-14 19-31m0 0 16 14' stroke='%2322c55e' stroke-opacity='.45' fill='none'/%3E%3Ccircle cx='16' cy='96' r='3' fill='%2316a34a'/%3E%3Ccircle cx='42' cy='66' r='4.6' fill='%234ade80'/%3E%3Ccircle cx='42' cy='66' r='12' fill='none' stroke='%2322c55e' stroke-opacity='.3'/%3E%3Ccircle cx='66' cy='80' r='3' fill='%2316a34a'/%3E%3Ccircle cx='61' cy='35' r='4' fill='%2322c55e'/%3E%3Ccircle cx='77' cy='49' r='2.6' fill='%2322c55e' fill-opacity='.7'/%3E%3C/svg%3E"),
        linear-gradient(165deg, rgba(24, 48, 36, 0.95), rgba(9, 18, 13, 0.94) 58%, rgba(34, 197, 94, 0.12));
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
    opacity: 0.92;
    transform-origin: 92% 96%;
    transition: transform 320ms var(--t);
}
.fan-tile:nth-child(1) { transform: rotate(-9deg); }
.fan-tile:nth-child(2) {
    transform: rotate(0deg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='118'%3E%3Cpath d='M21 89a31 31 0 0 1 47-24' stroke='%2322c55e' stroke-opacity='.4' fill='none'/%3E%3Cpath d='M12 99a45 45 0 0 1 66-36' stroke='%2322c55e' stroke-opacity='.22' fill='none'/%3E%3Cpath d='M68 66 38 36' stroke='%234ade80' stroke-opacity='.6' stroke-width='1.4'/%3E%3Ccircle cx='68' cy='66' r='4.6' fill='%234ade80'/%3E%3Ccircle cx='38' cy='36' r='3.4' fill='%2322c55e'/%3E%3Ccircle cx='71' cy='28' r='2.4' fill='%2316a34a'/%3E%3C/svg%3E"),
        linear-gradient(200deg, rgba(20, 40, 30, 0.95), rgba(8, 16, 11, 0.94) 58%, rgba(34, 197, 94, 0.14));
}
.fan-tile:nth-child(3) { transform: rotate(8deg); }
.fan-tile:nth-child(4) { transform: rotate(16deg); }

.net-pay-col { display: flex; flex-direction: column; gap: 12px; }
.pay-block { padding: 16px 18px; border-radius: var(--r-2); display: flex; flex-direction: column; gap: 10px; }
.pay-account { display: flex; align-items: center; gap: 12px; }
.pay-account b { font-size: 15px; }
.pay-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: var(--green);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.04em;
}
.promo-row { display: flex; gap: 8px; margin-top: 10px; }
.promo-row input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-main);
    font: inherit;
    font-size: 14px;
}
.promo-row input:focus { outline: none; border-color: var(--green); }
.applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.28);
    font-size: 14px;
}
.pay-summary { padding: 18px; border-radius: var(--r-2); display: flex; flex-direction: column; gap: 10px; }
.pay-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--text-muted); font-size: 14px; }
.pay-row.total {
    color: var(--text-main);
    font-size: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.pay-row.total output { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.pay-row .neg { color: var(--green); }
.pay-summary .btn { margin-top: 4px; }

@media (max-width: 1023px) {
    .net-checkout-grid { grid-template-columns: 1fr; }
    .net-pay-col { max-width: 560px; }
}
@media (max-width: 640px) {
    .plan { padding: 18px 16px; min-height: 132px; }
    .plan-price { font-size: 25px; }
    .plan-title { font-size: 14px; }
    .plan-sub { font-size: 12px; }
    .plan-visual { display: none; }
}

.tg-pulse {
    animation: tgPulse 1.6s ease;
    border-radius: var(--r-1);
}
@keyframes tgPulse {
    0%, 100% { box-shadow: none; }
    35% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25), 0 0 24px rgba(34, 197, 94, 0.2); }
}

.picker .hint { color: var(--text-muted); }

@media (min-width: 1024px) {
    /* Правая плашка оплаты — на уровне карточек тарифов, а не подписи. */
    .net-pay-col { margin-top: 28px; }
}

/* ---------- админка ---------- */

.admin-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-logout { margin: 0; }
.admin-nav {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px;
    padding: 6px; border: 1px solid var(--border); border-radius: var(--r-2);
    background: rgba(8, 14, 10, 0.5);
}
.admin-nav a {
    padding: 8px 14px; border-radius: 10px; color: var(--text-muted);
    font-size: 14px; font-weight: 600; transition: var(--t);
}
.admin-nav a:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.admin-nav a.is-active { color: #04140a; background: var(--green); }

.admin-stats .stat { display: block; transition: transform var(--t), border-color var(--t), background var(--t); }
.admin-stats a.stat:hover {
    transform: translateY(-1px); text-decoration: none;
    border-color: var(--border-strong); background: var(--surface-hover);
}
.admin-stats .stat small { display: block; margin-top: 4px; color: var(--dim); font-size: 12px; line-height: 1.35; }
.admin-stats--compact { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.admin-stats--compact .stat { padding: 12px 14px; font-size: 12px; }
.admin-stats--compact .stat span { font-size: 22px; }

.toolbar { margin-bottom: 18px; }
.toolbar-form {
    display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
    padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-2);
    background: rgba(8, 14, 10, 0.5);
}
.toolbar-form .fine { margin-left: auto; }

.avatar-sm {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
    border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.06);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--green); font-weight: 800; font-size: 14px; flex: 0 0 32px;
}
.user-cell { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.user-cell:hover { text-decoration: none; }
.user-cell:hover b { color: var(--green); }

.pager { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 28px; }
.pager a {
    min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 9px;
    border: 1px solid var(--border); color: var(--text-muted); font-size: 13px;
}
.pager a:hover { border-color: var(--border-strong); color: var(--text-main); text-decoration: none; }
.pager a.is-active { background: var(--green); border-color: transparent; color: #04140a; font-weight: 700; }

.admin-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 20px; }
.admin-meta > div { min-width: 0; }
.admin-meta .meta-label { display: block; min-width: 0; margin-bottom: 2px; }
.admin-meta .mono { overflow-wrap: anywhere; }
.admin-actions { margin-top: 18px; }
.admin-profile .profile-id h2 { margin: 0 0 4px; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; color: var(--warn); font-size: 13px; }

.admin-tabs { margin: 0 0 16px; }
.status-unverified { color: var(--warn); }

@media (max-width: 640px) {
    .admin-nav { gap: 4px; }
    .admin-nav a { padding: 7px 10px; font-size: 13px; }
    .toolbar-form { align-items: stretch; }
    .toolbar-form .fine { margin-left: 0; }
}

/* ---------- LieCord ---------- */

.cord-hero { max-width: 760px; }
.cord-hero h1 { font-size: clamp(36px, 6.4vw, 62px); }

.cord-account { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cord-account-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 20px; }
.cord-account-main .meta-label { display: block; margin-bottom: 3px; }
.cord-account-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cord-creds {
    border: 1px dashed var(--border-strong);
    border-radius: var(--r-1);
    padding: 14px;
    display: grid;
    gap: 8px;
    background: rgba(34, 197, 94, 0.06);
}
.cord-creds code { font-size: 15px; overflow-wrap: anywhere; }

.cord-progress { padding: 16px 18px; margin-bottom: 14px; display: grid; gap: 10px; }
.cord-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.cord-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.cord-slot { padding: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 170px; }
.cord-slot-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cord-slot-title { margin: 2px 0 0; font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.cord-slot .btn { align-self: flex-start; margin-top: auto; }
.cord-slot-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.cord-slot-free { border-style: dashed; }
.cord-slot-failed { border-color: rgba(248, 113, 113, 0.35); }
.cord-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
}
.cord-badge-free { color: var(--dim); }
.cord-badge-invited { color: #b6f5cb; background: var(--green-soft); }
.cord-badge-reserved { color: var(--warn); border-color: rgba(251, 191, 36, 0.35); }
.cord-badge-wait { color: var(--warn); }
.cord-badge-active { color: var(--green); }
.cord-badge-failed { color: var(--danger); border-color: rgba(248, 113, 113, 0.35); }

.cord-buy {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.cord-buy b { font-size: 17px; }
.cord-buy .err { flex-basis: 100%; }
.cord-login { padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 10px 0 26px; }

.cord-faq { margin-top: 12px; padding: 24px; }
.cord-faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 22px; }
.cord-faq-grid h3 { margin: 0 0 6px; font-size: 15px; }
.cord-faq-grid p { margin: 0; }

.cord-claim { padding: 26px; display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.cord-claim .lead { margin: 0; }
.cord-claim-facts { display: grid; gap: 10px; margin: 0; }
.cord-claim-facts div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 8px; }
.cord-claim-facts dt { color: var(--dim); font-size: 13px; }
.cord-claim-facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.cord-modal {
    border: 1px solid var(--glass-border);
    border-radius: var(--r-2);
    background: #0a120d;
    color: var(--text-main);
    width: min(460px, calc(100% - 32px));
    padding: 0;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.cord-modal::backdrop { background: rgba(2, 6, 4, 0.7); backdrop-filter: blur(6px); }
.cord-modal-inner { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.cord-modal-inner h2 { font-size: 20px; }
.cord-modal-inner .field { margin: 0; }
.cord-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.cord-modal .link-btn { align-self: flex-start; }

@media (max-width: 560px) {
    .cord-buy, .cord-login { align-items: stretch; flex-direction: column; }
    .cord-buy .btn, .cord-login .btn { width: 100%; }
    .cord-account-actions .btn { flex: 1 1 140px; }
}
