/* ==========================================
   DONATE MODAL
   ========================================== */

/* Modal Container */
.donate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.donate-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Overlay */
.donate-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

/* Modal Content */
.donate-modal-content {
    position: relative;
    width: 600px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    padding: 50px 40px;
    z-index: 10001;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Close Button */
.donate-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10002;
}

.donate-modal-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 107, 136, 0.15);
    color: #ff6b88;
}

/* Modal Title */
.donate-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    padding-top: 20px;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Modal Body */
.donate-modal-body {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* QR Section */
.donate-qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.donate-qr-wrapper {
    width: 220px;
    height: 220px;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.donate-qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.donate-qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    text-align: center;
}

.donate-qr-placeholder .material-icons {
    font-size: 100px;
    margin-bottom: 10px;
}

.donate-qr-placeholder p {
    font-size: 1rem;
    margin: 0;
}

/* UPI ID */
.donate-upi-id {
    text-align: center;
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.donate-upi-id strong {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.donate-copy-text {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--primary-accent);
    font-weight: 600;
    background: rgba(255, 107, 136, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.donate-copy-btn {
    background: var(--primary-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 8px;
}

.donate-copy-btn:hover {
    background: #ff4d73;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 136, 0.3);
}

.donate-copy-btn .material-icons {
    font-size: 18px;
}

/* Bank Details Section */
.donate-bank-section {
    padding: 30px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 15px;
}

.donate-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.donate-bank-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.donate-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f5;
}

.donate-detail-row:last-child {
    border-bottom: none;
}

.donate-detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 1rem;
}

.donate-detail-value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05rem;
    background: rgba(255, 107, 136, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .donate-modal-content {
        padding: 40px 30px;
    }

    .donate-modal-title {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

    .donate-qr-wrapper {
        width: 180px;
        height: 180px;
    }

    .donate-section-title {
        font-size: 1.15rem;
    }

    .donate-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .donate-detail-value {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .donate-modal-content {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .donate-modal-title {
        font-size: 1.25rem;
    }

    .donate-qr-section,
    .donate-bank-section {
        padding: 20px;
    }

    .donate-qr-wrapper {
        width: 160px;
        height: 160px;
    }

    .donate-copy-text {
        font-size: 0.95rem;
        padding: 6px 12px;
    }

    .donate-section-title {
        font-size: 1.1rem;
    }

    .donate-detail-label,
    .donate-detail-value {
        font-size: 0.95rem;
    }
}