/* Общие настройки страницы доната со светлой темой */
/* ==========================================================================
   1. БАЗОВЫЕ НАСТРОЙКИ СТРАНИЦЫ И ШАПКИ
   ========================================================================== */
body {
    background-color: #ffffff;
    color: #111827; /* [ИСПРАВЛЕНО] Текст изменен на темный, чтобы не сливался с белым фоном */
    overflow-x: hidden;
    padding-top: 0; /* [ИСПРАВЛЕНО] Обнуляем, так как отступ теперь контролируется страницей */
}



.donate-page {
    /* [ИСПРАВЛЕНО] Позиционирование изменено на 100% auto, чтобы картинка не обрезалась */
    background: #ffffff url('/assets/images/pages/donate/header.png') no-repeat center top / 100% auto;
    color: #111827; 
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding-top: 70px !important; /* [ИСПРАВЛЕНО] Ровно под высоту темной шапки */
    padding-bottom: 20px;
    min-height: calc(100vh - 70px);
    position: relative;
    overflow: hidden;
}

/* Персонаж справа на фоне */
.donate-page::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 550px; 
    height: 750px;
    background: url('/assets/images/pages/donate/char.png') no-repeat right bottom / contain;
    z-index: 1;
    pointer-events: none; 
}

/* ==========================================================================
   2. БЕСШОВНАЯ БЕГУЩАЯ СТРОКА "2X ДОНАТ"
   ========================================================================== */
.promo-ticker {
    background: linear-gradient(90deg, #ff3344, #e60012);
    width: 100%;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative; /* [ИСПРАВЛЕНО] Изменено на относительное, чтобы не накладываться на форму */
    z-index: 10;
    box-shadow: 0 4px 15px rgba(230, 0, 18, 0.3);
}

.ticker-wrap {
    display: flex; /* [ИСПРАВЛЕНО] Изменено на flex для бесконечного зацикливания двух групп */
    width: max-content;
    animation: ticker-infinite 25s linear infinite; /* [ИСПРАВЛЕНО] Новое имя бесконечной анимации */
}

.ticker-group {
    display: flex;
    flex-shrink: 0;
}

.ticker-item {
    display: inline-block;
    padding: 0 20px;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@keyframes ticker-infinite {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); } /* [ИСПРАВЛЕНО] Сдвиг на -50% теперь работает без швов */
}

/* ==========================================================================
   3. ОСНОВНОЙ КОНТЕНТ И СЕТКА
   ========================================================================== */
.donate-container {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5; 
}

.donate-header {
    text-align: center;
    margin-bottom: 50px;
}

.donate-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -1px;
    color: #111827 !important; 
}

.donate-header h1 span {
    color: #a855f7;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.donate-subtitle {
    color: #4b5563; 
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 600;
}

.donate-grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 40px;
    align-items: start;
}

/* Компоненты карточек */
.donate-info-col h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #111827;
}

.info-card {
    border-radius: 14px;
    padding: 22px 28px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24 rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.card-red { background: linear-gradient(135deg, #cc1818, #ff4b4b); color: #fff; }
.card-blue { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #fff; }
.card-green { background: linear-gradient(135deg, #047857, #10b981); color: #fff; }
.card-white { 
    background: rgba(255, 255, 255, 0.95); 
    color: #111;
    border: 1px solid #e5e7eb;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff !important;
}

.card-title-dark {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
}

.card-desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 4px;
    font-weight: 600;
}

.card-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ffffff !important;
}

.card-white .card-badge {
    background: #f3f4f6;
    color: #111827 !important;
    border: 1px solid #e5e7eb;
}

/* ==========================================================================
   4. ФОРМА ОПЛАТЫ И ИНПУТЫ
   ========================================================================== */
.payment-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.payment-box h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
    color: #111827;
}

.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #d1d5db; 
    border-radius: 12px;
    color: #111827; 
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

.form-group input:focus, .form-group select:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.7rem;
    color: #9ca3af;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.currency-hint, .info-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 700;
    color: #6b7280; 
}

.info-icon {
    background: #f3f4f6;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    font-size: 0.75rem;
    border: 1px solid #e5e7eb;
}

.checkbox-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    margin-bottom: 25px;
}

.checkbox-label input {
    margin-top: 3px;
    accent-color: #a855f7;
}

.checkbox-label span {
    font-size: 0.75rem;
    color: #4b5563;
    line-height: 1.4;
    font-weight: 600;
}

.checkbox-label a {
    color: #a855f7;
    text-decoration: none;
}
.checkbox-label a:hover { text-decoration: underline; }

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #a855f7, #7e22ce);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
}

