/*
Theme Name: Astrafic Theme
Theme URI: https://astrafic.com
Description: Тема для сайта Astrafic - простые объяснения крипты, NFT и арбитража
Version: 1.0.0
Author: Astrafic Team
Author URI: https://astrafic.com
License: GPL v2 or later
Text Domain: astrafic
*/

/* ========== CSS ПЕРЕМЕННЫЕ ========== */
:root {
    --primary-purple: #6366F1;
    --primary-blue: #3B82F6;
    --primary-cyan: #06B6D4;
    --primary-pink: #EC4899;
    --gradient-start: #6366F1;
    --gradient-end: #8B5CF6;
    --gradient-premium: linear-gradient(135deg, #6366F1 0%, #8B5CF6 25%, #EC4899 50%, #06B6D4 100%);
    --gradient-premium-size: 200% 200%;
    
    --text-dark: #1E293B;
    --text-light: #64748B;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --border-color: #E2E8F0;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] {
    --text-dark: #F1F5F9;
    --text-light: #94A3B8;
    --bg-white: #1E293B;
    --bg-light: #0F172A;
    --border-color: #334155;
    --white-rgba-85: rgba(30, 41, 59, 0.85);
    --white-rgba-98: rgba(30, 41, 59, 0.98);
    --white-rgba-95: rgba(30, 41, 59, 0.95);
    --white-rgba-80: rgba(30, 41, 59, 0.8);
    --white-rgba-70: rgba(30, 41, 59, 0.7);
    --white-rgba-60: rgba(30, 41, 59, 0.6);
    --white-rgba-50: rgba(30, 41, 59, 0.5);
    --white-rgba-40: rgba(30, 41, 59, 0.4);
    --white-rgba-30: rgba(30, 41, 59, 0.3);
    --white-rgba-10: rgba(30, 41, 59, 0.1);
    --white-rgba-05: rgba(30, 41, 59, 0.05);
    --white-solid: #1E293B;
}

/* ========== VPN PAGE ========== */
.vpn-hero-page {
    position: relative;
}
.vpn-hero-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1000px 650px at 20% 15%, rgba(99, 102, 241, 0.16), transparent 60%),
        radial-gradient(900px 650px at 80% 65%, rgba(6, 182, 212, 0.12), transparent 62%),
        radial-gradient(800px 520px at 55% 35%, rgba(236, 72, 153, 0.10), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.vpn-hero-page > * {
    position: relative;
    z-index: 1;
}
.vpn-hero-page .vpn-hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.05rem;
    border-radius: 999px;
    color: rgba(241, 245, 249, 0.96);
    letter-spacing: 0.02em;
    font-weight: 750;
    font-size: 0.95rem;
    margin: 0 auto 0.95rem;
    white-space: nowrap;

    /* Glass + site color tint */
    border: 1px solid transparent;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.58)) padding-box,
        linear-gradient(135deg, rgba(99, 102, 241, 0.65), rgba(6, 182, 212, 0.42), rgba(236, 72, 153, 0.45)) border-box;
    box-shadow:
        0 18px 55px rgba(2, 6, 23, 0.75),
        0 0 0 1px rgba(99, 102, 241, 0.18);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.vpn-hero-page .hero-content {
    text-align: center;
}

/* VPN App card (app.astrafic.net) */
.vpn-app-card{
    margin: 18px auto 0;
    width: min(980px, 100%);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.30), rgba(2, 6, 23, 0.18)) padding-box,
        linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(34, 211, 238, 0.18), rgba(236, 72, 153, 0.20)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 1.05rem;
    display: grid;
    gap: 12px;
}
.vpn-app-card-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.vpn-app-pill{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.22);
    background: rgba(99, 102, 241, 0.10);
    color: rgba(224, 231, 255, 0.92);
    font-weight: 850;
    letter-spacing: -0.01em;
    font-size: 0.92rem;
}
.vpn-app-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-weight: 950;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    position: relative;
    top: 1px;
    color: rgba(2, 6, 23, 0.95);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.95), rgba(99, 102, 241, 0.95));
    box-shadow: 0 14px 34px rgba(99, 102, 241, 0.24);
}
.vpn-app-link{
    color: rgba(190, 166, 255, 0.95);
    text-decoration: none;
    font-weight: 850;
}
.vpn-app-link:hover{ text-decoration: underline; }
.vpn-app-steps{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.vpn-app-step{
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.22);
    padding: 0.85rem 0.9rem;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    align-items: start;
}
.vpn-app-step-num{
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    color: rgba(241, 245, 249, 0.95);
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.26);
}
.vpn-app-step-title{
    font-weight: 900;
    color: rgba(241, 245, 249, 0.95);
    letter-spacing: -0.01em;
}
.vpn-app-step-sub{
    margin-top: 2px;
    color: rgba(148, 163, 184, 0.92);
    line-height: 1.35;
    font-size: 0.95rem;
}
.vpn-app-actions{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

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

@media (max-width: 560px){
    .vpn-app-card{
        padding: 0.95rem 0.9rem;
        border-radius: 20px;
        margin-top: 14px;
    }
    .vpn-app-card-head{
        justify-content: center;
        text-align: center;
    }
    .vpn-app-link{
        width: 100%;
        text-align: center;
        padding: 0.55rem 0.7rem;
        border-radius: 999px;
        border: 1px solid rgba(99, 102, 241, 0.18);
        background: rgba(15, 23, 42, 0.25);
    }
    .vpn-app-step{
        grid-template-columns: 28px 1fr;
        padding: 0.8rem 0.85rem;
    }
    .vpn-app-step-num{
        width: 28px;
        height: 28px;
        border-radius: 10px;
    }
    .vpn-app-actions{
        display: grid;
        gap: 10px;
    }
    .vpn-app-actions .btn{
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .vpn-hero-page .vpn-hero-pill {
        max-width: 100%;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }
}
.vpn-hero-page .hero-subtitle {
    max-width: 68ch;
    margin-left: auto;
    margin-right: auto;
}

.vpn-hero-page .hero-header {
    margin-bottom: 2rem;
}
.vpn-hero-page .hero-header .logo {
    justify-content: flex-start;
    margin-left: -12px;
}
.vpn-hero-page .hero-header .logo-img {
    height: 92px;
}
.vpn-hero-page .hero-header-right {
    justify-content: flex-end;
}

.vpn-hero {
    position: relative;
    padding: clamp(3.25rem, 5vw, 5.5rem) 0 2.25rem;
    overflow: hidden;
}
.vpn-hero-bg {
    position: absolute;
    inset: -40% -20% -20% -20%;
    background:
        radial-gradient(900px 500px at 15% 25%, rgba(99, 102, 241, 0.35), transparent 60%),
        radial-gradient(800px 500px at 70% 10%, rgba(236, 72, 153, 0.22), transparent 55%),
        radial-gradient(900px 600px at 85% 70%, rgba(6, 182, 212, 0.22), transparent 55%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.18));
    filter: saturate(1.1);
    pointer-events: none;
}
.vpn-hero-container {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(1.25rem, 3vw, 2.25rem);
    align-items: start;
}
.vpn-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(241, 245, 249, 0.9);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.78rem;
}
.vpn-title {
    margin: 1rem 0 0.75rem;
    font-size: clamp(2.1rem, 4.1vw, 3.4rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: rgba(241, 245, 249, 0.98);
}
.vpn-subtitle {
    margin: 0;
    max-width: 52ch;
    font-size: 1.06rem;
    line-height: 1.7;
    color: rgba(148, 163, 184, 0.95);
}
.vpn-hero-cta {
    margin-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.vpn-hero-badges {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.vpn-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(241, 245, 249, 0.92);
    font-weight: 600;
    font-size: 0.92rem;
}
.vpn-badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--gradient-premium);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}
.vpn-hero-card {
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
    padding: 1.35rem 1.25rem;
    backdrop-filter: blur(10px);
}
.vpn-hero-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}
.vpn-hero-card-title {
    color: rgba(241, 245, 249, 0.95);
    font-weight: 800;
    letter-spacing: -0.01em;
}
.vpn-hero-card-chip {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.16);
    color: rgba(148, 163, 184, 0.98);
    font-size: 0.85rem;
    background: rgba(15, 23, 42, 0.2);
}
.vpn-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.vpn-metric {
    padding: 0.85rem 0.8rem;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.14);
    background: rgba(15, 23, 42, 0.2);
}
.vpn-metric-value {
    font-weight: 900;
    color: rgba(241, 245, 249, 0.97);
    letter-spacing: -0.02em;
}
.vpn-metric-label {
    margin-top: 6px;
    color: rgba(148, 163, 184, 0.95);
    font-size: 0.9rem;
}
.vpn-hero-card-note {
    margin-top: 1rem;
    color: rgba(148, 163, 184, 0.96);
    line-height: 1.6;
}

.vpn-section-head {
    display: grid;
    gap: 10px;
    margin-bottom: 1.35rem;
}
.vpn-section-title {
    margin: 0;
    font-size: clamp(1.55rem, 2.6vw, 2.2rem);
    letter-spacing: -0.02em;
}
.vpn-section-subtitle {
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 70ch;
}
.vpn-features,
.vpn-pricing,
.vpn-faq,
.vpn-final-cta {
    padding: clamp(2.75rem, 4.2vw, 4rem) 0;
}
.vpn-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.vpn-feature {
    border-radius: 22px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-md);
    padding: 1.25rem;
    transition: transform 180ms ease, box-shadow 180ms ease;
}
[data-theme="dark"] .vpn-feature {
    background: rgba(15, 23, 42, 0.25);
    border-color: rgba(51, 65, 85, 0.8);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.vpn-feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}
