/*
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;
}

: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;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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 50s ease-in-out infinite, rotatePattern 80s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    min-width: 320px;
}

/* Убеждаемся, что контейнер не сужается на больших экранах */
@media (min-width: 1201px) {
    .container {
        max-width: 1200px;
        padding: 0 20px;
        width: 100%;
    }
}

/* Для очень больших экранов увеличиваем максимальную ширину */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
        width: 100%;
    }
}

/* Глобальная обработка переполнения текста */
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;
    overflow-y: visible !important;
    overflow-x: hidden;
    font-size: 0.8125rem;
    position: relative;
}

.top-nav .forum-dropdown-wrapper {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    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;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible !important;
}

.top-nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    overflow-x: hidden;
    overflow-y: visible !important;
}

.top-nav-links .forum-dropdown-wrapper {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
}

.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;
    flex-wrap: wrap;
    overflow-x: hidden;
    overflow-y: visible;
    flex-shrink: 0;
}

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

.lang-selector {
    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;
}

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

.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 {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-login,
button.btn-auth.btn-login {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-login: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);
}

.btn-register,
button.btn-auth.btn-register {
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    color: white;
    border: none;
}

.btn-register:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4),
                0 4px 10px rgba(139, 92, 246, 0.3);
    animation: buttonPulse 1.5s ease infinite;
}

/* Кнопки для залогиненных пользователей */
.btn-auth.btn-my-account,
a.btn-auth.btn-my-account {
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    color: white !important;
    border: none;
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-auth.btn-my-account:hover,
a.btn-auth.btn-my-account:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4),
                0 4px 10px rgba(139, 92, 246, 0.3);
    animation: buttonPulse 1.5s ease infinite;
    color: white !important;
    text-decoration: none;
}

.btn-auth.btn-logout,
a.btn-auth.btn-logout {
    background: transparent;
    color: var(--text-dark) !important;
    border: 1px solid var(--border-color);
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-auth.btn-logout:hover,
a.btn-auth.btn-logout: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);
    color: var(--text-dark) !important;
    text-decoration: none;
}

/* ========== 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 {
    max-width: 320px;
    width: auto;
    height: auto;
    max-height: 120px;
    border-radius: 0;
    transition: all 0.3s;
    box-shadow: none;
    object-fit: contain;
    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: 8rem 0 7rem;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse 60% 40% at 100% 100%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
                linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Убираем скролл у hero-search */
.hero-search {
    overflow: hidden !important;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.search-box-large {
    overflow: hidden !important;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.search-input-large {
    overflow: hidden !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Дополнительная защита от скролла */
.hero-section .search-box-large,
.hero-section .search-input-large,
.hero-section .hero-search {
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

/* Плавающие квадраты на заднем плане */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Квадрат 1 - фиолетовый большой */
        linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 100%),
        linear-gradient(135deg, transparent 0%, rgba(99, 102, 241, 0.08) 50%, rgba(99, 102, 241, 0.2) 100%),
        /* Квадрат 2 - пурпурный */
        linear-gradient(45deg, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0.06) 50%, transparent 100%),
        linear-gradient(45deg, transparent 0%, rgba(139, 92, 246, 0.06) 50%, rgba(139, 92, 246, 0.18) 100%),
        /* Квадрат 3 - циан */
        linear-gradient(-45deg, rgba(6, 182, 212, 0.18) 0%, rgba(6, 182, 212, 0.06) 50%, transparent 100%),
        linear-gradient(-45deg, transparent 0%, rgba(6, 182, 212, 0.06) 50%, rgba(6, 182, 212, 0.18) 100%),
        /* Квадрат 4 - розовый */
        linear-gradient(225deg, rgba(236, 72, 153, 0.15) 0%, rgba(236, 72, 153, 0.05) 50%, transparent 100%),
        linear-gradient(225deg, transparent 0%, rgba(236, 72, 153, 0.05) 50%, rgba(236, 72, 153, 0.15) 100%),
        /* Квадрат 5 - фиолетовый средний */
        linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 100%),
        linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.05) 50%, rgba(99, 102, 241, 0.15) 100%),
        /* Квадрат 6 - циан средний */
        linear-gradient(180deg, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 100%),
        linear-gradient(180deg, transparent 0%, rgba(6, 182, 212, 0.05) 50%, rgba(6, 182, 212, 0.15) 100%),
        /* Квадрат 7 - пурпурный маленький */
        linear-gradient(0deg, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0.04) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(139, 92, 246, 0.04) 50%, rgba(139, 92, 246, 0.12) 100%),
        /* Квадрат 8 - розовый маленький */
        linear-gradient(270deg, rgba(236, 72, 153, 0.12) 0%, rgba(236, 72, 153, 0.04) 50%, transparent 100%),
        linear-gradient(270deg, transparent 0%, rgba(236, 72, 153, 0.04) 50%, rgba(236, 72, 153, 0.12) 100%);
    background-size: 
        250px 250px, 250px 250px,
        200px 200px, 200px 200px,
        220px 220px, 220px 220px,
        180px 180px, 180px 180px,
        190px 190px, 190px 190px,
        210px 210px, 210px 210px,
        150px 150px, 150px 150px,
        160px 160px, 160px 160px;
    background-position: 
        5% 15%, 5% 15%,
        85% 25%, 85% 25%,
        15% 75%, 15% 75%,
        90% 85%, 90% 85%,
        50% 10%, 50% 10%,
        45% 90%, 45% 90%,
        75% 50%, 75% 50%,
        25% 50%, 25% 50%;
    background-repeat: no-repeat;
    animation: floatingSquares 30s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
    filter: blur(0.5px);
}

