﻿:root {
    --bg: #0a0a0a;
    --bg-alt: #111111;
    --surface: #161616;
    --border: #2a2a2a;
    --text: #f5f5f5;
    --muted: #888888;
    --accent: #ffffff;
    --radius: 14px;
    --radius-lg: 18px;
    --transition: 0.25s ease;
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --card-bg: linear-gradient(160deg, rgba(24, 24, 24, 0.98) 0%, rgba(12, 12, 12, 0.99) 100%);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(255, 255, 255, 0.18);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--text); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }

.container { width: min(1140px, 92%); margin: 0 auto; }
.container--narrow { max-width: 420px; }

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 8, 8, 0.88);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}
.header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12) 30%, rgba(255, 255, 255, 0.12) 70%, transparent);
    pointer-events: none;
}

.header .container.header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    min-height: 76px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    flex-shrink: 0;
    color: var(--text);
    opacity: 1;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}
.logo:hover {
    opacity: 0.8;
}
.logo__name {
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.logo__tld {
    font-weight: 600;
    font-size: 1.08rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-left: auto;
}
.nav__links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
}
.nav__divider {
    width: 1px;
    height: 1.75rem;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}
.nav__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.nav__actions .btn--ghost {
    background: transparent;
}
.nav__actions .btn--sm.btn--glow {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--muted);
    opacity: 1;
    border: 1px solid transparent;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}
.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
    opacity: 1;
}
.nav-link--tg:hover {
    background: rgba(42, 171, 238, 0.08);
    border-color: rgba(42, 171, 238, 0.15);
}
.nav-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s ease;
}
.nav-link:hover .nav-link__icon { color: rgba(255, 255, 255, 0.9); }
.nav-link__icon--tg { color: #2aabee; }
.nav-link--tg:hover .nav-link__icon--tg { color: #5bc4ff; }
.nav-link__label { white-space: nowrap; }
.nav-link__badge {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: rgba(42, 171, 238, 0.14);
    color: #7ec8f7;
    white-space: nowrap;
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
}
.icon {
    display: block;
    flex-shrink: 0;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.45rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.burger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}
.burger__line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger.is-active .burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger.is-active .burger__line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.burger.is-active .burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
    opacity: 1;
}
.btn--outline {
    background: transparent;
    color: var(--text);
}
.btn--outline:hover { background: var(--surface); }
.btn--ghost {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
}
.btn--ghost:hover { color: var(--text); background: var(--surface); }
.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn--icon span { white-space: nowrap; }
.btn--icon .icon { opacity: 0.9; }
.btn--block { width: 100%; }
.btn--lg { padding: 0.9rem 1.75rem; font-size: 0.95rem; }
.btn--glow {
    box-shadow: 0 0 0 1px #fff, 0 4px 24px rgba(255,255,255,0.15);
}
.btn--glow:hover {
    box-shadow: 0 0 0 1px #fff, 0 8px 32px rgba(255,255,255,0.22);
}

/* ─── Card system ─── */
.card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    transition:
        border-color 0.35s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    pointer-events: none;
    z-index: 1;
}
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.04), transparent 55%);
    pointer-events: none;
}
.card--interactive:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}
.card__padding {
    padding: 1.75rem;
    position: relative;
    z-index: 2;
}
.card > h1,
.card > h2,
.card > h3,
.card > p,
.card > form,
.card > dl,
.card > .buy-form,
.card > .proxy-actions,
.card > .muted:not(.card__foot *) {
    position: relative;
    z-index: 2;
}
.card > h2,
.card > h3,
.card > h1 { padding: 1.75rem 1.75rem 0; margin-bottom: 0; font-size: 1.05rem; font-weight: 600; }
.card > h2 + p,
.card > h3 + p { padding: 0.35rem 1.75rem 0; }
.card > form,
.card > .form-inline,
.card > .buy-form,
.card > dl,
.card > p.muted,
.card > .proxy-details { padding-left: 1.75rem; padding-right: 1.75rem; }
.card > form:last-child,
.card > .buy-form:last-of-type,
.card > .proxy-actions:last-child { padding-bottom: 1.75rem; }
.card > .buy-form { margin-left: 1.75rem; margin-right: 1.75rem; padding-left: 0; padding-right: 0; }
.card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 2;
}
.card__head h3 { font-size: 1.05rem; font-weight: 600; margin: 0; padding: 0; }
.card__body {
    padding: 1.5rem 1.75rem;
    position: relative;
    z-index: 2;
}
.card__foot {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}
.card__label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
.card__price { font-size: 2rem; font-weight: 700; margin: 0.5rem 0; letter-spacing: -0.03em; }
.card__meta { color: var(--muted); font-size: 0.85rem; }