.vpn-feature-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--gradient-premium);
    color: white;
    font-size: 1.1rem;
    box-shadow: var(--shadow-glow);
}

.vpn-feature-icon--outline {
    background: transparent;
    color: rgba(99, 102, 241, 0.95);
    box-shadow: none;
    border: 1px solid rgba(148, 163, 184, 0.35);
}
[data-theme="dark"] .vpn-feature-icon--outline {
    border-color: rgba(148, 163, 184, 0.22);
    color: rgba(241, 245, 249, 0.92);
}
.vpn-feature-icon--outline svg {
    width: 22px;
    height: 22px;
}
.vpn-feature-title {
    margin: 0.95rem 0 0.45rem;
    font-size: 1.1rem;
}
.vpn-feature-desc {
    margin: 0;
    color: var(--text-light);
    line-height: 1.65;
}

.vpn-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    max-width: 1320px;
    margin: 0 auto;
}

@media (max-width: 980px) {
    .vpn-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .vpn-pricing-grid { grid-template-columns: 1fr; gap: 14px; }
    .vpn-plan,
    .vpn-plan-popular { min-height: 0; }
}
.vpn-plan {
    border-radius: 22px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.8);
    padding: 1.75rem 1.55rem 1.45rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    min-height: 520px;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
}

/* Pricing modal */
.pricing-modal {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pricing-modal-dialog {
    width: min(680px, 96vw);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
    padding: 1.2rem 1.2rem 1.1rem;
    color: rgba(241, 245, 249, 0.95);
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
    position: relative;
}
.pricing-modal-dialog.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.pricing-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(241, 245, 249, 0.95);
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    display: grid;
    place-items: center;
}
.pricing-modal-close:hover {
    border-color: rgba(99, 102, 241, 0.45);
    background: rgba(99, 102, 241, 0.12);
}
.pricing-modal-head {
    padding-right: 52px;
}
.pricing-modal-title {
    margin: 0.55rem 0 0.35rem;
    font-size: 1.55rem;
    letter-spacing: -0.02em;
}
.pricing-modal-sub {
    margin: 0 0 0.95rem;
    color: rgba(148, 163, 184, 0.95);
    line-height: 1.55;
}
.pricing-modal-options {
    display: grid;
    gap: 10px;
    margin: 0.85rem 0 1rem;
}
.pricing-opt {
    width: 100%;
    text-align: left;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.40);
    color: rgba(241, 245, 249, 0.95);
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.pricing-opt:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.40);
    background: rgba(99, 102, 241, 0.12);
}
.pricing-opt-left {
    font-weight: 850;
}
.pricing-opt-right {
    color: rgba(226, 232, 240, 0.95);
    font-weight: 800;
    text-align: right;
}
.pricing-opt-note {
    color: rgba(148, 163, 184, 0.95);
    font-weight: 700;
    margin-left: 8px;
}
.pricing-modal-actions {
    display: grid;
    gap: 10px;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 20000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.cookie-banner[hidden]{
    display: none !important;
}
.cookie-banner-card {
    width: min(980px, 100%);
    pointer-events: auto;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.74));
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
    padding: 0.95rem 1.05rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    align-items: center;
    color: rgba(241, 245, 249, 0.95);
}
.cookie-banner-title {
    font-weight: 900;
    letter-spacing: -0.01em;
}
.cookie-banner-text {
    color: rgba(148, 163, 184, 0.95);
    line-height: 1.55;
    max-width: 66ch;
}
.cookie-banner-text a {
    color: rgba(99, 102, 241, 0.95);
    text-decoration: none;
}
.cookie-banner-text a:hover { text-decoration: underline; }
.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}
.cookie-banner-actions .btn {
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    white-space: nowrap;
}
@media (max-width: 520px) {
    .cookie-banner-actions {
        display: grid;
    }
    .cookie-banner-actions .btn {
        width: 100%;
    }
    .cookie-banner-card{
        border-radius: 26px;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .cookie-banner-text{ max-width: 100%; }
}

/* VPN pricing: description + expand button */
.vpn-plan-desc{
    margin: 10px 0 12px;
    color: rgba(148, 163, 184, 0.95);
    font-size: 14px;
    line-height: 1.45;
}

.vpn-plan-toggle{
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0.8rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.35);
    color: rgba(241, 245, 249, 0.92);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.vpn-plan-toggle:hover{
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.32);
    background: rgba(99, 102, 241, 0.10);
}
.vpn-plan-toggle:active{ transform: translateY(0px); }

.vpn-plan-toggle-icon{
    display: inline-block;
    transition: transform 220ms ease;
    opacity: 0.9;
}
.vpn-plan-toggle[aria-expanded="true"] .vpn-plan-toggle-icon{
    transform: rotate(180deg);
}

.vpn-plan-details{
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 420ms ease, opacity 220ms ease, transform 220ms ease;
    will-change: max-height;
}
.vpn-plan-details.is-open{
    opacity: 1;
    transform: translateY(0);
}

/* VPN pricing: price block under description */
.vpn-plan-prices{
    margin-top: 12px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.35);
    padding: 0.9rem 0.95rem;
}
.vpn-plan-prices-head{
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(241, 245, 249, 0.95);
    cursor: pointer;
}
.vpn-plan-prices-title{
    font-weight: 900;
    letter-spacing: -0.01em;
}
.vpn-plan-prices-head .vpn-plan-toggle-icon{
    transition: transform 220ms ease;
}
.vpn-plan-prices-head[aria-expanded="true"] .vpn-plan-toggle-icon{
    transform: rotate(180deg);
}
.vpn-plan-prices-details{
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 420ms ease, opacity 220ms ease, transform 220ms ease;
    will-change: max-height;
}
.vpn-plan-prices-details.is-open{
    opacity: 1;
    transform: translateY(0);
    margin-top: 8px;
}
.vpn-plan-prices-list{
    gap: 10px;
    margin-top: 0;
}
.vpn-plan-prices-list li{
    padding: 0.7rem 0.9rem 0.7rem 0.9rem;
}
.vpn-plan-prices-list{
    list-style: none;
    padding-left: 0;
}
.vpn-plan-prices-list li{
    position: relative;
    padding-left: 2.2rem;
}
.vpn-plan-prices-list li::before{
    content: '';
    position: absolute;
    left: 0.7rem;
    top: 0.72rem;
    width: 14px;
    height: 14px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(99, 102, 241, 0.26);
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.10);
}
.vpn-plan-prices-list li::after{
    content: '₽';
    position: absolute;
    left: 0.98rem;
    top: 0.50rem;
    font-size: 0.9rem;
    font-weight: 950;
    color: rgba(99, 102, 241, 0.95);
}
.vpn-plan-save{
    color: rgba(148, 163, 184, 0.95);
    font-weight: 800;
    margin-left: 6px;
}

/* Pricing cards: more premium structure */
.vpn-plan::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    pointer-events: none;
    border: 1px solid rgba(148, 163, 184, 0.12);
    opacity: 1;
}

.vpn-plan-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.vpn-plan-title {
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: -0.02em;
}
.vpn-plan-price-main {
    font-size: 2.35rem;
}
.vpn-plan-price-sub {
    font-size: 0.95rem;
}

.vpn-plan-price {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
[data-theme="dark"] .vpn-plan-price {
    border-bottom-color: rgba(51, 65, 85, 0.75);
}

.vpn-plan-perks {
    gap: 12px;
    margin-top: 0.25rem;
}
.vpn-plan-perks li {
    border-radius: 16px;
    padding: 0.75rem 0.95rem 0.75rem 2.25rem;
}

.vpn-plan-cta {
    border-radius: 16px;
    padding: 1.05rem 1.2rem;
    margin-top: 1.05rem;
}

/* Button placement: middle plan lower, side plans a bit higher */
.vpn-plan:not(.vpn-plan-popular) .vpn-plan-cta {
    margin-top: 1.35rem;
}
.vpn-plan-popular .vpn-plan-cta {
    margin-top: auto;
}
[data-theme="dark"] .vpn-plan::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    pointer-events: none;
    background: radial-gradient(600px 220px at 20% 0%, rgba(99, 102, 241, 0.14), transparent 60%),
                radial-gradient(520px 220px at 85% 10%, rgba(6, 182, 212, 0.10), transparent 55%);
    opacity: 0.9;
}

.vpn-plan:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
}
[data-theme="dark"] .vpn-plan:hover {
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.55);
}
[data-theme="dark"] .vpn-plan {
    background: rgba(15, 23, 42, 0.38);
    border-color: rgba(51, 65, 85, 0.8);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.4);
}

/* Readability tweaks for long legal texts */
.vpn-plan p {
    margin: 0 0 10px 0;
}
.vpn-plan p:last-child {
    margin-bottom: 0;
}
.vpn-plan a {
    color: rgba(99, 102, 241, 0.98);
    text-decoration: none;
}
.vpn-plan a:hover {
    text-decoration: underline;
}
.vpn-plan a:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.7);
    outline-offset: 3px;
    border-radius: 8px;
}
.vpn-plan-popular {
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 28px 90px rgba(99, 102, 241, 0.18);
    transform: none;
    overflow: hidden;
    min-height: 560px;
}
.vpn-plan-popular::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.55), rgba(6, 182, 212, 0.35), rgba(236, 72, 153, 0.35));
    opacity: 0.55;
    filter: blur(10px);
    z-index: -1;
}
.vpn-plan-popular > * {
    position: relative;
    z-index: 1;
}

/* Ensure CTA is always readable over effects */
.vpn-plan-popular .vpn-plan-cta {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
}
.vpn-plan-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    background: var(--gradient-premium);
    color: white;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}
