:root {
    /* Глубокие темно-синие цвета */
    --bg-deep-1: #040914; 
    --bg-deep-2: #081124;
    --bg-deep-3: #060d1b;
    --vexei-blue: #2563EB; 
    --blue-glow: rgba(37, 99, 235, 0.4);
    
    --text-primary: #ffffff;
    --text-placeholder: rgba(255, 255, 255, 0.3);
    --input-bg: rgba(255, 255, 255, 0.02);
    --input-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-deep-1);
    color: var(--text-primary);
    overflow-x: hidden; 
    overflow-y: auto; 
}

/* Медленный переливающийся градиент */
.dark-ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2; /* Изменено с -1 на -2 */
    background: linear-gradient(135deg, var(--bg-deep-1), var(--bg-deep-2), var(--bg-deep-3), var(--bg-deep-2));
    background-size: 400% 400%;
    animation: slowAmbient 60s ease-in-out infinite alternate;
}

@keyframes slowAmbient {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Главный экран */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding: 20px;
}

/* Текст и курсор */
.main-heading {
    font-size: 4rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 2.5rem;
    height: 5rem; /* Фиксируем высоту, чтобы кнопка не прыгала */
}

.cursor {
    font-weight: 300;
    color: var(--vexei-blue);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Главная кнопка открытия модалки */
.main-button {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: inherit;
    opacity: 1;
    transform: translateY(0);
}

.main-button.hidden {
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
}

.main-button:hover {
    border-color: rgba(37, 99, 235, 0.5);
    background-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 25px var(--blue-glow);
}

/* --- Модальное окно --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px); /* Красивое размытие фона */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    
    /* Скрыто по умолчанию */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background-color: rgba(10, 15, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    
    /* Анимация всплытия */
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

/* Место для логотипа в окне */
.modal-logo-placeholder {
    width: 64px;
    height: 64px;
    margin: 0 auto 2.5rem auto;
    background-color: var(--vexei-blue);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px var(--blue-glow);
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -1px;
}

/* Форма в окне */
.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group input {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: all 0.4s ease;
}

.input-group input::placeholder {
    color: var(--text-placeholder);
    font-weight: 300;
}

.input-group input:hover,
.input-group input:focus {
    border-color: rgba(37, 99, 235, 0.5);
    background-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 20px var(--blue-glow);
}

.submit-button {
    width: 100%;
    background-color: var(--vexei-blue);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1.1rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.4s ease;
    font-family: inherit;
}

.submit-button:hover {
    box-shadow: 0 0 25px var(--blue-glow);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

/* Адаптация */
@media (max-width: 768px) {
    .main-heading { font-size: 2.8rem; height: 3.5rem; }
    .modal-box { margin: 0 20px; padding: 2.5rem 2rem; }
}
@media (max-width: 480px) {
    .main-heading { font-size: 2rem; height: 2.5rem; }
    .main-button { padding: 1rem 2rem; width: 90%; }
}

.code-inputs-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.code-input {
    width: 100%;
    aspect-ratio: 1 / 1; /* Делает окошки квадратными */
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    outline: none;
    transition: all 0.4s ease;
}

.code-input:focus {
    border-color: rgba(37, 99, 235, 0.5);
    background-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 20px var(--blue-glow);
}

.resend-button {
    background: transparent;
    border: none;
    color: var(--text-placeholder);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.3s ease;
}

.resend-button:hover {
    color: var(--text-primary);
    text-decoration: underline;
}


.services-section {
    min-height: 100vh; /* Секция занимает следующий "экран" при скролле */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.cards-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
}

/* --- Секция с карточками сервисов --- */
.services-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Позволяет разместить заголовок над карточками */
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    
    /* Минималистичное разделение: тонкая линия и легкий градиент сверху вниз */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
}

/* Стили для нового заголовка */
.section-heading {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4rem;
    letter-spacing: -0.03em;
    text-align: center;
}

.cards-container {
    display: flex;
    gap: 2.5rem; /* Увеличено расстояние между карточками */
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1400px;
    width: 100%;
}

.service-card {
    background-color: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem; /* Увеличены внутренние отступы */
    width: 100%;
    max-width: 420px; /* Карточки стали шире (было 350px) */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    
    /* Начальное состояние для анимации вылета */
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Класс, который добавит JS при скролле */
.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 3rem; /* Увеличено пространство до кнопки */
}

.card-logo-placeholder {
    width: 70px; /* Логотип стал больше */
    height: 70px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    flex-shrink: 0;
}

.card-description {
    font-size: 1.05rem; /* Текст стал чуть крупнее */
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 300;
}

.card-button {
    display: block;
    text-align: center;
    padding: 1.2rem;
    border-radius: 14px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* Дальше оставляете старый код со стилями свечения (.glow-yellow и т.д.) */

/* Желтая карточка (A-S-M) */
.glow-yellow:hover { box-shadow: 0 0 30px rgba(234, 179, 8, 0.15); border-color: rgba(234, 179, 8, 0.3); }
.glow-yellow .card-button { background-color: rgba(234, 179, 8, 0.7); }
.glow-yellow .card-button:hover { background-color: rgb(234, 179, 8); box-shadow: 0 0 25px rgba(234, 179, 8, 0.4); }

/* Фиолетовая карточка (USupplier) */
.glow-purple:hover { box-shadow: 0 0 30px rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.3); }
.glow-purple .card-button { background-color: rgba(139, 92, 246, 0.7); }
.glow-purple .card-button:hover { background-color: rgb(139, 92, 246); box-shadow: 0 0 25px rgba(139, 92, 246, 0.4); }

/* Красная карточка (Stigma) */
.glow-red:hover { box-shadow: 0 0 30px rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.3); }
.glow-red .card-button { background-color: rgba(239, 68, 68, 0.7); }
.glow-red .card-button:hover { background-color: rgb(239, 68, 68); box-shadow: 0 0 25px rgba(239, 68, 68, 0.4); }


.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50; /* Поверх контента, но ниже модальных окон */
    
    /* Эффект матового стекла */
    background: rgba(4, 9, 20, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-logo-icon {
    height: 32px; /* Высота иконки, можете подстроить под себя */
    width: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* Этот фильтр делает абсолютно любое изображение белым */
    filter: brightness(0) invert(1);
}

.header-logo-icon:hover {
    opacity: 0.8;
    /* Легкое фирменное свечение при наведении */
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(37, 99, 235, 0.5));
}

.logo-text-header {
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -1px;
    color: var(--text-primary);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-text-header:hover {
    opacity: 0.8;
}

/* Кнопка профиля */
.profile-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%; /* Делаем кнопку идеально круглой */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Глоу-эффект при наведении на профиль */
.profile-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 15px var(--blue-glow);
    transform: translateY(-2px);
}

.profile-btn:active {
    transform: translateY(0);
}

/* Адаптация шапки для мобильных телефонов */
@media (max-width: 480px) {
    .main-header {
        padding: 15px 20px;
    }
    
    .profile-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Для Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) var(--bg-deep-1);
}

