:root {
    --primary: #ff9500;
    --primary-bright: #ffa726;
    --primary-dark: #e65100;
    --secondary: #7c5cbf;
    --accent: #ff9100;
    --glow: rgba(255, 149, 0, 0.45);
    --glow-purple: rgba(124, 92, 191, 0.35);
    --dark-bg: #0a0614;
    --dark-card: rgba(22, 18, 40, 0.82);
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-secondary: #b8b4c8;
    --gradient-hero: linear-gradient(145deg, #12081f 0%, #1a1030 40%, #151028 100%);
    --gradient-accent: linear-gradient(135deg, #ff9500 0%, #ff6d00 100%);
    --nav-pill-bg: rgba(12, 10, 24, 0.75);
    --header-touch: 2.75rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--dark-bg);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Unbounded', sans-serif;
}

a {
    color: var(--primary-bright);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(160deg, #0d0618 0%, #16102a 35%, #1a1438 55%, #120a22 100%);
    background-size: 400% 400%;
    animation: gradientShift 18s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 149, 0, 0.35) 0%, transparent 68%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(90, 60, 140, 0.45) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(180, 120, 255, 0.22) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.28;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

.wave-circles {
    position: fixed;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 80%;
    z-index: -1;
    pointer-events: none;
}

.wave-circle {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 1px solid rgba(139, 110, 200, 0.22);
    animation: waveExpand 10s ease-out infinite;
}

.wave-circle:nth-child(1) { width: 200px; height: 200px; margin-left: -100px; animation-delay: 0s; }
.wave-circle:nth-child(2) { width: 400px; height: 400px; margin-left: -200px; animation-delay: 2s; }
.wave-circle:nth-child(3) { width: 600px; height: 600px; margin-left: -300px; animation-delay: 4s; }
.wave-circle:nth-child(4) { width: 800px; height: 800px; margin-left: -400px; animation-delay: 6s; }
.wave-circle:nth-child(5) { width: 1000px; height: 1000px; margin-left: -500px; animation-delay: 8s; }

@keyframes waveExpand {
    0% { opacity: 0.4; transform: translateX(-50%) scale(0.3); }
    100% { opacity: 0; transform: translateX(-50%) scale(1.2); }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(15, 15, 27, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    width: 100%;
}

.header-inner .logo {
    justify-self: start;
}

.header-trailing {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: var(--header-touch);
    height: var(--header-touch);
    min-width: var(--header-touch);
    min-height: var(--header-touch);
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.header-burger:hover {
    background: rgba(255, 149, 0, 0.1);
    border-color: rgba(255, 149, 0, 0.35);
    color: var(--primary-bright);
}

.header-burger .header-burger-close {
    display: none;
    font-size: 1.15rem;
}

.header-burger.is-open .header-burger-icon {
    display: none;
}

.header-burger.is-open .header-burger-close {
    display: block;
}

.header-burger-icon {
    font-size: 1.15rem;
}

body.header-nav-open {
    overflow: hidden;
}

.header-nav-pill {
    position: relative;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.45rem 0.45rem 0.35rem;
    background: var(--nav-pill-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-pill-thumb {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 0;
    border-radius: 999px;
    background: rgba(255, 149, 0, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 149, 0, 0.35);
    transform: translate(0, 0);
    transition:
        transform 0.38s cubic-bezier(0.34, 1.15, 0.64, 1),
        width 0.38s cubic-bezier(0.34, 1.15, 0.64, 1),
        height 0.38s cubic-bezier(0.34, 1.15, 0.64, 1);
    will-change: transform, width, height;
}

.nav-pill-link {
    position: relative;
    z-index: 1;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.25s ease;
}

.nav-pill-link:hover {
    color: var(--text);
}

.nav-pill-link.active {
    color: var(--primary-bright);
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: var(--header-touch);
    height: var(--header-touch);
    min-width: var(--header-touch);
    min-height: var(--header-touch);
    display: flex;
    align-items: center;
    justify-content: center;
/*    background: var(--gradient-accent);
    border-radius: 12px;
    box-sizing: border-box;
    flex-shrink: 0;
    font-size: 1.2rem;
    color: #1a0a12;
    box-shadow: 0 0 24px var(--glow);*/
}

.logo-icon img {
    width: 29px;
    height: auto;
}

.logo-text {
    font-family: 'Unbounded';
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    /*color: transparent;*/
    letter-spacing: 0.06em;
    text-transform: uppercase;
    /*left: 20px;*/
    position: relative;
    letter-spacing: -1px;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: inherit;
}

.btn.is-loading {
    cursor: wait;
    pointer-events: none;
    opacity: 0.92;
}

.btn.is-loading::after {
    content: '';
    width: 1.05em;
    height: 1.05em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    flex-shrink: 0;
    animation: friendvpnBtnSpin 0.7s linear infinite;
}

@keyframes friendvpnBtnSpin {
    to {
        transform: rotate(360deg);
    }
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 15px var(--glow);
}

.btn-primary, .btn-outline:hover {
    background: var(--gradient-accent);
    color: white;
/*    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--glow), 0 0 40px rgba(255, 149, 0, 0.28);*/
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 149, 0, 0.55);
    color: var(--primary-bright);
}

.btn-account {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.btn-account:hover {
    background: rgba(255, 149, 0, 0.08);
    border-color: rgba(255, 149, 0, 0.45);
    color: var(--primary-bright);
}

.header-trailing .btn-account {
    height: var(--header-touch);
    min-height: var(--header-touch);
    padding: 0 1.1rem;
    box-sizing: border-box;
    border-radius: 12px;
}

.account-menu-wrap {
    position: relative;
}
.account-menu-chevron {
    font-size: 0.65rem;
    opacity: 0.75;
    transition: transform 0.2s ease;
    display: none;
}
.account-menu-wrap--logged-in .account-menu-chevron {
    display: inline-block;
}
.account-menu-wrap--open .account-menu-chevron {
    transform: rotate(180deg);
}
.account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    padding: 0.4rem;
    border-radius: 14px;
    background: rgba(18, 14, 32, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    z-index: 1100;
}
.account-dropdown[hidden] {
    display: none !important;
}
.account-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.account-dropdown-item i {
    width: 1.1rem;
    text-align: center;
    color: var(--text-secondary);
}
.account-dropdown-item:hover,
.account-dropdown-item:focus-visible {
    background: rgba(255, 149, 0, 0.12);
    color: var(--primary-bright);
    outline: none;
}
.account-dropdown-item:hover i,
.account-dropdown-item:focus-visible i {
    color: var(--primary-bright);
}
.account-dropdown-item--logout:hover,
.account-dropdown-item--logout:focus-visible {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}
.account-dropdown-item--logout:hover i,
.account-dropdown-item--logout:focus-visible i {
    color: #fca5a5;
}

/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 8rem 5% 5.5rem;
    top: 3rem;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--gradient-hero);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
/*    background: rgba(255, 149, 0, 0.12);
    border: 1px solid rgba(255, 149, 0, 0.35);*/
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #86efac;
    border-radius: 50px;
    font-size: 0.85rem;
   /* color: var(--primary-bright);*/
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-badge i {
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 3.0rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero .slogan {
    font-size: 1.5rem;
    color: var(--primary-bright);
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 8rem;
    max-width: max-content;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.hero .pulse {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.35s backwards;
}

.hero-facepile {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.hero-facepile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.28);
    margin-left: -12px;
    position: relative;
}

.hero-facepile img:first-child {
    margin-left: 0;
    z-index: 4;
}

.hero-facepile img:nth-child(2) {
    z-index: 3;
}

.hero-facepile img:nth-child(3) {
    z-index: 2;
}

.hero-facepile img:nth-child(4) {
    z-index: 1;
}

.hero-social-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.35;
}

.hero-social-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.hero-social-trust {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-social-trust strong {
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

.hero-scroll-hint {
    /*display: flex;*/
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    z-index: 3;
    transition: color 0.25s ease;
    animation: heroScrollHint 2.2s ease-in-out infinite;
}

.hero-scroll-hint:hover {
    color: var(--text);
}

.hero-scroll-hint i {
    font-size: 0.85rem;
}

@keyframes heroScrollHint {
    0%, 100% {
        opacity: 0.4;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(8px);
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-store-buttons {
    gap: 1rem;
}

.hero-store-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--dark-card);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.hero-store-badge:hover {
    background: rgba(255, 149, 0, 0.08);
    border-color: rgba(255, 149, 0, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 149, 0, 0.12);
}

.hero-store-badge i {
    font-size: 1.75rem;
    color: white;
}

.hero-store-badge span {
    font-weight: 600;
    font-size: 1rem;
}

.hero-telegram-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 4.5rem;
    margin-bottom: 0;
    padding: 0 5%;
    animation: fadeInUp 0.8s ease 0.5s backwards;
}

.btn-telegram {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 2.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    background: rgba(10, 8, 22, 0.65);
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    transition: transform 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.btn-telegram[hidden] {
    display: none;
}

.btn-telegram i {
    font-size: 1.35rem;
    color: var(--text);
}

.btn-telegram:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 149, 0, 0.55);
    color: var(--primary-bright);
    box-shadow: 0 12px 40px rgba(255, 149, 0, 0.15);
}

.btn-telegram:hover i,
.btn-telegram:focus-visible i {
    color: var(--primary-bright);
}

.hero-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 440px;
    min-height: 560px;
    z-index: 2;
    overflow: visible;
    animation: fadeInUp 0.8s ease 0.25s backwards;
}

.hero-visual::before {
    content: '';
    position: absolute;
    bottom: -4rem;
    left: -3.5rem;
    top: auto;
    right: auto;
    width: min(26rem, 95vw);
    height: min(26rem, 95vw);
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse 95% 95% at 28% 78%,
        rgba(130, 72, 38, 0.52) 0%,
        rgba(107, 58, 30, 0.32) 32%,
        rgba(80, 45, 28, 0.1) 52%,
        transparent 68%
    );
    filter: blur(52px);
    -webkit-filter: blur(52px);
    border-radius: 50%;
}

.hero-visual::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: -1rem;
    top: auto;
    right: auto;
    width: min(12rem, 40vw);
    height: min(10rem, 32vw);
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at 45% 58%,
        rgba(255, 149, 70, 0.22) 0%,
        rgba(200, 100, 45, 0.08) 45%,
        transparent 62%
    );
    filter: blur(22px);
    -webkit-filter: blur(22px);
}

.hero-phone-scene {
    position: relative;
    z-index: 1;
    width: min(100%, 340px);
    padding: 2.5rem 1.25rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone {
    position: relative;
    width: 278px;
    border-radius: 36px;
    padding: 10px;
    background: linear-gradient(165deg, #1a2035 0%, #0d1118 50%, #121a28 100%);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-phone-bezel {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 26px;
    background: #0a0e14;
    border-radius: 0 0 18px 18px;
    z-index: 2;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}

.hero-phone-screen {
    position: relative;
    border-radius: 28px;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    color: #2c3140;
    overflow: hidden;
}

.hero-phone-screen--happ {
    background:
        radial-gradient(ellipse 120% 50% at 50% -8%, rgba(210, 228, 255, 0.45) 0%, transparent 50%),
        radial-gradient(ellipse 85% 42% at 92% 22%, rgba(232, 240, 254, 0.55) 0%, transparent 44%),
        linear-gradient(170deg, #eef2fb 0%, #f8fafd 50%, #e8effa 100%);
}

.hero-phone-screen--happ::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 180% 35% at 50% 108%, rgba(180, 195, 220, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.hero-app-topbar {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.5rem 0.5rem;
    font-size: 0.65rem;
    color: #1a1d26;
}

.hero-app-top-ic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    color: #1a1d26;
}

.hero-app-top-ic:first-child {
    justify-self: start;
}

.hero-app-top-ic:last-child {
    justify-self: end;
}

.hero-app-time {
    justify-self: center;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.hero-app-main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.65rem 0.85rem;
    min-height: 0;
}

.hero-connect-block {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.hero-connect-rings {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-connect-rings span {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 2px solid rgba(107, 140, 255, 0.42);
    box-shadow:
        0 0 0 1px rgba(124, 111, 214, 0.12),
        0 0 12px rgba(107, 140, 255, 0.15);
    transform: translate(-50%, -50%);
    animation: heroHappRipple 2.85s cubic-bezier(0.33, 0.53, 0.38, 0.97) infinite;
    will-change: transform, opacity;
}

.hero-connect-rings span:nth-child(1) {
    width: 146px;
    height: 146px;
    animation-delay: 0s;
}

.hero-connect-rings span:nth-child(2) {
    width: 172px;
    height: 172px;
    animation-delay: 0.65s;
}

.hero-connect-rings span:nth-child(3) {
    width: 198px;
    height: 198px;
    animation-delay: 1.3s;
}

.hero-connect-rings span:nth-child(4) {
    width: 224px;
    height: 224px;
    animation-delay: 1.95s;
}

@keyframes heroHappRipple {
    0% {
        transform: translate(-50%, -50%) scale(0.82);
        opacity: 0.72;
    }
    45% {
        opacity: 0.35;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.18);
        opacity: 0;
    }
}

.hero-connect-btn {
    position: relative;
    z-index: 1;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem;
    background: #ffffff;
    color: #1a1d26;
    cursor: default;
    box-shadow:
        0 12px 32px rgba(35, 55, 110, 0.1),
        0 4px 14px rgba(35, 45, 75, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.95) inset;
    animation: heroHappDiskBreath 2.75s ease-in-out infinite;
}

.hero-connect-power {
    font-size: 1.55rem;
    color: #7c6fd6;
    filter: drop-shadow(0 1px 1px rgba(124, 111, 214, 0.22));
}

.hero-connect-state {
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #7c6fd6;
    text-transform: uppercase;
    line-height: 1.15;
    max-width: 5.5rem;
    text-align: center;
}

@keyframes heroHappDiskBreath {
    0%, 100% {
        box-shadow:
            0 10px 28px rgba(35, 45, 75, 0.12),
            0 4px 12px rgba(35, 45, 75, 0.06),
            0 0 0 1px rgba(255, 255, 255, 0.9) inset;
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 14px 36px rgba(80, 95, 140, 0.16),
            0 6px 18px rgba(124, 111, 214, 0.08),
            0 0 0 1px rgba(255, 255, 255, 1) inset;
        transform: scale(1.022);
    }
}

.hero-app-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    max-width: 252px;
    padding: 0 0.25rem;
}

.hero-app-link {
    font-size: 0.52rem;
    color: #5b8cff;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    flex: 1;
}

.hero-app-sheet {
    position: relative;
    z-index: 1;
    margin-top: auto;
    width: 100%;
    background: #ffffff;
    border-radius: 22px 22px 26px 26px;
    padding: 0.85rem 0.55rem 0.65rem;
    box-shadow:
        0 -12px 36px rgba(40, 55, 95, 0.06),
        0 0 0 1px rgba(180, 195, 230, 0.35);
}

.hero-app-sheet-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
    padding: 0 0.2rem 0.45rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.045);
}

.hero-app-chev {
    font-size: 0.58rem;
    color: #b8bed0;
}

.hero-app-sheet-titleblock {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}

.hero-app-sheet-name {
    font-size: 0.74rem;
    font-weight: 800;
    color: #3d4458;
    letter-spacing: 0.05em;
}

.hero-app-sheet-meta {
    font-size: 0.5rem;
    color: #96a0b8;
    line-height: 1.35;
}

.hero-app-sheet-tg {
    color: #229ed9;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hero-app-servers {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-srv {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.4rem;
    border-radius: 12px;
    position: relative;
}

.hero-srv--active {
    background: rgba(232, 240, 254, 0.85);
    box-shadow: inset 3px 0 0 #4f7dff;
}

.hero-srv-flag {
    flex-shrink: 0;
    width: 30px;
    height: 22px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(35, 55, 95, 0.12);
}

.hero-srv-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-srv-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.06rem;
}

.hero-srv-name {
    font-size: 0.62rem;
    font-weight: 700;
    color: #2c3140;
}

.hero-srv-meta {
    font-size: 0.48rem;
    color: #8b92a6;
}

.hero-srv-arrow {
    font-size: 0.55rem;
    color: #c5cad8;
    flex-shrink: 0;
}

.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 3;
    backdrop-filter: blur(12px);
}

.hero-float-card--fast {
    top: 0;
    right: -8px;
    animation: heroFloatBob 4s ease-in-out infinite;
}

.hero-float-card--secure {
    bottom: 12px;
    left: -12px;
    animation: heroFloatBob 4.8s ease-in-out infinite;
    animation-delay: -1.2s;
}

@keyframes heroFloatBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-float-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.hero-float-icon--fast {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.hero-float-icon--secure {
    background: rgba(52, 152, 219, 0.15);
    color: #2980b9;
}

.hero-float-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-align: left;
}

.hero-float-body strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1d26;
}