.vpn-plan-head {
    display: grid;
    gap: 8px;
    margin-bottom: 0;
    min-width: 0;
}
.vpn-plan-title {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}
.vpn-plan-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.vpn-plan-price-main {
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.vpn-plan-price-sub {
    opacity: 0.9;
}
.vpn-plan-price-sub {
    color: var(--text-light);
    font-weight: 600;
}
.vpn-plan-list {
    margin: 0;
    padding-left: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    flex: 0 0 auto;
}

/* Plan perks (VPN pricing): clean vertical list with checks */
.vpn-plan-perks {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.vpn-plan-perks li {
    padding: 0.65rem 0.9rem 0.65rem 2.2rem;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.55);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text-dark);
    font-weight: 650;
    line-height: 1.35;
    position: relative;
    overflow: hidden;
}

.vpn-plan-cta {
    margin-top: auto;
}
.vpn-plan-perks li::before {
    content: '';
    position: absolute;
    left: 0.7rem;
    top: 0.72rem;
    width: 14px;
    height: 14px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(99, 102, 241, 0.28);
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.12);
}
.vpn-plan-perks li::after {
    content: '✓';
    position: absolute;
    left: 0.97rem;
    top: 0.55rem;
    font-size: 0.9rem;
    font-weight: 900;
    color: rgba(99, 102, 241, 0.95);
}
[data-theme="dark"] .vpn-plan-perks li {
    border-color: rgba(51, 65, 85, 0.82);
    background: rgba(15, 23, 42, 0.20);
    color: rgba(241, 245, 249, 0.92);
}
.vpn-plan-cta {
    width: 100%;
    min-width: 0;
    display: inline-flex;
    justify-content: center;
    border-radius: 14px;
    padding: 0.95rem 1.2rem;
}
.vpn-pricing-footnote {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.vpn-faq-list {
    display: grid;
    gap: 12px;
    max-width: 980px;
    margin: 0 auto;
}
.vpn-faq-item {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.85);
    padding: 1.2rem 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}
[data-theme="dark"] .vpn-faq-item {
    background: rgba(30, 41, 59, 0.82);
    border-color: rgba(51, 65, 85, 0.8);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}
.vpn-faq-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}
.vpn-faq-item[aria-expanded="true"] {
    border-color: rgba(99, 102, 241, 0.55);
}
.vpn-faq-q {
    font-weight: 800;
    letter-spacing: -0.01em;
    color: inherit;
    font-size: 1.05rem;
    line-height: 1.35;
}
[data-theme="dark"] .vpn-faq-q {
    color: inherit;
}
.vpn-faq-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(99, 102, 241, 0.12);
    color: rgba(99, 102, 241, 0.95);
    font-weight: 900;
    flex: 0 0 auto;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.vpn-faq-item[aria-expanded="true"] .vpn-faq-icon {
    transform: rotate(45deg);
    background: rgba(99, 102, 241, 0.18);
}
.vpn-faq-a {
    padding: 0.35rem 1.25rem 1.15rem;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}
[data-theme="dark"] .vpn-faq-a {
    color: rgba(148, 163, 184, 0.98);
}

/* FAQ smooth expand animation */
.vpn-faq-a {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 420ms ease, opacity 220ms ease, transform 220ms ease;
    will-change: max-height, opacity, transform;
}
.vpn-faq-a.is-open {
    opacity: 1;
    transform: translateY(0);
}

/* Make VPN FAQ section look more premium */
.vpn-faq {
    position: relative;
}
.vpn-faq::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 380px at 20% 30%, rgba(99, 102, 241, 0.10), transparent 60%),
                radial-gradient(700px 380px at 80% 70%, rgba(6, 182, 212, 0.08), transparent 60%);
    pointer-events: none;
}
.vpn-faq .container {
    position: relative;
}

/* Force readable FAQ text inside dark hero-themed pages */
[data-theme="dark"] .vpn-faq-item {
    color: rgba(241, 245, 249, 0.95);
}

@media (max-width: 980px) {
    .vpn-plan {
        flex-direction: column;
        align-items: stretch;
    }
    .vpn-plan-head {
        min-width: auto;
    }
    .vpn-plan-cta {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 720px) {
    .vpn-plan-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .vpn-plan-list {
        grid-template-columns: 1fr;
    }
}

/* ========== REVEAL ANIMATIONS ========== */
/* Fail-safe: content should stay visible if JS fails to run. */
[data-reveal] {
    opacity: 1;
    transform: none;
}
html.reveal-enabled [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 520ms ease, transform 520ms ease;
}
html.reveal-enabled [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.vpn-final-card {
    border-radius: 26px;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    animation: premiumGradient 8s ease infinite;
    padding: clamp(1.25rem, 3vw, 1.7rem);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 28px 110px rgba(99, 102, 241, 0.22);
}
.vpn-final-title {
    margin: 0;
    color: white;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    letter-spacing: -0.02em;
}
.vpn-final-subtitle {
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
}
.vpn-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 980px) {
    .vpn-hero-container {
        grid-template-columns: 1fr;
    }
    .vpn-features-grid,
    .vpn-pricing-grid {
        grid-template-columns: 1fr;
    }
    .vpn-plan-popular {
        transform: none;
    }
}

:root {
    --white-rgba-85: rgba(255, 255, 255, 0.85);
    --white-rgba-98: rgba(255, 255, 255, 0.98);
    --white-rgba-95: rgba(255, 255, 255, 0.95);
    --white-rgba-80: rgba(255, 255, 255, 0.8);
    --white-rgba-70: rgba(255, 255, 255, 0.7);
    --white-rgba-60: rgba(255, 255, 255, 0.6);
    --white-rgba-50: rgba(255, 255, 255, 0.5);
    --white-rgba-40: rgba(255, 255, 255, 0.4);
    --white-rgba-30: rgba(255, 255, 255, 0.3);
    --white-rgba-10: rgba(255, 255, 255, 0.1);
    --white-rgba-05: rgba(255, 255, 255, 0.05);
    --white-solid: #FFFFFF;
}

/* ========== БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== SCROLLBAR (GLOBAL) ========== */
html {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(99, 102, 241, 0.85) transparent;
}

/* WebKit (Chrome/Edge/Safari) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(2, 6, 23, 0.22);
    border-radius: 999px;
    box-shadow: none;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.75));
    border-radius: 999px;
    border: 2px solid rgba(2, 6, 23, 0.22);
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.16);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.98), rgba(236, 72, 153, 0.72));
    box-shadow: 0 14px 32px rgba(99, 102, 241, 0.24);
}

::-webkit-scrollbar-corner {
    background: rgba(2, 6, 23, 0.22);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', sans-serif;
    color: var(--text-dark);
    /* Фон всего сайта как у hero (сфера остаётся только вверху в hero) */
    background: radial-gradient(circle at top, #020617 0%, #020617 40%, #020617 100%);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: -30% -30% -30% -30%;
    background:
        radial-gradient(900px 650px at 15% 20%, rgba(99, 102, 241, 0.12), transparent 60%),
        radial-gradient(900px 650px at 85% 70%, rgba(6, 182, 212, 0.10), transparent 62%),
        radial-gradient(750px 520px at 60% 35%, rgba(236, 72, 153, 0.08), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ===== FINAL Scrollbar (single source of truth) ===== */
html { color-scheme: dark; }
html {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(99, 102, 241, 0.85) rgba(2, 6, 23, 0.12);
}
::-webkit-scrollbar { width: 10px !important; height: 10px !important; }
::-webkit-scrollbar-track { background: rgba(2, 6, 23, 0.12) !important; border-radius: 999px !important; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.92), rgba(139, 92, 246, 0.78)) !important;
    border-radius: 999px !important;
    border: 2px solid rgba(2, 6, 23, 0.12) !important;
    background-clip: padding-box !important;
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.16) !important;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.98), rgba(236, 72, 153, 0.72)) !important;
    box-shadow: 0 14px 32px rgba(99, 102, 241, 0.24) !important;
}
::-webkit-scrollbar-corner { background: rgba(2, 6, 23, 0.12) !important; }

/* Smooth scroll handled in JS for consistent feel */

/* Защита от кэша: оба варианта (гость/залогинен) присутствуют в DOM, показываем через body.logged-in */
.header-auth-user { display: none; }
.header-auth-guest { display: flex; gap: 12px; align-items: center; }
body.logged-in .header-auth-user { display: block; }
body.logged-in .header-auth-guest { display: none; }

/* Убрали "cubes" паттерн - теперь используется только сфера */

body > * {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Глобальная обработка переполнения текста */
h1, h2, h3, h4, h5, h6,
.title, .subtitle,
.post-title, .post-content,
.category-card-title, .category-card-desc,
.article-card-title, .article-card-excerpt {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ========== TOP NAVIGATION ========== */
.top-nav {
    background: var(--white-rgba-80);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    padding: 0.4rem 0;
    font-size: 0.8125rem;
    position: relative;
    z-index: 1000;
}

.top-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.top-nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.top-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.top-nav-link:hover {
    color: var(--primary-purple);
    background: rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.top-nav-link.active {
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    color: white;
    animation: premiumGradient 8s ease infinite;
}

.nav-icon {
    flex-shrink: 0;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-selector-wrapper {
    position: relative;
}

.lang-selector {
    /* Liquid glass для кнопки языка */
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.7);
    border-radius: 999px;
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.lang-selector:hover {
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.8);
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 1000;
}

.lang-menu.show {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.lang-option:hover {
    background: var(--bg-light);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--bg-light);
    border-color: var(--primary-purple);
}

.btn-auth {
    /* Liquid Glass */
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.10);
    color: var(--text-dark);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
}

.btn-login {
    background: rgba(255, 255, 255, 0.12);
    color: #F1F5F9;
    border-color: rgba(148, 163, 184, 0.35);
}

.btn-login:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.65);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.18), 0 10px 26px rgba(2, 6, 23, 0.35);
}

