/* ============================================================
   KurtaVPN — Дизайн сайта
   ============================================================ */

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    /* Основные цвета */
    --bg: #0b0e14;
    --bg-card: #141820;
    --bg-card-hover: #1a1f2b;
    --bg-input: #1a1f2b;
    --bg-nav: rgba(11, 14, 20, 0.85);

    /* Текст */
    --text: #e8eaed;
    --text-dim: #8b919a;
    --text-muted: #555b66;

    /* Акценты */
    --accent: #6c5ce7;
    --accent-hover: #7c6ef7;
    --accent-light: rgba(108, 92, 231, 0.15);
    --accent-glow: rgba(108, 92, 231, 0.3);

    /* Статусы */
    --green: #00d26a;
    --green-bg: rgba(0, 210, 106, 0.12);
    --yellow: #ffc107;
    --yellow-bg: rgba(255, 193, 7, 0.12);
    --red: #ff4757;
    --red-bg: rgba(255, 71, 87, 0.12);

    /* Границы */
    --border: #1e2430;
    --border-light: #2a3040;

    /* Тени */
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);

    /* Скругления */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;

    /* Шрифт */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Размеры */
    --nav-height: 64px;
    --container: 960px;
}


/* ===== СБРОС ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

img { max-width: 100%; }

code {
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
}

.main {
    flex: 1;
    padding-top: var(--nav-height);
}


/* ===== НАВИГАЦИЯ ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-logo:hover { color: var(--text); }

.logo-icon { font-size: 1.4rem; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--text); }

.nav-link--dim { opacity: 0.6; }
.nav-link--dim:hover { opacity: 1; }

.btn-nav {
    background: var(--accent);
    color: #fff !important;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-nav:hover {
    background: var(--accent-hover);
    color: #fff !important;
}

.nav-lang {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-lang:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.nav-notifications,
.nav-mobile-notifications {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.nav-notifications {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1rem;
}

.nav-notifications:hover,
.nav-notifications--open {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.nav-notifications__badge,
.nav-mobile-notifications__badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 99px;
    background: var(--red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

.nav-notifications__badge {
    position: absolute;
    top: -6px;
    right: -7px;
}

.nav-mobile-notifications {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-width: 0 0 1px;
    border-color: var(--border);
    border-radius: 0;
    background: transparent;
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 500;
}

.notifications-panel {
    position: fixed;
    top: calc(var(--nav-height) + 0.75rem);
    right: max(1.25rem, calc((100vw - var(--container)) / 2 + 1.25rem));
    z-index: 1500;
    width: min(380px, calc(100vw - 2rem));
    max-height: min(620px, calc(100dvh - var(--nav-height) - 1.5rem));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(20, 24, 32, 0.98);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.44);
}

.notifications-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notifications-panel__read {
    border: 0;
    background: transparent;
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.notifications-panel__read:hover {
    color: var(--text);
}

.notifications-panel__list {
    max-height: calc(min(620px, calc(100dvh - var(--nav-height) - 1.5rem)) - 58px);
    overflow-y: auto;
}

.notification-item {
    display: block;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text);
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item--unread {
    background: rgba(108, 92, 231, 0.1);
}

.notification-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.notification-item__title {
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.35;
}

.notification-item__time {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.notification-item__body {
    margin-top: 0.45rem;
    color: var(--text-dim);
    font-size: 0.84rem;
    line-height: 1.45;
    white-space: pre-line;
}

.notification-item__action {
    display: inline-flex;
    align-items: center;
    margin-top: 0.65rem;
    color: var(--accent-hover);
    font-size: 0.84rem;
    font-weight: 800;
}

.notifications-panel__empty {
    padding: 1.4rem 1rem;
    color: var(--text-muted);
    text-align: center;
}

/* Бургер */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-burger--open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-burger--open span:nth-child(2) { opacity: 0; }

.nav-burger--open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Мобильное меню */
.nav-mobile {
    display: none;
    flex-direction: column;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
}

.nav-mobile--open { display: flex; }

.nav-mobile a {
    color: var(--text-dim);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--text); }


/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.btn-ghost {
    background: transparent;
    color: var(--text-dim);
}

.btn-ghost:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius);
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

.btn-block { width: 100%; }

.btn-copy {
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-copy:hover { background: var(--accent-hover); }
.btn-copy--done { background: var(--green); }


/* ===== СЕКЦИЯ ГЕРОЙ ===== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.25rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-glow) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(108,92,231,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* ===== ЗАГОЛОВКИ СЕКЦИЙ ===== */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}


/* ===== КАРТОЧКИ (универсальные) ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card--empty {
    border-style: dashed;
    border-color: var(--border-light);
}


/* ===== ПОДВАЛ ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-dim);
}

/* ============================================================
   FEATURES (преимущества)
   ============================================================ */

.features {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
}


/* ============================================================
   PRICING (тарифы на лендинге)
   ============================================================ */