.hero-float-body span {
    font-size: 0.72rem;
    color: #8b90a0;
}

/* Features section */
.section {
    padding: 6rem 5%;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 734px;
    margin: 0 auto 4rem;
}

.section-header .badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 149, 0, 0.12);
    border: 1px solid rgba(255, 149, 0, 0.25);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-bright);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--dark-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 149, 0, 0.28);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.55), 0 0 36px rgba(255, 149, 0, 0.08);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.18), rgba(100, 70, 160, 0.2));
    border-radius: 16px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-bright);
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* App section */
.app-section {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 149, 0, 0.04) 50%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.app-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.app-text {
    flex: 1;
}

.app-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.app-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.app-stores {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--dark-card);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.store-badge:hover {
    background: rgba(255, 149, 0, 0.08);
    border-color: rgba(255, 149, 0, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 149, 0, 0.12);
}

.store-badge i {
    font-size: 2rem;
}

.store-badge span {
    font-weight: 600;
    font-size: 1rem;
}

.app-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.mockup-container {
    position: relative;
    max-width: 380px;
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
}

.mockup-container img {
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Pricing section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--dark-card);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    position: relative;
    padding: 2rem 1.5rem 1.35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55rem;
}

.pricing-card:hover {
    cursor: pointer;
    /*background: rgba(255, 149, 0, 0.08);*/
    border-color: rgba(255, 149, 0, 0.45);
    transform: translateY(-3px);
   /* box-shadow: 0 10px 30px rgba(255, 149, 0, 0.12);*/
}

.pricing-card.popular {
    border: 1px solid var(--primary);
    /*box-shadow: 0 0 0 1px rgba(255, 149, 0, 0.28), 0 20px 40px -15px rgba(0, 0, 0, 0.5);*/
}

.pricing-card.popular::before {
    content: none;
}

.pricing-popular-badge {
    position: absolute;
    top: -0.7rem;
    left: -0.7rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 149, 0, 0.92);
    background: #ff9500;
    color: #161028;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    z-index: 3;
    /*box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);*/
}

.pricing-popular-badge i {
    font-size: 0.82rem;
}

.pricing-popular-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    font-size: 0.76rem;
    font-weight: 600;
    color: #fff;
    background: #0e0a1d;
    border: 1px solid rgba(255, 149, 0, 0.5);
    border-radius: 8px;
    padding: 0.3rem 0.55rem;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.pricing-popular-badge:hover::after,