/* Для Chrome, Edge, Safari и Opera */
::-webkit-scrollbar {
    width: 8px; /* Делаем скроллбар тоньше и аккуратнее */
}

::-webkit-scrollbar-track {
    background: var(--bg-deep-1); /* Фон дорожки под цвет самого темного фона сайта */
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.15); /* Полупрозрачный ползунок */
    border-radius: 10px; /* Скругляем края */
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3); /* Делаем чуть ярче при наведении */
}


/* =========================================
   СЕКЦИЯ ПРОФИЛЯ (profile.html)
   ========================================= */

.profile-section {
    min-height: 100vh;
    padding: 120px 20px 50px 20px; /* Отступ сверху для шапки */
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.profile-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Карточка кошелька */
.wallet-card {
    background: rgba(10, 15, 30, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 36px; /* Максимальная округлость */
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.wallet-subtitle {
    color: var(--text-placeholder);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-align: center;
}

.balances {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.currency {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-placeholder);
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.balance-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
}

/* Кнопки кошелька */
.wallet-actions {
    display: flex;
    gap: 1rem;
}

.wallet-btn {
    flex: 1;
    padding: 1.2rem;
    border-radius: 20px; /* Округлые кнопки */
    border: none;
    font-size: 1.05rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.action-deposit {
    background-color: var(--vexei-blue);
    color: white;
}

.action-deposit:hover {
    box-shadow: 0 0 25px var(--blue-glow);
    transform: translateY(-2px);
}

.action-withdraw {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-withdraw:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Карточка настроек (меню) */
.settings-card {
    background: rgba(10, 15, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 36px; /* Максимальная округлость */
    padding: 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.settings-btn {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 24px; /* Внутренние кнопки тоже круглые */
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.btn-left i {
    color: var(--vexei-blue);
    font-size: 1.2rem;
    width: 20px; /* Чтобы иконки были выровнены */
    text-align: center;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 20px rgba(37, 99, 235, 0.05);
    padding-left: 1.8rem; /* Легкое смещение текста при наведении */
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    .amount { font-size: 2.2rem; }
    .wallet-card { padding: 2rem; border-radius: 30px; }
    .settings-card { border-radius: 30px; }
    .settings-btn { padding: 1.2rem; font-size: 1rem; }
    .wallet-actions { flex-direction: column; }
}

.lang-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.1rem 1.5rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 15px var(--blue-glow);
}

.lang-btn.active {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--vexei-blue);
}

.lang-btn.active::after {
    content: '\f00c'; /* Иконка галочки FontAwesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--vexei-blue);
    font-size: 1.1rem;
}


/* =========================================
   ОКНО ПОПОЛНЕНИЯ И ВЫВОДА
   ========================================= */

.transaction-box {
    padding: 2.5rem 2rem;
    max-width: 380px;
}

/* Обертка поля ввода и кнопки валюты */
.transaction-input-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 16px;
    padding: 0.4rem;
    position: relative;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Глоу-эффект при фокусе на поле ввода */
.transaction-input-wrapper:focus-within {
    border-color: rgba(37, 99, 235, 0.5);
    background-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 20px var(--blue-glow);
}

.transaction-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    font-size: 1.3rem;
    color: var(--text-primary);
    outline: none;
    font-weight: 500;
    font-family: inherit;
    min-width: 0; /* Чтобы поле не ломало верстку */
}

.transaction-input::placeholder {
    color: var(--text-placeholder);
}

/* Кнопка-переключатель валюты (справа в поле) */
.currency-selector {
    position: relative;
}

.current-currency-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 12px;
    padding: 0.7rem 1rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.current-currency-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Выпадающая шторка */
.currency-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(10, 15, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 120px;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 10;
    
    /* Скрыто по умолчанию с анимацией */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.currency-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Элементы внутри шторки */
.currency-option {
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.currency-option:hover {
    background: rgba(37, 99, 235, 0.2);
}

.faq-section {
    padding: 60px 20px 120px 20px; /* Отступы снизу, чтобы не прилипало к краю экрана */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* Легкое затемнение в самом низу страницы */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
}

.faq-container {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
}

/* Разделительные линии как на референсе */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Кнопка с вопросом */
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--vexei-blue);
}

/* Иконка стрелочки */
.faq-question i {
    font-size: 0.9rem;
    color: var(--text-placeholder);
    transition: transform 0.4s ease, color 0.3s ease;
}

/* Состояние открытого вопроса (стрелка переворачивается и синеет) */
.faq-question.active i {
    transform: rotate(180deg);
    color: var(--vexei-blue);
}

/* Блок с ответом */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding-bottom: 1.8rem;
    padding-right: 2rem; /* Чтобы текст не заходил под стрелочку */
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
}

.sidebar-toggle-btn {
    position: fixed;
    top: 95px; /* Располагаем прямо под шапкой */
    left: 20px;
    z-index: 40;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 14px;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 15px var(--blue-glow);
}

/* Затемнение фона при открытой шторке */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Сама выезжающая панель */
.sidebar {
    position: fixed;
    top: 0;
    left: -320px; /* Спрятана за левым краем */
    width: 320px;
    height: 100vh;
    background: rgba(6, 13, 27, 0.85);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 101;
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Плавный выезд */
}

/* Класс для анимации открытия */
.sidebar.active {
    transform: translateX(320px);
}

/* Шапка внутри шторки */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
}

.sidebar-close-btn {
    background: transparent;
    border: none;
    color: var(--text-placeholder);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.sidebar-close-btn:hover {
    color: var(--text-primary);
}

/* Кнопка "Купить рекламу" внутри шторки */
.sidebar-action-btn {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--vexei-blue);
    color: white;
    padding: 1.1rem;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    width: 100%;
}

.sidebar-action-btn:hover {
    background: var(--vexei-blue);
    box-shadow: 0 0 20px var(--blue-glow);
    transform: translateY(-2px);
}

/* =========================================
   РЕКЛАМНЫЙ КАБИНЕТ (ads.html)
   ========================================= */

.ads-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Анимированные сферы для живого фона */
.ambient-orbs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1; /* Находятся между базовым фоном и контентом */
    pointer-events: none;
}

/* Обновленные стили для сфер (Apple Aurora effect) */
.animated-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px); /* Очень сильное размытие для мягкости */
    opacity: 0.45;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

/* Синий блик сверху слева */
.orb-1 {
    width: 50vw;
    height: 50vw;
    background: var(--vexei-blue);
    top: -15%;
    left: -10%;
    animation-duration: 18s;
}

/* Фиолетовый блик снизу справа */
.orb-2 {
    width: 45vw;
    height: 45vw;
    background: #8b5cf6;
    bottom: -10%;
    right: -10%;
    animation-duration: 24s;
    animation-direction: alternate-reverse;
}

/* Голубой/бирюзовый блик по центру */
.orb-3 {
    width: 40vw;
    height: 40vw;
    background: #0ea5e9;
    top: 30%;
    left: 25%;
    animation-duration: 28s;
    opacity: 0.3; /* Сделан чуть прозрачнее */
}

/* Плавная, сложная анимация движения по сложной траектории */
@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5vw, 5vh) scale(1.1); }
    66% { transform: translate(-5vw, 8vh) scale(0.95); }
    100% { transform: translate(8vw, -5vh) scale(1.05); }
}