@keyframes floatingSquares {
    0%, 100% {
        background-position: 
            5% 15%, 5% 15%,
            85% 25%, 85% 25%,
            15% 75%, 15% 75%,
            90% 85%, 90% 85%,
            50% 10%, 50% 10%,
            45% 90%, 45% 90%,
            75% 50%, 75% 50%,
            25% 50%, 25% 50%;
        transform: rotate(0deg) scale(1);
    }
    16.66% {
        background-position: 
            8% 18%, 8% 18%,
            82% 28%, 82% 28%,
            18% 72%, 18% 72%,
            87% 82%, 87% 82%,
            52% 12%, 52% 12%,
            47% 87%, 47% 87%,
            72% 52%, 72% 52%,
            28% 48%, 28% 48%;
        transform: rotate(2deg) scale(1.03);
    }
    33.33% {
        background-position: 
            12% 22%, 12% 22%,
            78% 32%, 78% 32%,
            22% 68%, 22% 68%,
            83% 78%, 83% 78%,
            55% 15%, 55% 15%,
            50% 83%, 50% 83%,
            68% 55%, 68% 55%,
            32% 45%, 32% 45%;
        transform: rotate(0deg) scale(1.06);
    }
    50% {
        background-position: 
            10% 20%, 10% 20%,
            80% 30%, 80% 30%,
            20% 70%, 20% 70%,
            85% 80%, 85% 80%,
            53% 13%, 53% 13%,
            48% 85%, 48% 85%,
            70% 53%, 70% 53%,
            30% 47%, 30% 47%;
        transform: rotate(-2deg) scale(1.08);
    }
    66.66% {
        background-position: 
            7% 17%, 7% 17%,
            83% 27%, 83% 27%,
            17% 73%, 17% 73%,
            88% 83%, 88% 83%,
            51% 11%, 51% 11%,
            46% 88%, 46% 88%,
            73% 51%, 73% 51%,
            27% 49%, 27% 49%;
        transform: rotate(1deg) scale(1.05);
    }
    83.33% {
        background-position: 
            6% 16%, 6% 16%,
            84% 26%, 84% 26%,
            16% 74%, 16% 74%,
            89% 84%, 89% 84%,
            50% 10%, 50% 10%,
            45% 89%, 45% 89%,
            74% 50%, 74% 50%,
            26% 50%, 26% 50%;
        transform: rotate(-1deg) scale(1.02);
    }
}

/* Горизонтальная линия внизу hero-section */
.hero-section::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;
    z-index: 1;
}

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

.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;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
}

.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;
    overflow: hidden !important;
    width: 100%;
    max-width: 100%;
}

.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;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden !important;
    box-sizing: border-box;
}

.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-category-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0 1rem;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    overflow: hidden;
    flex-shrink: 0;
}

.search-category-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.search-category-btn:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.search-category-btn.active {
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    color: white;
    animation: premiumGradient 8s ease infinite;
    font-weight: 600;
}

@media (max-width: 768px) {
    .search-category-selector {
        display: flex !important;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        padding: 0.5rem 0;
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        margin: 0.5rem 0;
    }
    
    .search-category-btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem !important;
    }
    
    /* Модальные окна на мобильных - улучшенная версия */
    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100vh !important;
        height: 100vh !important;
        padding: 1rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .dictionary-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100vh !important;
        height: 100vh !important;
        padding: 1rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .modal-header {
        padding: 1rem 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .modal-header h2 {
        font-size: 1.5rem !important;
    }
    
    .auth-form {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .form-group {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important; /* Предотвращает зум на iOS */
        padding: 1rem !important;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 1rem !important;
        margin-top: 0.5rem !important;
    }
    
    /* Кнопки входа/регистрации на мобильных */
    .btn-auth {
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    .btn-my-account {
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
    }
}

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

.popular-queries {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.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: 
        radial-gradient(ellipse 100% 50% at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 80% 40% at 50% 100%, rgba(6, 182, 212, 0.06) 0%, transparent 60%),
        var(--bg-white);
    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: 
        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(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;
}

.categories-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;
}

.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;
}

.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: 
        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),
        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;
}

