:root {
    color-scheme: dark;
    --bg: #070b1a;
    --card: #111a36;
    --muted: #99a5cb;
    --text: #edf2ff;
    --accent: #6e8dff;
    --accent-hover: #5b7dfa;
    --danger: #ff6b6b;
    --success: #52d38a;
    --border: #2a3764;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(110, 141, 255, 0.32), transparent 55%),
        radial-gradient(1000px 500px at 90% 10%, rgba(43, 213, 255, 0.2), transparent 50%),
        radial-gradient(900px 500px at 70% 100%, rgba(82, 211, 138, 0.14), transparent 45%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 0;
    line-height: 1.45;
}

body.page-registration {
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(110, 141, 255, 0.32), transparent 55%),
        var(--bg);
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.brand {
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* PNG wordmark (assets/img/text_line.png); при ошибке загрузки — текст из перевода site.brand */
.brand--wordmark {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    max-width: min(100%, min(280px, 72vw));
}

.brand__wordmark-img {
    display: block;
    width: auto;
    height: clamp(34px, 5.5vw, 46px);
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.brand__wordmark-fallback {
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.1;
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 380px) {
    .brand__wordmark-img {
        height: clamp(30px, 8vw, 38px);
    }

    .brand__wordmark-fallback {
        font-size: clamp(1.15rem, 5vw, 1.45rem);
    }
}

.badge {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--muted);
    font-size: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    align-items: stretch;
    padding: 16px 0 26px;
}

.hero.hero--authed {
    align-items: stretch;
}

@media (min-width: 981px) {
    .hero.hero--authed {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }
}

.card.card--compact {
    max-width: 380px;
    width: 100%;
    justify-self: end;
    padding: 22px 24px;
    align-self: start;
}

.hero.hero--authed .card.card--compact {
    max-width: none;
    justify-self: stretch;
    align-self: stretch;
    padding: 28px;
}

@media (max-width: 980px) {
    .card.card--compact {
        justify-self: stretch;
        max-width: none;
    }
}

.profile-compact .section-title {
    margin-bottom: 8px;
    font-size: 18px;
}

.profile-compact-greet {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 10px;
    line-height: 1.45;
}

.profile-compact-hint {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
}

.profile-compact-email {
    font-size: 14px;
    color: #d4ddfa;
    margin: 0 0 16px;
    word-break: break-all;
    line-height: 1.35;
}

.profile-compact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-compact-actions .btn {
    width: 100%;
    margin: 0;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero p {
    margin: 0 0 18px;
    color: var(--muted);
    max-width: 650px;
}

.hero-card,
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.hero-points {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-point {
    border: 1px solid var(--border);
    color: #d4ddfa;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.02);
}

.hero-point--hint {
    cursor: help;
    border-style: dashed;
    outline: none;
}

.hero-point--hint:focus-visible {
    box-shadow: 0 0 0 2px rgba(110, 141, 255, 0.45);
}

.hero-points--guest .hero-point {
    max-width: 100%;
}

.section-title {
    margin: 0 0 14px;
    font-size: 20px;
    letter-spacing: -0.01em;
}

.auth-card .section-title {
    margin-bottom: 10px;
}

.auth-card .subtitle {
    margin-bottom: 16px;
}

.auth-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 2px;
}

.tg-auth-block {
    width: 100%;
}

.small-label {
    margin: 0 0 8px;
    font-size: 13px;
    letter-spacing: 0.01em;
    color: var(--muted);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0;
    color: var(--muted);
    font-size: 13px;
    user-select: none;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    flex-shrink: 0;
}

.tg-auth-fallback {
    width: 100%;
}

.tg-auth-fallback .btn-telegram {
    margin-top: 0;
}

.email-auth-form {
    width: 100%;
}

.email-auth-form .input-group--auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-card .email-auth-form .input-group--auth input {
    border-radius: 12px;
    min-height: 40px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(42, 55, 100, 0.95);
}

.auth-card .email-auth-form .input-group--auth input::placeholder {
    color: rgba(153, 165, 203, 0.78);
}

.email-auth-form .btn-auth-main {
    width: 100%;
    margin-top: 12px;
}

.hero:not(.hero--authed) .email-auth-form .btn-auth-main {
    background: linear-gradient(180deg, #8ea8ff 0%, var(--accent) 50%, #4f6be0 100%);
    box-shadow:
        0 6px 26px rgba(106, 140, 255, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.14) inset;
    font-size: 14px;
    min-height: 40px;
    height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero:not(.hero--authed) .email-auth-form .btn-auth-main:hover {
    filter: brightness(1.07);
}

.hero:not(.hero--authed) .tg-auth-block .telegram-widget-wrap {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(34, 158, 217, 0.5);
    background: rgba(34, 158, 217, 0.1);
    box-shadow: 0 4px 20px rgba(34, 158, 217, 0.22);
}

.hero:not(.hero--authed) .tg-auth-block .telegram-widget-wrap iframe {
    border-radius: 12px !important;
}

.hero:not(.hero--authed) .hero-point {
    opacity: 0.86;
}

.hero:not(.hero--authed) .hero-card > p {
    opacity: 0.93;
}

.btn-telegram {
    width: 100%;
    margin-top: 4px;
    border: 0;
    border-radius: 10px;
    padding: 12px 14px;
    background: #229ed9;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.72;
}

.btn-telegram:not(:disabled) {
    cursor: pointer;
    opacity: 1;
}

.btn-telegram:not(:disabled):hover {
    filter: brightness(1.06);
}

.telegram-widget-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.telegram-widget-wrap iframe {
    border-radius: 10px !important;
    vertical-align: middle;
}

.telegram-widget-wrap[data-tg-radius='0'] iframe {
    border-radius: 0 !important;
}

.telegram-widget-wrap--settings {
    margin-top: 10px;
}

.telegram-widget-wrap--skipped {
    display: none;
}

.telegram-callback-form {
    display: none;
}

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

label {
    display: block;
    font-size: 13px;
    margin: 0 0 8px;
    color: #c9d2ee;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: #0f1630;
    color: var(--text);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
    font-family: inherit;
    line-height: 1.45;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--accent);
    vertical-align: top;
}

textarea {
    min-height: 140px;
    resize: vertical;
    vertical-align: top;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus {
    border-color: var(--accent);
}

.field {
    margin-bottom: 16px;
}

.btn {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 12px 14px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn:hover {
    background: var(--accent-hover);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    width: auto;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Текущий тариф на плитке: как «Продлить», но неактивно */
.btn.btn-tariff-active:disabled {
    background: linear-gradient(180deg, #fde047 0%, #eab308 100%);
    border: 1px solid rgba(234, 179, 8, 0.85);
    color: #1c1504;
    opacity: 1;
    cursor: default;
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.28);
}

.btn.btn-tariff-active:disabled:hover {
    background: linear-gradient(180deg, #fde047 0%, #eab308 100%);
    filter: none;
}

.btn-danger {
    background: var(--danger);
    border: 1px solid #ff5252;
    color: #fff;
    font-weight: 600;
}

.btn-danger:hover {
    background: #ff5252;
    filter: brightness(1.05);
}

.btn-renew {
    background: linear-gradient(180deg, #fde047 0%, #eab308 100%);
    border: 1px solid rgba(234, 179, 8, 0.85);
    color: #1c1504;
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.28);
}

.btn-renew:hover {
    background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
    filter: brightness(1.02);
}

.profile-section--danger-zone {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 107, 107, 0.35);
}

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

.nav-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #c9d2ee;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-contact-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.logout-form {
    margin: 0;
}

.nav-logout-btn {
    padding: 8px 16px;
}

.profile-meta--tight {
    margin-top: 0;
}

.profile-email-row--label {
    margin-bottom: 6px;
}

.profile-email-row--value {
    margin-bottom: 12px;
    word-break: break-all;
}

.profile-email-row--spaced {
    margin-bottom: 18px;
}

.profile-email-row--login-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    margin-bottom: 18px;
}

.profile-email-row--login-line .profile-email-row__login-value {
    color: #dfe7ff;
    font-weight: 500;
    word-break: break-all;
}

.profile-badges-row {
    margin-bottom: 14px;
}

.badge-telegram {
    margin-left: 8px;
    border-color: rgba(34, 158, 217, 0.5);
    color: #6ecfff;
}

.profile-section--first {
    margin-top: 0;
    padding-top: 16px;
}

.profile-section--flush {
    margin-top: 0;
    padding-top: 0;
    border: 0;
}

.profile-section--bordered {
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.btn-block {
    width: 100%;
}

/* Ссылки с классом .btn: как у <button>, иначе width и высота строки в карточках не совпадают */
a.btn,
a.btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-decoration: none;
}

.form-stack {
    margin-top: 10px;
}

.form-stack--notify-channel .btn-block {
    margin-top: 4px;
}

.notify-channel-group {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.notify-channel-segment {
    flex: 1;
    min-width: min(140px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition:
        border-color 0.15s,
        background 0.15s,
        box-shadow 0.15s;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.notify-channel-segment input[type='radio'] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.notify-channel-segment:has(input:checked):not(.notify-channel-segment--disabled) {
    border-color: rgba(110, 141, 255, 0.85);
    background: rgba(110, 141, 255, 0.14);
    box-shadow: 0 0 0 1px rgba(110, 141, 255, 0.2);
}

.notify-channel-segment:hover:not(.notify-channel-segment--disabled) {
    border-color: rgba(110, 141, 255, 0.45);
    background: rgba(255, 255, 255, 0.07);
}

.notify-channel-segment--disabled {
    opacity: 0.52;
    cursor: not-allowed;
}

.notify-channel-segment--disabled input {
    cursor: not-allowed;
}

.notify-channel-hints {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted);
}

.alert--field {
    margin-bottom: 12px;
}

.profile-meta--after-sub {
    margin-top: 14px;
    font-size: 13px;
}

.profile-meta--note {
    margin-bottom: 12px;
    font-size: 12px;
}

.profile-meta--block {
    margin-bottom: 12px;
}

.locale-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}

.locale-switcher form {
    margin: 0;
}

.locale-switcher .btn-lang {
    width: auto;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: #c9d2ee;
}

.locale-switcher .btn-lang:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.locale-switcher .btn-lang.is-current {
    border-color: var(--accent);
    color: #fff;
    background: rgba(110, 141, 255, 0.2);
}

.alert {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 14px;
}

.alert-success {
    background: rgba(82, 211, 138, 0.12);
    color: var(--success);
    border: 1px solid rgba(82, 211, 138, 0.35);
}

.alert-error {
    background: rgba(255, 107, 107, 0.12);
    color: var(--danger);
    border: 1px solid rgba(255, 107, 107, 0.35);
}

.alert-info {
    border: 1px solid rgba(110, 141, 255, 0.35);
    background: rgba(110, 141, 255, 0.1);
    color: #d4ddfa;
}

.profile-dash {
    text-align: left;
}

.profile-meta {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 16px;
    line-height: 1.5;
}

.profile-email-row {
    font-size: 15px;
    margin-bottom: 8px;
    word-break: break-all;
}

.profile-email-row strong {
    color: #c9d2ee;
    font-weight: 600;
}

.badge-ok {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(82, 211, 138, 0.4);
    color: var(--success);
    margin-left: 8px;
    vertical-align: middle;
}

.badge-warn {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(230, 200, 108, 0.45);
    color: #e6c86c;
    margin-left: 8px;
    vertical-align: middle;
}

.profile-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.profile-section h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #c9d2ee;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    align-items: center;
}

.btn-row .btn {
    width: auto;
    flex: 0 0 auto;
}

.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 24px 20px;
    max-width: min(440px, 92vw);
    width: 100%;
    max-height: min(88vh, 720px);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.modal-panel--wide {
    max-width: min(600px, 92vw);
    /* Настройки: чуть выше, чтобы типовой контент без вертикальной прокрутки */
    max-height: min(94vh, 920px);
}

.modal-panel--profile {
    max-width: min(520px, 94vw);
    /* Выше базового .modal-panel (88vh / 720px), вровень с окном настроек */
    max-height: min(94vh, 920px);
}

.modal-panel--contact {
    max-width: min(520px, 94vw);
    max-height: min(94vh, 920px);
    min-width: 0;
    overflow-x: hidden;
}

.contact-privacy-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.45;
    color: var(--muted);
    cursor: pointer;
}

.contact-privacy-label > span {
    flex: 1 1 0%;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.contact-privacy-label a {
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: inherit;
    line-height: inherit;
}

.contact-privacy-label input {
    margin-top: 4px;
    flex-shrink: 0;
}

.contact-privacy-field {
    margin-bottom: 14px;
}

#contact-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-profile-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 12px;
    margin-bottom: 14px;
    padding-right: 36px;
}

.modal-profile-header__name {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    text-align: right;
    font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #b9c8ec;
    line-height: 1.35;
    word-break: break-all;
}

@media (max-width: 420px) {
    .modal-profile-header {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-profile-header__name {
        text-align: left;
    }
}

.modal-panel h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.modal-panel .modal-profile-header h3 {
    margin-bottom: 0;
}

.modal-panel p {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.modal-close:hover {
    color: var(--text);
}

.sub-kv {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    margin: 6px 0;
    color: #d4ddfa;
}

.sub-kv span:first-child {
    color: var(--muted);
}

.profile-sub-add {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.profile-sub-add__title {
    margin: 0 0 0.5rem;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.profile-sub-add--checkout-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.profile-sub-add--checkout-cta > .btn {
    width: 100%;
    box-sizing: border-box;
}

.profile-checkout-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    align-items: stretch;
}

.profile-checkout-actions--single {
    grid-template-columns: 1fr;
}

.profile-checkout-actions > form.profile-checkout-actions__cell {
    display: block;
    width: 100%;
    margin: 0;
    min-width: 0;
}

/* Одна высота/ширина у «Продлить» и «Изменить тариф» (без flex-растягивания разной высоты) */
.profile-checkout-actions .btn.btn-renew,
.profile-checkout-actions > button.btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    min-height: 48px;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.profile-checkout-actions > button.btn.js-profile-go-tariffs {
    background: var(--accent);
    color: #fff;
    border: 1px solid rgba(110, 141, 255, 0.65);
}

.profile-checkout-actions > button.btn.js-profile-go-tariffs:hover {
    background: var(--accent-hover);
    border-color: rgba(91, 125, 250, 0.85);
}

/* Модалка профиля: одна высота у «Просмотр», улучшить/заказать, активно, продлить */
#profile-modal .profile-sub-add--checkout-cta .btn,
#profile-modal .profile-sub-add--checkout-cta a.btn {
    min-height: 48px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

#profile-modal .profile-sub-add--checkout-cta a.btn {
    width: 100%;
}

.device-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.device-row__main {
    min-width: 0;
}

.device-row__name {
    font-size: 13px;
    color: #dfe7ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.device-row__activity {
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}

.device-row__delete-form {
    margin: 0;
    flex-shrink: 0;
}

.device-row__delete {
    border: 0;
    background: transparent;
    color: #ff5c6f;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.device-row__delete:hover {
    color: #ff8693;
}

.grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 22px;
}

.tile {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.tile h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

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

.pricing {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    margin-bottom: 22px;
}

.plan {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 16px 16px;
    background: rgba(255, 255, 255, 0.02);
}

.plan h3 {
    flex-shrink: 0;
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.plan-price-primary {
    flex-shrink: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plan-price-primary__hint {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.plan-price-primary__value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.plan-prices-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 14px;
}

.plan-price-secondary-hint {
    margin: 0 0 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.tariff-price-row--primary .tariff-price-value {
    font-weight: 600;
    color: var(--text);
}

/* Описание тарифа: спокойный «текстовый» ритм, отличается от блока цен */
.plan-desc {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.plan-desc:empty {
    display: none;
}

.plan-tagline,
.plan-features {
    font-family: Georgia, 'Liberation Serif', 'Times New Roman', Times, serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.plan-tagline {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.plan-features {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.5;
}

.plan-features li {
    margin: 0 0 6px;
}

.plan-features li:last-child {
    margin-bottom: 0;
}

.plan .plan-prices-footer ul.tariff-prices {
    padding-left: 0;
}

.pricing .plan .form-stack {
    width: 100%;
    flex-shrink: 0;
    align-self: stretch;
}

.faq {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
}

.faq-item strong {
    display: block;
    margin-bottom: 6px;
}

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

.countries-section {
    margin-bottom: 22px;
}

.countries-section .section-title {
    text-align: center;
}

.section-lead {
    margin: -8px auto 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    max-width: 640px;
}

.section-lead--center {
    text-align: center;
}

.locations-table-wrap {
    overflow-x: auto;
    width: 100%;
}

.locations-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.locations-table th,
.locations-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

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

.locations-table th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-weight: 600;
}

.locations-table td:first-child {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.locations-table td:last-child {
    color: var(--muted);
}

.tariff-prices {
    margin: 0;
    padding: 12px 0 0;
    list-style: none;
    font-size: 14px;
    border-top: 1px solid var(--border);
    font-family: ui-monospace, 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
    font-variant-numeric: tabular-nums;
}

.tariff-prices li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    border-top: 1px solid var(--border);
}

.tariff-prices li:first-child {
    border-top: 0;
    padding-top: 0;
}

.tariff-price-label {
    color: var(--muted);
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
    font-family:
        'Segoe UI',
        system-ui,
        -apple-system,
        sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tariff-price-value {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
}

.tariff-price-row--crypto .tariff-price-label--crypto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
    color: var(--text);
}

.crypto-hint-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.crypto-hint-btn {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    flex-shrink: 0;
}

.crypto-hint-btn:hover,
.crypto-hint-btn:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
    outline: none;
}

.crypto-hint-tooltip {
    display: none;
    position: absolute;
    z-index: 40;
    left: 0;
    bottom: calc(100% + 8px);
    min-width: 220px;
    max-width: min(320px, 92vw);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface, #1a1d26);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    font-size: 12px;
    font-weight: 400;
    font-family:
        'Segoe UI',
        system-ui,
        -apple-system,
        sans-serif;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text);
}

.crypto-hint-tooltip-title {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.crypto-hint-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.crypto-hint-list li.crypto-hint-row {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 8px 10px;
    padding: 6px 0;
    border-top: 1px solid var(--border);
    font-variant-numeric: tabular-nums;
}

.crypto-hint-list li.crypto-hint-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.crypto-hint-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.crypto-hint-icon-spacer {
    width: 22px;
    height: 22px;
    display: block;
}

.crypto-hint-name {
    font-family:
        'Segoe UI',
        system-ui,
        -apple-system,
        sans-serif;
    font-size: 12px;
    color: var(--text);
    min-width: 0;
}

.crypto-hint-row .crypto-hint-amt {
    font-family: ui-monospace, 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}

.crypto-hint-foot {
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--muted);
    line-height: 1.35;
}

.crypto-hint-foot--fee {
    margin-top: 6px;
    padding-top: 0;
    border-top: 0;
}

.crypto-hint-wrap:hover .crypto-hint-tooltip,
.crypto-hint-wrap:focus-within .crypto-hint-tooltip {
    display: block;
}

@media (hover: none) {
    .crypto-hint-tooltip {
        left: auto;
        right: 0;
    }
}

.speed-section {
    margin-bottom: 22px;
}

.speed-ping-disclaimer {
    margin: 12px auto 0;
    max-width: 720px;
    padding: 0 6px;
    text-align: center;
    font-size: 11px;
    line-height: 1.45;
    color: var(--muted);
}

.speed-section .section-title {
    text-align: center;
}

.speed-section--strip {
    margin-bottom: 18px;
}

.speed-section--strip .section-title {
    font-size: 18px;
    margin-bottom: 12px;
}

.speed-strip {
    position: relative;
    margin: 0 -8px;
    padding: 0 8px;
}

.speed-strip__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    outline: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.speed-strip__viewport.speed-strip__viewport--dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.speed-strip__viewport::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.speed-strip__viewport:focus-visible {
    box-shadow: 0 0 0 2px rgba(106, 140, 255, 0.45);
    border-radius: 12px;
}

.speed-strip__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    width: max-content;
    padding: 2px 0;
}

.speed-strip__chunk {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
}

.speed-strip__card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 170px;
    min-width: 170px;
    max-width: 170px;
}

.speed-strip__card-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 6px 10px 7px;
    background: rgba(255, 255, 255, 0.025);
    box-sizing: border-box;
    gap: 0;
}

.speed-strip__head {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.speed-strip__head-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.speed-strip__code {
    margin-top: 0;
    padding-top: 1px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
    font-family: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, monospace;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.speed-strip__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.speed-strip__dot--ok {
    background: #34d399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.85);
}

.speed-strip__dot--warn {
    background: #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.65);
}

.speed-strip__dot--bad {
    background: #f87171;
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.55);
}

.speed-strip__flag {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.speed-strip__name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.speed-strip__metrics {
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    border: 0;
}

.speed-strip__metric {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 10px;
    line-height: 1.2;
    color: #c5cee8;
}

.speed-strip__metric-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.95;
}

.speed-strip__svg {
    display: block;
    width: 15px;
    height: 15px;
}

.speed-strip__metric:nth-child(1) .speed-strip__metric-ico {
    color: #8ea8ff;
}

.speed-strip__metric:nth-child(2) .speed-strip__metric-ico {
    color: #7ec8a4;
}

.speed-strip__metric:nth-child(3) .speed-strip__metric-ico {
    color: #e6c86c;
}

.speed-strip__metric-nums {
    font-variant-numeric: tabular-nums;
    text-align: right;
    min-width: 0;
}

.speed-strip__metric-val {
    font-weight: 600;
    color: #d4ddfa;
}

.speed-strip-empty {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 8px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

footer {
    color: var(--muted);
    font-size: 13px;
    padding: 14px 0 28px;
    text-align: center;
}

.site-footer__legal {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 6px;
}

.site-footer__legal--contact {
    margin-top: 8px;
}

.site-footer__privacy-link,
.site-footer__legal-link {
    font-size: 10px;
    line-height: 1.35;
    color: var(--muted);
    text-decoration: none;
    opacity: 0.88;
}

.site-footer__privacy-link:hover,
.site-footer__legal-link:hover {
    color: var(--accent);
    opacity: 1;
}

.site-footer__legal-sep {
    font-size: 10px;
    color: var(--muted);
    opacity: 0.55;
    user-select: none;
}

body.privacy-page,
body.terms-page {
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
}

body.privacy-page #privacy-modal.modal-backdrop,
body.terms-page #terms-modal.modal-backdrop {
    z-index: 400;
    padding:
        max(10px, env(safe-area-inset-top, 0px))
        max(14px, env(safe-area-inset-right, 0px))
        max(10px, env(safe-area-inset-bottom, 0px))
        max(14px, env(safe-area-inset-left, 0px));
}

.modal-panel--privacy {
    max-width: min(680px, 94vw);
    width: 100%;
    max-height: min(88vh, 900px);
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.privacy-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--card);
}

.privacy-modal__title {
    margin: 0;
    font-size: clamp(15px, 3.6vw, 20px);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

.privacy-modal__close-x.modal-close {
    position: relative;
    top: auto;
    right: auto;
    flex-shrink: 0;
    margin: -4px -6px 0 0;
    padding: 6px 10px;
}

.privacy-modal__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px 8px;
}

.privacy-modal__actions {
    flex-shrink: 0;
    padding: 12px 20px max(18px, calc(12px + env(safe-area-inset-bottom, 0px)));
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.18);
}

.privacy-modal__close-btn {
    width: 100%;
}

.privacy-prose {
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
}

.privacy-prose__h {
    margin: 1.15rem 0 0.45rem;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.privacy-prose__h:first-child {
    margin-top: 0;
}

.privacy-prose p {
    margin: 0 0 0.65rem;
}

.privacy-prose ul {
    margin: 0 0 0.75rem;
    padding-left: 1.15em;
}

.privacy-prose li {
    margin-bottom: 0.35rem;
}

.privacy-prose__a {
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
}

.privacy-prose__a:hover {
    text-decoration: underline;
}

.privacy-prose__updated {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 1rem !important;
    opacity: 0.92;
}

.privacy-prose__url-line {
    margin-top: 1rem;
    margin-bottom: 0 !important;
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
}

.site-footer-privacy {
    color: var(--muted);
    font-size: 13px;
    padding: 14px 0 28px;
    text-align: center;
}

.site-footer-privacy__link {
    font-size: 10px;
    line-height: 1.35;
    color: var(--muted);
    text-decoration: none;
    opacity: 0.88;
}

.site-footer-privacy__link:hover {
    color: var(--accent);
    opacity: 1;
}

.site-footer-privacy__link-wrap {
    margin: 8px 0 0;
}

.site-footer-privacy__link-wrap--row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 6px;
}

.site-footer-privacy__sep {
    font-size: 10px;
    color: var(--muted);
    opacity: 0.55;
    user-select: none;
}

.site-footer-privacy__copy {
    margin: 0;
}

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

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

@media (max-width: 520px) {
    .locations-table td:first-child {
        white-space: normal;
    }
}

/* Toast notifications (flash messages) */
.toast-stack {
    position: fixed;
    z-index: 250;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: min(400px, calc(100vw - 24px));
}

.toast-stack .toast {
    pointer-events: auto;
}

.toast {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 38px 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border);
    background: rgba(17, 26, 54, 0.97);
    color: var(--text);
    animation: toast-in 0.35s ease-out both;
}

.toast--out {
    animation: toast-out 0.28s ease-in forwards;
}

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

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateY(6px);
    }
}

.toast-body {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.toast-dismiss {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-dismiss:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.toast--success {
    border-color: rgba(82, 211, 138, 0.45);
    background: rgba(12, 42, 28, 0.96);
}

.toast--success .toast-body {
    color: #b8f0d0;
}

.toast--error {
    border-color: rgba(255, 107, 107, 0.45);
    background: rgba(48, 18, 22, 0.96);
}

.toast--error .toast-body {
    color: #ffc4c4;
}

.toast--info {
    border-color: rgba(110, 141, 255, 0.45);
    background: rgba(17, 26, 54, 0.98);
}

.toast--info .toast-body {
    color: #d4ddfa;
}

/* Desktop: bottom-right stack */
@media (min-width: 769px) {
    .toast-stack {
        right: 24px;
        bottom: 24px;
        top: auto;
        left: auto;
        align-items: flex-end;
    }
}

/* Mobile: full-width strip under nav — avoids thumb zone and cookie bar at bottom */
@media (max-width: 768px) {
    .toast-stack {
        left: max(12px, env(safe-area-inset-left));
        right: max(12px, env(safe-area-inset-right));
        top: calc(64px + env(safe-area-inset-top, 0px));
        bottom: auto;
        max-width: none;
        align-items: stretch;
    }
}

/* Cookie consent */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    padding: 14px 16px;
    background: rgba(17, 26, 54, 0.97);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
}

.cookie-banner.is-hidden {
    display: none;
}

.cookie-banner p {
    margin: 0;
    max-width: 640px;
    font-size: 13px;
    color: #c9d2ee;
    line-height: 1.45;
    text-align: center;
}

.cookie-banner .btn-cookie {
    width: auto;
    padding: 8px 18px;
    font-size: 13px;
    flex-shrink: 0;
}

.veloxi-swal-popup {
    background: linear-gradient(165deg, #172a66 0%, #0d1638 45%, #060910 100%) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    color: #f4f7ff !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35) !important;
}

.veloxi-swal-title {
    color: var(--text) !important;
    font-size: 22px !important;
    letter-spacing: -0.01em !important;
}

.veloxi-swal-text {
    color: #c8d3f4 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.veloxi-swal-popup .swal2-actions {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 18px;
    width: 100%;
    max-width: 100%;
    margin: 1.5em auto 0.35em !important;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.veloxi-swal-popup .swal2-actions .swal2-styled {
    margin: 0 !important;
}

.veloxi-swal-btn {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.veloxi-swal-btn--danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.veloxi-swal-btn--danger:hover {
    filter: brightness(1.06);
}

.veloxi-swal-btn--ghost {
    background: transparent;
    color: #d4ddfa;
}

.veloxi-swal-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.04);
}

.veloxi-swal-btn--accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.veloxi-swal-btn--accent:hover {
    filter: brightness(1.08);
}

.veloxi-swal-popup .swal2-icon.swal2-info {
    border-color: rgba(110, 141, 255, 0.55) !important;
    color: var(--accent) !important;
}

/* Registration page */
.page-registration .container-narrow {
    width: min(480px, 92vw);
    margin: 0 auto;
    padding: 32px 0;
}

.page-registration .back {
    margin-bottom: 20px;
}

.page-registration .back a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
}

.page-registration .back a:hover {
    color: var(--accent-hover);
}

/* Support tickets */
.support-page {
    width: min(720px, 92vw);
    margin: 0 auto;
    padding: 32px 16px 64px;
}

.support-page__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    margin-bottom: 24px;
    padding: 0 2px;
}

.support-page__back {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 10px;
    color: var(--accent);
    text-decoration: none;
    font-size: 24px;
    line-height: 1;
    transition:
        background 0.15s,
        color 0.15s;
    z-index: 1;
}

.support-page__back:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-hover);
}