/* Карточка формы рекламы (Обновлено) */
.ads-card {
    position: relative; /* Добавляем позиционирование */
    z-index: 10; /* Поднимаем карточку точно поверх сфер */
    background: rgba(10, 15, 30, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 36px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 520px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.6s ease forwards;
}

.ads-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.ads-subtitle {
    color: var(--text-placeholder);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.input-group-ads {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.input-group-ads label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    padding-left: 0.5rem;
}

/* Поле ввода текста (TextArea) */
.ads-textarea {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 20px;
    padding: 1.2rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.05rem;
    line-height: 1.5;
    outline: none;
    resize: none; /* Запрещаем менять размер поля вручную */
    height: 160px;
    transition: all 0.3s ease;
}

.ads-textarea:focus {
    border-color: rgba(37, 99, 235, 0.5);
    background-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 20px var(--blue-glow);
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-placeholder);
    padding-right: 0.5rem;
}

/* Поле для веса */
.ads-input-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 20px;
    padding: 0 1.2rem;
    transition: all 0.3s ease;
}

.ads-input-wrapper i {
    color: var(--text-placeholder);
    font-size: 1.1rem;
}

.ads-input-wrapper:focus-within {
    border-color: rgba(37, 99, 235, 0.5);
    background-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 20px var(--blue-glow);
}