.beginners-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);
    background-size: 200% 200%, 180% 180%;
    animation: floatingGrid 70s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

@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: 
        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 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;
}

.popular-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;
}

.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: 
        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 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;
}

.trust-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;
}

.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: 
        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 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;
}

.education-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: -1;
    opacity: 0.4;
}

.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-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.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::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: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 0 0 auto;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    flex: 1;
}

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

.footer-links-title {
    font-size: 1rem;
    font-weight: 600;
    color: #F1F5F9;
    margin-bottom: 0.5rem;
}

.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: 1rem;
}

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

.footer-links-column h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #F1F5F9;
}

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

.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;
}

.footer-link:hover {
    color: var(--primary-cyan);
    transform: translateX(5px);
}

.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;
}

/* ========== 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-y: auto;
    overflow-x: 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;
}

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

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

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

[data-theme="light"] .checkbox-custom {
    background: var(--bg-white);
    border-color: var(--border-color);
}

[data-theme="light"] .checkbox-label span:not(.checkbox-custom) {
    color: var(--text-dark);
}

.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);
}

/* WordPress login form styles */
#loginform {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#loginform p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#loginform label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

#loginform input[type="text"],
#loginform input[type="password"] {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    font-family: inherit;
    box-sizing: border-box;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1),
                0 4px 12px rgba(99, 102, 241, 0.15);
}

#loginform .forgetmenot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#loginform .forgetmenot label {
    font-weight: 400;
    font-size: 0.875rem;
    margin: 0;
    cursor: pointer;
}

#loginform input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

#loginform .submit {
    margin: 0;
}

#loginform .submit input[type="submit"] {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

#loginform .submit input[type="submit"]:hover {
    background: #4F46E5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

.auth-form .btn-secondary:last-child {
    margin-top: auto;
    flex-shrink: 0;
}

.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;
    width: 100%;
}

/* Исправление для мобильных устройств */
@media (max-width: 480px) {
    .input-wrapper {
        position: relative;
        width: 100%;
    }
    
    .form-group input {
        padding-right: 3rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .input-icon {
        left: 0.875rem !important;
        width: 16px !important;
        height: 16px !important;
    }
    
    .password-toggle {
        position: absolute !important;
        right: 0.75rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10 !important;
        padding: 0.25rem !important;
    }
    
    .input-status {
        right: 2.5rem !important;
        width: 18px !important;
        height: 18px !important;
    }
    
    .auth-modal {
        max-height: 90vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .auth-form {
        gap: 1.25rem !important;
        flex: 1 !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .auth-form .btn-secondary:last-child {
        margin-top: 1rem !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .form-group {
        gap: 0.5rem !important;
    }
    
    .form-group label {
        font-size: 0.875rem !important;
    }
    
    .input-hint {
        font-size: 0.75rem !important;
    }
    
    .checkbox-label {
        font-size: 0.875rem !important;
        gap: 0.5rem !important;
        align-items: flex-start !important;
    }
    
    .checkbox-label input[type="checkbox"] {
        margin-top: 0.125rem !important;
    }
}

.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;
    box-sizing: border-box;
}

.form-group input.password-input {
    padding-right: 3.5rem;
}

.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;
    top: 50%;
    transform: translateY(-50%);
    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: 3;
}

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

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

.form-group:has(.password-toggle) .input-status {
    right: 3.5rem;
}

.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;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #E2E8F0;
    cursor: pointer;
}

.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;
}

/* Удалено дублирование - стили уже определены выше */

.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);
}

/* ========== СТРАНИЦА ТЕРМИНА (SINGLE WORD) ========== */
.word-single {
    padding: 4rem 0;
    min-height: 60vh;
}

.word-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.word-breadcrumb a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

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

.word-breadcrumb span {
    margin: 0 0.5rem;
}

.word-header {
    margin-bottom: 3rem;
}

.word-title-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.word-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    flex: 1;
    min-width: 0;
}