.btn-register {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(74, 222, 128, 0.25));
    color: #ECFDF5;
    border-color: rgba(34, 197, 94, 0.45);
}

.btn-register:hover {
    transform: translateY(-2px);
    border-color: rgba(74, 222, 128, 0.7);
    box-shadow: 0 18px 46px rgba(34, 197, 94, 0.18), 0 10px 26px rgba(2, 6, 23, 0.35);
}

/* ========== HEADER ========== */
.header {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(99, 102, 241, 0.2),
                inset 0 -3px 0 rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 999;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
}

.header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), var(--primary-cyan), var(--primary-purple), transparent);
    opacity: 0.8;
    animation: gradientMove 3s ease infinite;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 0;
    gap: 1rem;
    min-height: 60px;
    position: relative;
}

.logo-img {
    width: 240px;
    height: auto;
    border-radius: 0;
    transition: all 0.3s;
    box-shadow: none;
    background: transparent;
    filter: brightness(1.1) drop-shadow(0 2px 8px rgba(99, 102, 241, 0.2));
}

.logo-img:hover {
    transform: scale(1.08);
    filter: brightness(1.2) drop-shadow(0 6px 20px rgba(99, 102, 241, 0.5));
}

/* ========== HERO SECTION ========== */
.hero-section {
    padding: 5rem 0 7rem;
    background: radial-gradient(circle at top, #020617 0%, #020617 40%, #020617 100%);
    position: relative;
    overflow: hidden;
}

/* Canvas для сферы */
#web3-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

/* Фон hero под сферу – мягкое свечение без линий */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(148, 163, 184, 0.08) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* Шапка внутри hero */
.hero-header {
    position: relative;
    z-index: 3;
    margin-bottom: 2.5rem;
}

.hero-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-header .logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-header .logo-img {
    height: 80px;
    width: auto;
}

.header-nav-oval {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 999px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.7);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.nav-oval-link {
    position: relative;
    padding: 0.55rem 1.5rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #E5E7EB;
    text-decoration: none;
    transition: all 0.2s;
    background: rgba(15, 23, 42, 0.4);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
}

.nav-oval-link:hover {
    color: #F9FAFB;
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
}

.nav-oval-link.active {
    background: radial-gradient(circle at 0% 0%, rgba(148, 163, 184, 0.3), transparent 60%),
                linear-gradient(135deg, #111827, #020617);
    color: #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.7);
}

.nav-oval-text {
    white-space: nowrap;
}

.hero-header-right {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    /* Mobile: logo centered everywhere (including VPN/legal pages) */
    .vpn-hero-page .hero-header .logo {
        justify-content: center;
        margin-left: 0;
    }

    .hero-section {
        padding: 3.5rem 0 5.5rem;
    }

    .hero-header {
        margin-bottom: 2rem;
    }

    .hero-header-content {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }

    .hero-header .logo {
        justify-content: center;
        width: 100%;
        padding-left: 0;
    }

    .hero-header .logo-img {
        height: 90px;
    }

    .header-nav-oval {
        margin: 0 auto;
        width: fit-content;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: center;
    }

    .header-nav-oval::-webkit-scrollbar {
        display: none;
    }

    .nav-oval-link {
        padding: 0.5rem 1.05rem;
        font-size: 0.88rem;
    }

    .hero-header-right {
        width: 100%;
        justify-content: center;
        gap: 0.6rem;
    }

    .hero-header-right .btn,
    .hero-header-right .btn-auth {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

/* Mobile: hide "Начать" button in hero header (keep on desktop) */
@media (max-width: 768px) {
    .vpn-hero-page .hero-header-right {
        display: none !important;
    }
}

/* Mobile: show "Начать" under subtitle on legal pages */
.legal-mobile-cta {
    display: none;
    margin-top: 1rem;
    justify-content: center;
}
@media (max-width: 768px) {
    .legal-mobile-cta {
        display: flex;
    }
    .legal-mobile-cta .btn {
        width: 100%;
        max-width: 340px;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .hero-header .logo {
        padding-left: 0.75rem;
    }
    .hero-header .logo-img {
        height: 72px;
    }
    .nav-oval-link {
        padding: 0.48rem 0.9rem;
        font-size: 0.86rem;
    }
    .header-nav-oval {
        width: fit-content;
        max-width: calc(100vw - 30px);
    }
}

@media (max-width: 420px) {
    .vpn-hero-page .hero-header .logo-img {
        height: 72px;
    }
}

.profile-menu-wrapper {
    position: relative;
}

.btn-menu-toggle {
    background: var(--white-rgba-80);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
    transition: all 0.2s;
}

.btn-menu-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.45);
}

.header-profile-menu-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    min-width: 220px;
    padding: 0.5rem;
    background: var(--bg-white);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.5);
    z-index: 20;
}

.header-profile-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.header-profile-menu-item:hover {
    background: var(--bg-light);
    color: var(--primary-purple);
}

.header-profile-menu-divider {
    height: 1px;
    margin: 0.4rem 0;
    background: rgba(148, 163, 184, 0.5);
}

.header-profile-menu-item-logout {
    color: #ef4444;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: 900;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: premiumGradient 8s ease infinite;
}

@keyframes premiumGradient {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-search {
    margin-top: 3rem;
    position: relative;
}

.hero-search::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(107, 70, 193, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(6, 182, 212, 0.03) 0%, transparent 40%);
    background-size: 400px 400px, 450px 450px;
    background-position: 30% 30%, 70% 70%;
    animation: backgroundMove 20s ease infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.hero-search > * {
    position: relative;
    z-index: 1;
}

.search-box-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white-rgba-85);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 2px solid var(--border-color);
    border-radius: 28px;
    padding: 0;
    box-shadow: 0 24px 80px rgba(99, 102, 241, 0.25),
                0 12px 32px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 var(--white-solid),
                0 0 0 6px rgba(99, 102, 241, 0.15);
    transition: all 0.3s;
}

.search-box-large:focus-within {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 32px 100px rgba(99, 102, 241, 0.35),
                0 16px 40px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 var(--white-solid),
                0 0 0 8px rgba(99, 102, 241, 0.2);
}

.search-icon-inside {
    margin-left: 1.5rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.search-input-large {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.125rem;
    padding: 1.25rem 0;
    color: var(--text-dark);
    outline: none;
}

.search-input-large::placeholder {
    color: var(--text-light);
}

.search-btn-large {
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    border: none;
    border-radius: 18px;
    padding: 1.25rem 2.5rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem;
    transition: all 0.3s;
    animation: premiumGradient 8s ease infinite;
}

.search-btn-large:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.5),
                0 8px 20px rgba(139, 92, 246, 0.4),
                inset 0 1px 0 var(--white-rgba-30),
                0 0 30px rgba(99, 102, 241, 0.3);
}

.search-hint {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
    display: none;
}

.popular-queries {
    /* Убрали блок популярных запросов под поиском – полотно без лишнего шума */
    display: none !important;
}

.popular-queries-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.query-tag {
    background: var(--white-rgba-85);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.query-tag:hover {
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    color: white;
    border-color: transparent;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    animation: premiumGradient 8s ease infinite;
}

/* ========== STATS SECTION ========== */
.stats-section {
    padding: 5rem 0;
    background: transparent;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), var(--primary-cyan), var(--primary-purple), transparent);
    opacity: 0.6;
    animation: gradientMove 3s ease infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 3rem 2rem;
    background: var(--white-rgba-60);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(226, 232, 240, 0.6);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    opacity: 0.1;
    transition: left 0.5s;
    z-index: 0;
}

.stat-item:hover::before {
    left: 0;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.25),
                0 10px 30px rgba(139, 92, 246, 0.2),
                0 4px 15px rgba(0, 0, 0, 0.1);
    background: var(--white-rgba-85);
}

.stat-item > * {
    position: relative;
    z-index: 1;
}

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.2));
}

.stat-item:hover .stat-icon {
    transform: scale(1.2) rotate(5deg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    animation: premiumGradient 8s ease infinite;
    transition: all 0.3s;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4));
}

.stat-label {
    color: var(--text-light);
    font-size: 1.125rem;
    font-weight: 500;
    transition: color 0.3s;
}

.stat-item:hover .stat-label {
    color: var(--primary-purple);
}

/* ========== CATEGORIES SECTION ========== */
.categories-section {
    padding: 7rem 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Убрали "cubes" паттерн из categories-section */

.categories-section > * {
    position: relative;
    z-index: 1;
}

.categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), var(--primary-cyan), var(--primary-purple), transparent);
    opacity: 0.6;
    animation: gradientMove 3s ease infinite;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: premiumGradient 8s ease infinite;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Stagger reveal for category cards (homepage) */
html.reveal-enabled .categories-section[data-reveal] .category-card {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 520ms ease, transform 520ms ease;
}
html.reveal-enabled .categories-section[data-reveal].is-visible .category-card {
    opacity: 1;
    transform: translateY(0);
}
html.reveal-enabled .categories-section[data-reveal].is-visible .category-card:nth-child(1) { transition-delay: 60ms; }
html.reveal-enabled .categories-section[data-reveal].is-visible .category-card:nth-child(2) { transition-delay: 130ms; }
html.reveal-enabled .categories-section[data-reveal].is-visible .category-card:nth-child(3) { transition-delay: 200ms; }
html.reveal-enabled .categories-section[data-reveal].is-visible .category-card:nth-child(4) { transition-delay: 270ms; }
html.reveal-enabled .categories-section[data-reveal].is-visible .category-card:nth-child(5) { transition-delay: 340ms; }
html.reveal-enabled .categories-section[data-reveal].is-visible .category-card:nth-child(6) { transition-delay: 410ms; }

