/* ════════════════════════════════════════════════════════════
 * GBI Slawi — persembahan.css
 * Tab persembahan: kartu rekening, modal QR, & modal donasi
 * (alur donasi mirip modal Event: Step1 input -> Step2 ringkasan+QR)
 * ════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   PERSEMBAHAN TAB  (prs-*)
   ═══════════════════════════════════════════════════════════════ */

/* ── Header ── */
.prs-header {
    text-align: center;
    padding: 8px 0 4px;
    position: relative;
}

.prs-header-cross {
    display: inline-flex;
    position: relative;
    width: 28px;
    height: 28px;
    margin: 0 auto 12px;
}

.prs-cross-v,
.prs-cross-h {
    position: absolute;
    background: var(--gold);
    border-radius: 2px;
}

.prs-cross-v {
    width: 4px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.prs-cross-h {
    width: 100%;
    height: 4px;
    top: 35%;
    transform: translateY(-50%);
}

.prs-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.prs-subtitle {
    font-size: .85rem;
    color: var(--text2);
    margin-bottom: 8px;
}

.prs-verse {
    font-size: .82rem;
    color: var(--gold);
    font-style: italic;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Grid Kartu ── */
.prs-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* ── Kartu Rekening ── */
.prs-card {
    position: relative;
    border-radius: 16px;
    border: 1px solid var(--gold-border);
    background: var(--bg2, rgba(255, 255, 255, .04));
    overflow: hidden;
    transition: transform .22s, box-shadow .22s;
}

.prs-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(245, 200, 66, .12);
}

.prs-card-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at top, rgba(245, 200, 66, .07) 0%, transparent 70%);
    pointer-events: none;
}

.prs-card-inner {
    position: relative;
    padding: 20px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Top: nama bank + dot ── */
.prs-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.prs-bank-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prs-bank-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px currentColor;
}

.prs-bank-name {
    font-weight: 700;
    font-size: .95rem;
    color: var(--text);
    letter-spacing: .02em;
}

/* ── Rekening Info (di kartu) ── */
.prs-rekening-block {
    text-align: center;
}

.prs-rek-label,
.prs-rek-name-label {
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 2px;
}

.prs-rek-separator {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
    margin: 6px auto;
}

.prs-rek-name {
    font-size: .88rem;
    font-weight: 600;
    color: var(--text);
}

/* ── Tombol "Persembahan" / Salin ── */
.prs-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 14px;
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    color: var(--gold);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, transform .15s;
    letter-spacing: .03em;
}

.prs-copy-btn:hover {
    background: rgba(245, 200, 66, .25);
    transform: scale(1.02);
}

.prs-copy-btn.copied {
    background: rgba(76, 175, 130, .15);
    border-color: rgba(76, 175, 130, .4);
    color: #4CAF82;
}

/* ── Catatan Bawah ── */
.prs-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--gold-dim);
    border-color: var(--gold-border) !important;
}

.prs-note-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.prs-note p {
    font-size: .85rem;
    color: var(--text2);
    line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .prs-cards-grid {
        grid-template-columns: 1fr;
    }

    .prs-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 400px) {
    .prs-card-inner {
        padding: 16px 14px 14px;
    }
}

/* ══ MODAL QR FULL SCREEN (klik-untuk-perbesar dari step 2) ══ */
.prs-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(0, 0, 0, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.prs-modal-overlay.open {
    display: flex;
    animation: prsFadeIn .2s ease both;
}

@keyframes prsFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.prs-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg4, rgba(255,255,255,.08));
    color: var(--text2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: background .18s, color .18s;
    z-index: 2;
}

.prs-modal-close:hover {
    background: var(--gold-dim);
    color: var(--gold);
}