.pricing-preview {
    padding: 4rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.25rem;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.price-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.price-card--popular {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.price-card--best {
    border-color: var(--green);
    box-shadow: 0 0 30px rgba(0, 210, 106, 0.15);
}

.price-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.price-card--best .price-badge {
    background: var(--green);
}

.price-period {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.price-discount {
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.price-per-day {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.pricing-cta {
    text-align: center;
}


/* ============================================================
   PROFILE (личный кабинет)
   ============================================================ */

.profile-section {
    padding: 2rem 0;
}

.profile-header {
    margin-bottom: 1.5rem;
}

.profile-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Статус-бейдж */
.status-badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    white-space: nowrap;
}

.status-badge--active {
    background: var(--green-bg);
    color: var(--green);
}

.status-badge--pending {
    background: var(--yellow-bg);
    color: var(--yellow);
}

.status-badge--expired {
    background: var(--red-bg);
    color: var(--red);
}

/* Карточка подписки */
.sub-card--expired {
    border-color: var(--red);
}

.sub-card--active {
    border-color: var(--green);
}

.sub-card--pending {
    border-color: var(--yellow);
}

/* Инфо-сетка подписки */
.sub-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sub-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sub-info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.sub-info-value {
    font-size: 1rem;
    font-weight: 600;
}

.sub-info-value--big {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
}

.sub-profile-summary {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 0.7rem;
}

.sub-summary-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.sub-summary-tile,
.sub-details-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
        rgba(12, 16, 24, 0.58);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.sub-summary-tile {
    min-width: 0;
    min-height: 126px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.65rem;
}

.sub-summary-tile__label,
.sub-details-panel__label {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;
}

.sub-summary-tile strong {
    color: #fff;
    font-size: clamp(1.25rem, 3.4vw, 1.75rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.sub-summary-tile small {
    color: var(--text-dim);
    font-size: 0.52em;
    font-weight: 800;
}

.sub-summary-tile em {
    margin-left: 0.25rem;
    color: var(--red);
    font-size: 0.5em;
    font-style: normal;
    font-weight: 800;
    vertical-align: middle;
}

.sub-summary-tile__hint {
    color: var(--text-dim);
    font-size: 0.82rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.sub-details-panel {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.sub-details-panel__main {
    min-width: 0;
    display: grid;
    gap: 0.28rem;
}

.sub-details-panel__main strong {
    color: #fff;
    font-size: 1.18rem;
    line-height: 1.25;
}

.sub-details-panel__main small {
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.35;
}

.sub-details-panel__counter {
    min-width: 116px;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 0.18rem;
    text-align: right;
}

.sub-details-panel__counter span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.sub-details-panel__counter strong {
    color: var(--text);
    font-size: 1.22rem;
    line-height: 1;
    overflow-wrap: anywhere;
}

.sub-summary-link {
    padding-top: 0.15rem;
}

.sub-card .card-actions {
    padding-top: 0;
    margin-top: -0.15rem;
}

.sub-brief {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(108, 92, 231, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sub-brief__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
    color: var(--text);
    font-weight: 700;
}

.sub-brief__title strong {
    color: var(--accent);
    white-space: nowrap;
}

.sub-usage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
}

.sub-usage-card {
    min-width: 0;
    min-height: 118px;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(11, 14, 20, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.65rem;
}

.sub-usage-card--lte {
    border-color: rgba(0, 210, 106, 0.22);
}

.sub-usage-card__label {
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 600;
}

.sub-usage-card strong {
    color: #fff;
    font-size: clamp(1.45rem, 4vw, 2.05rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.sub-usage-card small {
    margin-left: 0.25rem;
    color: var(--text-dim);
    font-size: 0.48em;
    font-weight: 700;
}

.sub-usage-card em {
    margin-left: 0.35rem;
    color: var(--red);
    font-size: 0.42em;
    font-style: normal;
    font-weight: 800;
}

.sub-usage-meter,
.manage-stat__meter {
    display: block;
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
}

.sub-usage-meter i,
.manage-stat__meter i {
    display: block;
    width: var(--pct, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--accent));
}

.sub-brief__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.sub-brief__meta span {
    min-width: 0;
    padding: 0.7rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-dim);
    font-size: 0.84rem;
    line-height: 1.4;
}

.sub-brief__meta strong {
    display: block;
    margin-top: 0.15rem;
    color: var(--text);
    white-space: normal;
    overflow-wrap: anywhere;
}

.sub-summary {
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.sub-summary__head,
.sub-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sub-summary__head {
    padding: 1rem 0;
    color: var(--text);
    font-weight: 700;
}

.sub-summary__head strong {
    color: var(--accent);
    white-space: nowrap;
}

.sub-summary__list {
    display: grid;
}

.sub-summary__row {
    min-height: 46px;
    padding: 0.7rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    font-size: 0.95rem;
}

.sub-summary__row strong {
    color: var(--text);
    font-size: 1rem;
    text-align: right;
    white-space: nowrap;
}

.sub-summary__row--traffic strong {
    color: #fff;
    font-size: 1.08rem;
}

.sub-summary__row--muted strong {
    color: var(--text-muted);
    white-space: normal;
}

/* Трафик */
.traffic-details {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.traffic-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.traffic-row > span {
    min-width: 0;
}

.traffic-row > span:last-child {
    text-align: right;
    overflow-wrap: anywhere;
}

.traffic-row--total {
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    color: var(--text);
    font-weight: 600;
}

.traffic-row--stacked {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
}

.traffic-row--stacked > span:last-child {
    text-align: left;
    color: var(--text);
    font-weight: 600;
}

/* Ссылка подписки */
.sub-link-block {
    margin-bottom: 1rem;
}

.copy-field {
    display: flex;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.copy-field .form-input {
    border: none;
    border-radius: 0;
    flex: 1;
}

/* Баланс */
.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
}

.balance-amount {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--green);
}

/* Быстрые ссылки */
.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dim);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

.quick-link-card:hover {
    border-color: var(--accent);
    color: var(--text);
    background: var(--bg-card-hover);
}

.quick-link-icon {
    font-size: 1.5rem;
}


/* ============================================================
   PAYMENT (оплата)
   ============================================================ */

.pay-section {
    padding: 2rem 0;
}

.pay-step {
    max-width: 640px;
    margin: 0 auto;
}

.pay-step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-align: center;
}

/* Сетка тарифов */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.plan-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.plan-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.plan-card--selected {
    border-color: var(--accent) !important;
    background: var(--accent-light) !important;
    box-shadow: 0 0 20px var(--accent-glow);
}

.plan-card--popular {
    border-color: var(--accent);
}

.plan-badge {
    position: absolute;
    top: -9px;
    right: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    text-transform: uppercase;
}

.plan-badge--best {
    background: var(--green);
}

.plan-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.plan-price {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.plan-discount {
    color: var(--green);
    font-weight: 600;
    font-size: 0.85rem;
}

.plan-days {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Сводка */
.pay-summary {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent);
    padding: 0.75rem;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
}

/* Методы оплаты */
.methods-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.method-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
}

.method-btn:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.method-btn--balance {
    border-color: var(--green);
    background: var(--green-bg);
}

.method-icon {
    font-size: 1.4rem;
}

/* Своя сумма */
.custom-amount-block {
    margin-top: 0.5rem;
}

.custom-amount-form {
    margin-top: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.custom-amount-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.custom-amount-suffix {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dim);
}

.custom-result {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    text-align: center;
    color: var(--accent);
    font-weight: 600;
}

/* Ожидание */
.waiting-block, .success-block, .error-block {
    text-align: center;
    padding: 3rem 1.5rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.waiting-text {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.success-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.error-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}


/* ============================================================
   FORMS (формы)
   ============================================================ */

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-input--mono {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}


/* ============================================================
   AUTH (авторизация)
   ============================================================ */

.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.auth-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-help {
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-help-link {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-help-link:hover { color: var(--accent); }

.auth-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    position: relative;
    background: var(--bg-card);
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-alt {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Alert */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.alert-error {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid rgba(255, 71, 87, 0.3);
}


/* ============================================================
   GUIDE (инструкции)
   ============================================================ */

.guide-section {
    padding: 2rem 0;
}

.guide-intro {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.devices-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 640px;
    margin: 0 auto;
}

.device-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}

.device-card:hover {
    border-color: var(--accent);
}

.device-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

.device-icon { font-size: 1.4rem; }

.device-name {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
}

.device-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.device-body {
    padding: 0 1.25rem 1.25rem;
    cursor: default;
}

/* Шаги */
.steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 2px;
}

.step-content {
    flex: 1;
    font-size: 0.93rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.step-content b { color: var(--text); }

.step-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
}

.help-block {
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    text-align: center;
    color: var(--text-dim);
}


/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-burger { display: flex; }

    .notifications-panel {
        top: calc(var(--nav-height) + 0.5rem);
        right: 1rem;
        left: 1rem;
        width: auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-links {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 70vh;
        padding: 3rem 1.25rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .auth-card {
        padding: 1.75rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .sub-info-grid {
        grid-template-columns: 1fr;
    }

    .copy-field {
        flex-direction: column;
    }

    .btn-copy {
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    }

    .copy-field .form-input {
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    }
}

/* ============================================================
   ДОПОЛНЕНИЯ v2
   ============================================================ */

/* --- Лого --- */
.nav-logo-img {
    width: 32px; height: 32px; min-width: 32px; min-height: 32px;
    border-radius: 6px; object-fit: contain; flex-shrink: 0;
}

/* --- Auth --- */
.auth-help-link-big {
    display: block; text-align: center; padding: 0.75rem 1rem;
    background: var(--accent-light); border: 1px solid var(--accent);
    border-radius: var(--radius-sm); color: var(--accent);
    font-weight: 600; font-size: 0.95rem; transition: all 0.2s; margin-bottom: 0.5rem;
}
.auth-help-link-big:hover { background: var(--accent); color: #fff; }
.auth-support { margin-top: 0.75rem; }
.alert-success {
    background: var(--green-bg); color: var(--green);
    border: 1px solid rgba(0, 210, 106, 0.3);
}

/* --- Sub-info-grid: 3 cols centered --- */
.sub-info-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0; margin-bottom: 1.5rem; width: 100%;
}
.sub-info-item {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center;
    padding: 1rem 0.5rem; border-right: 1px solid var(--border);
}
.sub-info-item:last-child { border-right: none; }
.sub-info-label {
    font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.5px; font-weight: 500; margin-bottom: 0.3rem;
}
.sub-info-value { font-size: 1rem; font-weight: 600; }
.sub-info-value--big { font-size: 1.5rem; font-weight: 800; color: var(--accent); }

/* --- Trial --- */
.trial-notice {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--yellow-bg); border: 1px solid var(--yellow);
    border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.25rem;
}
.trial-notice-icon { font-size: 1.5rem; flex-shrink: 0; }
.trial-notice-text { font-size: 0.9rem; color: var(--text-dim); line-height: 1.5; }
.trial-notice-text b { color: var(--yellow); }

/* --- Quick-links: 2 колонки на всю ширину --- */
.quick-links {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem; margin-top: 1rem;
}
.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dim);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}
.quick-link-card:hover {
    border-color: var(--accent); color: var(--text); background: var(--bg-card-hover);
}
.quick-link-icon { font-size: 1.3rem; }

/* --- Profile --- */
.profile-container { max-width: 640px; margin: 0 auto; }
.card-actions .btn { width: 100%; }

/* --- Promo --- */
.promo-block {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem 1.25rem;
}
.custom-amount-block .btn-ghost {
    background: var(--bg-input); border: 1px dashed var(--border-light);
    color: var(--text); font-weight: 500;
}
.custom-amount-block .btn-ghost:hover {
    border-color: var(--accent); background: var(--accent-light); color: var(--accent);
}

/* --- Hero buttons equal width --- */
.hero-buttons .btn { min-width: 180px; text-align: center; }

/* ===== SUPPORT CHAT ===== */
.support-container { max-width: 640px; margin: 0 auto; }

.support-chat-card {
    display: flex; flex-direction: column;
    height: calc(100dvh - 200px); min-height: 420px; max-height: 700px;
    overflow: hidden;
}
.support-chat-card .card-body {
    flex: 1; display: flex; flex-direction: column; overflow: hidden; padding: 0;
}
.chat-messages {
    flex: 1; overflow-y: auto; padding: 1rem 1.25rem;
    display: flex; flex-direction: column; gap: 0.75rem;
    background: var(--bg);
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.chat-msg-wrapper { display: flex; flex-direction: column; }
.chat-msg-wrapper--in { align-items: flex-end; }
.chat-msg-wrapper--out { align-items: flex-start; }

.chat-msg-label {
    font-size: 0.7rem; font-weight: 600; margin-bottom: 0.2rem; padding: 0 0.5rem;
}
.chat-msg-wrapper--in .chat-msg-label { color: var(--accent); }
.chat-msg-wrapper--out .chat-msg-label { color: var(--green); }

.chat-msg {
    max-width: 80%; padding: 0.65rem 1rem; border-radius: 16px;
    font-size: 0.9rem; line-height: 1.5; word-wrap: break-word;
    animation: msgIn 0.25s ease;
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-msg--in {
    background: var(--accent); color: #fff; border-bottom-right-radius: 4px;
}
.chat-msg--out {
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text); border-bottom-left-radius: 4px;
}
.chat-msg-time {
    font-size: 0.65rem; opacity: 0.5; margin-top: 0.15rem; padding: 0 0.5rem;
}
.chat-empty {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--text-muted); padding: 2rem; text-align: center; gap: 0.75rem;
}
.chat-empty-icon { font-size: 3rem; opacity: 0.3; }
.chat-empty-text { font-size: 0.95rem; line-height: 1.5; }

.chat-input-area {
    padding: 0.75rem 1rem; border-top: 1px solid var(--border);
    background: var(--bg-card); display: flex; gap: 0.5rem; align-items: center;
}
.chat-input-area input {
    flex: 1; padding: 0.75rem 1.25rem;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: 24px; color: var(--text); font-family: var(--font);
    font-size: 0.95rem; outline: none; transition: all 0.2s;
}
.chat-input-area input:focus {
    border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light);
}
.chat-input-area input::placeholder { color: var(--text-muted); }
.chat-send-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent); color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; transition: all 0.2s; flex-shrink: 0;
}
.chat-send-btn:hover { background: var(--accent-hover); transform: scale(1.05); }

/* ===== FAQ ===== */
.faq-categories {
    display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.faq-cat-btn {
    padding: 0.5rem 1rem; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; color: var(--text-dim); font-size: 0.85rem;
    font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.faq-cat-btn:hover { border-color: var(--accent); color: var(--text); }
.faq-cat-btn--active { background: var(--accent); color: #fff; border-color: var(--accent); }

.faq-item { border-bottom: 1px solid var(--border); cursor: pointer; }
.faq-question {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 0; font-weight: 600; font-size: 0.95rem; color: var(--text); gap: 1rem;
}
.faq-arrow { color: var(--text-muted); transition: transform 0.2s; flex-shrink: 0; }
.faq-item--open .faq-arrow { transform: rotate(90deg); }
.faq-answer {
    display: none; padding: 0 0 1rem; color: var(--text-dim);
    font-size: 0.9rem; line-height: 1.6;
}
.faq-item--open .faq-answer { display: block; }

/* ===== Device Selector ===== */
.device-selector { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.device-sel-btn {
    padding: 0.6rem 1.2rem; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-dim); font-size: 0.9rem;
    font-weight: 500; cursor: pointer; transition: all 0.2s;
    font-family: var(--font); display: flex; align-items: center; gap: 0.4rem;
}
.device-sel-btn:hover { border-color: var(--accent); color: var(--text); }
.device-sel-btn--active {
    background: var(--accent-light); color: var(--accent); border-color: var(--accent);
}
.device-steps { display: none; }
.device-steps--active { display: block; }

/* ===== Media ===== */
@media (max-width: 768px) {
    .quick-links { grid-template-columns: repeat(2, 1fr) !important; }
    .support-chat-card { height: calc(100dvh - 160px); }
}
@media (max-width: 480px) {
    .sub-info-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .sub-info-value--big { font-size: 1.2rem; }
    .copy-field { flex-direction: column; }
    .btn-copy { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
    .copy-field .form-input {
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
        min-height: 44px; font-size: 0.7rem;
    }
    .hero-buttons { width: 100%; }
    .hero-buttons .btn { flex: 1; min-width: 0; }
    .device-sel-btn { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
    .faq-cat-btn { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
}

/* ===== AUTH TABS ===== */
.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    gap: 0;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    background: none;
}

.auth-tab:hover {
    color: var(--text);
    background: rgba(255,255,255,0.03);
}

.auth-tab--active {
    color: var(--accent) !important;
    border-bottom-color: var(--accent);
}

/* Код из SMS */
.form-input--code {
    font-size: 2rem;
    text-align: center;
    letter-spacing: 8px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* Subtitle */
.auth-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Resend */
.auth-resend {
    text-align: center;
    margin-top: 1rem;
}

.auth-back {
    margin-top: 0.75rem;
}

/* ============================================================
   REFRESH v4
   ============================================================ */

:root {
    --accent-2: #8f7cff;
    --accent-soft: rgba(143, 124, 255, 0.18);
    --glass: rgba(13, 16, 24, 0.72);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d9d0ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-subtitle {
    max-width: 640px;
    margin: 0.9rem auto 0;
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.75;
    text-align: center;
}

body.body--landing {
    overflow: hidden;
}

.main--landing {
    padding-top: var(--nav-height);
    overflow: hidden;
}

.landing-page {
    height: calc(100dvh - var(--nav-height));
    min-height: calc(100svh - var(--nav-height));
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background:
        radial-gradient(circle at top, rgba(108, 92, 231, 0.22), transparent 34%),
        linear-gradient(180deg, #080b12 0%, #0b0f17 100%);
}

.landing-page::-webkit-scrollbar {
    display: none;
}

.landing-section {
    min-height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
}

.landing-panel {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.landing-panel__head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.landing-panel--footer {
    justify-content: space-between;
    gap: 1.2rem;
    padding-top: 0;
    padding-bottom: 0;
    min-height: calc(100vh - var(--nav-height));
}

.landing-panel__body--centered {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.hero {
    min-height: 100%;
    padding: 3rem 1.25rem 4rem;
}

.hero-media,
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    object-fit: cover;
    opacity: 0.5;
    filter: saturate(1.1) contrast(1.05);
}

.hero-bg {
    background:
        linear-gradient(180deg, rgba(6, 8, 12, 0.35) 0%, rgba(7, 9, 13, 0.78) 75%, rgba(7, 9, 13, 0.96) 100%),
        radial-gradient(circle at 50% 20%, rgba(108, 92, 231, 0.34), transparent 42%),
        radial-gradient(circle at 85% 70%, rgba(34, 211, 238, 0.14), transparent 26%);
}

.hero-content {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badges {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(9, 13, 20, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.84rem;
    font-weight: 600;
    backdrop-filter: blur(14px);
}

.hero-title {
    font-size: clamp(2.6rem, 7vw, 5.1rem);
    letter-spacing: -0.04em;
    margin-bottom: 1.1rem;
    text-shadow: 0 10px 38px rgba(0, 0, 0, 0.45);
}

.hero-sub {
    font-size: 1.16rem;
    max-width: 640px;
    margin-bottom: 2rem;
    color: rgba(232, 234, 237, 0.8);
}

.hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    gap: 0.9rem;
    width: 100%;
    max-width: 460px;
}

.hero-buttons .btn {
    width: 100%;
    min-height: 56px;
    min-width: 0;
}

.hero-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.9rem;
}

.hero-scroll-hint:hover {
    color: #fff;
}

.hero-scroll-hint__icon {
    width: 28px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}

.hero-scroll-hint__icon::after {
    content: '';
    position: absolute;
    top: 9px;
    left: 50%;
    width: 6px;
    height: 10px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    animation: landingWheel 1.8s ease-in-out infinite;
}

@keyframes landingWheel {
    0% { opacity: 0; transform: translate(-50%, 0); }
    20% { opacity: 1; }
    70% { opacity: 1; transform: translate(-50%, 12px); }
    100% { opacity: 0; transform: translate(-50%, 16px); }
}

.features {
    padding: 0;
    background:
        linear-gradient(180deg, rgba(11, 14, 20, 0.88) 0%, rgba(11, 14, 20, 0.98) 100%),
        radial-gradient(circle at 15% 20%, rgba(108, 92, 231, 0.2), transparent 34%);
}

.features-grid {
    gap: 1rem;
}

.feature-card {
    background: linear-gradient(180deg, rgba(20, 24, 32, 0.92) 0%, rgba(17, 20, 28, 0.98) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.feature-card:hover {
    border-color: rgba(143, 124, 255, 0.48);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.26);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
}

.pricing-preview {
    padding: 0;
    background:
        linear-gradient(180deg, rgba(11, 14, 20, 0.95) 0%, rgba(8, 10, 14, 1) 100%),
        radial-gradient(circle at 80% 10%, rgba(0, 210, 106, 0.12), transparent 24%);
}

.pricing-preview .landing-panel__head {
    margin-bottom: 1.5rem;
}

.pricing-showcase {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.35rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top, rgba(108, 92, 231, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(18, 22, 31, 0.94) 0%, rgba(10, 13, 19, 0.98) 100%);
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pricing-grid {
    gap: 1.25rem;
    margin-bottom: 0;
}

.price-card {
    min-height: 284px;
    padding: 3.55rem 1.5rem 1.9rem;
    background: linear-gradient(180deg, rgba(20, 24, 32, 0.92) 0%, rgba(16, 19, 27, 0.98) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.price-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.price-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top center, rgba(255, 255, 255, 0.08), transparent 38%);
    opacity: 0.8;
    pointer-events: none;
}

.price-card--popular {
    border-color: rgba(143, 124, 255, 0.52);
    box-shadow:
        0 0 34px rgba(108, 92, 231, 0.2),
        inset 0 0 0 1px rgba(143, 124, 255, 0.18);
}

.price-card--best {
    border-color: rgba(0, 210, 106, 0.42);
    box-shadow:
        0 0 34px rgba(0, 210, 106, 0.12),
        inset 0 0 0 1px rgba(0, 210, 106, 0.08);
}

.price-badge {
    top: 14px;
    padding: 5px 14px;
    z-index: 2;
}

.price-card--best::before {
    background: radial-gradient(circle at top center, rgba(0, 210, 106, 0.12), transparent 42%);
}

.price-period,
.price-amount,
.price-note,
.price-discount,
.price-per-day {
    position: relative;
    z-index: 1;
}

.price-period {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: rgba(232, 234, 237, 0.72);
}

.price-amount {
    font-size: clamp(2.2rem, 3vw, 3.1rem);
    line-height: 1;
    margin-bottom: 0.8rem;
    white-space: nowrap;
    letter-spacing: -0.04em;
}

.price-note {
    min-height: 2.9em;
    margin-bottom: 0.95rem;
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.55;
}

.price-discount {
    font-size: 1.05rem;
    margin-bottom: 0.55rem;
}

.price-discount--placeholder {
    visibility: hidden;
}

.price-per-day {
    font-size: 0.95rem;
    margin-top: auto;
}

.pricing-cta {
    margin-top: 1.6rem;
}

.pricing-cta .btn {
    min-width: 240px;
    min-height: 58px;
}

.landing-footer {
    margin-top: auto;
    min-height: 82px;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.landing-footer__links {
    display: flex;
    gap: 1.25rem;
}

.landing-footer__links a {
    color: var(--text-dim);
}

.landing-footer__links a:hover {
    color: var(--text);
}

.sub-info-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0;
}

.sub-info-item {
    padding: 1.1rem 0.7rem;
}

.sub-info-value--traffic {
    font-size: 1.35rem;
    line-height: 1.1;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.sub-device-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(143, 124, 255, 0.2);
    border-radius: var(--radius);
}

.sub-device-strip__main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.sub-device-strip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 1.25rem;
}

.sub-device-strip__copy {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.sub-device-strip__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sub-device-strip__status {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.quick-link-card {
    min-height: 126px;
    justify-content: center;
    padding: 1.2rem 0.95rem;
}

.quick-link-card--wide {
    grid-column: 1 / -1;
    min-height: 144px;
}

.quick-link-card--primary {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.14), rgba(18, 22, 31, 0.98));
    border-color: rgba(143, 124, 255, 0.38);
    color: var(--text);
}

.quick-link-card--primary .quick-link-icon {
    font-size: 1.7rem;
}

.quick-link-card--success,
.quick-link-card--accent {
    min-height: auto;
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
}

.quick-link-card--success {
    background: rgba(0, 210, 106, 0.09);
    border-color: rgba(0, 210, 106, 0.22);
    color: var(--green);
}

.quick-link-card--accent {
    background: rgba(108, 92, 231, 0.12);
    border-color: rgba(143, 124, 255, 0.28);
    color: #d9d0ff;
}

.quick-link-title {
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}

.quick-link-text {
    color: var(--text-dim);
    font-size: 0.82rem;
    line-height: 1.45;
}

.auth-card {
    max-width: 470px;
    padding: 2.2rem;
    background:
        linear-gradient(180deg, rgba(20, 24, 32, 0.96) 0%, rgba(15, 18, 26, 0.99) 100%);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.auth-heading {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-title {
    margin-bottom: 0.65rem;
}

.auth-subtitle {
    margin-bottom: 0;
}

.auth-tabs {
    padding: 0.25rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.auth-tab {
    border-radius: 12px;
    margin-bottom: 0;
    border-bottom: none;
}

.auth-tab--active {
    background: rgba(108, 92, 231, 0.14);
    color: #d9d0ff !important;
    box-shadow: inset 0 0 0 1px rgba(143, 124, 255, 0.24);
}

.auth-start-note,
.auth-callout {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1rem 1.05rem;
    border-radius: 14px;
    margin-bottom: 1rem;
}

.auth-start-note {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(143, 124, 255, 0.22);
}

.auth-start-note__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.05rem;
}

.auth-start-note strong,
.auth-callout strong {
    color: var(--text);
}

.auth-start-note p {
    margin-top: 0.35rem;
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.6;
}

.auth-callout {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b8c2d3;
    font-size: 0.9rem;
    line-height: 1.65;
}

.manage-section {
    padding: 2rem 0 3rem;
}

.manage-container {
    max-width: 1080px;
}

.manage-hero {
    margin-bottom: 1.25rem;
}

.manage-hero__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.manage-title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin-top: 0.7rem;
    margin-bottom: 0.5rem;
}

.manage-subtitle {
    max-width: 650px;
    color: var(--text-dim);
}

.manage-hero__chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.manage-chip {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
}

.manage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.95fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.manage-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.manage-stat {
    padding: 1rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 0;
}

.manage-stat--lte {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.manage-stat__label {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.manage-stat__value {
    display: block;
    margin-top: 0.45rem;
    font-size: 1.4rem;
    color: var(--text);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.manage-stat__hint {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.manage-stat__subhint {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-dim);
    font-size: 0.86rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.manage-stat__subhint b {
    color: var(--text);
    font-weight: 800;
}

.manage-stat__meter {
    margin-top: 0.75rem;
}

.manage-metrics {
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--bg-input);
}

.manage-sub-link {
    margin-top: 1rem;
}

.manage-actions-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.manage-card-note {
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.6;
}

.manage-card-note--center {
    max-width: 620px;
    margin: 0 auto 1.6rem;
    text-align: center;
}

.manage-relay-card {
    margin-bottom: 1rem;
}

.manage-relay-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.manage-relay-summary,
.manage-relay-buy {
    min-width: 0;
}

.manage-relay-meter {
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.manage-relay-meter span {
    display: block;
    height: 100%;
    min-width: 4px;
    max-width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4ade80, #38bdf8);
}

.manage-relay-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.manage-relay-stats div {
    padding: 0.85rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.065);
}

.manage-relay-stats span {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.manage-relay-stats strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--text);
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.manage-relay-buy h3 {
    margin-bottom: 0.85rem;
    font-size: 1.05rem;
}

.manage-relay-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.manage-relay-option {
    min-height: 104px;
    border-color: var(--border-light);
    background: transparent;
    color: var(--text);
    box-shadow: none;
}

.manage-relay-option:hover {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.manage-relay-option strong {
    color: var(--text-dim);
}

.manage-relay-custom {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--bg-input);
}

.manage-relay-custom label,
.manage-relay-custom small {
    display: block;
    color: var(--text-dim);
    font-size: 0.88rem;
}

.manage-relay-custom__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    margin: 0.55rem 0;
}

.manage-relay-guide-actions {
    margin-top: 1rem;
}

.manage-relay-guide {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--bg-input);
    border: 1px solid var(--border-light);
}

.manage-relay-guide h3 {
    margin-bottom: 0.7rem;
    font-size: 1rem;
}

.manage-relay-guide ol {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-dim);
    line-height: 1.65;
}

.manage-relay-guide li + li {
    margin-top: 0.4rem;
}

.manage-section-head {
    align-items: flex-start;
    gap: 1rem;
}

.manage-section-head p {
    margin-top: 0.35rem;
    color: var(--text-dim);
    font-size: 0.92rem;
}

.manage-danger-trigger {
    color: #ff9aa4;
}

.manage-danger-trigger:hover {
    color: #fff;
    background: rgba(255, 71, 87, 0.12);
}

.manage-device-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.manage-device-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.manage-device-main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.manage-device-emoji {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1.3rem;
}

.manage-device-copy {
    min-width: 0;
}

.manage-device-copy h3 {
    font-size: 1.02rem;
    margin-bottom: 0.2rem;
}

.manage-device-copy p {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-bottom: 0.2rem;
    word-break: break-word;
}

.manage-device-copy span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.manage-remove-btn {
    min-width: 102px;
}

.manage-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-dim);
}

.manage-empty__icon {
    font-size: 2.4rem;
    margin-bottom: 0.7rem;
}

.manage-slot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.manage-slot-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.28rem;
    padding: 1rem 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(143, 124, 255, 0.2);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.16), rgba(19, 23, 31, 0.96));
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    font-family: var(--font);
}

.manage-slot-option:hover {
    transform: translateY(-2px);
    border-color: rgba(143, 124, 255, 0.4);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.manage-slot-option span {
    font-size: 1.45rem;
    font-weight: 800;
}

.manage-slot-option strong {
    font-size: 0.95rem;
}

.manage-slot-option em {
    color: #d9d0ff;
    font-style: normal;
    font-size: 0.9rem;
}

.manage-slot-option.manage-relay-option {
    border-color: var(--border-light);
    background: transparent;
    color: var(--text);
    box-shadow: none;
}

.manage-slot-option.manage-relay-option:hover {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.manage-slot-option.manage-relay-option strong {
    color: var(--text-dim);
}

.btn-danger {
    background: #ff5b6b;
    color: #fff;
}

.btn-danger:hover {
    background: #ff4757;
    color: #fff;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffd86b;
    border: 1px solid rgba(255, 193, 7, 0.25);
}

.alert--compact {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.modal-open {
    overflow: hidden;
}

.site-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.site-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 10, 0.74);
    backdrop-filter: blur(8px);
}

.site-modal__dialog {
    position: relative;
    width: min(92vw, 480px);
    margin: 8vh auto 0;
    background: linear-gradient(180deg, rgba(20, 24, 32, 0.98), rgba(14, 17, 25, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.site-modal__head,
.site-modal__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
}

.site-modal__head {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-modal__body {
    padding: 1rem 1.1rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.site-modal__actions {
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-modal__close {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
}

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

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

    .sub-brief__meta {
        grid-template-columns: 1fr;
    }

    .manage-slot-grid {
        grid-template-columns: 1fr;
    }

    .manage-relay-layout,
    .manage-relay-options,
    .manage-relay-custom__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.body--landing {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .main--landing {
        overflow: visible;
    }

    .landing-page {
        height: auto;
        min-height: 0;
        overflow: visible;
        scroll-snap-type: none;
        scroll-behavior: auto;
    }

    .landing-section {
        min-height: auto;
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }

    .landing-panel {
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .landing-panel--footer {
        min-height: auto;
    }

    .hero {
        min-height: calc(100dvh - var(--nav-height));
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

    .hero-buttons {
        max-width: 100%;
    }

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

    .pricing-showcase {
        padding: 1rem;
        border-radius: 24px;
    }

    .price-card {
        min-height: 0;
        padding-top: 3.3rem;
    }

    .landing-footer {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .landing-footer__links {
        justify-content: center;
    }

    .manage-hero__top,
    .sub-device-strip,
    .manage-device-item {
        flex-direction: column;
        align-items: stretch;
    }

    .manage-actions-shell {
        order: -1;
    }

    .manage-remove-btn {
        width: 100%;
    }

    .quick-links {
        grid-template-columns: 1fr 1fr !important;
    }

    .quick-link-card--wide {
        min-height: 132px;
    }
}

@media (max-width: 560px) {
    .hero-content {
        padding: 0 0.35rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.08;
        max-width: 340px;
    }

    .hero-sub {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 340px;
    }

    .hero-buttons {
        grid-template-columns: 1fr;
    }

    .sub-info-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .sub-info-item {
        border-right: 1px solid var(--border);
        border-bottom: none;
        padding: 0.85rem 0.35rem;
    }

    .sub-info-item:last-child {
        border-right: none;
    }

    .sub-info-label {
        font-size: 0.62rem;
        letter-spacing: 0.05em;
    }

    .sub-info-value {
        font-size: 0.98rem;
    }

    .sub-info-value--big {
        font-size: 1.2rem;
    }

    .sub-info-value--traffic {
        font-size: 1.6rem;
    }

    .sub-summary-tiles {
        grid-template-columns: 1fr;
    }

    .sub-summary-tile {
        min-height: 104px;
        padding: 0.9rem;
    }

    .sub-details-panel {
        display: grid;
        gap: 0.85rem;
        padding: 0.9rem;
    }

    .sub-details-panel__counter {
        min-width: 0;
        justify-items: start;
        text-align: left;
    }

    .sub-tree__line {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 0.45rem;
    }

    .sub-tree__line strong {
        grid-column: 2;
        justify-self: start;
        text-align: left;
        white-space: normal;
    }

    .sub-tree__line--group {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .sub-state > div {
        display: grid;
        gap: 0.1rem;
    }

    .sub-state strong {
        text-align: left;
    }

    .sub-brief {
        padding: 0.85rem;
    }

    .sub-usage-grid {
        grid-template-columns: 1fr;
    }

    .sub-usage-card {
        min-height: 104px;
        padding: 0.9rem;
    }

    .sub-usage-card strong {
        font-size: 1.65rem;
    }

    .sub-brief__title {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.3rem;
    }

    .sub-summary__head,
    .sub-summary__row {
        gap: 0.75rem;
    }

    .sub-summary__row {
        font-size: 0.88rem;
    }

    .sub-summary__row strong {
        font-size: 0.95rem;
        max-width: 48%;
        overflow-wrap: anywhere;
    }

    .manage-card-note--center {
        margin-bottom: 1.9rem;
    }

    .quick-links {
        grid-template-columns: 1fr 1fr !important;
    }

    .quick-link-card {
        min-height: 118px;
        padding: 1rem 0.75rem;
    }

    .quick-link-card--wide {
        grid-column: 1 / -1;
    }

    .auth-card {
        padding: 1.4rem;
    }

    .auth-tabs {
        flex-direction: column;
    }

    .auth-tab {
        width: 100%;
    }

    .manage-title {
        font-size: 1.5rem;
    }

    .site-modal__dialog {
        width: calc(100vw - 1rem);
        margin-top: 4vh;
    }
}