.category-card {
    background: var(--white-rgba-85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 24px 60px rgba(99, 102, 241, 0.2),
                0 12px 32px rgba(139, 92, 246, 0.15),
                0 4px 16px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 var(--white-solid);
    border-color: rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(6, 182, 212, 0.02));
}

.category-card:hover .category-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    border-radius: 20px;
    color: white;
    animation: premiumGradient 8s ease infinite;
}

.category-card-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
    word-wrap: break-word;
}

.category-card:hover .category-card-title {
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: premiumGradient 8s ease infinite;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.3));
}

.category-card-desc {
    color: var(--text-light);
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    line-height: 1.6;
    word-wrap: break-word;
}

/* ========== BEGINNERS SECTION ========== */
.beginners-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    position: relative;
    pointer-events: none;
    overflow: hidden;
}

.beginners-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(30deg, transparent, transparent 28px, rgba(99, 102, 241, 0.06) 28px, rgba(99, 102, 241, 0.06) 29px),
        repeating-linear-gradient(-30deg, transparent, transparent 26px, rgba(139, 92, 246, 0.05) 26px, rgba(139, 92, 246, 0.05) 27px);
    background-size: 200% 200%, 180% 180%;
    animation: floatingGrid 70s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.beginners-section > * {
    pointer-events: auto;
}

@keyframes backgroundMove {
    0%, 100% {
        background-position: 0 0, 0 0, 30% 30%, 70% 70%, 0 0;
    }
    25% {
        background-position: 20px 20px, -20px 20px, 35% 35%, 65% 65%, 0 0;
    }
    50% {
        background-position: 40px 40px, -40px 40px, 25% 25%, 75% 75%, 0 0;
    }
    75% {
        background-position: 20px 20px, -20px 20px, 35% 35%, 65% 65%, 0 0;
    }
}

.beginners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), var(--primary-cyan), var(--primary-purple), transparent);
    opacity: 0.6;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(107, 70, 193, 0.3);
    animation: gradientMove 3s ease infinite;
}

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

.beginners-card {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white-rgba-85);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 2px solid var(--border-color);
    border-radius: 32px;
    padding: 5rem 4.5rem;
    box-shadow: 0 24px 80px rgba(99, 102, 241, 0.15),
                0 12px 40px rgba(139, 92, 246, 0.1),
                0 4px 16px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 var(--white-solid);
    position: relative;
    overflow: hidden;
}

.beginners-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    animation: premiumGradient 8s ease infinite;
    z-index: 1;
}

/* Убрали "cubes" паттерн из beginners-card */

@keyframes rotatePattern {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.beginners-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.beginners-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    animation: premiumGradient 8s ease infinite;
    border-radius: 0 0 3px 3px;
}

.beginners-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-purple);
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: premiumGradient 8s ease infinite;
    padding: 0.5rem;
    border-radius: 12px;
    background-color: rgba(99, 102, 241, 0.1);
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.beginners-icon:hover {
    transform: rotate(5deg) scale(1.1);
    background-color: rgba(99, 102, 241, 0.15);
}

.beginners-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: premiumGradient 8s ease infinite;
}

.beginners-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.beginners-item {
    position: relative;
}

.beginners-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white-rgba-85);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
}

.beginners-link:hover {
    transform: translateY(-4px);
    border-color: var(--primary-purple);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.25),
                0 6px 15px rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(6, 182, 212, 0.05));
}

.beginners-link:hover .beginners-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.beginners-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    border-radius: 10px;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
    animation: premiumGradient 8s ease infinite;
}

.beginners-text {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
}

.beginners-arrow {
    flex-shrink: 0;
    color: var(--text-light);
    transition: transform 0.2s;
}

.beginners-link:hover .beginners-arrow {
    transform: translateX(4px);
}

/* ========== POPULAR SECTION ========== */
.popular-section {
    padding: 7rem 0;
    background:
        radial-gradient(ellipse 70% 50% at 30% 0%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 100%, rgba(236, 72, 153, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Убрали "cubes" паттерн из popular-section */

.popular-section > * {
    position: relative;
    z-index: 1;
}

.popular-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), var(--primary-cyan), var(--primary-purple), transparent);
    opacity: 0.6;
    animation: gradientMove 3s ease infinite;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white-rgba-85);
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.popular-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-purple);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.25),
                0 10px 25px rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(6, 182, 212, 0.05));
}

.popular-item:hover .popular-item-number {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.popular-item-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    animation: premiumGradient 8s ease infinite;
}

.popular-item-content {
    flex: 1;
}

.popular-item-title {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    word-wrap: break-word;
}

.popular-item-desc {
    font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
    color: var(--text-light);
    line-height: 1.5;
    word-wrap: break-word;
}

.popular-item-arrow {
    flex-shrink: 0;
    color: var(--text-light);
    transition: transform 0.2s;
}

.popular-item:hover .popular-item-arrow {
    transform: translateX(4px);
}

/* ========== TRUST SECTION ========== */
.trust-section {
    padding: 7rem 0;
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 70% 40% at 100% 100%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Убрали "cubes" паттерн из trust-section */

.trust-section > * {
    position: relative;
    z-index: 1;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), var(--primary-cyan), var(--primary-purple), transparent);
    opacity: 0.6;
    animation: gradientMove 3s ease infinite;
}

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

.trust-item {
    text-align: center;
    padding: 2rem;
    background: var(--white-rgba-85);
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    transition: all 0.3s;
}

.trust-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 24px 60px rgba(99, 102, 241, 0.2),
                0 12px 32px rgba(139, 92, 246, 0.15),
                0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(6, 182, 212, 0.02));
}

.trust-icon {
    font-size: 2.5rem;
    color: var(--primary-purple);
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 24px;
    padding: 1.5rem;
    transition: all 0.5s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.trust-item h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: premiumGradient 8s ease infinite;
}

.trust-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========== EDUCATION SECTION ========== */
.education-section {
    padding: 7rem 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border-top: 1px solid var(--border-color);
    position: relative;
}

.education-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), var(--primary-cyan), var(--primary-purple), transparent);
    opacity: 0.6;
    animation: gradientMove 3s ease infinite;
    z-index: 2;
}

/* Убрали "cubes" паттерн из education-section */

.education-section > * {
    position: relative;
    z-index: 1;
}

.education-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--white-rgba-85);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 2px solid var(--border-color);
    border-radius: 32px;
    padding: 5rem 4.5rem;
    box-shadow: 0 24px 80px rgba(99, 102, 241, 0.15),
                0 12px 40px rgba(139, 92, 246, 0.1);
    position: relative;
    z-index: 1;
}

.education-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: premiumGradient 8s ease infinite;
}

.education-desc {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.btn-primary {
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    animation: premiumGradient 8s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.5),
                0 8px 20px rgba(139, 92, 246, 0.4),
                inset 0 1px 0 var(--white-rgba-30),
                0 0 30px rgba(99, 102, 241, 0.3);
    animation: buttonPulse 1.5s ease infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 16px 40px rgba(99, 102, 241, 0.5),
                    0 8px 20px rgba(139, 92, 246, 0.4),
                    inset 0 1px 0 var(--white-rgba-30),
                    0 0 30px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 16px 40px rgba(99, 102, 241, 0.7),
                    0 8px 20px rgba(139, 92, 246, 0.6),
                    inset 0 1px 0 var(--white-rgba-30),
                    0 0 50px rgba(99, 102, 241, 0.5);
    }
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    display: inline-block;
    opacity: 1;
    visibility: visible;
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-purple);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* ========== FOOTER ========== */
.footer {
    background: #0F172A;
    border-top: 2px solid rgba(99, 102, 241, 0.3);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
}

/* Footer: slightly wider container for readability */
.footer .container {
    max-width: 1320px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), var(--primary-cyan), var(--primary-purple), transparent);
    opacity: 0.8;
    animation: gradientMove 3s ease infinite;
}

.footer-content {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 1.4rem;
    align-items: start;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 0 0 auto;
    text-align: center;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.22);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Footer social card (channels/bot/mail in one styling) */
.footer-social-card{
    margin-top: 12px;
    padding: 0;
    border-radius: 16px;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: grid;
    gap: 12px;
}
.footer-social-title{
    color: rgba(241, 245, 249, 0.92);
    font-weight: 900;
    letter-spacing: -0.01em;
    font-size: 0.98rem;
}
.footer-social-grid{
    display: grid;
    gap: 10px;
}
.footer-social-divider{
    height: 1px;
    background: rgba(148, 163, 184, 0.14);
}
.footer-social-btn{
    text-decoration: none;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(99, 102, 241, 0.10));
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.30);
    color: rgba(241, 245, 249, 0.92);
    transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.footer-social-btn:hover{
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.55);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(34, 211, 238, 0.10));
    box-shadow: 0 22px 56px rgba(99, 102, 241, 0.16), 0 18px 46px rgba(2, 6, 23, 0.30);
}
.footer-social-btn:focus-visible{
    outline: 2px solid rgba(99, 102, 241, 0.65);
    outline-offset: 3px;
}
.footer-social-icon{
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(2, 6, 23, 0.40);
    color: rgba(190, 166, 255, 0.95);
}
.footer-social-text{
    display: grid;
    line-height: 1.1;
}
.footer-social-name{
    font-weight: 900;
    letter-spacing: -0.01em;
    color: rgba(241, 245, 249, 0.95);
}
.footer-social-sub{
    margin-top: 2px;
    color: rgba(148, 163, 184, 0.95);
    font-weight: 700;
    font-size: 0.92rem;
    word-break: break-word;
}