.support-page__back-icon {
    display: block;
    transform: translateX(-1px);
}

.support-page__title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    max-width: min(420px, calc(100vw - 120px));
    font-size: clamp(18px, 4.2vw, 24px);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.2;
    z-index: 0;
}

.support-page__head-right {
    flex: 0 0 auto;
    min-width: 44px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1;
}

.support-page__new-ticket {
    width: auto;
    white-space: nowrap;
}

.support-page__home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 10px;
    color: var(--accent);
    text-decoration: none;
    transition:
        background 0.15s,
        color 0.15s;
}

.support-page__home:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-hover);
}

.support-page__home-icon {
    display: block;
    width: 22px;
    height: 22px;
}

.support-page__status--ticket {
    margin: -8px 0 24px;
    text-align: center;
}

.support-page__ticket-ref {
    margin: -16px 0 22px;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
    word-break: break-all;
}

.support-page__ticket-ref code {
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: var(--text);
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 8px;
    border-radius: 6px;
}

.support-page__close {
    margin-bottom: 1.25rem;
}

.support-page__empty {
    margin: 8px 0 20px;
    text-align: center;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.support-page__cta {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.support-page__cta .btn {
    width: auto;
    min-width: min(280px, 100%);
}

.support-ticket-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.support-ticket-list__item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    background: rgba(17, 26, 54, 0.65);
}

.support-ticket-list__link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    color: inherit;
    text-decoration: none;
}