.ads-input-wrapper:focus-within i {
    color: var(--vexei-blue);
}

.ads-input-inline {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1.2rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.05rem;
    outline: none;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* Поверх базового фона, но под обычным контентом */
    pointer-events: none;
    overflow: hidden;
}

/* Общий стиль для каждой частицы */
.particle {
    position: absolute;
    bottom: -10vh; /* Начинают свой путь чуть ниже видимой части экрана */
    border-radius: 50%;
    /* Фирменный синий цвет с красивым свечением */
    background: rgba(37, 99, 235, 0.7); 
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.8), 0 0 30px rgba(37, 99, 235, 0.4);
    animation: floatUp linear infinite;
}

/* Разные размеры, стартовые позиции по горизонтали и скорости */
.p1 { left: 15%; width: 12px; height: 12px; animation-duration: 18s; animation-delay: 0s; }
.p2 { left: 35%; width: 25px; height: 25px; animation-duration: 25s; animation-delay: -5s; background: rgba(255, 255, 255, 0.3); box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); } /* Белая частица */
.p3 { left: 55%; width: 8px; height: 8px; animation-duration: 15s; animation-delay: -12s; }
.p4 { left: 75%; width: 18px; height: 18px; animation-duration: 22s; animation-delay: -2s; }
.p5 { left: 85%; width: 15px; height: 15px; animation-duration: 28s; animation-delay: -18s; background: rgba(255, 255, 255, 0.2); box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); }
.p6 { left: 25%; width: 30px; height: 30px; animation-duration: 30s; animation-delay: -10s; }
.p7 { left: 65%; width: 10px; height: 10px; animation-duration: 19s; animation-delay: -7s; background: rgba(255, 255, 255, 0.4); box-shadow: 0 0 15px rgba(255, 255, 255, 0.6); }
.p8 { left: 5%; width: 22px; height: 22px; animation-duration: 26s; animation-delay: -22s; }
.p9 { left: 45%; width: 14px; height: 14px; animation-duration: 20s; animation-delay: -15s; background: rgba(255, 255, 255, 0.3); box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
.p10 { left: 90%; width: 20px; height: 20px; animation-duration: 24s; animation-delay: -4s; }

/* Анимация: частицы плавно появляются, летят вверх и немного вправо, затем растворяются */
@keyframes floatUp {
    0% { 
        transform: translateY(0) translateX(0); 
        opacity: 0; 
    }
    10% { 
        opacity: 1; 
    }
    90% { 
        opacity: 1; 
    }
    100% { 
        transform: translateY(-110vh) translateX(50px); 
        opacity: 0; 
    }
}

/* =========================================
   ФУТЕР (ПОДВАЛ САЙТА)
   ========================================= */

.main-footer {
    width: 100%;
    background: rgba(4, 9, 20, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 60px 20px 20px 20px;
    margin-top: auto;
    position: relative;
    z-index: 10; /* Поверх фоновых частиц */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo-text-header {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 15px;
}

.footer-description {
    color: var(--text-placeholder);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.footer-link {
    color: var(--text-placeholder);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-link:hover {
    color: var(--vexei-blue);
    transform: translateX(3px); /* Легкое смещение при наведении */
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--vexei-blue);
    background: rgba(37, 99, 235, 0.1);
    color: var(--vexei-blue);
    box-shadow: 0 0 15px var(--blue-glow);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* Адаптация футера для мобильных телефонов */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        gap: 40px;
        flex-direction: column;
    }
}

/* =========================================
   СЕКЦИЯ BETA И ДОРОЖНАЯ КАРТА
   ========================================= */

.beta-section {
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
}

.beta-container {
    display: flex;
    gap: 2.5rem;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.beta-card {
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    flex: 1;
    min-width: 320px;
    max-width: 580px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.beta-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.2);
    color: var(--vexei-blue);
    border: 1px solid var(--vexei-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.beta-title {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.beta-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.perks-list {
    list-style: none;
    margin-bottom: 2rem;
}

.perks-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 300;
    line-height: 1.5;
}

.perks-list i {
    color: var(--vexei-blue);
    margin-top: 4px;
    font-size: 1.1rem;
}

.bug-report-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.bug-report-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Дорожная карта (Timeline) --- */
.timeline {
    position: relative;
    padding-left: 20px;
    margin-top: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 7px; /* Центрируем линию под точками */
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: -19px; /* Смещаем на линию */
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-deep-2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.timeline-dot i {
    font-size: 0.5rem;
    color: #040914;
}

/* Завершенный этап */
.completed .timeline-dot {
    background: #10b981; /* Зеленый */
    border-color: #10b981;
}

/* Актуальный этап с пульсацией */
.active .timeline-dot {
    background: var(--vexei-blue);
    border-color: var(--vexei-blue);
}

.pulsing {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    animation: pulseBlue 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseBlue {
    to { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
}

.timeline-content h4 {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.5;
}