/* ══════════════════════════════════════════════════
   DONATE BUTTON — base + variants
   ══════════════════════════════════════════════════ */

/* ── Footer Liquid Glass variant ── */
.btn-donate-footer {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-raj, 'Rajdhani', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--white);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(241, 201, 139, 0.25);
    border-radius: 12px;
    padding: 0.8rem 1.8rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateZ(0); /* For liquid glass */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}

.btn-donate-footer .btn-donate-text {
    position: relative;
    z-index: 2;
}

.btn-donate-footer .btn-donate-icon {
    position: relative;
    z-index: 2;
    color: var(--thruster);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 8px rgba(241, 201, 139, 0.5));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-donate-footer .btn-donate-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(241, 201, 139, 0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-donate-footer:hover {
    border-color: rgba(241, 201, 139, 0.7);
    box-shadow: 0 12px 30px rgba(241, 201, 139, 0.2), inset 0 1px 0 rgba(255,255,255,0.15);
    background: rgba(241, 201, 139, 0.08);
    transform: translateY(-4px) scale(1.02) translateZ(0);
}

.btn-donate-footer:hover .btn-donate-glow {
    transform: translateX(100%);
}

.btn-donate-footer:active {
    transform: translateY(0) scale(0.98) translateZ(0);
}

/* Pulsing heart animation on hover */
@keyframes heartBeatPulse {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.btn-donate-footer:hover .btn-donate-icon {
    animation: heartBeatPulse 1.2s infinite;
}

/* Sci-fi particle/glitch lines inside button */
.btn-donate-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(241, 201, 139, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 80% 30%, rgba(241, 201, 139, 0.4) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-donate-footer:hover .btn-donate-particles {
    opacity: 1;
    animation: particleDrift 3s linear infinite;
}

@keyframes particleDrift {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

.footer-donate-desc {
    color: var(--steel-gray, #9ca3af);
    font-family: var(--font-inter, 'Inter', sans-serif);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    margin-top: -0.3rem;
}

/* Base modal button... */
.btn-donate {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--thruster, #f1c98b);
    background: rgba(241, 201, 139, 0.06);
    border: 1px solid rgba(241, 201, 139, 0.15);
    border-radius: 40px;
    padding: 0.45rem 1.1rem 0.45rem 0.85rem;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease,
                box-shadow 0.25s ease, transform 0.2s ease;
}

.btn-donate-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.btn-donate:hover {
    background: rgba(241, 201, 139, 0.12);
    border-color: rgba(241, 201, 139, 0.3);
    box-shadow: 0 0 18px rgba(241, 201, 139, 0.1);
    transform: translateY(-1px);
}

.btn-donate:active {
    transform: translateY(0) scale(0.97);
}

/* ── Nav variant — distinct gold-tinted heart button ── */
.nav-icon-btn.btn-donate {
    font-size: 0;
    padding: 0;
    gap: 0;
    background: rgba(241, 201, 139, 0.08);
    border: 1px solid rgba(241, 201, 139, 0.20);
    border-radius: 10px;
    color: var(--thruster, #f1c98b);
    box-shadow: 0 0 12px rgba(241, 201, 139, 0.06),
                inset 0 1px 0 rgba(241, 201, 139, 0.08);
}

.nav-icon-btn.btn-donate .btn-donate-icon {
    font-size: 1rem;
    filter: drop-shadow(0 0 4px rgba(241, 201, 139, 0.4));
}

.nav-icon-btn.btn-donate:hover {
    background: rgba(241, 201, 139, 0.16);
    border-color: rgba(241, 201, 139, 0.35);
    color: #fff;
    box-shadow: 0 0 20px rgba(241, 201, 139, 0.15),
                0 4px 16px rgba(241, 201, 139, 0.10),
                inset 0 1px 0 rgba(241, 201, 139, 0.12);
    transform: translateY(-2px);
}

/* ── Mobile overlay variant ── */
.btn-donate--mobile {
    font-size: 0.65rem;
    padding: 10px 18px 10px 14px;
}


/* ══════════════════════════════════════════════════
   DONATE OVERLAY — modal container
   ══════════════════════════════════════════════════ */
.donate-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0.5s;
}

.donate-overlay.active {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.donate-overlay.closing {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
}


/* ── Backdrop ── */
.donate-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.6s ease;
}

.donate-overlay.active .donate-backdrop {
    background: rgba(0, 0, 0, 0.82);
}


/* ══════════════════════════════════════════════════
   DONATE MODAL — glass-morphism card
   ══════════════════════════════════════════════════ */
.donate-modal {
    position: relative;
    width: 90vw;
    max-width: 400px;
    padding: 2.2rem 2rem 2rem;
    background: rgba(12, 16, 28, 0.88);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
                opacity 0.5s ease 0.1s;
}

.donate-overlay.active .donate-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.donate-overlay.closing .donate-modal {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}


/* ── Close button ── */
.donate-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 1000;
    touch-action: manipulation;
}

.donate-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.donate-close svg {
    pointer-events: none;
}



/* ── Header ── */
.donate-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.donate-heart {
    font-size: 1.6rem;
    color: var(--thruster, #f1c98b);
    display: block;
    margin-bottom: 0.5rem;
    animation: heartPulse 2s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.donate-title {
    font-family: var(--font-raj, 'Rajdhani', sans-serif);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.3rem;
}

.donate-subtitle {
    font-family: var(--font-inter, 'Inter', sans-serif);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}


/* ── Amount input ── */
.donate-label {
    display: block;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.6rem;
}

.donate-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.15rem 0.8rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.donate-input-row:focus-within {
    border-color: rgba(241, 201, 139, 0.3);
    box-shadow: 0 0 16px rgba(241, 201, 139, 0.06);
}

.donate-currency {
    font-family: var(--font-raj, 'Rajdhani', sans-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--thruster, #f1c98b);
    opacity: 0.7;
}

.donate-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-raj, 'Rajdhani', sans-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0;
    -moz-appearance: textfield;
}

.donate-input::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

.donate-input::-webkit-outer-spin-button,
.donate-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* ── Preset chips ── */
.donate-presets {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.donate-preset {
    flex: 1;
    padding: 0.45rem 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.donate-preset:hover {
    background: rgba(241, 201, 139, 0.08);
    border-color: rgba(241, 201, 139, 0.2);
    color: var(--thruster, #f1c98b);
}


/* ── Generate QR button ── */
.donate-generate {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(241, 201, 139, 0.15), rgba(241, 201, 139, 0.08));
    border: 1px solid rgba(241, 201, 139, 0.25);
    border-radius: 12px;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--thruster, #f1c98b);
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.donate-generate:hover {
    background: linear-gradient(135deg, rgba(241, 201, 139, 0.22), rgba(241, 201, 139, 0.12));
    box-shadow: 0 0 24px rgba(241, 201, 139, 0.12);
    transform: translateY(-1px);
}

.donate-generate:active {
    transform: translateY(0) scale(0.98);
}


/* ══════════════════════════════════════════════════
   QR CODE SECTION
   ══════════════════════════════════════════════════ */
.donate-qr-section {
    text-align: center;
    animation: qrFadeIn 0.5s ease;
}

@keyframes qrFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.donate-qr-img {
    width: 220px;
    height: 220px;
    border-radius: 14px;
    background: #fff;
    padding: 12px;
    margin: 0 auto 1rem;
    display: block;
}

.donate-qr-amount {
    font-family: var(--font-raj, 'Rajdhani', sans-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--thruster, #f1c98b);
    margin: 0 0 0.25rem;
}

.donate-qr-hint {
    font-family: var(--font-inter, 'Inter', sans-serif);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0 1.2rem;
}

.donate-back {
    background: none;
    border: none;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    transition: color 0.2s ease;
}

.donate-back:hover {
    color: rgba(255, 255, 255, 0.7);
}