.pricing-popular-badge:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.pricing-duration {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.pricing-main-value {
    font-family: 'Inter', sans-serif;
    font-size: 2.7rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.pricing-hint {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.1rem;
    position: absolute;
    top: -0.68rem;
    right: -0.68rem;
    margin-top: 0;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: #0f766e;
    border: 1px solid #14b8a6;
    color: #d1fae5;
    font-size: 0.82rem;
    font-weight: 700;
    z-index: 2;
    /*box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);*/
}

.pricing-card .pricing-list-row__features {
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    width: 100%;
    gap: 0;
    margin-top: 0.85rem;
    padding: 0.75rem 0.95rem;
    text-align: left;
/*    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);*/
}

/*.pricing-card.popular .pricing-list-row__features {
    background: rgba(255, 149, 0, 0.07);
    border-color: rgba(255, 149, 0, 0.18);
}*/

.pricing-card .pricing-list-row__features li {
    white-space: normal;
    justify-content: flex-start;
    gap: 0.55rem;
    padding: 0.52rem 0;
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.35;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pricing-card .pricing-list-row__features li:first-child {
    padding-top: 0;
}

.pricing-card .pricing-list-row__features li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.pricing-card .pricing-list-row__features li i {
    width: 1.28rem;
    height: 1.28rem;
    font-size: 0.58rem;
    background: rgba(255, 149, 0, 0.22);
    border-color: rgba(255, 149, 0, 0.42);
    color: #ffb347;
}

.pricing-footer {
    margin-top: auto;
    padding-top: 1.15rem;
    width: 100%;
    /*border-top: 1px solid rgba(255, 255, 255, 0.06);*/
}

.pricing-footer .btn {
    width: 100%;
    justify-content: center;
}

.pricing-card.popular .btn-primary {
    box-shadow: 0 4px 20px var(--glow);
}

/* Переключатель вида тарифов */
.pricing-toolbar {
    display: flex;
    justify-content: flex-end;
    max-width: 1200px;
    margin: -0.25rem auto 1.1rem;
    padding: 0 0.25rem;
}

.pricing-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.28rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
}

.pricing-view-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pricing-view-toggle__btn i {
    font-size: 0.9rem;
}

.pricing-view-toggle__btn:hover {
    color: var(--text);
}

.pricing-view-toggle__btn.is-active {
    color: #fff;
    background: var(--gradient-accent);
    box-shadow: 0 4px 16px var(--glow);
}

.pricing-views {
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-view[hidden] {
    display: none !important;
}

/* Тарифы — вид список */
.pricing-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.pricing-list-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(6.5rem, 9.5rem) minmax(7rem, 10.5rem) minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem 1.25rem;
    padding: 1.7rem 1.15rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--dark-card);
    backdrop-filter: blur(20px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    overflow: visible;
}

.pricing-list-row:hover {
    border-color: rgba(255, 149, 0, 0.45);
}

.pricing-list-row--featured {
    border-color: var(--primary);
    /*box-shadow: 0 0 0 1px rgba(255, 149, 0, 0.22), 0 12px 32px rgba(0, 0, 0, 0.28);*/
    background: rgba(255, 149, 0, 0.06);
}

.pricing-list-row__term-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-width: 0;
}

.pricing-list-row .pricing-duration {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

/*[data-theme="light"] .btn-outline:hover {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
}
[data-theme="light"] .app-section {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 149, 0, 0.03) 50%, transparent 100%);
}*/

.pricing-list-row__popular {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: var(--gradient-accent);
    color: #161028;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 12px var(--glow);
}

.pricing-list-row__popular[hidden] {
    display: none !important;
}

.pricing-list-row__price-col {
    min-width: 0;
}

.pricing-list-row__price-line {
    display: flex;
    flex-wrap: wrap;
    /*align-items: baseline;*/
    gap: 0.2rem 0.45rem;
}

.pricing-list-row__amount {
    font-family: 'Inter', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.05;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.pricing-list-row__discount {
    position: static;
    top: auto;
    right: auto;
    min-width: 0;
    margin: 0;
    padding: 0.2rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 999px;
    background: #0f766e;
    border: 1px solid #14b8a6;
    color: #d1fae5;
}

.pricing-list-row__discount[hidden] {
    display: none !important;
}

.pricing-list-row__features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 1.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}

.pricing-list-row__features li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.25;
    white-space: nowrap;
}

.pricing-list-row__features li i {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: rgba(255, 149, 0, 0.14);
    border: 1px solid rgba(255, 149, 0, 0.28);
    font-size: 0.52rem;
    color: var(--primary-bright);
    line-height: 1;
}

.pricing-list-row__action {
    flex-shrink: 0;
}

.pricing-list-row__action .btn {
    min-width: 7.5rem;
    justify-content: center;
    padding: 0.62rem 1.15rem;
    white-space: nowrap;
}

.pricing-list-row--featured .pricing-list-row__action .btn-primary {
    box-shadow: 0 4px 20px var(--glow);
}

@media (max-width: 1024px) {
    .pricing-list-row {
        grid-template-columns: minmax(5.5rem, 8rem) minmax(6.5rem, 9rem) minmax(0, 1fr) auto;
        gap: 0.75rem 0.85rem;
        padding: 0.9rem 0.95rem;
    }

    .pricing-list-row__features li {
        font-size: 0.8rem;
    }

    .pricing-list-row__amount {
        font-size: 1.45rem;
    }
}

@media (max-width: 860px) {
    .pricing-toolbar {
        justify-content: center;
    }

    .pricing-list-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "term action"
            "price action"
            "features features";
        align-items: start;
    }

    .pricing-list-row__term-col {
        grid-area: term;
    }

    .pricing-list-row__price-col {
        grid-area: price;
    }

    .pricing-list-row__features {
        grid-area: features;
        gap: 0.4rem 0.85rem;
    }

    .pricing-list-row__features li {
        white-space: normal;
    }

    .pricing-list-row__action {
        grid-area: action;
        align-self: center;
    }

    .pricing-list-row__action .btn {
        min-width: 6.5rem;
        padding: 0.55rem 0.85rem;
    }
}

@media (max-width: 480px) {
    .pricing-view-toggle__btn span {
        display: none;
    }

    .pricing-view-toggle__btn {
        padding: 0.5rem 0.65rem;
    }

    .pricing-list-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "term"
            "price"
            "features"
            "action";
    }

    .pricing-list-row__action {
        width: 100%;
    }

    .pricing-list-row__action .btn {
        width: 100%;
        min-width: 0;
    }
}

