/* c:\xampp\htdocs\assets\css\donate.css */

.btn-donate-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(225, 29, 72, 0.1) 100%);
    color: #f472b6;
    border: 1px solid rgba(244, 114, 182, 0.25);
    font-weight: 700;
    font-size: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 2.25rem;
}

.btn-donate-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-donate-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.9) 0%, rgba(225, 29, 72, 0.9) 100%);
    color: white;
    border-color: transparent;
}

.btn-donate-header:hover::before {
    left: 100%;
}

.btn-donate-header i {
    animation: heartBeat 1.5s infinite;
}

.btn-donate-header:hover i {
    color: white;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* Donate Modal Wrapper */
.donate-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 1rem;
}

.donate-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.donate-modal {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(236, 72, 153, 0.2);
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    position: relative;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

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

/* Glow Accent */
.donate-modal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.donate-modal-inner {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

/* Close Button */
.donate-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.donate-close:hover {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
    transform: rotate(90deg);
}

/* QR Code Section */
#donate-qr {
    position: relative;
    padding: 10px;
    margin: 0 auto;
}

#donate-qr::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.5;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

#donate-qr img, #donate-qr canvas {
    width: 200px !important;
    height: 200px !important;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* Payment Number */
.payment-number-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.payment-number {
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 2px;
}

.btn-copy {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-copy:hover {
    background: #ec4899;
    color: white;
}

/* Instructions */
.payment-guide {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.25rem;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.payment-guide h4 {
    color: #f8fafc;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-guide ol {
    list-style-position: inside;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.payment-guide li {
    padding-left: 0.5rem;
}

/* Toast */
.donate-toast {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 20;
}

.donate-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