/* legacy blocks kept but hidden (layout now uses footer-social-card) */
.footer-contacts,
.footer-channels{
    display: none !important;
}
.footer-contact-btn:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.65);
    outline-offset: 3px;
}

.footer-channels{
    margin-top: 14px;
    display: grid;
    gap: 10px;
}
.footer-channels-title{
    color: rgba(241, 245, 249, 0.92);
    font-weight: 900;
    letter-spacing: -0.01em;
    font-size: 0.98rem;
}
.footer-channels-grid{
    display: grid;
    gap: 10px;
}
.footer-channel-btn{
    text-decoration: none;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(99, 102, 241, 0.10));
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.35);
    color: rgba(241, 245, 249, 0.92);
    transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.footer-channel-btn:hover{
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.55);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(34, 211, 238, 0.10));
    box-shadow: 0 22px 56px rgba(99, 102, 241, 0.18), 0 18px 46px rgba(2, 6, 23, 0.35);
}
.footer-channel-btn:focus-visible{
    outline: 2px solid rgba(99, 102, 241, 0.65);
    outline-offset: 3px;
}
.footer-channel-icon{
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(2, 6, 23, 0.40);
    color: rgba(190, 166, 255, 0.95);
}
.footer-channel-text{
    display: grid;
    line-height: 1.1;
}
.footer-channel-name{
    font-weight: 900;
    letter-spacing: -0.01em;
    color: rgba(241, 245, 249, 0.95);
}
.footer-channel-handle{
    margin-top: 2px;
    color: rgba(148, 163, 184, 0.95);
    font-weight: 700;
    font-size: 0.92rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.footer-links-column--vpninfo {
    grid-column: span 2;
}

@media (max-width: 1100px) {
    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-links-column--vpninfo {
        grid-column: span 2;
    }
}

.footer-links-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col-card {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.22);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.footer-col-card:hover {
    border-color: rgba(99, 102, 241, 0.22);
    background: rgba(2, 6, 23, 0.26);
}

.footer-note {
    color: rgba(148, 163, 184, 0.92);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-top: 0.15rem;
    margin-bottom: 0.5rem;
    user-select: text;
    cursor: default;
    pointer-events: none;
}

.footer-links-title{
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: rgba(241, 245, 249, 0.95);
    margin-bottom: 0.35rem;
}

.captcha-container {
    margin: 1rem 0;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--white-rgba-05);
}

.footer-logo { margin-bottom: 0; }

.logo-img-small {
    width: 250px;
    height: auto;
    border-radius: 12px;
    filter: brightness(1.1);
}

/* prevent conflicting title styles */
.footer-links-column h4 { margin: 0 0 0.35rem; }

.footer-link {
    display: inline-block;
    color: #94A3B8;
    text-decoration: none;
    padding: 0.38rem 0;
    transition: all 0.3s;
    position: relative;
}

.footer-link--item,
.footer-link--doc{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.55rem 0.65rem;
    border-radius: 14px;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.10);
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.footer-link--item:hover,
.footer-link--doc:hover{
    transform: translateY(-1px);
    background: rgba(99, 102, 241, 0.10);
    border-color: rgba(99, 102, 241, 0.22);
    color: rgba(226, 232, 240, 0.96);
}

.footer-link--item:focus-visible,
.footer-link--doc:focus-visible{
    outline: 2px solid rgba(99, 102, 241, 0.65);
    outline-offset: 3px;
}

.footer-link--item {
    width: 100%;
}

.footer-item-icon {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: rgba(226, 232, 240, 0.86);
    flex: 0 0 auto;
}

.footer-link--item:hover .footer-item-icon {
    background: rgba(99, 102, 241, 0.10);
    border-color: rgba(99, 102, 241, 0.22);
    color: rgba(224, 231, 255, 0.95);
}

.footer-link--doc {
    width: 100%;
}

.footer-doc-icon {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.10);
    border: 1px solid rgba(99, 102, 241, 0.22);
    color: rgba(226, 232, 240, 0.92);
    flex: 0 0 auto;
}

.footer-link--doc:hover .footer-doc-icon {
    background: rgba(6, 182, 212, 0.10);
    border-color: rgba(6, 182, 212, 0.25);
    color: rgba(236, 254, 255, 0.95);
}

/* ===== Legal docs (cards with icons) ===== */
.doc-card .vpn-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.doc-card-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.doc-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.18);
    color: rgba(226, 232, 240, 0.92);
    font-size: 0.85rem;
    line-height: 1;
    user-select: none;
}

.doc-chip svg {
    opacity: 0.95;
}

.doc-chip--ok {
    border-color: rgba(34, 197, 94, 0.22);
    background: rgba(34, 197, 94, 0.08);
    color: rgba(220, 252, 231, 0.92);
}

.doc-chip--info {
    border-color: rgba(99, 102, 241, 0.22);
    background: rgba(99, 102, 241, 0.10);
    color: rgba(224, 231, 255, 0.92);
}

.doc-chip--warn {
    border-color: rgba(236, 72, 153, 0.22);
    background: rgba(236, 72, 153, 0.10);
    color: rgba(251, 207, 232, 0.92);
}

.doc-card .vpn-plan-title {
    font-size: 1.35rem !important;
}

@media (max-width: 640px) {
    .doc-card .vpn-plan-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    transition: width 0.3s;
    animation: premiumGradient 8s ease infinite;
}

/* legacy underline animation not needed on pill links */
.footer-link::before { display: none; }

.footer-link:hover { color: rgba(226, 232, 240, 0.96); }

.footer-link:hover::before {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    color: #64748B;
    font-size: 0.875rem;
}

@media (max-width: 720px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 420px) {
    .logo-img-small {
        width: 210px;
    }
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(17, 24, 39, 0.96);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 32px 100px rgba(99, 102, 241, 0.5),
        0 16px 40px rgba(139, 92, 246, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(99, 102, 241, 0.2),
        0 0 0 2px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(99, 102, 241, 0.4);
    animation: modalAppear 0.3s ease-out;
    color: #E2E8F0;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

[data-theme="dark"] .modal-content {
    background: rgba(15, 23, 42, 0.98);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 
        0 32px 100px rgba(99, 102, 241, 0.6),
        0 16px 40px rgba(139, 92, 246, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(99, 102, 241, 0.2),
        0 0 0 2px rgba(99, 102, 241, 0.4);
}

[data-theme="light"] .modal-content {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-dark);
    box-shadow: 
        0 32px 100px rgba(0, 0, 0, 0.1),
        0 16px 40px rgba(0, 0, 0, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(99, 102, 241, 0.1),
        0 0 0 2px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .modal-content .form-group label,
[data-theme="light"] .modal-content .checkbox-label,
[data-theme="light"] .modal-content .auth-divider {
    color: var(--text-dark) !important;
}

[data-theme="light"] .modal-content .form-group input {
    background: var(--bg-light);
    color: var(--text-dark);
    border-color: var(--border-color);
}

[data-theme="light"] .modal-content .form-group input:focus {
    background: var(--bg-white);
    border-color: var(--primary-purple);
}

[data-theme="light"] .modal-content .btn-secondary {
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--text-dark) !important;
    border: 2px solid var(--primary-purple) !important;
    font-weight: 600 !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    display: block !important;
    width: 100% !important;
    margin-top: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
}

[data-theme="light"] .modal-content .btn-secondary:hover {
    background: rgba(99, 102, 241, 0.2) !important;
    border-color: var(--primary-purple) !important;
    color: var(--text-dark) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .modal-content .btn-social {
    background: var(--bg-white);
    color: var(--text-dark) !important;
    border-color: var(--border-color);
}

[data-theme="light"] .modal-content .btn-social:hover {
    background: var(--bg-light) !important;
    border-color: var(--primary-purple) !important;
    color: var(--text-dark) !important;
}

.modal-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(30deg, transparent, transparent 28px, rgba(99, 102, 241, 0.06) 28px, rgba(99, 102, 241, 0.06) 29px),
        repeating-linear-gradient(-30deg, transparent, transparent 26px, rgba(139, 92, 246, 0.05) 26px, rgba(139, 92, 246, 0.05) 27px),
        repeating-linear-gradient(45deg, transparent, transparent 32px, rgba(6, 182, 212, 0.04) 32px, rgba(6, 182, 212, 0.04) 33px);
    background-size: 200% 200%, 180% 180%, 220% 220%;
    animation: floatingGrid 25s ease-in-out infinite, rotatePattern 40s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

.modal-content > * {
    position: relative;
    z-index: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #E2E8F0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #E2E8F0;
    font-size: 0.9375rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: rgba(226, 232, 240, 0.6);
    pointer-events: none;
    transition: color 0.2s;
    z-index: 2;
}

.form-group input {
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(15, 23, 42, 0.8);
    color: #E2E8F0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2),
                0 4px 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.form-group input:focus + .input-icon,
.form-group:focus-within .input-icon {
    color: var(--primary-purple);
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: rgba(34, 197, 94, 0.6);
}

.form-group input:invalid:not(:placeholder-shown):not(:focus) {
    border-color: rgba(239, 68, 68, 0.6);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(226, 232, 240, 0.6);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary-purple);
    background: rgba(99, 102, 241, 0.1);
}

.input-status {
    position: absolute;
    right: 3rem;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    z-index: 2;
}

.input-status.valid {
    display: flex;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.input-status.invalid {
    display: flex;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.input-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: rgba(226, 232, 240, 0.6);
    min-height: 1.25rem;
    transition: color 0.2s;
}

.input-hint.error {
    color: #ef4444;
}

.input-hint.success {
    color: #22c55e;
}

.password-strength {
    margin-top: 0.5rem;
    display: none;
}

.password-strength.active {
    display: block;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: rgba(226, 232, 240, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.375rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e);
}

.strength-fill.weak {
    width: 33%;
    background: #ef4444;
}

.strength-fill.medium {
    width: 66%;
    background: #f59e0b;
}

.strength-fill.strong {
    width: 100%;
    background: #22c55e;
}

.strength-text {
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.6);
    font-weight: 500;
}

.checkbox-label {
    position: relative;
    padding-left: 0;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    position: absolute;
    left: 0;
    top: 0.125rem;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(99, 102, 241, 0.5);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.6);
    transition: all 0.2s;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label span:not(.checkbox-custom) {
    margin-left: 1.75rem;
    display: block;
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary-purple);
    text-decoration: underline;
    transition: color 0.2s;
}

.checkbox-label a:hover {
    color: #818cf8;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary:disabled:hover {
    transform: none !important;
}

.form-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #E2E8F0;
    cursor: pointer;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    color: #E2E8F0;
    font-size: 0.875rem;
}

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

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-modal .btn-social {
    background: rgba(255, 255, 255, 0.08);
    color: #E2E8F0 !important;
    border: 2px solid rgba(226, 232, 240, 0.35);
    font-weight: 500;
}

.auth-modal .btn-social:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(226, 232, 240, 0.65) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.btn-social:hover {
    background: var(--bg-light);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    color: #E2E8F0;
    font-size: 0.875rem;
}

.auth-modal .btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    border: 2px solid rgba(226, 232, 240, 0.8) !important;
    font-weight: 600 !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    display: block !important;
    width: 100% !important;
    margin-top: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
}

.auth-modal .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(226, 232, 240, 1) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.auth-modal .btn-primary {
    background: var(--gradient-premium) !important;
    background-size: var(--gradient-premium-size) !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    animation: premiumGradient 8s ease infinite;
    border: none;
}

.auth-modal .btn-primary:hover {
    color: white !important;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.5),
                0 8px 20px rgba(139, 92, 246, 0.4),
                inset 0 1px 0 var(--white-rgba-30),
                0 0 30px rgba(99, 102, 241, 0.3);
    animation: buttonPulse 1.5s ease infinite;
}