.word-meta-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.word-badge {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.word-badge-difficulty {
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    color: white;
    animation: premiumGradient 8s ease infinite;
}

.word-badge-time {
    background: var(--white-rgba-85);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}

.word-content {
    max-width: 900px;
    margin: 0 auto;
}

.word-featured-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.word-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.word-short-description {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 20px;
    border: 2px solid var(--border-color);
    border-left: 5px solid var(--primary-purple);
}

.word-section {
    margin-bottom: 3.5rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.word-section:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

.word-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.word-section-title svg {
    color: var(--primary-purple);
}

.word-section-content {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.word-example-content {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 16px;
    border-left: 5px solid var(--primary-purple);
    margin-top: 1rem;
}

.word-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.word-footer-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

/* ========== СТРАНИЦА ГАЙДА (как словарь) ========== */
.guide-single {
    padding: 4rem 0;
    min-height: 60vh;
}

.guide-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.guide-breadcrumb a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

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

.guide-breadcrumb span {
    margin: 0 0.5rem;
}

.guide-header {
    margin-bottom: 3rem;
}

.guide-title-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.guide-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    flex: 1;
    min-width: 0;
}

.guide-meta-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.guide-badge {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-badge-difficulty {
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    color: white;
    animation: premiumGradient 8s ease infinite;
}

.guide-badge-time {
    background: var(--white-rgba-85);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}

.guide-content {
    max-width: 900px;
    margin: 0 auto;
}

.guide-short-description {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 20px;
    border: 2px solid var(--border-color);
    border-left: 5px solid var(--primary-purple);
}

.guide-section {
    margin-bottom: 3.5rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.guide-section:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

.guide-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.guide-section-title svg {
    color: var(--primary-purple);
}

.guide-section-content {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.guide-step {
    padding: 2rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.guide-step:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}

.guide-step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-purple), var(--gradient-end));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.guide-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0.5rem 0 1rem 0;
}

.guide-step-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.guide-step-image {
    margin-top: 1rem;
}

.guide-step-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.guide-related-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.guide-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.guide-related-card {
    display: block;
    padding: 1.5rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.guide-related-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.guide-related-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

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

.guide-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.guide-footer-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.word-featured-image,
.guide-featured-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.word-featured-image img,
.guide-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* ========== БЛОГ/НОВОСТИ ========== */
.news-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

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

.section-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.section-link:hover {
    color: var(--gradient-end);
}

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

.news-preview-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-preview-card:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
}

.news-preview-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-preview-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.news-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-preview-card:hover .news-preview-image img {
    transform: scale(1.05);
}

.news-preview-content {
    padding: 1.5rem;
}

.news-preview-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.news-preview-category {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-purple), var(--gradient-end));
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.news-preview-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.news-preview-excerpt {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.news-preview-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Archive News */
.news-archive-section {
    padding: 4rem 0;
}

.news-archive-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-archive-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
}

.news-archive-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-light);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.news-card-category {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-purple), var(--gradient-end));
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

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

.news-card-read-more {
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
    transition: transform 0.2s;
}

.news-card:hover .news-card-read-more {
    transform: translateX(4px);
}

.news-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.news-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.news-pagination .page-numbers {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-pagination .page-numbers li {
    margin: 0;
}

.news-pagination .page-numbers a,
.news-pagination .page-numbers span {
    display: block;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s;
}

.news-pagination .page-numbers a:hover,
.news-pagination .page-numbers .current {
    border-color: var(--primary-purple);
    background: var(--primary-purple);
    color: white;
}

/* Single News */
.news-single {
    padding: 4rem 0;
    min-height: 60vh;
}

.news-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

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

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

.news-breadcrumb span {
    margin: 0 0.5rem;
}

.news-header {
    margin-bottom: 3rem;
}

.news-featured-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.news-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.news-title-section {
    max-width: 900px;
    margin: 0 auto;
}

.news-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.news-category {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-purple), var(--gradient-end));
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.news-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.news-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.news-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.news-content p {
    margin-bottom: 1.5rem;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.news-content h2,
.news-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.news-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.news-footer-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========== МОДАЛЬНОЕ ОКНО СЛОВАРЯ ========== */
.dictionary-modal-content {
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.dictionary-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dictionary-modal-search,
.dictionary-modal-filters {
    flex-shrink: 0;
    margin-bottom: 1.5rem;
}

.dictionary-terms-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-purple) var(--bg-light);
}

.dictionary-terms-container::-webkit-scrollbar {
    width: 8px;
}

.dictionary-terms-container::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.dictionary-terms-container::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 4px;
}

.dictionary-terms-container::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-end);
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.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;
}

.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);
}

.term-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.term-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
}

.term-difficulty {
    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;
    white-space: nowrap;
}

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

.term-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.term-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.term-arrow {
    font-size: 1.25rem;
    color: var(--primary-purple);
    transition: transform 0.2s;
}

.term-card:hover .term-arrow {
    transform: translateX(4px);
}