/* ==========================================================================
   5. ШКАЛА БОНУСОВ
   ========================================================================== */
.bonus-footer-scale {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    text-align: center;
}

.bonus-footer-step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bf-percent {
    font-size: 2rem;
    font-weight: 900;
    color: #111827; 
    margin-bottom: 8px;
}

.bf-cond {
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 700;
    margin-bottom: 4px;
}

.bf-total {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 600;
}


/* Текст примечаний */
/* ==========================================================================
   1. ПРИМЕЧАНИЯ И ДОПОЛНИТЕЛЬНАЯ ИНФОРМАЦИЯ
   ========================================================================== */
.action-notice {
    text-align: center;
    margin: 40px 0 60px 0;
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 600;
    line-height: 1.6;
}

.action-notice .example {
    color: #9ca3af;
}

/* Белая карточка со ссылками на оферты */
.extra-info-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    margin-bottom: 60px;
}

.extra-info-box h3 {
    color: #111827;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.extra-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.extra-links a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.2s;
}

.extra-links a:hover {
    color: #ff5722;
}

/* ==========================================================================
   2. СВЕТЛЫЙ ПОДВАЛ ПОД СТИЛЬ ГЛАВНОЙ СТРАНИЦЫ
   ========================================================================== */

/* [ИСПРАВЛЕНО] Объединили дублирующиеся блоки .main-footer в один монолитный селектор */
.donate-page ~ .main-footer,
.main-footer {
    width: 100% !important;
    background: #ffffff !important; 
    background-color: #ffffff !important;
    padding: 80px 0 0 0 !important; 
    margin-top: 60px !important;
    border-top: none !important; 
    box-sizing: border-box !important;
}