.auth-switch a {
    color: var(--primary-purple);
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ========== СЛОВАРЬ ========== */
.slovar-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.slovar-category-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white-rgba-85);
    backdrop-filter: blur(15px) saturate(180%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dark);
}

.slovar-category-btn:hover,
.slovar-category-btn.active {
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    color: white;
    border-color: transparent;
    animation: premiumGradient 8s ease infinite;
}

[data-theme="dark"] .slovar-category-btn {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-dark);
}

[data-theme="dark"] .slovar-category-btn:hover,
[data-theme="dark"] .slovar-category-btn.active {
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    color: white;
    border-color: transparent;
}

.slovar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-purple) var(--bg-light);
}

.slovar-grid::-webkit-scrollbar {
    width: 8px;
}

.slovar-grid::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.slovar-grid::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 4px;
}

.slovar-grid::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-end);
}

[data-theme="dark"] .slovar-grid::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.8);
}

[data-theme="dark"] .slovar-grid::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.6);
}

[data-theme="dark"] .slovar-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.8);
}

/* Карточки терминов */
.slovar-term-card {
    padding: 1.5rem;
    border-radius: 18px;
    background: var(--white-rgba-85);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12);
    transition: all 0.25s ease;
    cursor: pointer;
}

.slovar-term-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(6, 182, 212, 0.04));
}

.term-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.term-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.term-category {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    animation: premiumGradient 8s ease infinite;
}

.term-description {
    color: var(--text-light);
    line-height: 1.55;
    font-size: 0.95rem;
}

[data-theme="dark"] .slovar-term-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .slovar-term-card:hover {
    background: rgba(30, 41, 59, 0.95);
}

/* ========== БЛОГ (ГАЙДЫ) ========== */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-purple) var(--bg-light);
}

.blog-posts-grid::-webkit-scrollbar {
    width: 8px;
}

.blog-posts-grid::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.blog-posts-grid::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 4px;
}

.blog-posts-grid::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-end);
}

[data-theme="dark"] .blog-posts-grid::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.8);
}

[data-theme="dark"] .blog-posts-grid::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.6);
}

[data-theme="dark"] .blog-posts-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.8);
}

/* ========== PAGE HEADER ========== */
.page-header {
    padding: 6rem 0 4rem;
    margin-bottom: 4rem;
    position: relative;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(99, 102, 241, 0.03) 40px, rgba(99, 102, 241, 0.03) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(6, 182, 212, 0.02) 40px, rgba(6, 182, 212, 0.02) 41px),
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), var(--primary-cyan), var(--primary-purple), transparent);
    opacity: 0.6;
    animation: gradientMove 3s ease infinite;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: premiumGradient 8s ease infinite;
}

.page-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header layout is handled earlier (keep single source of truth). */

    /* Search: input wider, button smaller */
    .search-box-large {
        width: 100%;
        gap: 0.5rem;
    }
    .search-icon-inside {
        margin-left: 1rem;
    }
    .search-input-large {
        width: 100%;
        font-size: 1.05rem;
        padding: 1.05rem 0;
        min-width: 0;
    }
    .search-btn-large {
        width: auto;
        flex: 0 0 auto;
        padding: 0.9rem 1.15rem;
        border-radius: 16px;
        font-size: 0.95rem;
        margin: 0.4rem;
        justify-content: center;
    }
    .search-btn-large .search-btn-text {
        display: none;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .popular-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .beginners-card {
        padding: 3rem 2rem;
    }
    
    .education-card {
        padding: 3rem 2rem;
    }
    
    .logo-img {
        width: 200px;
    }
    
    .top-nav-links {
        gap: 0.5rem;
    }
    
    .nav-link-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ========== */
.no-posts {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.main {
    min-height: calc(100vh - 200px);
    position: relative;
}

.main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(99, 102, 241, 0.02) 40px, rgba(99, 102, 241, 0.02) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(6, 182, 212, 0.015) 40px, rgba(6, 182, 212, 0.015) 41px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.main > * {
    position: relative;
    z-index: 1;
}

/* Исключаем header и поиск из общей сетки */
.header {
    position: relative;
    z-index: 10;
    background: var(--white-rgba-85) !important;
}

.header::before {
    display: none;
}

/* Поиск имеет свою анимацию, не перекрываем её */
.hero-search {
    position: relative;
    z-index: 5;
}

a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gradient-end);
}

/* (forum styles removed) */

.sidebar-card {
    background: var(--white-rgba-85);
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item-small {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: premiumGradient 8s ease infinite;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.post-card {
    background: var(--white-rgba-85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    opacity: 0;
    transition: opacity 0.3s;
    animation: premiumGradient 8s ease infinite;
}

.post-card:hover::before {
    opacity: 1;
}

.post-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.25),
                0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(139, 92, 246, 0.04));
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.post-category {
    padding: 0.375rem 0.75rem;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: premiumGradient 8s ease infinite;
}

.post-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.post-title {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
}

.post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover {
    color: var(--primary-purple);
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: premiumGradient 8s ease infinite;
}

/* ========== УВЕДОМЛЕНИЯ ========== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    background: var(--white-rgba-95);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

[data-theme="dark"] .notification {
    background: rgba(30, 41, 59, 0.95);
    border-color: var(--border-color);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.notification-message {
    flex: 1;
    color: var(--text-dark);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

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

.notification-success {
    border-left: 4px solid #10B981;
}

.notification-error {
    border-left: 4px solid #EF4444;
}

.notification-info {
    border-left: 4px solid #3B82F6;
}

.notification-warning {
    border-left: 4px solid #F59E0B;
}

/* ========== КОММЕНТАРИИ ========== */
.comments-container {
    max-height: 60vh;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.comment-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--white-rgba-50);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
}

[data-theme="dark"] .comment-item {
    background: rgba(30, 41, 59, 0.5);
}

.comment-item:hover {
    background: var(--white-rgba-70);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-purple);
    cursor: pointer;
    transition: color 0.2s;
}

.comment-author:hover {
    color: var(--primary-cyan);
}

.comment-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.comment-content {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-like-btn,
.comment-dislike-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.comment-like-btn:hover,
.comment-dislike-btn:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    transform: scale(1.05);
}

.comment-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.no-comments {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

/* ========== КНОПКИ ПОСТОВ ========== */
.post-like-btn,
.post-dislike-btn,
.post-comment-btn,
.post-favorite-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.post-like-btn:hover {
    border-color: #10B981;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.post-dislike-btn:hover {
    border-color: #EF4444;
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.post-comment-btn:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    background: rgba(99, 102, 241, 0.1);
}

.post-favorite-btn:hover,
.post-favorite-btn.active {
    border-color: #F59E0B;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}

/* ========== ПРОФИЛИ ========== */
.profile-content {
    padding: 1.5rem;
}

.profile-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.profile-stat .stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: premiumGradient 8s ease infinite;
}

.profile-stat .stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.profile-posts h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.profile-post-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--white-rgba-50);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.profile-post-item:hover {
    border-color: var(--primary-purple);
    transform: translateX(4px);
}

.profile-post-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.profile-post-item a:hover {
    color: var(--primary-purple);
}