/* Блок оплаты при истёкшей подписке — 2×2 на всю ширину, без лишних полей */
.status-alert > div:last-of-type {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.status-alert:has(.pricing-grid--yookassa-renewal) {
    padding: 0.75rem 0.65rem 0.7rem;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.status-alert:has(.pricing-grid--yookassa-renewal) > div:last-of-type > strong {
    margin-bottom: 0.2rem;
}

.status-alert:has(.pricing-grid--yookassa-renewal) > div:last-of-type > p {
    margin-bottom: 0.28rem;
}

.status-alert:has(.pricing-grid--yookassa-renewal) .yookassa-renewal-foot {
    margin: 0.35rem 0 0;
}

.pricing-grid--yookassa-renewal {
    display: grid;
    width: 100%;
    max-width: none;
    margin: 0.25rem 0 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    /* Всегда два столбца → два ряда из четырёх тарифов */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 0.65rem 0.75rem;
    align-items: stretch;
}

.pricing-card--yookassa-renewal {
    padding: 1rem 0.85rem 0.9rem;
    gap: 0.4rem;
    border-radius: 16px;
    width: 100%;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

.pricing-card--yookassa-renewal .pricing-duration {
    font-size: 1rem;
}

.pricing-card--yookassa-renewal .pricing-main-value {
    font-size: 1.65rem;
}

.pricing-card--yookassa-renewal .pricing-hint {
    font-size: 0.8rem;
    min-height: 2.2em;
    line-height: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card--yookassa-renewal .pricing-discount--placeholder {
    visibility: hidden;
    pointer-events: none;
}

.pricing-card--yookassa-renewal .pricing-footer {
    padding-top: 0.65rem;
}

.pricing-card--yookassa-renewal .pricing-footer .btn {
    font-size: 0.88rem;
    padding: 0.5rem 0.65rem;
}

.pricing-card--yookassa-renewal .pricing-popular-badge {
    top: -0.5rem;
    left: -0.5rem;
    width: 1.75rem;
    height: 1.75rem;
}

.pricing-card--yookassa-renewal .pricing-discount {
    top: -0.48rem;
    right: -0.48rem;
    font-size: 0.74rem;
    padding: 0.2rem 0.45rem;
}

/* Продление: список тарифов (альтернатива сетке 2×2) */
.cabinet-renewal-panel {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.cabinet-renewal-panel__head {
    margin-bottom: 1rem;
}

.cabinet-renewal-panel__head strong {
    display: block;
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.cabinet-renewal-panel__head p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.renewal-plans {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}

.renewal-plan {
    position: relative;
    display: grid;
    grid-template-columns: minmax(7.5rem, 1fr) minmax(6.5rem, auto) minmax(7.5rem, auto);
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--cabinet-inner-block-bg, rgba(255, 255, 255, 0.03));
    transition: border-color 0.2s ease, background 0.2s ease;
    overflow: visible;
}

.renewal-plan:hover {
    border-color: rgba(255, 149, 0, 0.35);
}

.renewal-plan--featured {
    border-color: rgba(255, 149, 0, 0.55);
    background: rgba(255, 149, 0, 0.07);
    box-shadow: 0 0 0 1px rgba(255, 149, 0, 0.12);
}

.renewal-plan__term-col {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.35rem;
    min-width: 0;
}

.renewal-plan__term {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.renewal-plan__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    line-height: 1.2;
}

.renewal-plan__tag--popular {
    color: #ff9500;
    background: rgba(255, 149, 0, 0.12);
    border: 1px solid rgba(255, 149, 0, 0.35);
}

.renewal-plan__tag--popular i {
    font-size: 0.68rem;
}

.renewal-plan__tag--discount {
    color: #d1fae5;
    background: #0f766e;
    border: 1px solid #14b8a6;
}

.renewal-plan__price-col {
    text-align: center;
    min-width: 0;
}

.renewal-plan__price {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.1;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.renewal-plan__meta {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.25;
}

.renewal-plan__meta--empty {
    opacity: 0.65;
}

.renewal-plan__pay {
    width: 100%;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
}

@media (max-width: 640px) {

    /*
    .logo-icon img {
        width: 60px;
    }

    .logo-text {
        left: 10px;
    }
    */

    .logo {
        gap: initial;
    }

    .renewal-plan {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "term price"
            "pay pay";
    }

    .renewal-plan__term-col {
        grid-area: term;
    }

    .renewal-plan__price-col {
        grid-area: price;
        text-align: right;
    }

    .renewal-plan__pay {
        grid-area: pay;
    }
}

.cabinet-inner--subscription-expired .cabinet-renewal-panel {
    width: 100%;
}

.cabinet-inner--subscription-expired .yookassa-renewal-wrap:has(.renewal-plans) {
    width: 100%;
    margin: 0;
}

/* Reviews */
.reviews-section {
    background: linear-gradient(180deg, transparent 0%, rgba(124, 92, 191, 0.06) 40%, transparent 100%);
}

.reviews-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
    outline: none;
}

.reviews-showcase:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 149, 0, 0.45);
    border-radius: 20px;
}

.review-main {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    /*background: rgba(8, 7, 22, 0.85);*/
    background: rgba(13, 11, 35, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    min-height: 420px;
    height: 100%;
    padding: clamp(1.4rem, 2.8vw, 2.1rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
}

.review-main-quote {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(12, 121, 115, 0.28);
    color: #31d0c6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.review-main-quote i {
    font-size: 1.45rem;
}

.review-main-text {
    font-size: clamp(1.2rem, 2.05vw, 1.92rem);
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin: 0;
    max-width: max-content;
    min-height: 6.1em;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-author--main {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 149, 0, 0.35);
}

.reviews-controls {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.5rem;
}

.review-avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

.review-avatar--small {
    width: 52px;
    height: 52px;
}

.review-author-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.review-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.review-role {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.reviews-queue {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    gap: 1rem;
    overflow: visible;
    padding: 0.1rem;
    min-height: 420px;
    height: 100%;
    align-self: stretch;
}

.review-queue-item {
    position: relative;
    background: rgba(13, 11, 35, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: clamp(1.1rem, 1.8vw, 1.35rem) clamp(1.1rem, 1.8vw, 1.3rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    min-height: 0;
    flex: 1 1 0;
}

.review-queue-item.is-entering {
    animation: reviewQueueEnter 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.review-queue-item .review-author {
    margin-top: auto;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 149, 0, 0.35);
}

.review-queue-item.is-leaving {
    animation: reviewQueueLeave 0.34s cubic-bezier(0.26, 0.62, 0.25, 1) both;
}

.review-queue-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.55;
    flex: 1 1 auto;
}

.reviews-nav {
    width: 2.65rem;
    height: 2rem;
    border-radius: 0;
    border: 1px solid rgba(255, 149, 0, 0.8);
    background: transparent;
    color: var(--primary-bright);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /*transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;*/
}

.reviews-nav:hover:not(:disabled) {
    background: rgba(255, 149, 0, 0.14);
    /*transform: translateY(-1px);*/
}

.reviews-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

@keyframes reviewQueueEnter {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes reviewQueueLeave {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-18px);
    }
}

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

    .review-main-text {
        max-width: 100%;
        min-height: 0;
    }

    .reviews-queue {
        display: none;
        /*min-height: 0;
        height: auto;*/
    }

    .reviews-controls {
        justify-content: center;
    }

    .review-queue-item {
        min-height: 0;
        flex: 0 0 auto;
    }
}

/* Footer */
footer {
    /*padding: 4rem 5% 2rem;*/
    padding: 2rem 0% 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.footer-logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.footer-logo img {
    position: relative;
    display: flex;
    width: 105px;
}

.footer-slogan {
    color: var(--primary-bright);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.copyright a {
    color: var(--text-secondary);
    text-decoration: none;
    /*font-weight: 600;*/
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.copyright a:hover {
    color: var(--primary);
    /*text-decoration: underline;*/
}

.legal-wrap {
    max-width: 900px;
}

.legal-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 1rem;
}

.legal-card {
    line-height: 1.75;
}

.legal-card p, strong, li {
    color: var(--text-secondary);
}

.legal-lead {
    font-size: 1.02rem;
    color: var(--text-secondary);
}

.legal-card h2 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    letter-spacing: -0.2px;
}

.legal-h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.legal-list {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}

.legal-list li {
    margin: 0.55rem 0;
   /* color: rgba(241, 245, 249, 0.92);*/
}

.legal-list--decimal {
    list-style: decimal;
    color: var(--text-secondary);
}

.legal-list--alpha {
    list-style: lower-alpha;
    margin-top: 0.6rem;
}

.legal-list--sub {
    list-style: decimal;
    margin-top: 0.6rem;
}

.legal-list--sub li {
    margin: 0.45rem 0;
}

/* Modal - Glass style */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--dark-card);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.22);
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.consent-checkbox {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.2rem;
    accent-color: var(--primary);
    flex: 0 0 auto;
}

.consent-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.35;
    user-select: none;
}

.consent-label a {
    color: var(--primary-bright);
    text-decoration: none;
    font-weight: 600;
}

.consent-label a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.forgot-password {
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 1.25rem;
}

.forgot-password a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.forgot-password a:hover {
    color: var(--primary-bright);
}

.modal-footer {
    padding: 0 2rem 2rem;
    text-align: center;
}

.modal-footer p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.modal-footer a {
    color: var(--primary-bright);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.modal-footer a:hover {
    color: var(--primary);
}

/* Модальные подтверждения / сообщения (оплата, тарифы) */
body.friendvpn-modal-open {
    overflow: hidden;
}

.friendvpn-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.friendvpn-modal.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.friendvpn-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
}

.friendvpn-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

.friendvpn-modal.is-open .friendvpn-modal__dialog {
    transform: translateY(0) scale(1);
}

.friendvpn-modal__panel {
    background: var(--dark-card);
    border: 1px solid rgba(252, 211, 77, 0.35);
    border-radius: 20px;
    padding: 1.5rem 1.35rem 1.35rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

.friendvpn-modal__title {
    margin: 0 0 0.65rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fde68a;
    line-height: 1.3;
}

.friendvpn-modal__title[hidden] {
    display: none;
}

.friendvpn-modal__message {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary);
    white-space: pre-line;
}

.friendvpn-modal__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

/*.friendvpn-modal__actions .friendvpn-modal__btn {
    min-width: 7.5rem;
}*/

@media (max-width: 420px) {
    .friendvpn-modal__actions {
        flex-direction: column-reverse;
    }

    .friendvpn-modal__actions .friendvpn-modal__btn {
        width: 100%;
        min-width: 0;
    }
}

.auth-error {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    color: #fca5a5;
    font-size: 0.9rem;
}

.auth-error.auth-ok {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.auth-forgot {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.9rem;
}

.auth-forgot a {
    color: var(--primary-bright);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password-wrap {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.register-verify-wrap {
    text-align: center;
}

.register-verify-title {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.register-verify-hint {
    margin: 0 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.45;
}

.register-verify-hint strong {
    color: var(--text);
    font-weight: 600;
    word-break: break-all;
}

.email-code-inputs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.email-code-digit {
    width: 2.75rem;
    height: 3.25rem;
    padding: 0;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-code-digit:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.22);
}

.register-verify-resend {
    margin: 1rem 0 0;
    text-align: center;
}

.register-verify-resend .link-button {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary-bright);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.register-verify-resend .link-button:hover:not(:disabled) {
    color: var(--primary);
    text-decoration: underline;
}

.register-verify-resend .link-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.register-verify-back {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.9rem;
}

.register-verify-back a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.register-verify-back a:hover {
    color: var(--primary-bright);
}

@media (max-width: 380px) {
    .email-code-digit {
        width: 2.35rem;
        height: 2.9rem;
        font-size: 1.2rem;
    }

    .email-code-inputs {
        gap: 0.35rem;
    }
}

.btn-block {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
}

.close-modal:hover {
    color: var(--text);
    transform: rotate(90deg);
}

/* Разделитель и блок Telegram в форме авторизации */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}
.telegram-auth-wrap {
    text-align: center;
    margin-bottom: 1.25rem;
}
.telegram-auth-wrap .telegram-hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.link-telegram-bot {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: var(--primary-bright);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}
.link-telegram-bot:hover {
    color: var(--primary);
}
#telegramLoginWidget iframe {
    margin: 0 auto;
}
.btn-telegram-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: #0088cc;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    font-family: inherit;
}
.btn-telegram-auth:hover {
    background: #0099e0;
    transform: translateY(-2px);
}
.btn-telegram-auth i {
    font-size: 1.35rem;
}

/* ========== Light Theme ========== */
[data-theme="light"] {
    --dark-bg: #f4f6fb;
    --dark-card: rgba(255, 255, 255, 0.92);
    --glass: rgba(0, 0, 0, 0.04);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text: #1a1a2e;
    --text-secondary: #5a5a7a;
    --gradient-hero: linear-gradient(145deg, #f0f2f8 0%, #e8eaf2 40%, #f4f6fb 100%);
    --nav-pill-bg: rgba(240, 242, 248, 0.85);
    --nav-pill-thumb-bg: rgba(255, 149, 0, 0.1);
    --nav-pill-thumb-border: rgba(255, 149, 0, 0.4);
}

[data-theme="light"] body {
    background: var(--dark-bg);
}

[data-theme="light"] .bg-gradient {
    background: linear-gradient(160deg, #f0f2f8 0%, #e8eaf5 35%, #f0f0fa 55%, #f4f6fb 100%);
}

[data-theme="light"] .bg-orbs .orb {
    opacity: 0.18;
}

[data-theme="light"] .orb-1 {
    background: radial-gradient(circle, rgba(255, 149, 0, 0.22) 0%, transparent 68%);
}

[data-theme="light"] .orb-2 {
    background: radial-gradient(circle, rgba(90, 60, 140, 0.22) 0%, transparent 70%);
}

[data-theme="light"] .orb-3 {
    background: radial-gradient(circle, rgba(180, 120, 255, 0.12) 0%, transparent 70%);
    opacity: 0.18;
}

[data-theme="light"] header {
    background: rgba(248, 249, 253, 0.82);
    border-bottom-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .header-nav-pill {
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-pill-thumb {
    background: var(--nav-pill-thumb-bg);
    box-shadow: inset 0 0 0 1px var(--nav-pill-thumb-border);
}

[data-theme="light"] .nav-pill-link {
    color: var(--text-secondary);
}

[data-theme="light"] .nav-pill-link.active {
    color: var(--primary-bright);
}

[data-theme="light"] .nav-pill-link:hover {
    color: var(--text);
}

[data-theme="light"] .header-burger {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .header-burger:hover {
    background: rgba(255, 149, 0, 0.08);
    border-color: rgba(255, 149, 0, 0.35);
}

[data-theme="light"] .header-trailing .btn-account {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .header-trailing .btn-account:hover {
    background: rgba(255, 149, 0, 0.08);
    border-color: rgba(255, 149, 0, 0.45);
}

[data-theme="light"] .logo-text {
    color: var(--text);
}

[data-theme="light"] .feature-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .cabinet-status-card,
[data-theme="light"] .cabinet-side-card,
[data-theme="light"] .panel-card,
[data-theme="light"] .review-main,
[data-theme="light"] .review-queue-item,
[data-theme="light"] .modal-content,
[data-theme="light"] .friendvpn-modal__panel,
[data-theme="light"] .mtproto-card,
[data-theme="light"] .mtproto-table-wrap {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .feature-card:hover {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1), 0 0 36px rgba(255, 149, 0, 0.06);
    border-color: rgba(255, 149, 0, 0.25);
}

[data-theme="light"] .pricing-card:hover {
    border-color: rgba(255, 149, 0, 0.45);
    box-shadow: 0 10px 30px rgba(255, 149, 0, 0.1);
}

[data-theme="light"] .pricing-card.popular {
    border-color: var(--primary);
}

[data-theme="light"] .pricing-card .pricing-list-row__features li {
    color: rgba(26, 26, 46, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pricing-list-row {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .pricing-list-row:hover {
    border-color: rgba(255, 149, 0, 0.45);
}

[data-theme="light"] .pricing-list-row--featured {
    background: rgba(255, 149, 0, 0.05);
    border-color: var(--primary);
}

[data-theme="light"] .pricing-list-row__features li i {
    background: rgba(255, 149, 0, 0.18);
    border-color: rgba(255, 149, 0, 0.4);
}

[data-theme="light"] .pricing-list-row__features li {
    color: var(--text-secondary);
}

[data-theme="light"] .pricing-view-toggle {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .pricing-view-toggle__btn {
    color: var(--text-secondary);
}

[data-theme="light"] .pricing-view-toggle__btn.is-active {
    color: #fff;
}

[data-theme="light"] .pricing-popular-badge {
    background: #ff9500;
    border-color: rgba(255, 149, 0, 0.92);
    color: #161028;
}

[data-theme="light"] .pricing-popular-badge::after {
    background: #1a1a2e;
    border-color: rgba(255, 149, 0, 0.5);
    color: #fff;
}

[data-theme="light"] .btn-primary {
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

[data-theme="light"] .hero-store-badge,
[data-theme="light"] .store-badge {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text);
}

[data-theme="light"] .hero-store-badge:hover,
[data-theme="light"] .store-badge:hover {
    background: rgba(255, 149, 0, 0.06);
    border-color: rgba(255, 149, 0, 0.45);
    box-shadow: 0 10px 30px rgba(255, 149, 0, 0.1);
}

[data-theme="light"] .hero-store-badge i,
[data-theme="light"] .store-badge i {
    color: var(--text);
}

[data-theme="light"] .btn-telegram {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text);
}

[data-theme="light"] .btn-telegram:hover {
    border-color: rgba(255, 149, 0, 0.55);
    color: var(--primary-bright);
    box-shadow: 0 12px 40px rgba(255, 149, 0, 0.12);
}

[data-theme="light"] .btn-telegram i {
    color: var(--text);
}

[data-theme="light"] .btn-telegram:hover i {
    color: var(--primary-bright);
}

[data-theme="light"] .section-header .badge {
    background: rgba(255, 149, 0, 0.1);
    border-color: rgba(255, 149, 0, 0.22);
}

[data-theme="light"] .feature-icon {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.15), rgba(100, 70, 160, 0.15));
}

[data-theme="light"] .hero-phone {
    background: linear-gradient(165deg, #e0e4f0 0%, #c8cce0 50%, #d8dce8 100%);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .hero-phone-bezel {
    background: #b0b8cc;
}

[data-theme="light"] .hero-connect-btn {
    background: #ffffff;
    box-shadow:
        0 12px 32px rgba(35, 55, 110, 0.08),
        0 4px 14px rgba(35, 45, 75, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.95) inset;
}

[data-theme="light"] .hero-connect-rings span {
    border-color: rgba(107, 140, 255, 0.35);
    box-shadow: 0 0 0 1px rgba(124, 111, 214, 0.08), 0 0 12px rgba(107, 140, 255, 0.1);
}

[data-theme="light"] .hero-float-card {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .wave-circle {
    border-color: rgba(139, 110, 200, 0.12);
}

[data-theme="light"] footer {
    background: rgba(255, 255, 255, 0.5);
    border-top-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .copyright a {
    color: var(--text-secondary);
}

[data-theme="light"] .copyright a:hover {
    color: var(--primary);
}

[data-theme="light"] .account-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .account-dropdown-item {
    color: rgba(26, 26, 46, 0.92);
}

[data-theme="light"] .account-dropdown-item:hover,
[data-theme="light"] .account-dropdown-item:focus-visible {
    background: rgba(255, 149, 0, 0.1);
    color: var(--primary-bright);
}

[data-theme="light"] .account-dropdown-item i {
    color: var(--text-secondary);
}

[data-theme="light"] .account-dropdown-item:hover i,
[data-theme="light"] .account-dropdown-item:focus-visible i {
    color: var(--primary-bright);
}

[data-theme="light"] .form-control {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text);
}

[data-theme="light"] .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.15);
}

[data-theme="light"] .email-code-digit {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text);
}

[data-theme="light"] .email-code-digit:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.15);
}

[data-theme="light"] .modal {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .friendvpn-modal__backdrop {
    background: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .friendvpn-modal__panel {
    border-color: rgba(252, 211, 77, 0.4);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .friendvpn-modal__title {
    color: #b45309;
}

[data-theme="light"] .cabinet-header {
    background: rgba(248, 249, 253, 0.9);
}

[data-theme="light"] .cabinet-loader {
    background: rgba(248, 249, 253, 0.95);
    border: none;
}

[data-theme="light"] .cabinet-loader-spinner {
    border: 3.5px solid rgba(255, 120, 0, 0.25);
    border-top-color: #e65100;
    box-shadow: 0 0 28px rgba(255, 120, 0, 0.22);
}

[data-theme="light"] .cabinet-inner {
    --cabinet-inner-block-bg: rgba(0, 0, 0, 0.025);
    --cabinet-inner-block-border: 1px solid rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .kv-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .kv-v {
    color: rgba(26, 26, 46, 0.92);
}

[data-theme="light"] .account-location-item {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .account-location-name {
    color: rgba(26, 26, 46, 0.92);
}

[data-theme="light"] .cabinet-custom-select-list {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .cabinet-custom-select-list li {
    color: rgba(26, 26, 46, 0.92);
}

[data-theme="light"] .cabinet-custom-select-list li:hover,
[data-theme="light"] .cabinet-custom-select-list li.is-active {
    background: rgba(255, 149, 0, 0.1);
}

[data-theme="light"] .status-badge-dot {
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

[data-theme="light"] .cabinet-device-icon {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.15), rgba(100, 70, 160, 0.15));
}

[data-theme="light"] .cabinet-device-item {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .sub-url-field {
    color: rgba(26, 26, 46, 0.85);
}

[data-theme="light"] .traffic-summary-progress {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .cabinet-history-table th,
[data-theme="light"] .cabinet-history-table td {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .cabinet-history-table tbody tr:hover {
    background: rgba(255, 149, 0, 0.04);
}

[data-theme="light"] .status-detail {
    background: rgba(0, 0, 0, 0.025);
    border: 1px solid rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .status-detail-ic {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.15), rgba(100, 70, 160, 0.15));
}

[data-theme="light"] .btn-cabinet-inline {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
}

[data-theme="light"] .btn-cabinet-inline:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .renewal-plan {
    background: rgba(0, 0, 0, 0.025);
    border-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .renewal-plan:hover {
    border-color: rgba(255, 149, 0, 0.35);
}

[data-theme="light"] .renewal-plan--featured {
    background: rgba(255, 149, 0, 0.05);
    border-color: rgba(255, 149, 0, 0.45);
}

[data-theme="light"] .site-banner {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.08) 0%, rgba(255, 109, 0, 0.05) 100%);
    border-top-color: rgba(255, 152, 0, 0.2);
}

[data-theme="light"] .support-divider::before {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .support-divider span {
    background: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .mtproto-table thead {
    background: rgba(0, 0, 0, 0.025);
}

[data-theme="light"] .mtproto-table th {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mtproto-table td {
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .mtproto-code {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cabinet-loader-spinner {
    border: 3px solid rgba(255, 149, 0, 0.3);
    border-top-color: #ff7700;
    box-shadow: 0 0 24px rgba(255, 149, 0, 0.18);
}

[data-theme="light"] .review-main {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .review-main-text {
    color: #1a1a2e;
}

[data-theme="light"] .review-queue-item {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .review-queue-text {
    color: var(--text-secondary);
}

[data-theme="light"] .review-queue-item .review-author,
[data-theme="light"] .review-author--main {
    border-top-color: rgba(255, 149, 0, 0.3);
}

[data-theme="light"] .review-avatar {
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .hero-badge {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
    color: #16a34a;
}

[data-theme="light"] .hero .pulse {
    background: #10B981;
}

[data-theme="light"] .btn-outline {
    border-color: rgba(255, 149, 0, 0.5);
    color: var(--primary-bright);
}

[data-theme="light"] .app-section {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 149, 0, 0.03) 50%, transparent 100%);
}

[data-theme="light"] .reviews-section {
    background: linear-gradient(180deg, transparent 0%, rgba(124, 92, 191, 0.04) 40%, transparent 100%);
}

[data-theme="light"] .hero-visual::before {
    background: radial-gradient(
        ellipse 95% 95% at 28% 78%,
        rgba(130, 72, 38, 0.2) 0%,
        rgba(107, 58, 30, 0.1) 32%,
        rgba(80, 45, 28, 0.03) 52%,
        transparent 68%
    );
}

[data-theme="light"] .hero-visual::after {
    background: radial-gradient(
        circle at 45% 58%,
        rgba(255, 149, 70, 0.1) 0%,
        rgba(200, 100, 45, 0.03) 45%,
        transparent 62%
    );
}

[data-theme="light"] .reviews-nav {
    border-color: rgba(255, 149, 0, 0.6);
}

[data-theme="light"] .reviews-nav:hover:not(:disabled) {
    background: rgba(255, 149, 0, 0.1);
}

[data-theme="light"] .btn-account:hover {
    background: rgba(255, 149, 0, 0.08);
    border-color: rgba(255, 149, 0, 0.45);
    color: var(--primary-bright);
}

[data-theme="light"] .pricing-list-row__discount {
    background: #0f766e;
    border-color: #14b8a6;
    color: #d1fae5;
}

[data-theme="light"] .consent-label a {
    color: var(--primary-bright);
}

[data-theme="light"] .auth-forgot a {
    color: var(--primary-bright);
}

[data-theme="light"] .register-verify-back a {
    color: var(--text-secondary);
}

[data-theme="light"] .register-verify-back a:hover {
    color: var(--primary-bright);
}

[data-theme="light"] .link-telegram-bot {
    color: var(--primary-bright);
}

[data-theme="light"] .hero-app-topbar {
    color: #1a1d26;
}

[data-theme="light"] .hero-app-top-ic {
    color: #1a1d26;
}

[data-theme="light"] .cabinet-welcome h1 span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Scroll reveal */
.reveal {
    opacity: 1;
    transform: translateY(30px);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        text-align: center;
        padding-top: 6rem;
        top: 0;
    }

    .hero-inner {
        gap: 0;
        flex-direction: column;
    }

    .hero-content {
        margin-bottom: 1rem;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-social-proof {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero .slogan {
        font-size: 1.25rem;
    }

    .hero-visual {
        max-width: 100%;
        align-items: center;
        min-height: auto;
    }

    .hero-visual::before {
        bottom: -2rem;
        top: auto;
        left: max(-1rem, calc(50% - 11rem));
        right: auto;
        width: min(22rem, 92vw);
        height: min(22rem, 92vw);
    }

    .hero-visual::after {
        bottom: -0.5rem;
        top: auto;
        left: max(0.5rem, calc(50% - 9rem));
        right: auto;
    }

    .hero-phone-scene {
        padding: 2rem 0.5rem 1.5rem;
    }

    .hero-float-card--fast {
        right: 0;
    }

    .hero-float-card--secure {
        left: 0;
    }

    .app-content {
        flex-direction: column;
        text-align: center;
    }

    .app-stores {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .pricing-toolbar {
        display: none;
    }

    .pricing-list {
        display: none;
    }

    .pricing-grid {
        display: grid !important;
    }

    .pricing-grid[hidden] {
        display: grid !important;
    }

    .pricing-popular-badge::after {
        left: 8rem;
    }

    .hero-scroll-hint {
        display: none;
    }

    .site-banner__inner {
        display: none;
    }

    .header-inner {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        width: 100%;
    }

    .header-inner .logo {
        justify-self: unset;
        flex: 1 1 auto;
        min-width: 0;
    }

    .header-nav-pill {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        justify-self: unset;
        margin: 0;
        border-radius: 0 0 20px 20px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-top: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0.65rem 1rem 1rem;
        gap: 0.25rem;
        background: rgba(10, 8, 20, 0.97);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        pointer-events: none;
        transition:
            opacity 0.22s ease,
            visibility 0.22s ease,
            transform 0.22s ease;
        z-index: 1001;
    }

    .header-nav-pill.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-pill-thumb {
        border-radius: 12px;
    }

    .nav-pill-link {
        text-align: center;
        padding: 0.7rem 1rem;
        border-radius: 12px;
    }

    .header-trailing {
        justify-self: unset;
        flex: 0 0 auto;
        align-items: center;
        gap: 0.45rem;
    }

    .nav-buttons {
        display: flex;
        align-items: center;
    }

    .account-menu-wrap {
        display: flex;
        align-items: center;
        align-self: center;
        flex-shrink: 0;
    }

    .header-trailing .btn-account {
        height: var(--header-touch);
        min-height: var(--header-touch);
        max-height: var(--header-touch);
        padding: 10px;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        line-height: 1;
    }

    .header-trailing .btn-account i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .account-menu-wrap--logged-in .account-menu-chevron {
        display: none;
    }

    .header-burger {
        display: inline-flex;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero .slogan {
        font-size: 1.15rem;
    }

    .hero p {
        display: none;
        font-size: 1rem;
        margin-bottom: 0;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

    .pricing-card.popular {
        transform: none;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.9rem;
    }

    .hero-buttons {
        display: none;
        flex-direction: row;
        justify-content: center;
    }

    .hero-telegram-cta {
        margin-top: 2rem;
    }

    .btn-telegram {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 1.1rem 1.5rem;
        font-size: 1.15rem;
        /*margin: -22px 0 0 0;*/
    }

    .btn-telegram i {
        font-size: 1rem;
    }

    .hero-phone {
        width: 252px;
    }

    .hero-phone-screen {
        /*min-height: 400px;*/
        height: 400px;
    }

    .hero-connect-block {
        width: 198px;
        height: 198px;
        margin-bottom: 0.65rem;
    }

    .hero-connect-rings span:nth-child(1) {
        width: 130px;
        height: 130px;
    }

    .hero-connect-rings span:nth-child(2) {
        width: 154px;
        height: 154px;
    }

    .hero-connect-rings span:nth-child(3) {
        width: 178px;
        height: 178px;
    }

    .hero-connect-rings span:nth-child(4) {
        width: 202px;
        height: 202px;
    }

    .hero-connect-btn {
        width: 104px;
        height: 104px;
    }

    .hero-connect-power {
        font-size: 1.35rem;
    }

    .hero-srv-flag {
        width: 26px;
        height: 20px;
    }

    .hero-float-card {
        padding: 0.55rem 0.75rem;
        gap: 0.5rem;
    }

    .hero-float-icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .hero-float-body strong {
        font-size: 0.78rem;
    }

    .hero-float-body span {
        font-size: 0.65rem;
    }

    .hero-phone-scene {
        max-width: 100%;
        padding: 1.75rem 1.5rem 1.25rem;
    }

    .btn {
        justify-content: center;
    }

    .nav-buttons {
        gap: 0.5rem;
    }

    .btn-outline span,
    .btn-account span {
        display: none;
    }
}

/* ========== Личный кабинет ========== */
.cabinet-page .wave-circles { display: none; }

.cabinet-page {
    --cabinet-inner-block-bg: rgba(255, 255, 255, 0.03);
    --cabinet-inner-block-border: 1px solid rgba(255, 255, 255, 0.06);
}
.cabinet-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 5%;
    background: rgba(15, 15, 27, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}
.cabinet-header .header-inner {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.cabinet-header .logo-text {
    display: flex;
    align-items: center;
    min-height: var(--header-touch);
    line-height: 1.15;
    padding-top: 0.06em;
}

.cabinet-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.cabinet-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 12px;
    transition: color 0.2s, background 0.2s;
}
.cabinet-nav .nav-link:hover {
    color: var(--primary-bright);
    background: rgba(255, 149, 0, 0.1);
}
.cabinet-nav .nav-link.active {
    color: var(--primary-bright);
    background: rgba(255, 149, 0, 0.14);
}

@media (max-width: 768px) {
    .cabinet-header {
        padding: 1.2rem 5% 1rem;
    }

    .cabinet-header .header-inner {
        position: static;
        flex-wrap: nowrap;
        align-items: center;
    }

    .cabinet-header .logo {
        flex: 1 1 auto;
        min-width: 0;
        align-items: center;
    }

    .cabinet-header .logo-text {
        padding-top: 0.1em;
    }

    .cabinet-header .cabinet-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        justify-self: unset;
        margin: 0;
        border-radius: 0 0 20px 20px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-top: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0.65rem 1rem 1rem;
        gap: 0.25rem;
        background: rgba(10, 8, 20, 0.97);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        pointer-events: none;
        transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
        z-index: 1001;
    }

    .cabinet-header .cabinet-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .cabinet-header .cabinet-nav .nav-link {
        justify-content: center;
        padding: 0.7rem 1rem;
    }

    .cabinet-header .header-burger {
        display: inline-flex;
        flex-shrink: 0;
        position: relative;
        z-index: 1002;
    }
}

.cabinet-main {
    padding: 6rem 5% 4rem;
    min-height: 100vh;
    position: relative;
}

/* Лоадер кабинета: пока грузится me.php_ / Remnawave (fixed — на весь экран, включая подвал) */
.cabinet-loader {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(ellipse 110% 75% at 50% 100%, rgba(124, 92, 191, 0.16) 0%, transparent 52%),
        linear-gradient(165deg, rgba(13, 6, 24, 0.91) 0%, rgba(26, 20, 56, 0.93) 48%, rgba(18, 10, 34, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 0.28s ease, visibility 0.28s ease;
}
.cabinet-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.cabinet-loader-inner {
    text-align: center;
    max-width: 22rem;
}
.cabinet-loader-spinner {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    border: 3px solid rgba(255, 149, 0, 0.22);
    border-top-color: rgba(255, 183, 77, 0.98);
    box-shadow: 0 0 24px rgba(255, 149, 0, 0.12);
    animation: cabinetLoaderSpin 0.72s linear infinite;
}
@keyframes cabinetLoaderSpin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .cabinet-loader-spinner {
        animation-duration: 1.4s;
    }
    .cabinet-loader {
        transition: opacity 0.15s ease, visibility 0.15s ease;
    }
}
.cabinet-loader-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.45;
}

.cabinet-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.cabinet-grid{
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 1.25rem;
    align-items: start;
}

.cabinet-inner--subscription-expired .status-details-wrapper,
.cabinet-inner--subscription-expired .status-actions-wrapper,
.cabinet-inner--subscription-expired .cabinet-main-extra,
.cabinet-inner--subscription-expired .cabinet-col-side {
    display: none !important;
}

.cabinet-inner--subscription-expired .cabinet-grid {
    grid-template-columns: 1fr;
}

.cabinet-inner--subscription-expired .cabinet-status-card:first-of-type {
    margin-bottom: 0;
    overflow: visible;
}

.cabinet-inner--subscription-expired .renewal-plans {
    overflow: visible;
}

.cabinet-inner--subscription-expired .cabinet-renewal-panel {
    display: block;
}
.cabinet-col-main { min-width: 0; }
.cabinet-col-side {
    position: sticky;
    top: 6.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cabinet-status-card {
    background: var(--dark-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}
.cabinet-welcome {
    margin-bottom: 1.5rem;
}
.cabinet-welcome h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.cabinet-welcome h1 span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cabinet-hero-card {
    padding: 1.35rem 1.5rem 1.5rem;
}
.status-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.cabinet-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}
.cabinet-block-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.cabinet-block-title i {
  /*  color: var(--primary-bright);*/
    font-size: 0.95rem;
}
.cabinet-block-link {
    flex-shrink: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-bright);
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.cabinet-block-link:hover {
    text-decoration: underline;
    opacity: 0.92;
}
.cabinet-block-link-btn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}
/*.cabinet-status-card::before { //Пока уберем топ бордер, мб потом вернем
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    opacity: 0.8;
}*/
.cabinet-side-card{
    background: var(--dark-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    position: relative;
    overflow: hidden;
}
/* Селект импорта — выпадающий список поверх соседних карточек */
#connectCard.cabinet-side-card{
    overflow: visible;
}
#connectCard.cabinet-side-card:has(#appImportTrigger[aria-expanded="true"]){
    z-index: 12;
}
.cabinet-side-card .side-card-head{
    display:flex;
    align-items:center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}
.cabinet-side-card .side-card-title{
    display:inline-flex;
    align-items:center;
    gap:0.6rem;
    font-weight: 800;
    letter-spacing: -0.2px;
}
.sub-url-row{
    display:flex;
    align-items: stretch;
    gap:0.55rem;
    overflow: hidden;
}
.sub-url-field{
    flex: 1;
    min-width: 0;
    padding: 0.8rem 1rem;
    background: var(--cabinet-inner-block-bg);
    border: var(--cabinet-inner-block-border);
    border-radius: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
}
.sub-url-field.sub-url-field--blurred{
    filter: blur(3px);
    user-select: none;
    cursor: default;
    pointer-events: none;
}
.btn-copy{
    padding: 0.75rem 1.1rem;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
    font-size: 0.88rem;
}
.sub-url-actions{
    margin-top: 0.65rem;
    display:flex;
    flex-direction: column;
    gap: 0.4rem;
}
.sub-url-hint {
    margin: 0;
    line-height: 1.45;
}
.sub-import-wrap{
    margin-top: 1rem;
    padding-top: 0;
    border-top: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.sub-import-wrap .cabinet-custom-select{
    position: relative;
    z-index: 13;
}
.sub-import-wrap .cabinet-custom-select-list{
    z-index: 14;
}
.btn-import-app{
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    text-align: center;
    border: none;
    cursor: pointer;
}
.btn-import-app:disabled{
    opacity: 0.45;
    cursor: not-allowed;
}
.btn-import-app[aria-disabled="true"]{
    opacity: 0.45;
    pointer-events: none;
}
.sub-import-hint{
    margin: 0;
    line-height: 1.4;
}
.kv-list{
    display:flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}
.kv-row{
    display:flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.kv-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.kv-row:first-child {
    padding-top: 0;
}
.kv-k{
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}
.kv-v{
    margin: 0;
    font-weight: 700;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.92);
    text-align: right;
    overflow-wrap: anywhere;
}
.kv-v-with-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.btn-cabinet-inline {
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid rgba(147, 197, 253, 0.45);
    background: rgba(96, 165, 250, 0.14);
    color: #bfdbfe;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-cabinet-inline:hover:not(:disabled) {
    background: rgba(96, 165, 250, 0.22);
    border-color: rgba(191, 219, 254, 0.55);
}
.btn-cabinet-inline:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.account-locations-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.account-location-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.65rem 0.85rem;
    padding: 0.72rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.account-location-flag {
    flex-shrink: 0;
    width: 30px;
    height: 22px;
    border-radius: 6px;
    overflow: hidden;
    /*box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);*/
}
.account-location-flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.account-location-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.account-location-item:first-child {
    padding-top: 0;
}
.account-location-item--unavailable .account-location-name {
    color: rgba(255, 255, 255, 0.55);
}
.account-location-name {
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}
.account-location-ping {
    display: none;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}
.account-location-badge {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    letter-spacing: 0.01em;
    text-transform: lowercase;
    white-space: nowrap;
}
.account-location-badge--available {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #86efac;
}
.account-location-badge--unavailable {
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.cabinet-renewal-modal .modal-content {
    max-width: 600px;
}
.cabinet-extra-devices-modal-content {
    position: relative;
}
.cabinet-extra-devices-modal .modal-content {
    overflow: visible;
    border-radius: 24px;
}
.extra-devices-price-line {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.92);
}
.extra-devices-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 1rem;
}
.cabinet-extra-devices-modal .modal-body {
    padding-bottom: 2.25rem;
    position: relative;
    z-index: 1;
}
.cabinet-extra-devices-modal .extra-devices-price-line {
    margin-bottom: 1.35rem;
    padding: 0.75rem 0.95rem;
    border-radius: 12px;
    background: rgba(11, 14, 34, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.09);
}
.cabinet-extra-devices-modal .btn.btn-primary.btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    line-height: 1.25;
    box-sizing: border-box;
}

/* Кастомный select (нативный в Windows даёт белое окно и лишнюю высоту) */
.cabinet-custom-select-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.cabinet-custom-select {
    position: relative;
    width: 100%;
    z-index: 3;
}
.cabinet-custom-select-trigger.form-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    cursor: pointer;
    text-align: left;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}
.cabinet-custom-select-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cabinet-custom-select-chevron {
    flex-shrink: 0;
    font-size: 0.75rem;
    opacity: 0.85;
    transition: transform 0.2s ease;
}
.cabinet-custom-select-trigger[aria-expanded="true"] .cabinet-custom-select-chevron {
    transform: rotate(180deg);
}
.cabinet-custom-select-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    max-height: min(220px, 42vh);
    overflow-y: auto;
    overflow-x: hidden;
    background: #15152b;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(8px);
    z-index: 2200;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.cabinet-custom-select-list::-webkit-scrollbar {
    width: 8px;
}
.cabinet-custom-select-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 8px;
}
.cabinet-custom-select-list li {
    padding: 0.7rem 1rem;
    margin: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.35;
    transition: background 0.12s ease;
    white-space: nowrap;
}
.cabinet-custom-select-list li:hover,
.cabinet-custom-select-list li.is-active {
    background: rgba(255, 149, 0, 0.16);
}
.cabinet-custom-select-list li.is-active {
    font-weight: 600;
}
.status-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.status-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    background: #10B981;
    animation: pulse 2s infinite;
}
.status-trial {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fcd34d;
}
.status-active {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #86efac;
}
.status-expired {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}
.status-alert {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}
.status-alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}
.status-alert-trial {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fde68a;
}
.status-alert-info {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #c7d2fe;
}
.status-alert strong { display: block; margin-bottom: 0.35rem; }
.status-alert p {
    font-size: 0.9rem;
    opacity: 0.95;
    margin-bottom: 0.5rem;
}
.status-link {
    color: #fcd34d;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}
.status-link:hover { text-decoration: underline; }
.yookassa-pay-hint {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0.5rem 0 0.25rem;
}
.yookassa-renewal-wrap {
    display: block;
    margin: 0.75rem 0 0.35rem;
}

.yookassa-renewal-wrap:has(.pricing-grid--yookassa-renewal) {
    width: 100%;
    margin: 0.35rem 0 0.15rem;
}
.btn-yookassa-month {
    cursor: pointer;
    border: 1px solid rgba(252, 211, 77, 0.45);
    background: rgba(252, 211, 77, 0.12);
    color: #fde68a;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-yookassa-month:hover:not(:disabled) {
    background: rgba(252, 211, 77, 0.2);
    border-color: rgba(252, 211, 77, 0.65);
}
.btn-yookassa-month:disabled {
    opacity: 0.55;
    cursor: wait;
}
.yookassa-return-banner {
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.yookassa-return-banner__inner {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}
.yookassa-return-banner__text {
    flex: 1;
    min-width: 0;
}
.yookassa-return-banner__close {
    flex-shrink: 0;
    margin: -0.2rem -0.15rem 0 0;
    padding: 0.15rem 0.45rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
}
.yookassa-return-banner__close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
}
.yookassa-return-banner--ok {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}
.yookassa-return-banner--error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}
.yookassa-return-banner--pending {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #c7d2fe;
}
.traffic-status-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-bright);
}
.cabinet-traffic-block[data-traffic-mode="warning"] .traffic-status-label {
    color: #fdba74;
}
.cabinet-traffic-block[data-traffic-mode="critical"] .traffic-status-label {
    color: #fca5a5;
}
.cabinet-traffic-summary {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}
.traffic-used-label {
    margin: 0 0 0.55rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.traffic-used-label strong {
    color: var(--text);
    font-weight: 700;
}
.traffic-summary-progress {
    position: relative;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
   /* border: 1px solid rgba(255, 255, 255, 0.08);*/
    margin-top: 0.15rem;
}
.traffic-summary-progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa 0%, #818cf8 50%, #34d399 100%);
    transition: width 0.45s ease;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
}
.cabinet-traffic-summary[data-traffic-mode="warning"] .traffic-summary-progress-fill {
    background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.35);
}
.cabinet-traffic-summary[data-traffic-mode="critical"] .traffic-summary-progress-fill {
    background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.35);
}
.cabinet-traffic-summary[data-traffic-mode="unlimited"] .traffic-summary-progress-fill {
    background: linear-gradient(90deg, #06b6d4 0%, #22c55e 100%);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.3);
}
.traffic-summary-hint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
    opacity: 0.9;
    line-height: 1.4;
}
.cabinet-history-table-wrap {
    overflow-x: auto;
    margin: 0;
    border-radius: 0;
    background: transparent;
    border: none;
}
.cabinet-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.cabinet-history-table th,
.cabinet-history-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.cabinet-history-table th {
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: transparent;
    white-space: nowrap;
    padding-top: 0;
}
.cabinet-history-table tbody tr:hover {
    background: rgba(255, 149, 0, 0.06);
}
.cabinet-history-table td {
    color: var(--text);
}
.cabinet-history-table .cabinet-history-ip {
    color: var(--primary-bright);
    font-weight: 600;
}
.cabinet-history-table-wrap:not(.cabinet-history-expanded)
    .cabinet-history-table
    tbody
    tr.cabinet-history-row-extra {
    display: none;
}
.cabinet-traffic-account-only {
    cursor: help;
    color: var(--text-secondary);
    border-bottom: 1px dashed rgba(148, 163, 184, 0.5);
}
.cabinet-history-empty {
    margin: 0;
    padding: 1rem 1.15rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.cabinet-devices-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cabinet-device-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cabinet-device-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.cabinet-device-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.2), rgba(100, 70, 160, 0.22));
    color: var(--primary-bright);
}
.cabinet-device-icon i {
    font-size: 1rem;
}
.cabinet-device-info {
    flex: 1;
    min-width: 0;
}
.cabinet-device-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
}
.cabinet-device-meta {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.35;
}
.cabinet-device-time {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}
.status-actions-wrapper .status-actions {
    max-width: 100%;
}
.status-details-wrapper {
    margin-bottom: 1.25rem;
}
.status-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}
.status-detail {
    background: var(--cabinet-inner-block-bg);
    border: var(--cabinet-inner-block-border);
    border-radius: 12px;
    padding: 0.85rem 0.65rem 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}
.status-detail-ic {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.18), rgba(100, 70, 160, 0.2));
    color: var(--primary-bright);
    pointer-events: none;
    flex-shrink: 0;
    margin-bottom: 0.55rem;
}
.status-detail-ic i {
    font-size: 0.95rem;
    line-height: 1;
}
.status-detail .detail-label {
    display: block;
    margin: 0 0 0.35rem;
    width: 100%;
    font-size: 0.72rem;
    line-height: 1.25;
}
.status-detail .detail-value {
    display: block;
    width: 100%;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.status-detail .detail-sub {
    display: block;
    width: 100%;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.3;
}
.detail-sub {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}
.detail-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}
.detail-label i { margin-right: 0.25rem; }
.detail-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

#trafficUsed {
    font-size: 0.9rem;
}

.status-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.status-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    border-radius: 12px;
    text-align: center;
}
.status-actions-primary {
    flex: 1.4 1 12rem;
}
.status-actions-btns {
    border-color: rgba(255, 149, 0, 0.45);
    color: var(--primary-bright);
}
.status-actions-btns:hover {
    border-color: var(--primary-bright);
    background: rgba(255, 149, 0, 0.1);
    color: var(--primary-bright);
}

.panel-card {
    display: block;
    background: var(--dark-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
}
@media (max-width: 992px) {
    .cabinet-grid{ grid-template-columns: 1fr; }
    .cabinet-col-side{ position: static; top: auto; }
    .status-details { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .cabinet-welcome h1 { font-size: 1.65rem; }
  /*  .status-details { grid-template-columns: 1fr; }*/
    .status-actions { flex-direction: column; }
    .status-actions .btn { width: 100%; flex: 1 1 auto; }
    .sub-url-row{ flex-direction: column; align-items: stretch; }
    .btn-copy{ width: 100%; justify-content: center; }
    .account-location-item {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
    }
    .account-location-name {
        grid-column: 2;
    }
    .account-location-ping {
        grid-column: 2;
        grid-row: 2;
    }
    .account-location-badge {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}

/* Site Banner */
body.has-banner { padding-bottom: 2.8rem; }
.site-banner {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.12) 0%, rgba(255, 109, 0, 0.08) 100%);
    border-top: 1px solid rgba(255, 152, 0, 0.25);
    padding: 0.65rem 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.site-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.site-banner__icon {
    color: var(--primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}
.site-banner__text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.4;
}
.site-banner__close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.site-banner__close:hover {
    opacity: 1;
}
@media (max-width: 576px) {
    body.has-banner {
        padding-bottom: 0;
    }
    .site-banner {
        display: none;
    }
    footer {
        padding: 2rem 2% 2rem;
    }
    .site-banner__text {
        font-size: 0.8rem;
    }
}

.password-toggle-wrap {
    position: relative;
}
.password-toggle-wrap .form-control {
    padding-right: 3rem;
}
.password-toggle-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s;
}
.password-toggle-btn:hover {
    color: var(--text);
}
.password-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.support-modal-content {
    max-width: 520px;
}
.support-textarea {
    resize: vertical;
    min-height: 100px;
}
.support-screenshot-area {
    margin-top: 0.25rem;
}
.support-screenshot-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.support-screenshot-btn[hidden] {
    display: none;
}
.support-screenshot-preview {
    position: relative;
    display: inline-block;
    margin-top: 0.75rem;
    line-height: 0;
}
.support-screenshot-preview img {
    display: block;
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    object-fit: contain;
    background: rgba(0,0,0,0.2);
}
.support-screenshot-preview[hidden] {
    display: none;
}
.support-screenshot-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: #e53935;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.support-divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}
.support-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--glass-border);
}
.support-divider span {
    position: relative;
    background: var(--dark-card);
    padding: 0 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.support-telegram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.support-success {
    text-align: center;
    padding: 1.5rem 0;
}
.support-success i {
    font-size: 2.5rem;
    color: #4caf50;
    margin-bottom: 0.75rem;
}
.support-success p {
    color: var(--text-secondary);
    margin: 0;
}

.mtproto-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--dark-card);
    backdrop-filter: blur(20px);
}
.mtproto-progress-bar-wrap {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}
.mtproto-progress-bar {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 3px;
    transition: width 0.3s ease;
}
.mtproto-mobile-list {
    display: none;
}
.mtproto-card {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(20px);
    transition: border-color 0.2s;
}
.mtproto-card--alive {
    border-color: rgba(255, 149, 0, 0.3);
}
.mtproto-card--dead {
    opacity: 0.55;
}
.mtproto-card-header {
    margin-bottom: 0.75rem;
}
.mtproto-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
}
.mtproto-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.mtproto-card-info {
    display: flex;
    gap: 1rem 1.25rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}
.mtproto-card-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex: 1 1 120px;
}
.mtproto-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}
.mtproto-card-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}
.mtproto-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.mtproto-filters-mobile {
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.mf-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid rgba(255, 149, 0, 0.55);
    background: transparent;
    color: var(--primary-bright);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mf-btn-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.mf-btn-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 149, 0, 0.14);
    color: var(--primary-bright);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}