.support-ticket-list__link:hover {
    background: rgba(110, 141, 255, 0.08);
}

.support-ticket-list__subject {
    font-weight: 600;
}

.support-ticket-list__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
}

.support-ticket-list__badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(110, 141, 255, 0.15);
    color: var(--text);
    font-size: 12px;
}

.support-dropzone {
    position: relative;
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    background: rgba(7, 11, 26, 0.5);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.support-dropzone__hit-area {
    position: relative;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-dropzone--hover {
    border-color: var(--accent);
    background: rgba(110, 141, 255, 0.06);
}

.support-dropzone__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.support-dropzone__hint {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    pointer-events: none;
    position: relative;
    z-index: 0;
}

.support-dropzone__previews {
    text-align: left;
    margin: 12px 0 0;
    padding-left: 18px;
    font-size: 13px;
    color: var(--muted);
}

.support-user-attachments .support-btn-add-image {
    display: block;
    width: 100%;
    margin-top: 12px;
}

.support-file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.support-dropzone__previews-inner {
    position: relative;
    z-index: 2;
    margin-top: 4px;
}

.support-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
    margin-top: 14px;
    text-align: left;
}

.support-thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.25);
}

.support-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.support-thumb__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(10, 14, 28, 0.85);
    color: var(--text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.support-thumb__remove--text {
    position: static;
    width: auto;
    height: auto;
    padding: 2px 8px;
    font-size: 14px;
}

.support-dropzone__other-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    text-align: left;
    font-size: 13px;
    color: var(--muted);
}