/* ========== ABOUT & CONTACT PAGES ========== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.about-section {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: var(--white-rgba-60);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(226, 232, 240, 0.6);
    border-radius: 24px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.about-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(30deg, transparent, transparent 28px, rgba(99, 102, 241, 0.06) 28px, rgba(99, 102, 241, 0.06) 29px),
        repeating-linear-gradient(-30deg, transparent, transparent 26px, rgba(139, 92, 246, 0.05) 26px, rgba(139, 92, 246, 0.05) 27px),
        repeating-linear-gradient(45deg, transparent, transparent 32px, rgba(6, 182, 212, 0.04) 32px, rgba(6, 182, 212, 0.04) 33px);
    background-size: 200% 200%, 180% 180%, 220% 220%;
    animation: floatingGrid 25s ease-in-out infinite, rotatePattern 40s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

.about-section > * {
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .about-section {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(51, 65, 85, 0.6);
}

.about-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15),
                0 10px 25px rgba(139, 92, 246, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
}

.about-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: premiumGradient 8s ease infinite;
}

.about-section p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

.about-list li {
    padding: 1rem 0;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    color: var(--text-light);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s;
}

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

.about-list li:hover {
    padding-left: 1rem;
    color: var(--text-dark);
    border-left: 3px solid var(--primary-purple);
}

.about-list li strong {
    color: var(--text-dark);
    font-weight: 700;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.principle-card {
    padding: 2rem;
    background: var(--white-rgba-50);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 2px solid rgba(226, 232, 240, 0.5);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.principle-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(30deg, transparent, transparent 28px, rgba(99, 102, 241, 0.06) 28px, rgba(99, 102, 241, 0.06) 29px),
        repeating-linear-gradient(-30deg, transparent, transparent 26px, rgba(139, 92, 246, 0.05) 26px, rgba(139, 92, 246, 0.05) 27px),
        repeating-linear-gradient(45deg, transparent, transparent 32px, rgba(6, 182, 212, 0.04) 32px, rgba(6, 182, 212, 0.04) 33px);
    background-size: 200% 200%, 180% 180%, 220% 220%;
    animation: floatingGrid 25s ease-in-out infinite, rotatePattern 40s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

[data-theme="dark"] .principle-card {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(51, 65, 85, 0.5);
}

.principle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    opacity: 0.1;
    transition: left 0.5s;
    z-index: 0;
}

.principle-card:hover::before {
    left: 0;
}

.principle-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2),
                0 10px 25px rgba(139, 92, 246, 0.15);
}

.principle-card > * {
    position: relative;
    z-index: 1;
}

.principle-card h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: premiumGradient 8s ease infinite;
}

.principle-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* ========== CONTACT METHODS ========== */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method {
    padding: 2rem;
    background: var(--white-rgba-60);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(226, 232, 240, 0.6);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-method::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(30deg, transparent, transparent 28px, rgba(99, 102, 241, 0.06) 28px, rgba(99, 102, 241, 0.06) 29px),
        repeating-linear-gradient(-30deg, transparent, transparent 26px, rgba(139, 92, 246, 0.05) 26px, rgba(139, 92, 246, 0.05) 27px),
        repeating-linear-gradient(45deg, transparent, transparent 32px, rgba(6, 182, 212, 0.04) 32px, rgba(6, 182, 212, 0.04) 33px);
    background-size: 200% 200%, 180% 180%, 220% 220%;
    animation: floatingGrid 25s ease-in-out infinite, rotatePattern 40s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

[data-theme="dark"] .contact-method {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(51, 65, 85, 0.6);
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    opacity: 0.08;
    transition: left 0.5s;
    z-index: 0;
}

.contact-method:hover::before {
    left: 0;
}

.contact-method:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2),
                0 10px 25px rgba(139, 92, 246, 0.15);
}

.contact-method > * {
    position: relative;
    z-index: 1;
}

.contact-method h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: premiumGradient 8s ease infinite;
}

.contact-method p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.contact-link {
    display: inline-block;
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.contact-link:hover {
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    color: white;
    border-color: transparent;
    animation: premiumGradient 8s ease infinite;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.post-excerpt {
    color: var(--text-light);
    font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
    line-height: 1.6;
    margin-bottom: 1rem;
    word-wrap: break-word;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-author {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.post-stats {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ========== ТЕМНАЯ ТЕМА ДЛЯ КАРТОЧЕК ========== */
[data-theme="dark"] .category-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .category-card:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(99, 102, 241, 0.5);
}

[data-theme="dark"] .beginners-link {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .beginners-link:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(99, 102, 241, 0.5);
}

[data-theme="dark"] .popular-item {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .popular-item:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(99, 102, 241, 0.5);
}

[data-theme="dark"] .trust-item {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .trust-item:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(99, 102, 241, 0.5);
}

[data-theme="dark"] .education-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .education-card:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(99, 102, 241, 0.5);
}

[data-theme="dark"] .beginners-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .beginners-card:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(99, 102, 241, 0.5);
}

/* ========== ТЕМНАЯ ТЕМА ДЛЯ ФОРУМА ========== */
[data-theme="dark"] .post-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .post-card:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(99, 102, 241, 0.5);
}

[data-theme="dark"] .post-title a {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .post-title a:hover {
    color: rgba(255, 255, 255, 1);
}

[data-theme="dark"] .post-excerpt {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .post-date {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .post-author {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .post-stats {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .sidebar-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .sidebar-title {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .stat-label {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .form-group input {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .form-group input:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(99, 102, 241, 0.6);
}

.category-option:hover {
    border-color: var(--primary-purple) !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05)) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15) !important;
}

.category-option input[type="radio"]:checked + div {
    color: var(--primary-purple);
    font-weight: 700;
}

/* Настройки профиля - табы */
.settings-tab {
    transition: all 0.2s ease;
}

.settings-tab:hover {
    background: rgba(99, 102, 241, 0.05) !important;
    color: var(--text-dark) !important;
}

.settings-tab.active {
    color: var(--text-dark) !important;
    border-left-color: var(--primary-purple) !important;
    background: rgba(99, 102, 241, 0.05) !important;
    font-weight: 600 !important;
}

.settings-tab-content {
    animation: fadeIn 0.3s ease;
}

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

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-purple);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Улучшенные поля ввода */
.settings-input {
    transition: all 0.2s ease;
}

.settings-input:focus {
    outline: none;
    border-color: var(--primary-purple) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

/* Модальные окна - улучшенный дизайн */
.modal-content {
    background: var(--bg-white) !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

.modal-header {
    padding: 1.5rem !important;
    border-bottom: 1px solid var(--border-color) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.modal-header h2 {
    margin: 0 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
}

.modal-close {
    background: transparent !important;
    border: none !important;
    font-size: 1.75rem !important;
    color: var(--text-light) !important;
    cursor: pointer !important;
    padding: 0.25rem !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s !important;
}

.modal-close:hover {
    background: var(--bg-light) !important;
    color: var(--text-dark) !important;
}

/* Темная тема для модальных окон */
[data-theme="dark"] .modal-content {
    background: rgba(15, 23, 42, 0.98) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

[data-theme="dark"] .modal-header {
    border-bottom-color: rgba(99, 102, 241, 0.2) !important;
}

[data-theme="dark"] .settings-input {
    background: rgba(30, 41, 59, 0.6) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    color: var(--text-dark) !important;
}

[data-theme="dark"] .settings-input:focus {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: var(--primary-purple) !important;
}

[data-theme="dark"] .settings-tab {
    color: var(--text-light) !important;
}

[data-theme="dark"] .settings-tab.active {
    color: var(--text-dark) !important;
    background: rgba(99, 102, 241, 0.1) !important;
}

[data-theme="dark"] .profile-settings-tabs {
    background: rgba(15, 23, 42, 0.5) !important;
    border-right-color: rgba(99, 102, 241, 0.2) !important;
}

/* Rich Text Editor */
#postEditor {
    outline: none;
}

#postEditor:empty:before {
    content: attr(data-placeholder);
    color: var(--text-light);
    pointer-events: none;
}

#postEditor img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.5rem 0;
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}

#postEditor img:hover {
    transform: scale(1.02);
}

#postEditor p {
    margin: 0.5rem 0;
}

#postEditor br {
    line-height: 1.7;
}

/* Улучшенные стили для модальных окон в темной теме */
[data-theme="dark"] #postEditor {
    background: rgba(30, 41, 59, 0.6) !important;
    color: var(--text-dark) !important;
}

[data-theme="dark"] #postEditor:focus {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: var(--primary-purple) !important;
}

[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(99, 102, 241, 0.3),
                inset 0 -3px 0 rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .categories-section {
    background: transparent;
}

[data-theme="dark"] .trust-section {
    background: transparent;
}

/* Убрали все упоминания "cubes" паттернов в темной теме - они больше не используются */

/* --- WebKit scrollbar FIX (correct selector) --- */
html { color-scheme: dark; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(2, 6, 23, 0.16); border-radius: 999px; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.92), rgba(139, 92, 246, 0.78));
    border-radius: 999px;
    border: 2px solid rgba(2, 6, 23, 0.16);
    background-clip: padding-box;
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.16);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.98), rgba(236, 72, 153, 0.72));
    box-shadow: 0 14px 32px rgba(99, 102, 241, 0.24);
}
::-webkit-scrollbar-corner { background: rgba(2, 6, 23, 0.16); }

/* ===== Scrollbar override (fix white track in WebKit) ===== */
html {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(99, 102, 241, 0.85) rgba(2, 6, 23, 0.12);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: rgba(2, 6, 23, 0.12);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.92), rgba(139, 92, 246, 0.78));
    border-radius: 999px;
    border: 2px solid rgba(2, 6, 23, 0.12);
    background-clip: padding-box;
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.16);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.98), rgba(236, 72, 153, 0.72));
    box-shadow: 0 14px 32px rgba(99, 102, 241, 0.24);
}

