/* Donate Widget CSS - Пастельная версия */

/* Контейнер */
.donate-widget-container {
    margin: 40px auto;
    max-width: 800px;
    text-align: center;
}

/* Кнопка-триггер */
.donate-trigger-wrapper {
    display: inline-block;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.donate-trigger-wrapper:hover {
    transform: translateY(-3px);
}

.donate-trigger-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 45px;
    background: linear-gradient(135deg, #A3BFFA 0%, #E2C2FF 100%); /* Пастельный градиент */
    color: #5A4B81;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(163, 191, 250, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
    text-align: center;
    position: relative;
    min-height: 90px;
    justify-content: center;
}

.donate-trigger-btn:hover {
    box-shadow: 0 15px 35px rgba(163, 191, 250, 0.4);
    transform: translateY(-3px);
    background: linear-gradient(135deg, #B5C9FC 0%, #E8D2FF 100%);
}

.donate-icon {
    font-size: 28px;
    margin-bottom: 6px;
    line-height: 1;
    display: block;
    color: #7B68EE;
}

.donate-text {
    font-size: 18px;
    margin-bottom: 4px;
    line-height: 1.2;
    font-weight: 700;
    display: block;
    color: #5A4B81;
}

.donate-subtext {
    font-size: 14px;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.2;
    display: block;
    color: #7C7285;
}

/* Модальное окно */
.donate-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.donate-modal-container {
    background: #FFFBFE; /* Пастельный фон */
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 600px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #F0E6FF;
}

/* Контент */
.donate-modal-content {
    display: flex;
    flex: 1;
    padding: 0;
    overflow: hidden;
}

/* Левая колонка */
.donate-left-column {
    flex: 1;
    padding: 35px;
    background: linear-gradient(180deg, #F8F5FF 0%, #FFFBFE 100%); /* Пастельный градиент */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px;
}

/* Правая колонка */
.donate-right-column {
    flex: 1;
    padding: 35px;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    overflow-y: auto;
    max-height: 520px;
    background: #FFFFFF;
}

.donate-right-column::-webkit-scrollbar {
    width: 6px;
}

.donate-right-column::-webkit-scrollbar-track {
    background: #F5F2FF;
    border-radius: 3px;
}

.donate-right-column::-webkit-scrollbar-thumb {
    background: #D4CAF8;
    border-radius: 3px;
}

/* Аватар */
.donate-avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
}

.donate-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #B5A8FF;
    box-shadow: 0 8px 16px rgba(181, 168, 255, 0.2);
}

/* Заголовки и текст */
.donate-title {
    text-align: center;
    margin: 0 0 12px 0;
    color: #5A4B81;
    font-size: 26px;
    line-height: 1.2;
}

.donate-description {
    text-align: center;
    color: #7C7285;
    margin: 0 0 12px 0;
    line-height: 1.5;
    font-size: 15px;
}

.donate-humour {
    text-align: center;
    color: #9E94A3;
    margin: 0 0 25px 0;
    font-style: italic;
    font-size: 14px;
}

/* Основная кнопка DonationAlerts */
.donate-main-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: linear-gradient(135deg, #85D7B5, #B4E8D6); /* Пастельный зеленый */
    color: #2A6B54 !important;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 0 12px 0;
    box-shadow: 0 8px 20px rgba(133, 215, 181, 0.25);
    text-decoration: none;
    text-align: center;
    gap: 10px;
    line-height: 1.3;
}

.donate-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(133, 215, 181, 0.35);
    color: #2A6B54 !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #94E0C2, #C3F0E0);
}

.btn-icon {
    font-size: 20px;
    color: #2A6B54;
}

.btn-text {
    flex: 1;
    text-align: center;
    font-size: 15px;
}

.btn-arrow {
    font-size: 20px;
    transition: transform 0.2s;
    color: #2A6B54;
}

.donate-main-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Примечание о безопасности */
.donate-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #7C7285;
    font-size: 13px;
    margin-top: 8px;
}

.secure-icon {
    font-size: 14px;
    color: #85D7B5;
}

/* Правая колонка - стили */
.alternative-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 15px 0;
    color: #5A4B81;
    font-size: 18px;
}

.alt-icon {
    font-size: 20px;
    color: #B5A8FF;
}

/* КАРТА СБЕРА - ОРИГИНАЛЬНЫЙ ЦВЕТ */
.sber-card-container {
    margin: 0 0 15px 0;
}