.prs-modal-qr-img {
    display: block;
    width: min(90vw, 90vh);
    height: min(90vw, 90vh);
    object-fit: contain;
    animation: prsQRIn .25s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes prsQRIn {
    from { opacity: 0; transform: scale(.88); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes prsModalIn {
    from { opacity: 0; transform: scale(.92) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ════════════════════════════════════════════════════════════
   MODAL DONASI PERSEMBAHAN — alur 2 langkah (mirip modal Event)
   Step 1: input nominal + catatan  →  "Lanjut" (preview client)
   Step 2: ringkasan + QR           →  "Sudah Transfer" (simpan)
   ════════════════════════════════════════════════════════════ */

.prs-donasi-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9995;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.prs-donasi-overlay.open {
    display: flex;
    animation: prsFadeIn .2s ease both;
}

.prs-donasi-modal {
    position: relative;
    background: var(--bg2);
    border: 1px solid var(--gold-border);
    border-radius: 20px;
    padding: 30px 24px 24px;
    width: 100%;
    max-width: 380px;
    max-height: 92vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(245, 200, 66, .08);
    animation: prsModalIn .25s cubic-bezier(.22, 1, .36, 1) both;
}

.prs-donasi-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.prs-donasi-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    text-align: center;
}

.prs-donasi-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.prs-donasi-field {
    width: 100%;
}

.prs-donasi-label {
    display: block;
    font-size: .72rem;
    letter-spacing: .04em;
    color: var(--text3);
    margin-bottom: 6px;
}

.prs-input {
    width: 100%;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text);
    font-size: .9rem;
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
}

.prs-input:focus {
    border-color: var(--gold-border);
}

.prs-input[readonly] {
    opacity: .7;
    cursor: not-allowed;
}

.prs-input-rupiah-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
}

.prs-input-rupiah-wrap:focus-within {
    border-color: var(--gold-border);
}

.prs-input-rupiah-prefix {
    color: var(--gold);
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}

.prs-input-rupiah-wrap .prs-input {
    border: none;
    background: transparent;
    padding: 0;
    font-family: monospace;
    font-size: 1.05rem;
    font-weight: 700;
}

.prs-input-rupiah-wrap .prs-input:focus {
    border: none;
}

.prs-input-terbilang {
    display: block;
    font-size: .74rem;
    color: var(--text3);
    margin-top: 5px;
    min-height: 1em;
}

/* ── Alert (error / success) ── */
.prs-alert {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .8rem;
    line-height: 1.5;
    box-sizing: border-box;
}

.prs-alert-error {
    background: rgba(229, 83, 75, .12);
    border: 1px solid rgba(229, 83, 75, .35);
    color: #ff8a82;
}

.prs-alert-success {
    background: rgba(76, 175, 130, .12);
    border: 1px solid rgba(76, 175, 130, .35);
    color: #4CAF82;
}

/* ── Tombol footer modal ── */
.prs-modal-foot {
    display: flex;
    gap: 10px;
    width: 100%;
}

.prs-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .18s, transform .15s, opacity .15s;
}

.prs-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.prs-btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text2);
}

.prs-btn-outline:hover {
    background: rgba(255, 255, 255, .05);
}

.prs-btn-donasi,
.prs-btn-donasi-konfirm {
    background: var(--gold);
    border-color: var(--gold);
    color: #1a1206;
}

.prs-btn-donasi:hover,
.prs-btn-donasi-konfirm:hover {
    transform: scale(1.02);
    filter: brightness(1.08);
}

/* ── Ringkasan (step 2) ── */
.prs-donasi-summary {
    width: 100%;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prs-donasi-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.prs-donasi-summary-label {
    font-size: .74rem;
    color: var(--text3);
    flex-shrink: 0;
}

.prs-donasi-summary-val {
    font-size: .86rem;
    font-weight: 600;
    color: var(--text);
    text-align: right;
    font-family: monospace;
}

.prs-donasi-summary-nominal {
    color: var(--gold);
    font-size: 1rem;
}

/* ── Blok QR (step 2) ── */
.prs-donasi-qr {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.prs-donasi-qr-label {
    font-size: .78rem;
    color: var(--text2);
    margin-bottom: 8px;
}

.prs-donasi-qr-img {
    width: 170px;
    height: 170px;
    object-fit: contain;
    border-radius: 8px;
    cursor: zoom-in;
    background: #fff;
    padding: 6px;
}

.prs-donasi-qr-hint {
    font-size: .74rem;
    color: var(--text3);
    text-align: center;
    line-height: 1.5;
    margin-top: 8px;
}

.prs-donasi-no-qr {
    width: 100%;
    text-align: center;
    padding: 20px 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text3);
    font-size: .82rem;
}

.prs-donasi-no-qr-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
}