.support-dropzone__other-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.support-dropzone__other-list li:last-child {
    border-bottom: none;
}

.support-chat {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.support-chat__msg {
    display: flex;
}

.support-chat__msg--user {
    justify-content: flex-end;
}

.support-chat__msg--staff {
    justify-content: flex-start;
}

.support-chat__bubble {
    width: min(640px, 100%);
    max-width: 640px;
    min-height: 56px;
    min-width: min(100%, 280px);
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(17, 26, 54, 0.85);
}

.support-chat__msg--user .support-chat__bubble {
    background: rgba(110, 141, 255, 0.12);
    border-color: rgba(110, 141, 255, 0.35);
}

.support-chat__body {
    margin: 0 0 8px;
    white-space: pre-wrap;
    word-break: break-word;
}

.support-chat__files {
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
    font-size: 13px;
}

.support-chat__file {
    margin-bottom: 10px;
}

.support-chat__file:last-child {
    margin-bottom: 0;
}

.support-chat__file--image .support-chat__img-open {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0 0 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.22);
    color: var(--text);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.support-chat__file--image .support-chat__img-open:hover {
    background: rgba(110, 141, 255, 0.1);
    border-color: rgba(110, 141, 255, 0.35);
}

.support-chat__img-open-icon {
    flex: 0 0 auto;
    display: flex;
    color: var(--accent);
}

.support-chat__img-open-label {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 500;
}

html.support-lightbox-open,
html.support-lightbox-open body {
    overflow: hidden;
    overscroll-behavior: none;
}

.support-img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    box-sizing: border-box;
}