.sber-card {
    background: linear-gradient(135deg, #21a038 0%, #1e8a31 100%);
    border-radius: 14px;
    padding: 20px;
    color: white;
    box-shadow: 0 8px 20px rgba(33, 160, 56, 0.25);
    position: relative;
    overflow: hidden;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

.sber-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.3;
}

.sber-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sber-card-logo {
    display: flex;
    align-items: center;
}

.sber-logo-text {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.5px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.card-type {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.sber-card .card-number-display {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin: 0 0 20px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    word-break: break-all;
    line-height: 1.3;
}

.sber-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.9;
}

.card-holder-name {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-valid {
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 600;
}

/* Кнопка копирования */
.copy-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: #21a038; /* Цвет Сбера */
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    margin: 0 0 15px 0;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(33, 160, 56, 0.25);
    line-height: 1.2;
}

.copy-card-btn:hover {
    background: #1e8a31;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(33, 160, 56, 0.35);
}

.copy-icon {
    font-size: 16px;
}

/* Контейнер QR-кода */
.qr-code-container {
    text-align: center;
    margin: 0 0 15px 0;
    padding: 15px;
    background: #F8F5FF;
    border-radius: 10px;
    border: 1px solid #F0E6FF;
}

.qr-code-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 12px 0;
    color: #5A4B81;
    font-weight: 600;
    font-size: 15px;
}

.qr-icon {
    font-size: 18px;
    color: #B5A8FF;
}

.qr-code-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 12px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #F0E6FF;
}

.qr-code-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.qr-hint {
    color: #7C7285;
    font-size: 13px;
    margin: 8px 0 0 0;
    line-height: 1.3;
}

/* Разделитель */
.donate-divider {
    display: flex;
    align-items: center;
    margin: 15px 0;
    color: #C5BBD3;
}

.donate-divider::before,
.donate-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #F0E6FF;
}

.donate-divider span {
    padding: 0 12px;
    font-size: 13px;
}

/* Особенности */
.donate-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #F8F5FF;
    border-radius: 10px;
    border: 1px solid #F0E6FF;
}

.feature-icon {
    font-size: 20px;
    flex-shrink: 0;
    color: #B5A8FF;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    color: #5A4B81;
    font-size: 15px;
    margin-bottom: 3px;
}

.feature-text small {
    color: #7C7285;
    font-size: 13px;
}

/* Кнопка закрытия */
.donate-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #F8F5FF;
    border: 1px solid #F0E6FF;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9E94A3;
    transition: all 0.2s;
    z-index: 10;
    line-height: 1;
    padding: 0;
}

.donate-close-btn:hover {
    background: #F0E6FF;
    color: #7C7285;
    transform: rotate(90deg);
}

/* Стили для разных вариантов отображения */
.donate-card-only .qr-code-container,
.donate-qr-only .sber-card-container,
.donate-qr-only .copy-card-btn {
    display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .donate-modal-content {
        flex-direction: column;
        overflow-y: auto;
        max-height: 80vh;
    }
    
    .donate-modal-container {
        max-width: 95%;
        max-height: 90vh;
    }
    
    .donate-left-column,
    .donate-right-column {
        min-width: auto;
        padding: 25px 20px;
        max-height: none;
        overflow-y: visible;
    }
    
    .donate-trigger-btn {
        padding: 18px 35px;
        font-size: 15px;
        min-height: 80px;
    }
    
    .donate-icon {
        font-size: 24px;
    }
    
    .donate-text {
        font-size: 16px;
    }
    
    .donate-subtext {
        font-size: 13px;
    }
    
    .donate-avatar {
        width: 90px;
        height: 90px;
    }
    
    .donate-title {
        font-size: 22px;
    }
    
    .sber-card .card-number-display {
        font-size: 16px;
        padding: 10px;
        letter-spacing: 1px;
    }
    
    .qr-code-image {
        width: 130px;
        height: 130px;
    }
    
    .donate-main-btn {
        flex-direction: column;
        gap: 6px;
        padding: 15px;
    }
    
    .btn-text {
        order: 2;
        font-size: 14px;
    }
    
    .btn-icon {
        order: 1;
        font-size: 18px;
    }
    
    .btn-arrow {
        order: 3;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .donate-left-column,
    .donate-right-column {
        padding: 20px 15px;
    }
    
    .donate-trigger-btn {
        padding: 15px 25px;
        font-size: 14px;
        min-height: 70px;
    }
    
    .donate-icon {
        font-size: 22px;
    }
    
    .donate-text {
        font-size: 15px;
    }
    
    .donate-subtext {
        font-size: 12px;
    }
    
    .sber-card {
        padding: 15px;
    }
    
    .sber-card .card-number-display {
        font-size: 14px;
        letter-spacing: 0.5px;
    }
    
    .qr-code-image {
        width: 110px;
        height: 110px;
    }
}