/* Контейнер с колонками по центру */
.footer-container {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

/* Тексты и заголовки в колонках подвала */
.footer-logo, 
.footer-links-col h3 {
    color: #111827 !important; 
    font-weight: 800 !important;
}

.footer-desc {
    color: #4b5563 !important; 
    font-weight: 500 !important;
}

/* [ИСПРАВЛЕНО] Добавлен сброс стилей списков во избежание дефолтных точек рядом со ссылками */
.footer-links-col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links-col ul li {
    margin-bottom: 8px;
}

.footer-links-col ul li a {
    color: #4b5563 !important; 
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s !important;
}

.footer-links-col ul li a:hover {
    color: #ff5722 !important; 
}

/* Нижняя юридическая панель */
.footer-bottom {
    width: 100% !important;
    background: #ffffff !important; 
    margin-top: 50px !important;
    padding: 25px 0 !important;
    border-top: none !important; 
    margin-bottom: 0 !important; 
}

/* Контейнер юридической панели по центру */
.footer-bottom-container {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

/* Ссылки и копирайт в самом низу страницы */
.legal-links a {
    color: #9ca3af !important; 
    font-weight: 600 !important;
    text-decoration: none !important;
}

.legal-links a:hover {
    color: #ff5722 !important;
}

.legal-divider {
    color: #e5e7eb !important; 
}

.copyright-info {
    color: #9ca3af !important;
    font-weight: 600 !important;
}

.copyright-info .years {
    color: #4b5563 !important; 
}
/* ==========================================================================
   31. Форма
   ========================================================================== */
/* Контейнер кастомного селекта */
.custom-select-container {
    position: relative;
    user-select: none;
}

/* Главная кнопка-триггер */
.custom-select-trigger {
    width: 100%;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px !important; /* Углы всегда скруглены */
    color: #111827;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Состояние при фокусе/открытии */
.custom-select-container.active .custom-select-trigger {
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
}



.select-arrow {
    transition: transform 0.2s ease;
}

.custom-select-container.active .select-arrow {
    transform: rotate(180deg);
}

/* Выпадающий блок с опциями */
.custom-select-options {
    position: absolute !important; /* Насильно вырываем список из общего потока */
    top: calc(100% + 4px) !important; /* Появится строго под инпутом с микрозазором */
    left: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #a855f7 !important;
    border-radius: 12px !important; /* Красивые скругления со всех сторон */
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.15) !important; /* Мягкая фиолетовая тень */
    z-index: 9999 !important; /* Будет гарантированно ПОВЕРХ всех инпутов и текста */
    
    /* Состояния скрытия/показа */
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s !important;
    
    max-height: 200px !important;
    overflow-y: auto !important;
}

/* Когда список активен — плавно показываем его */
.custom-select-container.active .custom-select-options {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.custom-select-container.active .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Элементы списка (Серверы) */
.custom-option {
    padding: 14px 20px;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s, color 0.15s;
}

.custom-option:hover {
    background: #f9fafb;
    color: #a855f7;
}

/* Маленький индикатор онлайна (Зеленая точка) */
.option-status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981; /* Зеленый цвет */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(16px, 185px, 129px, 0.4);
}

.custom-option.disabled {
    color: #9ca3af;
    cursor: not-allowed;
}
.custom-option.disabled .option-status-dot {
    background-color: #ef4444; /* Красный, если серверов нет */
}
/* ==========================================================================
   3. МОДАЛЬНОЕ ОКНО УСПЕШНОЙ ОПЛАТЫ
   ========================================================================== */
/* Фоновая размытая вуаль */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 11, 0.65);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Кнопка «Закрыть» с крестиком в правом верхнем углу над окном */
.modal-top-close {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.modal-top-close:hover { opacity: 1; }

/* Главный двухколоночный контейнер окна */
.modal-box-amazing {
    background: #ffffff;
    border-radius: 32px;
    width: 95%; /* Слегка увеличили процент для запаса на средних экранах */
    max-width: 960px !important; /* [ИСПРАВЛЕНО] Увеличили с 820px до 960px, чтобы расширить текстовую часть */
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.85) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal-box-amazing {
    transform: scale(1) translateY(0);
}

/* Левая сторона: Картинка мужчины в кресле */
.modal-left-image {
    width: 48%;
    background-color: #f3f4f6;
    display: flex;
    align-items: flex-end; /* Сажает персонажа ровно на дно плашки */
    justify-content: flex-end; /* [ДОБАВЛЕНО] Сдвигает картинку к правому краю колонки */
    overflow: hidden;
}
.modal-left-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    /* [ИСПРАВЛЕНО] Меняем 25% на 0% (или left). 
       Это заставит браузер показать самую левую часть картинки, 
       где сидит персонаж, и он автоматически сдвинется вправо */
    object-position: 0% bottom !important; 
}

/* Правая сторона: Контент */
.modal-right-content {
    width: 52%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
}

.modal-icon-wrap {
    margin-bottom: 20px;
}

.modal-title-amazing {
    color: #1a202c;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.modal-text-description {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 20px;
}
.modal-text-description a {
    color: #4a5568;
    text-decoration: underline;
    font-weight: 700;
}
.modal-text-description .bold {
    color: #1a202c;
    font-weight: 800;
}

.modal-text-bottom {
    color: #a0aec0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}

/* Оранжевая кнопка «Хорошо» как в оригинале */
.modal-amazing-btn {
    width: 100%;
    max-width: 260px;
    padding: 16px;
    background: linear-gradient(135deg, #ff5722, #ff7043);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.modal-amazing-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.45);
}

/* --- АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ --- */
@media (max-width: 768px) {
    .modal-box-amazing {
        flex-direction: column; /* Складываем в один столбец */
        max-width: 400px;
    }
    .modal-left-image {
        width: 100%;
        height: 200px; /* Уменьшаем картинку на мобилках */
    }
    .modal-right-content {
        width: 100%;
        padding: 30px 20px;
    }
    .modal-top-close {
        top: 20px;
        right: 20px;
    }
}
/* ==========================================================================
   3. АДАПТИВНОСТЬ КОДА ДЛЯ РАЗНЫХ ЭКРАНОВ (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    .donate-grid { 
        grid-template-columns: 1fr; 
    }
    .payment-box { 
        order: -1; 
    }
    .bonus-footer-scale { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 25px; 
    }
    .donate-page::after { 
        display: none; 
    } 
    
    /* [ИСПРАВЛЕНО] Перестраиваем колонки подвала в один столбец на планшетах и мобилках */
    .footer-container {
        flex-direction: column !important;
        gap: 30px !important;
        text-align: center !important;
    }
    .footer-bottom-container {
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .bonus-footer-scale { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    .extra-links { 
        flex-direction: column; 
        gap: 15px; 
    }
    .donate-header h1 { 
        font-size: 2rem; 
    }
}