.support-img-lightbox[hidden] {
    display: none !important;
}

.support-img-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 18, 0.92);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.support-img-lightbox__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    min-height: 100dvh;
    padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px))
        max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    pointer-events: none;
}

.support-img-lightbox__inner > * {
    pointer-events: auto;
}

.support-img-lightbox__close {
    position: absolute;
    top: max(8px, env(safe-area-inset-top, 0px));
    right: max(8px, env(safe-area-inset-right, 0px));
    z-index: 2;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: rgba(20, 28, 48, 0.92);
    color: var(--text);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.support-img-lightbox__close:hover {
    background: rgba(110, 141, 255, 0.25);
}

.support-img-lightbox__frame {
    width: 100%;
    max-width: min(96vw, 960px);
    max-height: calc(100dvh - max(24px, env(safe-area-inset-top)) - max(24px, env(safe-area-inset-bottom)));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-img-lightbox__img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: calc(100dvh - max(32px, env(safe-area-inset-top)) - max(32px, env(safe-area-inset-bottom)));
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
    touch-action: manipulation;
}

.support-chat__file-name {
    display: inline-block;
    font-size: 13px;
    word-break: break-all;
}

.support-chat__file:not(.support-chat__file--image) {
    padding-left: 0;
}

.support-chat__time {
    font-size: 11px;
    color: var(--muted);
}

.support-chat__size {
    display: inline-block;
    margin-left: 8px;
    font-size: 11px;
    color: var(--muted);
}

.field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--muted);
}

