/* ════════════════════════════════════════════════════════════
 * GBI Slawi — persembahan.css
 * Tab persembahan: kartu rekening & modal 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;
}

/* ── QR Frame ── */
.prs-qr-wrap {
    display: flex;
    justify-content: center;
}

.prs-qr-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    width: fit-content;
}

.prs-qr-frame img {
    border-radius: 6px;
}

.prs-qr-placeholder {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prs-qr-svg {
    width: 80px;
    height: 80px;
    color: var(--gold);
    opacity: .45;
}

.prs-qr-scan-label {
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text3);
}

/* ── Rekening Info ── */
.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-number {
    font-family: monospace;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--gold);
    margin-bottom: 8px;
}

.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);
}

/* ── Salin Nomor Button ── */
.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;
    }
}

/* ── QR Frame clickable hint ── */
.prs-qr-clickable {
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.prs-qr-clickable:hover {
    transform: scale(1.04);
    box-shadow: 0 0 18px rgba(245, 200, 66, .2);
}

/* ══ MODAL QR ══ */
.prs-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.prs-modal-overlay.open {
    display: flex;
}

.prs-modal-box {
    position: relative;
    background: var(--bg2);
    border: 1px solid var(--gold-border);
    border-radius: 20px;
    padding: 28px 24px 22px;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    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;
}

@keyframes prsModalIn {
    from {
        opacity: 0;
        transform: scale(.92) translateY(12px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.prs-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg4);
    color: var(--text2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s, color .18s;
}

.prs-modal-close:hover {
    background: var(--gold-dim);
    color: var(--gold);
}

.prs-modal-bank {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.prs-modal-qr-wrap {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prs-modal-qr-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.prs-modal-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prs-modal-info {
    text-align: center;
    width: 100%;
}

.prs-modal-rek-number {
    font-family: monospace;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--gold);
    margin-top: 2px;
}

/* ── QR clickable hint ── */
.prs-qr-clickable {
    cursor: zoom-in;
    transition: transform .2s, box-shadow .2s;
}

.prs-qr-clickable:hover {
    transform: scale(1.04);
    box-shadow: 0 0 18px rgba(245, 200, 66, .2);
}

/* ══ MODAL QR FULL SCREEN ══ */
.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: fixed;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    transition: background .18s;
}

.prs-modal-close:hover {
    background: rgba(255, 255, 255, .22);
}

.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);
    }
}