.dictionary-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.dictionary-empty svg {
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.dictionary-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.dictionary-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

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

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

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

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

[data-theme="dark"] .dictionary-terms-container::-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;
}

/* ========== АДАПТИВНОСТЬ ========== */
/* Для экранов от 769px до 1200px */
@media (min-width: 769px) and (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Навигация */
    .top-nav {
        padding: 0.5rem 0;
        font-size: 0.75rem;
    }
    
    .top-nav .container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .top-nav-links {
        gap: 0.5rem;
        flex-wrap: wrap;
        order: 1;
        width: 100%;
        justify-content: center;
    }
    
    .top-nav-right {
        order: 2;
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .nav-link-text {
        display: none;
    }
    
    .top-nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Хедер */
    .header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        padding: 0.5rem 0;
        min-height: 50px;
    }
    
    .logo-img {
        max-width: 200px;
        width: auto;
        max-height: 60px;
    }
    
    /* Hero секция */
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .search-box-large {
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.75rem;
        border-radius: 20px;
    }
    
    .search-icon-inside {
        margin-left: 0.75rem;
    }
    
    .search-input-large {
        width: 100%;
        padding: 1rem 0;
        font-size: 1rem;
        overflow: hidden !important;
    }
    
    .search-box-large {
        overflow: hidden !important;
    }
    
    /* Модальные окна на мобильных */
    .modal {
        padding: 0 !important;
    }
    
    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100vh !important;
        height: 100vh !important;
        padding: 1rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
    }
    
    .dictionary-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100vh !important;
        height: 100vh !important;
        padding: 1rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .modal-header {
        padding: 1rem 0 !important;
        margin-bottom: 1rem !important;
        position: sticky;
        top: 0;
        background: var(--bg-white);
        z-index: 10;
    }
    
    .modal-header h2 {
        font-size: 1.5rem !important;
    }
    
    .auth-form {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .form-group {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important; /* Предотвращает зум на iOS */
        padding: 1rem !important;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 1rem !important;
        margin-top: 0.5rem !important;
    }
    
    /* Кнопки входа/регистрации на мобильных */
    .btn-auth {
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
        white-space: nowrap;
    }
    
    .btn-my-account {
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
        white-space: nowrap;
    }
    
    .search-btn-large {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        margin: 0;
        border-radius: 16px;
    }
    
    .search-hint {
        font-size: 0.75rem;
        margin-top: 0.75rem;
    }
    
    /* Секции */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .popular-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .popular-item {
        padding: 1rem;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trust-item {
        padding: 1.5rem;
    }
    
    .beginners-card {
        padding: 2rem 1.5rem;
    }
    
    .beginners-list {
        gap: 0.75rem;
    }
    
    .beginners-item {
        padding: 0.75rem;
    }
    
    .education-card {
        padding: 2rem 1.5rem;
    }
    
    /* Футер */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto;
    }
    
    .logo-img-small {
        max-width: 180px;
        max-height: 50px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }
    
    .footer-links-column {
        width: 100%;
        align-items: center;
    }
    
    /* Модальные окна */
    .modal-content {
        padding: 1.5rem;
        width: 95%;
        max-width: 95%;
        margin: 1rem auto;
    }
    
    .auth-modal {
        padding: 1.5rem !important;
        max-height: 95vh !important;
    }
    
    .modal-header {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .modal-header h2 {
        font-size: 1.25rem !important;
    }
    
    .modal-close {
        width: 32px !important;
        height: 32px !important;
        font-size: 1.5rem !important;
    }
    
    .form-group {
        gap: 0.5rem;
    }
    
    .form-group input {
        padding: 0.875rem 1rem 0.875rem 2.5rem;
        font-size: 0.9375rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.25rem !important;
        font-size: 0.9375rem !important;
    }
    
    /* Форум */
    .forum-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .forum-sidebar {
        width: 100%;
        position: static;
        order: -1;
    }
    
    /* Словарь модальное окно */
    .dictionary-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100vh !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 1rem !important;
        border-radius: 0 !important;
    }
    
    .dictionary-modal-body {
        height: calc(100vh - 120px) !important;
    }
    
    .dictionary-modal-search,
    .dictionary-modal-filters {
        padding: 0 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .dictionary-terms-container {
        padding: 0 0.5rem 1rem 0.5rem !important;
        max-height: calc(100vh - 280px) !important;
    }
    
    .terms-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .term-card {
        padding: 1rem !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Исправляем прокрутку на мобильных */
    html, body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        position: relative;
        width: 100%;
        height: auto;
        min-height: 100vh;
    }
    
    /* Модальное окно словаря на мобильных - полноэкранное */
    #dictionaryModal .dictionary-modal-content {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        padding: 0.75rem !important;
        border-radius: 0 !important;
    }
    
    #dictionaryModal .dictionary-modal-body {
        height: calc(100vh - 100px) !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    #dictionaryModal .dictionary-terms-container {
        max-height: calc(100vh - 200px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        width: 95%;
        max-width: 95%;
        margin: 1rem;
    }
    
    .auth-modal {
        padding: 1.25rem !important;
        padding-bottom: 2rem !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .auth-form {
        gap: 1.25rem !important;
        flex: 1 !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        padding-bottom: 1rem !important;
    }
    
    .auth-form .btn-secondary:last-child {
        margin-top: 1rem !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .auth-form .btn-primary {
        flex-shrink: 0 !important;
    }
    
    .auth-form .btn-social {
        flex-shrink: 0 !important;
    }
    
    .auth-form .auth-divider {
        flex-shrink: 0 !important;
    }
    
    .form-group {
        gap: 0.5rem;
    }
    
    .form-group input {
        padding: 0.75rem 0.875rem 0.75rem 2.5rem;
        font-size: 0.9375rem;
    }
    
    .input-icon {
        left: 0.875rem;
        width: 16px;
        height: 16px;
    }
    
    .password-toggle {
        right: 0.875rem;
        padding: 0.25rem;
    }
    
    .input-status {
        right: 2.75rem;
        width: 18px;
        height: 18px;
    }
    
    .modal-header {
        padding: 1rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .modal-header h2 {
        font-size: 1.25rem !important;
    }
    
    .modal-close {
        width: 32px !important;
        height: 32px !important;
        font-size: 1.5rem !important;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.25rem !important;
        font-size: 0.9375rem !important;
    }
    
    .btn-social {
        padding: 0.875rem 1.25rem !important;
        font-size: 0.9375rem !important;
    }
    
    .auth-divider {
        margin: 1rem 0 !important;
    }
    
    .input-wrapper {
        position: relative;
    }
    
    .form-group label {
        font-size: 0.875rem;
    }
    
    .input-hint {
        font-size: 0.75rem;
    }
    
    .checkbox-label {
        font-size: 0.875rem;
        gap: 0.5rem;
    }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ========== */
.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-search-section {
    margin: 3rem 0 4rem;
    position: relative;
}

.forum-search-box {
    position: relative;
    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.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.forum-search-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    animation: searchPulse 3s ease-in-out infinite;
}

@keyframes searchPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.2) rotate(180deg);
    }
}

.forum-search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--white-rgba-40), transparent);
    transition: left 0.6s;
}