/* Admin — в одной стилистике с витриной (тёмный фон, акцент --accent, карточки .card) */
.admin-body {
    margin: 0;
    min-height: 100vh;
}

.admin-body--login {
    min-height: 100vh;
}

.admin-login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-login-top {
    padding: 18px 0 8px;
    border-bottom: 1px solid rgba(42, 55, 100, 0.65);
    background: linear-gradient(180deg, rgba(7, 11, 26, 0.92), rgba(7, 11, 26, 0.35));
    backdrop-filter: blur(8px);
}

.admin-login-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-login-top__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-login-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0 48px;
}

.admin-login-card {
    width: min(420px, 100%);
    margin: 0 auto;
}

.admin-login-card.card {
    padding: 32px 28px;
}

.admin-login-card__title {
    margin: 0 0 8px;
    font-size: clamp(22px, 3.2vw, 28px);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.admin-login-card__subtitle {
    margin: 0 0 20px;
}

.admin-login-submit {
    margin-top: 4px;
    background: linear-gradient(180deg, #8ea8ff 0%, var(--accent) 50%, #4f6be0 100%);
    box-shadow:
        0 6px 26px rgba(106, 140, 255, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.admin-login-submit:hover {
    filter: brightness(1.06);
    background: linear-gradient(180deg, #8ea8ff 0%, var(--accent) 50%, #4f6be0 100%);
}

.admin-text-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition:
        color 0.15s,
        border-color 0.15s;
}

.admin-text-link:hover {
    color: #a8b9ff;
    border-bottom-color: rgba(110, 141, 255, 0.45);
}

.admin-shell {
    display: grid;
    grid-template-columns: minmax(220px, 260px) 1fr;
    min-height: 100vh;
}

@media (max-width: 720px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-right: 1px solid var(--border);
    background:
        linear-gradient(165deg, rgba(110, 141, 255, 0.08) 0%, transparent 42%),
        linear-gradient(180deg, rgba(17, 26, 54, 0.95), rgba(7, 11, 26, 0.88));
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.2);
}

.admin-nav__head {
    padding: 20px 18px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.admin-nav__badge {
    align-self: flex-start;
}

.admin-nav__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 12px;
    flex: 1;
}

.admin-nav__link {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #d4ddfa;
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    transition:
        background 0.15s,
        border-color 0.15s,
        color 0.15s;
}

.admin-nav__link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(42, 55, 100, 0.8);
}

.admin-nav__link.is-active {
    color: #fff;
    background: rgba(110, 141, 255, 0.16);
    border-color: rgba(110, 141, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(110, 141, 255, 0.12);
}

.admin-nav__foot {
    margin-top: auto;
    padding: 16px 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-nav__site-link {
    text-align: center;
}

.admin-nav__logout {
    margin: 0;
}

.admin-nav__logout .btn {
    margin: 0;
}

@media (max-width: 720px) {
    .admin-nav {
        border-right: none;
        border-bottom: 1px solid var(--border);
        box-shadow: none;
    }

    .admin-nav__links {
        flex-direction: row;
        flex-wrap: wrap;
        padding-bottom: 8px;
    }

    .admin-nav__link {
        flex: 1 1 auto;
        min-width: min(140px, 100%);
        text-align: center;
    }

    .admin-nav__foot {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .admin-nav__site-link {
        text-align: left;
    }

    .admin-nav__logout {
        flex: 1 1 160px;
    }
}

.admin-main {
    padding: 28px 0 56px;
}

.admin-main__inner {
    max-width: min(1120px, 92vw);
}

.admin-main h1 {
    margin: 0 0 16px;
    font-size: clamp(22px, 2.8vw, 30px);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.admin-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    margin-bottom: 20px;
}

.admin-stats {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.admin-stats li {
    margin-bottom: 8px;
    font-size: 15px;
}

.admin-filter {
    margin-bottom: 24px;
    max-width: 520px;
}

.admin-filter--inline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
    max-width: none;
}

.admin-filter--inline .field {
    margin-bottom: 0;
    flex: 1 1 140px;
    min-width: min(100%, 140px);
}

.admin-filter--inline .btn {
    flex: 0 0 auto;
    margin-bottom: 2px;
}

.admin-ticket-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-ticket-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: baseline;
}

.admin-ticket-list li:last-child {
    border-bottom: none;
}

.admin-ticket-ref {
    margin: 0 0 12px;
    font-size: 12px;
    word-break: break-all;
}

.admin-ticket-ref code {
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.admin-ticket-list__uuid {
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    word-break: break-all;
}

.admin-ticket-list .muted {
    color: var(--muted);
    font-size: 13px;
}

.admin-inquiries-total {
    margin-bottom: 16px;
    font-size: 14px;
}

.admin-inquiry-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-inquiry-list__item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.admin-inquiry-list__item:last-child {
    border-bottom: none;
}

.admin-inquiry-list__link {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
}

.admin-inquiry-list__id {
    color: var(--muted);
    font-weight: 500;
}

.admin-inquiry-list__email {
    font-size: 12px;
}

.admin-inquiry-list__time {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    color: var(--muted);
}

.admin-inquiry-list__preview {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
}

.admin-inquiry-body {
    margin-top: 20px;
}

.admin-inquiry-body h2 {
    font-size: 15px;
    margin: 0 0 10px;
}

.admin-inquiry-body__text {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.admin-main select,
.admin-main textarea,
.admin-login-card select {
    width: 100%;
    border: 1px solid var(--border);
    background: #0f1630;
    color: var(--text);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
    font-family: inherit;
}

.admin-main select:focus,
.admin-main textarea:focus,
.admin-login-card select:focus {
    border-color: var(--accent);
}

.admin-main .admin-ticket-list a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.admin-main .admin-ticket-list a:hover {
    text-decoration: underline;
}

.admin-main h2 {
    margin: 20px 0 12px;
    font-size: 17px;
    color: #d4ddfa;
    font-weight: 600;
}
