/* Donate premium modal */
.modal.donate-modal {
    padding: 0 !important;
    background: rgba(10, 14, 23, 0.62) !important;
    z-index: 1055;
}

.modal.donate-modal .modal-dialog {
    max-width: 560px !important;
    width: calc(100% - 2rem) !important;
    margin: 1.75rem auto !important;
}

.modal.donate-modal .modal-content {
    padding: 0 !important;
    border: none !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 24px 60px rgba(10, 14, 23, 0.28);
}

.donate-modal__header {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 3.25rem 1.35rem 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 48%, #ff014f 140%);
    text-align: center;
}

.donate-modal__header-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 45%, rgba(255, 255, 255, 0.22), transparent 44%),
        radial-gradient(circle at 86% 55%, rgba(255, 255, 255, 0.14), transparent 42%);
    pointer-events: none;
}

.donate-modal__brand {
    position: relative;
    z-index: 1;
}

.donate-modal__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    margin: 0 auto 0.95rem;
    padding: 6px;
    border-radius: 18px;
    background: #0b0f18;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 1, 79, 0.18);
    overflow: hidden;
}

.donate-modal__logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
}

.donate-modal__eyebrow {
    display: inline-block;
    margin-bottom: 0.4rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    background: rgba(10, 14, 23, 0.22);
    color: rgba(255, 254, 248, 0.92);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.donate-modal__title {
    margin: 0;
    color: #fffef8;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.donate-modal__subtitle {
    margin: 0.45rem 0 0;
    color: rgba(255, 254, 248, 0.84);
    font-size: 0.88rem;
    font-weight: 500;
}

.donate-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: rgba(10, 14, 23, 0.22);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.92;
    transition: transform 0.15s ease, background 0.15s ease;
}

.donate-modal__close:hover,
.donate-modal__close:focus {
    background: rgba(10, 14, 23, 0.32);
    opacity: 1;
    transform: scale(1.04);
    outline: none;
}

.donate-modal__body {
    padding: 1.35rem 1.5rem 1.5rem !important;
}

.donate-modal__field {
    margin-bottom: 1rem;
}

.donate-modal__field label {
    display: block;
    margin-bottom: 0.35rem;
    color: #1e2125;
    font-size: 0.86rem;
    font-weight: 700;
}

.donate-modal__field label span {
    color: #ff014f;
}

.donate-modal__input {
    border-radius: 12px !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    min-height: 46px;
    padding: 0.7rem 0.9rem !important;
    color: #0f172a !important;
}

.donate-modal__input:focus {
    border-color: rgba(255, 1, 79, 0.45) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(255, 1, 79, 0.12) !important;
}

.donate-modal__hint {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.78rem;
}

.donate-modal__error {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: rgba(255, 1, 79, 0.08);
    border: 1px solid rgba(255, 1, 79, 0.22);
    color: #b00036;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.donate-modal__gateways-label {
    margin: 1.15rem 0 0.35rem;
    text-align: center;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Reuse checkout gateway button language inside the modal */
.donate-modal .checkout-gateway-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.donate-modal .checkout-gateway-item {
    min-width: 0;
    width: 100%;
}

.donate-modal .checkout-gateway-btn {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 100%;
    min-height: 68px;
    padding: 10px 14px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-bottom-width: 3px;
    border-radius: 12px;
    background: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 1px 2px rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition:
        transform 0.14s ease,
        box-shadow 0.14s ease,
        border-color 0.14s ease,
        background 0.14s ease;
}

.donate-modal .checkout-gateway-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98) inset,
        0 3px 8px rgba(15, 23, 42, 0.08);
}

.donate-modal .checkout-gateway-btn:focus-visible {
    outline: 3px solid rgba(255, 1, 79, 0.28);
    outline-offset: 2px;
}

.donate-modal .checkout-gateway-btn--paytm {
    border-color: rgba(0, 42, 112, 0.18);
    border-bottom-color: #00baf2;
    background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
}

.donate-modal .checkout-gateway-btn--razorpay {
    border-color: rgba(7, 38, 84, 0.18);
    border-bottom-color: #3395ff;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.donate-modal .checkout-gateway-btn--cashfree {
    border-color: rgba(105, 54, 211, 0.18);
    border-bottom-color: #6936d3;
    background: linear-gradient(180deg, #ffffff 0%, #f7f3ff 100%);
}

.donate-modal .checkout-gateway-btn--phonepe {
    border-color: rgba(95, 37, 159, 0.18);
    border-bottom-color: #5f259f;
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
}

.donate-modal .pg-face {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    pointer-events: none;
    line-height: 1.1;
}

.donate-modal .pg-face__eyebrow {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.donate-modal .pg-face__logo {
    display: block;
    width: auto;
    max-width: min(100%, 118px);
    height: auto;
    max-height: 32px;
    object-fit: contain;
}

.donate-modal .pg-face__brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.donate-modal .pg-face__mark {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.donate-modal .pg-face__cashfree-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #6936d3;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

/* Donate processing / success pages */
.donate-process-page .donate-process-card,
.donate-success-page .donate-success-card {
    max-width: 520px;
    margin: 2rem auto 0;
    padding: 2rem 1.5rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.donate-process-title,
.donate-success-title {
    margin: 0 0 0.5rem;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 800;
}

.donate-process-copy,
.donate-success-copy {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.donate-success-cta {
    display: inline-block;
    margin-top: 1.25rem;
}

@media (max-width: 575.98px) {
    .donate-modal .checkout-gateway-grid {
        grid-template-columns: 1fr;
    }

    .donate-modal__body {
        padding: 1.1rem 1.1rem 1.25rem !important;
    }
}
