.donation-scope {
    color: var(--ink);
    background: var(--cream);
}

.donation-scope * {
    scroll-behavior: smooth;
}

/* Amount pill selection state */
.amount-pill {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}

.amount-pill:hover {
    transform: translateY(-2px);
}

.amount-pill.is-selected {
    background-color: var(--teal);
    border-color: var(--teal);
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(26, 104, 91, 0.55);
    transform: translateY(-2px);
}

.amount-pill.is-selected .amount-sub {
    color: rgba(255, 255, 255, 0.75);
}

/* Payment method card selection */
.pay-card.is-selected {
    border-color: var(--gold);
    box-shadow: 0 10px 24px -10px rgba(255, 172, 0, 0.5);
    background: linear-gradient(180deg, #fff8ea 0%, #ffffff 100%);
}

.pay-card.is-selected .pay-dot {
    background: var(--gold);
    border-color: var(--gold);
}

.pay-dot {
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

/* Modal machinery */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    background: rgba(18, 30, 27, 0.55);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-panel {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.modal-backdrop.is-open .modal-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

body.modal-lock {
    overflow: hidden;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 4px solid rgba(26, 104, 91, 0.15);
    border-top-color: var(--teal);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Progress bar fill animation */
.progress-fill {
    transition: width 1.1s cubic-bezier(0.22, 0.9, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
    .amount-pill,
    .pay-dot,
    .modal-panel,
    .progress-fill {
        transition: none !important;
    }

    .spinner {
        animation-duration: 1.6s;
    }
}