.forum-search-box.animated::before {
    left: 100%;
}

.forum-search-box:focus-within,
.forum-search-box.animated {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 32px 100px rgba(99, 102, 241, 0.4),
                0 16px 40px rgba(139, 92, 246, 0.3),
                0 8px 20px rgba(236, 72, 153, 0.2),
                inset 0 1px 0 var(--white-solid),
                0 0 0 8px rgba(99, 102, 241, 0.25),
                0 0 60px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.6);
}

.forum-search-box:focus-within .forum-search-glow,
.forum-search-box.animated .forum-search-glow {
    opacity: 0.6;
    transform: scale(1.5);
}

.forum-search-icon {
    margin-left: 1.5rem;
    color: var(--primary-purple);
    flex-shrink: 0;
    transition: all 0.3s;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-3px) rotate(5deg);
    }
}

.forum-search-box:focus-within .forum-search-icon,
.forum-search-box.animated .forum-search-icon {
    color: var(--primary-cyan);
    transform: scale(1.2) rotate(15deg);
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
}

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

.forum-search-input::placeholder {
    color: var(--text-light);
    transition: opacity 0.3s;
}

.forum-search-box:focus-within .forum-search-input::placeholder,
.forum-search-box.animated .forum-search-input::placeholder {
    opacity: 0.5;
}

.forum-search-btn {
    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.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: premiumGradient 8s ease infinite;
    position: relative;
    overflow: hidden;
}

.forum-search-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--white-rgba-30);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.forum-search-btn:hover::before {
    width: 300px;
    height: 300px;
}

.forum-search-btn:hover {
    transform: scale(1.1) 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.4);
}

.forum-search-btn:active {
    transform: scale(1.05) translateY(-1px);
}

.forum-advanced-search-btn {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--white-rgba-85);
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.forum-advanced-search-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.forum-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-top: 2rem;
}

.forum-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.forum-tab {
    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.3s;
    color: var(--text-dark);
    position: relative;
}

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

.forum-tab.active {
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    color: white;
    border-color: transparent;
    animation: premiumGradient 8s ease infinite;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
    font-weight: 700;
    transform: translateY(-2px) scale(1.02);
}

