body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: 'Anuphan', sans-serif;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.glass-main {
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}
.glass-inner {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.bg-donate {
    background-image: url('/Donate/images/bgEducated.jpg');
    background-size: cover;
    background-position: center;
}

.qr-container { perspective: 1200px; cursor: pointer; }
.qr-card {
    transform-style: preserve-3d;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s;
    transform: translateZ(0);
}

.qr-glare {
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 25;
    mix-blend-mode: overlay;
}

.focus-box {
    position: absolute;
    inset: -16px;
    pointer-events: none;
    z-index: 20;
}
.focus-corner {
    position: absolute;
    width: 48px;
    height: 48px;
    border: 4px solid #e67e22;
}
.corner-tl { top: 0; left: 0; border-right: none; border-bottom: none; border-top-left-radius: 44px; animation: focus-tl 2s infinite ease-in-out; }
.corner-tr { top: 0; right: 0; border-left: none; border-bottom: none; border-top-right-radius: 44px; animation: focus-tr 2s infinite ease-in-out; }
.corner-bl { bottom: 0; left: 0; border-right: none; border-top: none; border-bottom-left-radius: 44px; animation: focus-bl 2s infinite ease-in-out; }
.corner-br { bottom: 0; right: 0; border-left: none; border-top: none; border-bottom-right-radius: 44px; animation: focus-br 2s infinite ease-in-out; }

@keyframes focus-tl { 0%, 100% { transform: translate(0,0); opacity: 0.7; } 50% { transform: translate(-6px,-6px); opacity: 1; filter: drop-shadow(0 0 8px rgba(230,126,34,0.8)); } }
@keyframes focus-tr { 0%, 100% { transform: translate(0,0); opacity: 0.7; } 50% { transform: translate(6px,-6px);  opacity: 1; filter: drop-shadow(0 0 8px rgba(230,126,34,0.8)); } }
@keyframes focus-bl { 0%, 100% { transform: translate(0,0); opacity: 0.7; } 50% { transform: translate(-6px,6px);  opacity: 1; filter: drop-shadow(0 0 8px rgba(230,126,34,0.8)); } }
@keyframes focus-br { 0%, 100% { transform: translate(0,0); opacity: 0.7; } 50% { transform: translate(6px,6px);   opacity: 1; filter: drop-shadow(0 0 8px rgba(230,126,34,0.8)); } }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-10px) rotate(3deg); }
}
.animate-float { animation: float 5s ease-in-out infinite; }

/* Macaron color classes — defined here so icon colors render regardless of Tailwind CDN config */
.bg-macaron-orange { background-color: #FDEBD0; }
.bg-macaron-blue   { background-color: #D6EAF8; }
.bg-macaron-green  { background-color: #D4EFDF; }
.bg-macaron-pink   { background-color: #FADBD8; }
.bg-macaron-purple { background-color: #E8DAEF; }
.bg-macaron-yellow { background-color: #FCF3CF; }

.text-macaron-orangetext { color: #C0680A; }
.text-macaron-bluetext   { color: #1A6FAE; }
.text-macaron-greentext  { color: #1D8A4F; }
.text-macaron-pinktext   { color: #C0392B; }
.text-macaron-purpletext { color: #6C3483; }
.text-macaron-yellowtext { color: #9A7D0A; }

.fill-macaron-pink   { fill: #FADBD8; }
.fill-macaron-purple { fill: #E8DAEF; }

/* Action Buttons */
.btn-donate-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 14px 24px;
    background: #4E2578;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(78, 37, 120, 0.35);
}
.btn-donate-primary:hover {
    background: #3d1c60;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(78, 37, 120, 0.45);
}
.btn-donate-primary:active { transform: translateY(0); }

.btn-donate-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.85);
    color: #4E2578;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1.5px solid rgba(78, 37, 120, 0.2);
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.btn-donate-secondary:hover {
    background: rgba(78, 37, 120, 0.07);
    border-color: rgba(78, 37, 120, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(78, 37, 120, 0.15);
}
.btn-donate-secondary:active { transform: translateY(0); }

/* Biller ID Card */
.biller-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(240,232,255,0.75));
    border: 1px solid rgba(78, 37, 120, 0.12);
    border-radius: 16px;
    padding: 14px 20px;
    text-align: center;
    box-shadow:
        0 4px 20px rgba(78, 37, 120, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.biller-label {
    font-size: 9px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #9B7EC8;
    font-weight: 600;
    margin-bottom: 8px;
}
.biller-bank-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 6px;
}
.biller-number {
    font-family: 'SF Mono', 'ui-monospace', 'Roboto Mono', 'Courier New', Courier, monospace;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #1C1C1E;
    white-space: nowrap;
    line-height: 1;
}

/* Modal entrance animation */
@keyframes modalEnter {
    from { opacity: 0; transform: scale(0.93) translateY(20px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.modal-card-anim {
    animation: modalEnter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
