/* =============================================
   DONATE PAGE — Premium Redesign
   Matching: CodeByTushu Black + Gold Theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background-color: #050505;
    color: #ffffff;
}

/* =============================================
   CURRENCY SIDEBAR
   ============================================= */
.currency-sidebar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%) translateX(-100%);
    background: #111;
    border: 1px solid rgba(255,196,0,0.2);
    border-left: none;
    border-radius: 0 16px 16px 0;
    padding: 10px 0;
    z-index: 500;
    box-shadow: 4px 0 30px rgba(0,0,0,0.6);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    min-width: 100px;
}

.currency-sidebar.open {
    transform: translateY(-50%) translateX(0);
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    cursor: pointer;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.3px;
}

.currency-option:hover {
    background: #1a1a1a;
    color: #fff;
}

.currency-option.active {
    background: rgba(255,196,0,0.15);
    color: #ffc400;
    border-right: 2px solid #ffc400;
}

.c-symbol { font-size: 14px; font-weight: 800; min-width: 20px; }
.c-name   { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }

/* =============================================
   CURRENCY BADGE (Top Left)
   ============================================= */
.currency-badge {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 400;
    background: rgba(20,20,20,0.85);
    backdrop-filter: blur(10px);
    color: #ffc400;
    border: 1.5px solid rgba(255,196,0,0.6);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.currency-badge:hover {
    background: rgba(255,196,0,0.12);
    border-color: #ffc400;
    box-shadow: 0 0 16px rgba(255,196,0,0.25);
}

/* =============================================
   PAGE WRAPPER
   ============================================= */
.donate-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 68px 20px 0;
}

/* =============================================
   DONATE CARD
   ============================================= */
.donate-card {
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 196, 0, 0.18);
    border-radius: 22px;
    padding: 26px 36px 24px;
    max-width: 560px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(255,196,0,0.06) inset,
        0 30px 80px rgba(0,0,0,0.6),
        0 0 60px rgba(255,196,0,0.04);
    position: relative;
}

/* =============================================
   LOGO CIRCLE
   ============================================= */
.brand-logo {
    margin-bottom: 10px;
}

.logo-ring {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2px solid #ffc400;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    box-shadow: 0 0 18px rgba(255,196,0,0.22);
    margin: 0 auto;
}

.logo-inner {
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -2px;
}

.logo-arrow {
    color: #ffffff;
    font-size: 16px;
}

.logo-d {
    color: #ffc400;
    font-size: 22px;
}

/* =============================================
   BADGE
   ============================================= */
.support-badge {
    display: inline-block;
    background: transparent;
    border: 1.5px solid rgba(255,196,0,0.5);
    border-radius: 50px;
    padding: 3px 14px;
    font-size: 10px;
    font-weight: 700;
    color: #ffc400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* =============================================
   HEADINGS
   ============================================= */
.donate-heading {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.donate-heading .gold {
    color: #ffc400;
}

.donate-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.55;
    margin-bottom: 16px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   FEATURE CARDS ROW
   ============================================= */
.features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 16px;
}

.feature-card {
    background: rgba(255,196,0,0.05);
    border: 1px solid rgba(255,196,0,0.12);
    border-radius: 12px;
    padding: 12px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
    border-color: rgba(255,196,0,0.3);
    background: rgba(255,196,0,0.08);
}

.feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,196,0,0.1);
    border: 1px solid rgba(255,196,0,0.2);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffc400;
    font-size: 15px;
}

.feature-title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.feature-desc {
    font-size: 10.5px;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
    text-align: center;
}

/* =============================================
   DIVIDER WITH HEART
   ============================================= */
.heart-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 8px;
    color: rgba(255,196,0,0.5);
    font-size: 15px;
}

/* =============================================
   CHOOSE AMOUNT LABEL
   ============================================= */
.choose-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

/* =============================================
   AMOUNT SELECTOR
   ============================================= */
.amount-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
    width: 100%;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.qty-btn:hover {
    border-color: #ffc400;
    color: #ffc400;
    background: rgba(255,196,0,0.08);
}

.qty-btn:active {
    transform: scale(0.93);
}

.amount-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 10px 16px;
    min-width: 130px;
}

.amount-symbol {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

#amountInput {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    width: 80px;
    outline: none;
    -moz-appearance: textfield;
    text-align: left;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

#amountInput::-webkit-inner-spin-button,
#amountInput::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* =============================================
   SUPPORT BUTTON
   ============================================= */
.support-btn {
    width: 100%;
    padding: 17px 24px;
    background: #ffc400;
    color: #000;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.support-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.support-btn:hover {
    background: #ffd230;
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(255,196,0,0.45);
}

.support-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(255,196,0,0.3);
}

/* =============================================
   SECURE NOTES
   ============================================= */
.secure-notes {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.secure-note {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.secure-note i {
    font-size: 11px;
    color: rgba(255,196,0,0.6);
}

/* =============================================
   UPI MODAL
   ============================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #111;
    border: 1px solid rgba(255,196,0,0.25);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    position: relative;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.3s ease;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}

.modal-overlay.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover { color: #ffc400; }

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-amount-display {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 20px;
}

.modal-amount-display span {
    color: #ffc400;
    font-weight: 800;
    font-size: 18px;
}

#qrcode {
    display: flex;
    justify-content: center;
    padding: 14px;
    background: #fff;
    border-radius: 12px;
    width: max-content;
    margin: 0 auto;
}

.modal-open-btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: #ffc400;
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.modal-open-btn:hover {
    background: #ffd230;
    box-shadow: 0 6px 24px rgba(255,196,0,0.4);
}

/* =============================================
   TOAST
   ============================================= */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 22px;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 99999;
    font-family: 'Inter', sans-serif;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: #22c55e; }
.toast.error   { background: #ef4444; }

/* =============================================
   FOOTER
   ============================================= */
.donate-footer {
    width: 100%;
    max-width: 480px;
    margin-top: 48px;
    padding-bottom: 40px;
    text-align: center;
}

.footer-heart-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.footer-heart-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,196,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffc400;
    font-size: 20px;
    background: rgba(255,196,0,0.06);
}

.footer-thankyou {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.footer-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    margin-bottom: 28px;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,196,0,0.15), transparent);
    margin-bottom: 20px;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 14px;
}

.footer-copy a {
    color: #ffc400;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.footer-copy a:hover { opacity: 0.8; }

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    padding: 4px 2px;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-link i {
    font-size: 11px;
    color: rgba(255,196,0,0.5);
}

.footer-link:hover {
    color: rgba(255,255,255,0.8);
}

.footer-dot {
    color: rgba(255,255,255,0.2);
    font-size: 10px;
    padding: 0 2px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 540px) {
    .donate-card {
        padding: 20px 18px 20px;
        border-radius: 18px;
    }

    .donate-heading {
        font-size: 24px;
    }

    .features-row {
        gap: 7px;
    }

    .feature-card {
        padding: 10px 7px 9px;
    }

    .feature-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .feature-title {
        font-size: 11px;
    }

    .feature-desc {
        font-size: 9.5px;
    }

    .support-btn {
        font-size: 15px;
        padding: 14px 18px;
    }

    .donate-page-wrapper {
        padding: 62px 12px 0;
    }

    .footer-links {
        gap: 4px;
    }
}

@media (max-width: 380px) {
    .features-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-desc {
        display: none;
    }

    .amount-display {
        min-width: 105px;
    }

    .donate-heading {
        font-size: 22px;
    }
}