/* Status pill */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.pill::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}
.pill--active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}
.pill--active::before { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.pill--expired { color: var(--muted); border-color: var(--border); }
.pill--pending { color: #aaa; border-color: #333; }
.pill--pending::before { background: #fbbf24; animation: pulse-dot 1.5s ease infinite; }
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Data rows inside cards */
.data-rows { margin: 0; }
.data-rows dt {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 1rem;
}
.data-rows dt:first-child { margin-top: 0; }
.data-rows dd { margin: 0.35rem 0 0; }
.data-rows dd code {
    display: block;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.78rem;
    word-break: break-all;
    line-height: 1.45;
}
.data-rows dd .btn { margin-top: 0.5rem; }

/* Card variants */
.card--stat {
    padding: 1.5rem 1.75rem;
    text-align: left;
}
.card--stat:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}
.card--stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-top: 0.5rem;
    line-height: 1.1;
}
.card--stat .stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.card--panel {
    padding: 1.75rem;
}
.card--panel h2 {
    padding: 0 !important;
    margin-bottom: 1.25rem !important;
    font-size: 1rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card--panel h2::before {
    content: '';
    width: 3px;
    height: 1em;
    background: #fff;
    border-radius: 2px;
    flex-shrink: 0;
}
.card--panel > .form-inline,
.card--panel > .buy-form {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}
.card--panel > .form-inline { padding-bottom: 0; }

.card--proxy { margin-bottom: 1rem; }
.card--proxy .card__head { padding-top: 1.35rem; }
.card--empty {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--muted);
}

.card--message {
    padding: 2.5rem 2rem;
    text-align: center;
}
.card--message h1 { padding: 0 !important; margin-bottom: 0.75rem !important; font-size: 1.5rem !important; }
.card--message p { padding: 0 !important; color: var(--muted); margin-bottom: 1.5rem; }
.card--message .btn { margin-top: 0.5rem; }
.card__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.35rem;
    font-weight: 700;
    border: 1px solid var(--border);
}
.card__icon--success {
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.35);
    color: #4ade80;
}
.card__icon--error {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.35);
    color: #f87171;
}
.card--balance {
    padding: 1rem 1.5rem;
    min-width: 160px;
}
.card--balance strong { font-size: 1.5rem; }
.section__title--left { text-align: left; }