.mf-btn--primary {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--glow);
}
.mf-btn--primary .mf-btn-count {
    background: rgba(255, 255, 255, 0.22);
    color: white;
}
@media (max-width: 640px) {
    .mtproto-filters-desktop {
        display: none;
    }
    .mtproto-filters-mobile {
        display: flex;
    }
    .mtproto-desktop-table {
        display: none;
    }
    .mtproto-mobile-list {
        display: block;
    }
    .mtproto-card-info {
        gap: 0.75rem 1rem;
    }
    .mtproto-card-body {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .mtproto-card .status-actions-btns {
        width: 100%;
        justify-content: center;
    }
}
@media (min-width: 641px) {
    .mtproto-mobile-list {
        display: none;
    }
}
.mtproto-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.mtproto-table thead {
    background: rgba(255, 255, 255, 0.04);
}
.mtproto-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--glass-border);
}
.mtproto-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}
.mtproto-table tbody tr:last-child td {
    border-bottom: none;
}
.mtproto-row--alive {
    background: rgba(76, 175, 80, 0.06);
}
.mtproto-row--alive:hover {
    background: rgba(76, 175, 80, 0.12);
}
.mtproto-row--dead {
    opacity: 0.55;
}
.mtproto-row--dead:hover {
    opacity: 0.75;
}
.mtproto-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1;
}
.mtproto-status--alive {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.28);
}
.mtproto-status--alive .fas {
    color: #2ecc71;
}
.mtproto-status--dead {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.28);
}
.mtproto-status--dead .fas {
    color: #ff6b6b;
}
.mtproto-ping {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}
.mtproto-ping::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}
.mtproto-ping--good {
    color: #2ecc71;
}
.mtproto-ping--avg {
    color: #f1c40f;
}
.mtproto-ping--bad {
    color: #ff6b6b;
}
.mtproto-unavailable {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}
.mtproto-code {
    display: block;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.3rem 0.6rem;
    font-size: 0.82rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.mtproto-col-server {
    max-width: 240px;
    width: 34%;
}
.mtproto-col-port,
.mtproto-col-ping {
    width: 1%;
    white-space: nowrap;
}
.mtproto-col-action {
    width: 1%;
    white-space: nowrap;
}
.mtproto-table .status-actions-btns {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0.45rem 0.9rem;
}
@media (max-width: 576px) {
    .mtproto-table {
        font-size: 0.82rem;
    }
    .mtproto-table th,
    .mtproto-table td {
        padding: 0.7rem 0.6rem;
    }
    .mtproto-col-server {
        max-width: 140px;
        width: auto;
    }
    .mtproto-code {
        font-size: 0.74rem;
        padding: 0.28rem 0.45rem;
    }
    .mtproto-status {
        padding: 0.28rem 0.55rem;
        font-size: 0.72rem;
    }
    .mtproto-table .status-actions-btns {
        padding: 0.45rem 0.6rem;
        font-size: 0.76rem;
    }
}

/* ========== Theme Toggle Button ========== */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--header-touch);
    height: var(--header-touch);
    min-width: var(--header-touch);
    min-height: var(--header-touch);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(255, 149, 0, 0.1);
    border-color: rgba(255, 149, 0, 0.35);
    color: var(--primary-bright);
}

.theme-toggle:active {
    transform: scale(0.92);
}

.theme-toggle .theme-toggle-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.theme-toggle .theme-toggle-icon--sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle .theme-toggle-icon--moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle .theme-toggle-icon--sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle .theme-toggle-icon--moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(255, 149, 0, 0.08);
    border-color: rgba(255, 149, 0, 0.35);
    color: var(--primary-bright);
}

@media (max-width: 768px) {
    .header-trailing .theme-toggle {
        width: var(--header-touch);
        height: var(--header-touch);
        min-width: var(--header-touch);
        min-height: var(--header-touch);
        padding: 0;
    }
}
