/* ============================================================
   Universal payment-result modal (emeralds + donate + all gateways)
   ============================================================ */

.glhf-payment-result-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 12, 0.78);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: glhfPRFade 0.22s ease-out;
}

body.glhf-payment-result-open { overflow: hidden; }

@keyframes glhfPRFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.glhf-payment-result-modal {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 2.25rem 1.75rem 1.75rem;
    background: var(--glhf-bg-card, #14161a);
    border: 1px solid var(--glhf-border, rgba(255,255,255,.08));
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0,0,0,.55);
    text-align: center;
    overflow: hidden;
    animation: glhfPRPop 0.28s cubic-bezier(.2,.9,.3,1.2);
}

@keyframes glhfPRPop {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.glhf-payment-result-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(90% 60% at 50% 0%, rgba(255,255,255,.06), transparent 60%);
}

.glhf-payment-result-modal--success::before {
    background: radial-gradient(90% 60% at 50% 0%, rgba(var(--glhf-accent-rgb, 0, 255, 100), .18), transparent 60%);
}

.glhf-payment-result-modal--error::before {
    background: radial-gradient(90% 60% at 50% 0%, rgba(239,68,68,.14), transparent 60%);
}

.glhf-payment-result-modal--pending::before {
    background: radial-gradient(90% 60% at 50% 0%, rgba(124, 92, 255, .16), transparent 60%);
}

.glhf-payment-result-ribbon {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    border-radius: 999px;
    background: linear-gradient(135deg,#f59e0b,#d97706);
    color: #1f1300;
}

.glhf-payment-result-close {
    position: absolute;
    top: 14px;
    right: 16px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, .55);
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: color .15s ease;
}

.glhf-payment-result-close:hover { color: #fff; }

.glhf-payment-result-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    border: 2px solid transparent;
}

.glhf-payment-result-modal--success .glhf-payment-result-icon {
    color: var(--glhf-accent, #00ff64);
    border-color: rgba(var(--glhf-accent-rgb, 0, 255, 100), .45);
    background: rgba(var(--glhf-accent-rgb, 0, 255, 100), .12);
    box-shadow: 0 0 0 6px rgba(var(--glhf-accent-rgb, 0, 255, 100), .1);
}

.glhf-payment-result-modal--error .glhf-payment-result-icon {
    color: #ef4444;
    border-color: rgba(239,68,68,.4);
    background: rgba(239,68,68,.1);
    box-shadow: 0 0 0 6px rgba(239,68,68,.08);
}

.glhf-payment-result-modal--pending .glhf-payment-result-icon {
    color: #7c5cff;
    border-color: rgba(124,92,255,.45);
    background: rgba(124,92,255,.1);
    box-shadow: 0 0 0 6px rgba(124,92,255,.08);
}

.glhf-payment-result-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,.12);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: glhfPRSpin 0.9s linear infinite;
}

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

.glhf-payment-result-title {
    position: relative;
    margin: 0 0 0.6rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--glhf-text, #fff);
}

.glhf-payment-result-text {
    position: relative;
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--glhf-text-muted, #a8acb5);
}

.glhf-payment-result-order {
    position: relative;
    margin: 0 0 1.3rem;
    font-size: 0.85rem;
    color: var(--glhf-text-muted, #8a8f99);
}

.glhf-payment-result-order code {
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,.06);
    color: var(--glhf-text, #fff);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.82rem;
}

.glhf-payment-result-actions {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.glhf-payment-result-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.3rem;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .15s, filter .15s, background .2s, color .2s, box-shadow .2s;
}

.glhf-payment-result-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #7c5cff, #5b3dff);
    box-shadow: 0 10px 26px rgba(91,61,255,.28);
}

.glhf-payment-result-modal--success .glhf-payment-result-btn--primary {
    background: linear-gradient(135deg, var(--glhf-accent, #00ff64), var(--glhf-accent-hover, #00cc50));
    box-shadow: 0 10px 26px rgba(var(--glhf-accent-rgb, 0, 255, 100), .3);
    color: #042e16;
}

.glhf-payment-result-modal--success .glhf-payment-result-btn--primary:hover {
    transform: translateY(-2px);
    color: #042e16;
    background: linear-gradient(135deg, var(--glhf-accent-hover, #00cc50), #008a36);
    box-shadow: 0 14px 30px rgba(var(--glhf-accent-rgb, 0, 255, 100), .4);
}

.glhf-payment-result-modal--error .glhf-payment-result-btn--primary {
    background: linear-gradient(135deg,#ef4444,#dc2626);
    box-shadow: 0 10px 26px rgba(239,68,68,.28);
}

.glhf-payment-result-modal--error .glhf-payment-result-btn--primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.glhf-payment-result-btn:hover { transform: translateY(-1px); }

@media (max-width: 500px) {
    .glhf-payment-result-modal {
        padding: 2rem 1.25rem 1.5rem;
    }
    .glhf-payment-result-title { font-size: 1.2rem; }
}