.buy-form {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 0.5rem 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.buy-form:last-child { border: none; margin-bottom: 0; padding-bottom: 0; }
.buy-form__label { font-weight: 500; }
.buy-form__price {
    font-size: 0.85rem;
    color: var(--muted);
    white-space: nowrap;
}
@media (max-width: 600px) {
    .buy-form { grid-template-columns: 1fr 1fr; }
    .buy-form .btn { grid-column: 1 / -1; }
}

/* Sections (база; детали лендинга — home.css) */
.section {
    padding: clamp(3.25rem, 7vw, 5rem) 0;
    scroll-margin-top: 88px;
}
.section--alt {
    background: var(--bg-alt);
    border-block: 1px solid rgba(255, 255, 255, 0.06);
}
.section__title {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0;
    text-align: center;
}


.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* FAQ */
.faq { max-width: 700px; margin: 0 auto; }
.faq__item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq__item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: '+';
    float: right;
    font-weight: 300;
    color: var(--muted);
    transition: transform var(--transition);
}
.faq__item[open] summary::after { content: '−'; }
.faq__item[open] summary { border-bottom: 1px solid var(--border); }
.faq__item p { padding: 1rem 1.25rem; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* Forms */
.field { display: block; margin-bottom: 1rem; }
.field > .field__label,
.field > span:not(.field__wrap) {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
.field input, input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
}
.field input:focus, input:focus, select:focus {
    outline: none;
    border-color: #666;
}
.form-inline { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.form-inline input { flex: 1; min-width: 120px; }
.inline-form { display: inline-flex; gap: 0.25rem; align-items: center; }

/* Auth pages (login, register) */
.auth-login {
    position: relative;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem 3.5rem;
}
.auth-login__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 255, 255, 0.06), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 50%, rgba(90, 130, 255, 0.05), transparent 50%),
        linear-gradient(180deg, #0a0a0a 0%, #080808 100%);
    pointer-events: none;
}
.auth-login__backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    opacity: 0.35;
}
.auth-login__frame {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
}
.auth-login__panel {
    padding: 2rem 2rem 1.75rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, rgba(22, 22, 22, 0.98) 0%, rgba(10, 10, 10, 0.99) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 32px 64px rgba(0, 0, 0, 0.55);
}
.auth-login__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}
.auth-login__home {
    font-size: 0.8rem;
    color: var(--muted);
    opacity: 1;
    transition: color 0.2s ease;
}
.auth-login__home:hover { color: var(--text); opacity: 1; }
.auth-login__brand {
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
    opacity: 1;
    text-decoration: none;
}
.auth-login__brand span { color: var(--muted); }
.auth-login__brand:hover { opacity: 0.85; }
.auth-login__intro { margin-bottom: 1.75rem; }
.auth-login__intro h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.auth-login__intro p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.55;
}
.auth-login__form { display: flex; flex-direction: column; gap: 1.15rem; }
.auth-field { display: flex; flex-direction: column; gap: 0.45rem; }
.auth-field__label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #aaa;
}
.auth-field__box {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.auth-field__box:focus-within {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}
.auth-field__icon {
    display: inline-flex;
    padding: 0 0 0 1rem;
    color: #555;
    flex-shrink: 0;
    transition: color 0.2s ease;
}
.auth-field__box:focus-within .auth-field__icon { color: #999; }
.auth-field__input {
    flex: 1;
    min-width: 0;
    padding: 0.9rem 0.75rem 0.9rem 0.25rem;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    border-radius: 0;
}
.auth-field__input::placeholder { color: #555; }
.auth-field__input:focus { outline: none; }
.auth-field__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.85rem;
    border: none;
    background: none;
    color: #555;
    cursor: pointer;
    transition: color 0.2s ease;
}
.auth-field__toggle:hover { color: var(--text); }
.auth-login__submit {
    margin-top: 0.35rem;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    font-size: 1rem;
    border-radius: 12px;
}
.auth-login__footer {
    margin-top: 1.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.auth-login__footer-primary {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem 1.1rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
}
.auth-login__footer-text {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--muted);
    text-align: center;
}
.auth-login__footer-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.72rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.auth-login__footer-action:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    opacity: 1;
}
.auth-login__footer-action .icon {
    flex-shrink: 0;
    opacity: 0.88;
}
.auth-login__footer-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    align-self: center;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}
.auth-login__footer-secondary:hover {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    opacity: 1;
}
.auth-login__footer-secondary .icon {
    flex-shrink: 0;
    opacity: 0.75;
}