.forum-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-purple) var(--bg-light);
}

/* Стили для выпадающего меню форума - убираем скролл */
.forum-dropdown-wrapper {
    overflow: visible !important;
}

.forum-dropdown-menu,
#forumDropdown {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

.forum-dropdown-menu *,
#forumDropdown * {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

#forumDropdownContent {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

.top-nav-link.forum-dropdown-wrapper,
a.top-nav-link.forum-dropdown-wrapper {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
}

/* Стили для выпадающего меню форума - убираем скролл полностью */
.forum-dropdown-wrapper,
.top-nav-link.forum-dropdown-wrapper {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
}

.forum-dropdown-menu,
#forumDropdown {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    max-width: none !important;
    overflow: visible !important;
}

.forum-dropdown-menu *,
#forumDropdown *,
.forum-dropdown-menu a,
#forumDropdown a,
.forum-dropdown-menu div,
#forumDropdown div {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
}

#forumDropdownContent {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
}

/* Убираем скролл из всех родительских элементов выпадающего меню */
.top-nav,
.top-nav * {
    overflow-y: visible !important;
}

.top-nav .forum-dropdown-wrapper,
.top-nav .forum-dropdown-wrapper *,
.top-nav-link.forum-dropdown-wrapper,
.top-nav-link.forum-dropdown-wrapper * {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    max-height: none !important;
    height: auto !important;
}

/* Полностью убираем скролл из выпадающего меню */
#forumDropdown,
.forum-dropdown-menu {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    max-height: none !important;
    height: auto !important;
    max-width: none !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

#forumDropdown *,
.forum-dropdown-menu *,
#forumDropdownContent,
#forumDropdownContent * {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    max-height: none !important;
    height: auto !important;
    max-width: none !important;
}

#forumDropdown::-webkit-scrollbar,
.forum-dropdown-menu::-webkit-scrollbar,
#forumDropdownContent::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

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

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

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

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

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

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

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

.forum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.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;
    -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;
}

@media (max-width: 968px) {
    .forum-content {
        grid-template-columns: 1fr;
    }
    
    .forum-sidebar {
        order: -1;
    }
}

/* ========== ТЕМНАЯ ТЕМА ДЛЯ КАРТОЧЕК ========== */
[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"] .forum-tab {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(99, 102, 241, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

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

[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: 
        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(6, 182, 212, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

[data-theme="dark"] .trust-section {
    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 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%);
}

[data-theme="dark"] body::after {
    opacity: 0.65;
}

[data-theme="dark"] .categories-section::after,
[data-theme="dark"] .beginners-section::after,
[data-theme="dark"] .popular-section::after,
[data-theme="dark"] .trust-section::after,
[data-theme="dark"] .education-section::after,
[data-theme="dark"] .beginners-card::after {
    opacity: 0.65;
    background: 
        repeating-linear-gradient(30deg, transparent, transparent 28px, rgba(99, 102, 241, 0.08) 28px, rgba(99, 102, 241, 0.08) 29px),
        repeating-linear-gradient(-30deg, transparent, transparent 26px, rgba(139, 92, 246, 0.07) 26px, rgba(139, 92, 246, 0.07) 27px);
}

/* ========== МОДАЛЬНОЕ ОКНО ПРОФИЛЯ ========== */
#myAccountModal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

#myAccountModal .auth-form {
    padding: 0;
}

/* Стили для кнопки Выйти в настройках профиля */
#myAccountModal .btn-logout {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    text-decoration: none;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

#myAccountModal .btn-logout: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);
    color: var(--text-dark);
}

[data-theme="dark"] #myAccountModal .btn-logout {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--border-color);
}

[data-theme="dark"] #myAccountModal .btn-logout:hover {
    background: var(--bg-light);
    border-color: var(--primary-purple);
    color: var(--text-dark);
}

/* ========== СТИЛИ ДЛЯ НАСТРОЕК ПРОФИЛЯ ========== */
.account-settings-form {
    padding: 0;
}

.account-settings-container {
    padding: 1.5rem;
}

/* Профиль пользователя */
.account-profile-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.account-avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
}

.account-info {
    flex: 1;
}

.account-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.account-email {
    margin: 0.25rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.account-username {
    margin: 0.25rem 0 0 0;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Секции настроек */
.account-settings-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.settings-section-title {
    margin: 0 0 1.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

/* Формы настроек */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.settings-form label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

.settings-form .form-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: all 0.2s;
}

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

/* Чекбоксы настроек */
.settings-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.settings-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.settings-checkbox:hover {
    background: var(--bg-light);
}

.settings-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-purple);
}

.settings-checkbox span {
    font-size: 0.875rem;
    color: var(--text-dark);
    user-select: none;
}

