/* Donate Page Styles */
.donate-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.section-nav {
    display: flex;
    background: linear-gradient(135deg, #2d3436, #636e72);
    padding: 15px;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-btn {
    flex: 1;
    padding: 12px 8px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

.nav-btn:hover, .nav-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.donate-container {
    flex: 1;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    overflow-y: auto;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease;
    padding-bottom: 40px;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin: 20px 0;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section h2 {
    text-align: center;
    color: #2d3436;
    margin: 20px 0;
    font-size: 1.8rem;
}

.section h3 {
    color: #2d3436;
    margin: 15px 0;
    font-size: 1.3rem;
}

/* Карточки */
.intro-card {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.revolution-call {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    border: 2px dashed #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.urgency-block {
    background: linear-gradient(135deg, #e17055, #d63031);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 6px 20px rgba(225, 112, 85, 0.3);
}

.action-call, .final-message {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 6px 20px rgba(253, 121, 168, 0.3);
}

.method-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
}

/* Сетки */
.mission-grid, .advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.mission-item, .advantage {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #28a745;
    transition: transform 0.3s ease;
}

.mission-item:hover, .advantage:hover {
    transform: translateY(-3px);
}

.mission-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

/* Список воздействия */
.impact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.impact-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #ff6b6b;
    transition: transform 0.3s ease;
}

.impact-item:hover {
    transform: translateX(5px);
}

.impact-amount {
    font-size: 20px;
    font-weight: bold;
    color: #ff6b6b;
    min-width: 80px;
    text-align: center;
}

.impact-desc {
    margin-left: 15px;
    color: #333;
    flex: 1;
}

/* Кошелек */
.crypto-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.wallet-address {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.wallet-address code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    word-break: break-all;
    flex: 1;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 4px;
}

.copy-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 12px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Кнопки */
.card-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.donate-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 150px;
}

.donate-btn.primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.donate-btn.subscription {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    color: white;
}

.donate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.final-call {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin: 25px 0;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 15px rgba(253, 203, 110, 0.5); }
    to { box-shadow: 0 0 25px rgba(225, 112, 85, 0.8); }
}

/* Исправления для кнопки "СОЗДАТЬ БУДУЩЕЕ СЕЙЧАС!" */
.mega-donate-btn {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%; /* Занимает всю ширину контейнера */
    max-width: 300px; /* Ограничиваем максимальную ширину */
    box-sizing: border-box;
    line-height: 1.2; /* Улучшаем межстрочный интервал */
    white-space: nowrap; /* Предотвращаем перенос текста */
    overflow: hidden; /* Скрываем переполнение */
    text-overflow: ellipsis; /* Добавляем многоточие при переполнении */
}

.mega-donate-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Мобильная адаптация для кнопки */
@media (max-width: 768px) {
    .mega-donate-btn {
        padding: 15px 20px;
        font-size: 14px;
        max-width: 100%; /* На мобильных занимает всю ширину */
        white-space: normal; /* Разрешаем перенос текста на мобильных */
        line-height: 1.3;
        min-height: 50px; /* Минимальная высота для удобства нажатия */
    }

    .final-call {
        padding: 20px 15px; /* Уменьшаем отступы контейнера */
    }

    .final-call h3 {
        font-size: 1.1rem; /* Уменьшаем размер заголовка */
        margin-bottom: 10px;
    }

    .final-call p {
        font-size: 14px; /* Уменьшаем размер текста */
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .mega-donate-btn {
        padding: 12px 15px;
        font-size: 13px;
        border-radius: 10px;
        min-height: 48px;
    }

    .final-call {
        padding: 15px 10px;
        margin: 20px 5px; /* Добавляем боковые отступы */
    }

    .final-call h3 {
        font-size: 1rem;
    }

    .final-call p {
        font-size: 13px;
    }
}

/* Дополнительные улучшения для очень маленьких экранов */
@media (max-width: 360px) {
    .mega-donate-btn {
        font-size: 12px;
        padding: 10px 12px;
        min-height: 44px;
    }
}

/* Модальное окно */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 25px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.amount-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.amount-grid button {
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.amount-grid button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.amount-grid button small {
    margin-top: 5px;
    opacity: 0.8;
    font-size: 11px;
}

.custom-amount {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.custom-amount input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
}

.custom-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 1001;
    animation: slideIn 0.3s ease;
    font-size: 14px;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .section h1 {
        font-size: 1.8rem;
    }

    .section h2 {
        font-size: 1.4rem;
    }

    .nav-btn {
        font-size: 12px;
        padding: 10px 5px;
    }

    .mission-grid, .advantage-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card-buttons {
        flex-direction: column;
        align-items: center;
    }

    .amount-grid {
        grid-template-columns: 1fr;
    }

    .impact-item {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }

    .impact-amount {
        margin-bottom: 8px;
        min-width: auto;
    }

    .wallet-address {
        flex-direction: column;
        gap: 8px;
    }

    .donate-container {
        padding: 15px;
    }

    .intro-card, .urgency-block, .action-call, .final-message, .final-call {
        padding: 15px;
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .section-nav {
        padding: 10px;
        gap: 5px;
    }

    .nav-btn {
        font-size: 10px;
        padding: 8px 3px;
    }

    .section h1 {
        font-size: 1.5rem;
    }

    .section h2 {
        font-size: 1.2rem;
    }
}