.auth-field__hint {
    font-size: 0.72rem;
    color: #555;
    margin-top: 0.35rem;
}
.auth-field__rules {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.auth-field__rules li {
    font-size: 0.7rem;
    color: #555;
    padding-left: 1.1rem;
    position: relative;
    line-height: 1.4;
}
.auth-field__rules li::before {
    content: '○';
    position: absolute;
    left: 0;
    color: #444;
    font-size: 0.65rem;
}
.auth-field__rules li.is-ok {
    color: #8a8;
}
.auth-field__rules li.is-ok::before {
    content: '✓';
    color: #6a6;
}
.auth-field--invalid .auth-field__box {
    border-color: rgba(255, 100, 100, 0.45);
}
.auth-field--invalid .auth-field__label {
    color: #c88;
}
.auth-login--register .auth-login__frame {
    width: min(100%, 520px);
}
.auth-login__steps {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
    padding: 0;
}
.auth-login__steps li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.4rem;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--muted);
    text-align: center;
    line-height: 1.3;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.auth-login__steps li:first-child {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
}
.auth-login__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}
.auth-login__steps li:first-child .auth-login__step-num {
    background: #fff;
    color: #0a0a0a;
}
.auth-login__agreements {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.auth-login__legal {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.55;
    color: #777;
    text-align: left;
}
.auth-login__legal a {
    color: #aaa;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 1;
}
.auth-login__legal a:hover { color: var(--text); opacity: 1; }
.auth-login--register .legal-notice--auth {
    margin: 0.65rem 0 0;
    padding: 0;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.68rem;
    color: #555;
}

.page-auth .header {
    border-bottom-color: transparent;
    background: transparent;
    backdrop-filter: none;
}
.page-auth .header--scrolled,
.page-auth .header {
    background: rgba(8, 8, 8, 0.6);
    backdrop-filter: blur(12px);
}

@media (max-width: 480px) {
    .auth-login__panel { padding: 1.5rem 1.25rem 1.35rem; border-radius: 16px; }
    .auth-login__intro h1 { font-size: 1.5rem; }
    .auth-login__top { margin-bottom: 1.5rem; }
    .auth-login__steps { flex-direction: column; }
    .auth-login__steps li {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 0.5rem 0.75rem;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal--delay { --reveal-delay: 0.12s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.dashboard-header h1 { margin-bottom: 0.25rem; }
.balance { color: var(--muted); }
.balance strong { color: var(--text); font-size: 1.25rem; }
.proxy-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.proxy-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.card__foot .proxy-actions { margin: 0; }
.card__foot .buy-form {
    margin: 0 0 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
}
.card__foot .buy-form:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.muted { color: var(--muted); }

/* Alerts (кабинет, регистрация, админка, оплата) */
.site-alerts {
    margin: 1rem auto 0;
    max-width: var(--container, 1120px);
}

.site-alerts .cabinet-alerts {
    margin-bottom: 0;
}

.cabinet-alerts {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.alert.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.alert__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9px;
    flex-shrink: 0;
}

.alert__body { flex: 1; min-width: 0; }

.alert__title {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.alert__text {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #aaa;
}

.alert__link {
    display: inline-block;
    margin-top: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.alert__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #666;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s ease, background 0.15s ease;
}

.alert__close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.alert--success {
    border-color: rgba(74, 222, 128, 0.28);
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.alert--success .alert__icon {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.alert--success .alert__title { color: #b8f0c8; }
.alert--success .alert__text { color: #8fc9a0; }

.alert--error {
    border-color: rgba(248, 113, 113, 0.3);
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.alert--error .alert__icon {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

.alert--error .alert__title { color: #f0b8b8; }
.alert--error .alert__text { color: #c99a9a; }

.alert--warning {
    border-color: rgba(251, 191, 36, 0.3);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.alert--warning .alert__icon {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.alert--warning .alert__title { color: #f0dfa8; }
.alert--warning .alert__text { color: #b8a87a; }

.alert--info {
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.alert--info .alert__icon {
    background: rgba(255, 255, 255, 0.08);
    color: #bbb;
}

.alert--info .alert__title { color: #ddd; }

.alert--telegram {
    border-color: rgba(42, 171, 238, 0.35);
    background: linear-gradient(135deg, rgba(42, 171, 238, 0.12) 0%, rgba(0, 0, 0, 0.2) 100%);
    box-shadow: 0 6px 20px rgba(42, 171, 238, 0.08);
}

.alert--telegram .alert__icon {
    background: rgba(42, 171, 238, 0.2);
    color: #5bc4ff;
}

.alert--telegram .alert__title { color: #9edcff; }
.alert--telegram .alert__text { color: #7eb8d4; }
.alert--telegram .alert__link { color: #5bc4ff; }
.alert--telegram .alert__link:hover { color: #9edcff; opacity: 1; }

.page-auth .site-alerts {
    max-width: 480px;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.page-auth .site-alerts + #main-content .auth-login__panel {
    margin-top: 0;
}

/* Telegram channel */
.tg-channel {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: inherit;
    transition: color var(--transition), opacity var(--transition);
}
.tg-channel:hover { color: var(--text); }
.tg-channel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2aabee;
    flex-shrink: 0;
}
.tg-channel__icon--sm svg { display: block; }
.tg-channel--link {
    font-size: 0.88rem;
    color: var(--muted);
}
.tg-channel--link:hover { color: #2aabee; }
.tg-channel__badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(42, 171, 238, 0.12);
    color: #7ec8f7;
    font-weight: 500;
    white-space: nowrap;
}
.tg-channel--compact {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.35rem;
}
.tg-channel--compact:hover { color: #2aabee; }
.tg-channel__count { color: #7ec8f7; }
.dashboard__tg { margin-top: 0.5rem; }
/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    padding: 2.5rem 0 2rem;
}
.footer__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__logo {
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    opacity: 1;
    transition: opacity var(--transition);
}
.footer__logo:hover { opacity: 0.7; }
.footer__tagline {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}
.footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.5rem;
}
.footer__nav a {
    font-size: 0.85rem;
    color: var(--muted);
    opacity: 1;
    transition: color var(--transition);
}
.footer__nav a:hover {
    color: var(--text);
    opacity: 1;
}
.footer__legal {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.footer__docs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin-bottom: 1rem;
}
.footer__docs a {
    font-size: 0.78rem;
    color: var(--muted);
    transition: color var(--transition);
}
.footer__docs a:hover {
    color: var(--text);
}
@media (max-width: 600px) {
    .footer__docs {
        flex-direction: column;
        align-items: center;
        gap: 0.65rem;
    }
}
.legal-notice {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.55;
    color: #666;
    max-width: 52rem;
}
.legal-notice--footer {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.legal-notice--auth {
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.7rem;
    color: #777;
}
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1.25rem;
}
.footer__copy {
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 0.04em;
}

@media (max-width: 600px) {
    .footer__top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer__nav {
        justify-content: center;
        gap: 0.5rem 1.25rem;
    }
}

main { flex: 1; }

@media (max-width: 960px) {
    .nav__divider { display: none; }
    .nav-link__badge { display: none; }
}

@media (max-width: 768px) {
    .header .container.header__inner {
        min-height: 64px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .logo__name,
    .logo__tld {
        font-size: 0.82rem;
        letter-spacing: 0.1em;
    }
    .nav__actions {
        background: transparent;
        border: none;
        padding: 0;
    }
    .burger { display: flex; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        padding: 0.75rem;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    }
    .nav.open { display: flex; }
    .nav__links,
    .nav__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.25rem;
    }
    .nav__actions {
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .nav-link {
        width: 100%;
        padding: 0.65rem 0.85rem;
    }
    .nav-link__badge { display: inline-block; max-width: none; }
    .nav .btn {
        width: 100%;
        justify-content: center;
    }
    .nav .inline-form { width: 100%; }
    .nav .inline-form .btn { width: 100%; }
    .header { position: sticky; }
}

/* 404 */
.page-404 main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.not-found {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    overflow: hidden;
}

.not-found__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
        radial-gradient(ellipse 45% 40% at 85% 75%, rgba(42, 171, 238, 0.06), transparent 55%),
        radial-gradient(ellipse 40% 35% at 10% 80%, rgba(255, 255, 255, 0.03), transparent 50%);
}

.not-found__inner {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
}

.not-found__hero {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 2.75rem);
}

.not-found__eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
}

.not-found__code-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.not-found__code {
    display: block;
    font-size: clamp(4.5rem, 18vw, 7.5rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.35) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    user-select: none;
}

.not-found__code-glow {
    position: absolute;
    left: 50%;
    top: 55%;
    width: 70%;
    height: 40%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.12), transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

.not-found__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.not-found__lead {
    margin: 0 auto 1.75rem;
    max-width: 28rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--muted);
}

.not-found__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.not-found__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.not-found__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1.15rem 1.2rem;
    text-align: left;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.not-found__card:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.not-found__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.15rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.not-found__card-icon--tg {
    color: #2aabee;
    border-color: rgba(42, 171, 238, 0.25);
    background: rgba(42, 171, 238, 0.08);
}

.not-found__card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.not-found__card-text {
    font-size: 0.8rem;
    line-height: 1.4;
}

@media (max-width: 520px) {
    .not-found__grid {
        grid-template-columns: 1fr;
    }

    .not-found__actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .not-found__card:hover {
        transform: none;
    }
}