/* Выбор темы */
.theme-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
}

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

.theme-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-purple);
}

.theme-option span {
    font-size: 0.875rem;
    color: var(--text-dark);
    user-select: none;
}

/* Действия аккаунта */
.account-actions {
    border-top: 2px solid var(--border-color);
    padding-top: 1.5rem;
}

.account-actions-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.account-actions-buttons .btn {
    width: 100%;
    text-align: center;
}

.account-actions-buttons .btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.account-actions-buttons .btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-purple);
}

/* Темная тема */
[data-theme="dark"] .account-profile-section {
    background: rgba(15, 23, 42, 0.5);
}

[data-theme="dark"] .account-settings-section {
    background: rgba(15, 23, 42, 0.3);
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .settings-form .form-input {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--text-dark);
}

[data-theme="dark"] .settings-checkbox:hover,
[data-theme="dark"] .theme-option:hover {
    background: rgba(15, 23, 42, 0.5);
}

/* Адаптивность */
@media (max-width: 768px) {
    .account-profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .account-settings-container {
        padding: 1rem;
    }
    
    .account-settings-section {
        padding: 1rem;
    }
}

[data-theme="dark"] body::after {
    opacity: 0.65;
}

[data-theme="dark"] .categories-section::after,
[data-theme="dark"] .beginners-section::after,
[data-theme="dark"] .popular-section::after,
[data-theme="dark"] .trust-section::after,
[data-theme="dark"] .education-section::after,
[data-theme="dark"] .beginners-card::after {
    opacity: 0.65;
    background: 
        repeating-linear-gradient(30deg, transparent, transparent 28px, rgba(99, 102, 241, 0.08) 28px, rgba(99, 102, 241, 0.08) 29px),
        repeating-linear-gradient(-30deg, transparent, transparent 26px, rgba(139, 92, 246, 0.07) 26px, rgba(139, 92, 246, 0.07) 27px);
}

/* ========== МОДАЛЬНОЕ ОКНО ПРОФИЛЯ ========== */
#myAccountModal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

#myAccountModal .auth-form {
    padding: 0;
}

/* Стили для кнопки Выйти в настройках профиля */
#myAccountModal .btn-logout {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    text-decoration: none;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

#myAccountModal .btn-logout: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);
    color: var(--text-dark);
}

[data-theme="dark"] #myAccountModal .btn-logout {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--border-color);
}

[data-theme="dark"] #myAccountModal .btn-logout:hover {
    background: var(--bg-light);
    border-color: var(--primary-purple);
    color: var(--text-dark);
}

/* ========== СТИЛИ ДЛЯ НАСТРОЕК ПРОФИЛЯ ========== */
.account-settings-form {
    padding: 0;
}

.account-settings-container {
    padding: 1.5rem;
}

/* Профиль пользователя */
.account-profile-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.account-avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-premium);
    background-size: var(--gradient-premium-size);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
}

.account-info {
    flex: 1;
}

.account-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.account-email {
    margin: 0.25rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.account-username {
    margin: 0.25rem 0 0 0;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Секции настроек */
.account-settings-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.settings-section-title {
    margin: 0 0 1.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

/* Формы настроек */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.settings-form label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

.settings-form .form-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: all 0.2s;
}

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

/* Чекбоксы настроек */
.settings-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.settings-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.settings-checkbox:hover {
    background: var(--bg-light);
}

.settings-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-purple);
}

.settings-checkbox span {
    font-size: 0.875rem;
    color: var(--text-dark);
    user-select: none;
}

/* Выбор темы */
.theme-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
}

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

.theme-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-purple);
}

.theme-option span {
    font-size: 0.875rem;
    color: var(--text-dark);
    user-select: none;
}

/* Действия аккаунта */
.account-actions {
    border-top: 2px solid var(--border-color);
    padding-top: 1.5rem;
}

.account-actions-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.account-actions-buttons .btn {
    width: 100%;
    text-align: center;
}

.account-actions-buttons .btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.account-actions-buttons .btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-purple);
}

/* Темная тема */
[data-theme="dark"] .account-profile-section {
    background: rgba(15, 23, 42, 0.5);
}

[data-theme="dark"] .account-settings-section {
    background: rgba(15, 23, 42, 0.3);
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .settings-form .form-input {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--text-dark);
}

[data-theme="dark"] .settings-checkbox:hover,
[data-theme="dark"] .theme-option:hover {
    background: rgba(15, 23, 42, 0.5);
}

/* Адаптивность */
@media (max-width: 768px) {
    .account-profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .account-settings-container {
        padding: 1rem;
    }
    
    .account-settings-section {
        padding: 1rem;
    }
}

