/* ═══════════════════════════════════════════════
   QRIS POPUP - PREMIUM REDESIGN
   Sesuai tema gold/dark web
═══════════════════════════════════════════════ */

#qris-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: flex-end;
    justify-content: center;
}
#qris-overlay.show { display: flex; }

#qris-sheet {
    background: linear-gradient(180deg, #111827 0%, #0a0f1e 100%);
    border: 1px solid rgba(245, 193, 108, .2);
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 480px;
    padding: 0 0 40px;
    animation: qsSlideUp .35s cubic-bezier(.175,.885,.32,1.1);
    max-height: 94vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 -8px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(245,193,108,.08);
}
@keyframes qsSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Handle ── */
.qs-handle {
    width: 44px; height: 4px;
    background: rgba(255,255,255,.12);
    border-radius: 2px;
    margin: 14px auto 0;
}

/* ── Header ── */
.qs-header {
    padding: 16px 18px 14px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin-bottom: 16px;
}
.qs-title {
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: #f5c16c;
    margin-bottom: 4px;
    letter-spacing: .3px;
}
.qs-sub {
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,.35);
    margin: 0;
}

/* ── Body padding ── */
.qs-body { padding: 0 16px; }

/* ── Notif aktif ── */
.qs-notif-aktif {
    display: none;
    background: rgba(255,152,0,.1);
    border: 1px solid rgba(255,152,0,.25);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    color: #ffcc80;
    margin-bottom: 14px;
    align-items: center;
    gap: 8px;
}

/* ── Nominal box ── */
.qs-nominal {
    background: linear-gradient(135deg, rgba(245,193,108,.12), rgba(199,155,59,.06));
    border: 1px solid rgba(245,193,108,.25);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.qs-nominal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,193,108,.4), transparent);
}
.qs-nominal .lbl {
    font-size: 10px;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 4px;
}
.qs-nominal .amt {
    font-size: 26px;
    font-weight: 900;
    color: #f5c16c;
    letter-spacing: .5px;
}
.qs-nominal .icon {
    width: 40px; height: 40px;
    background: rgba(245,193,108,.12);
    border: 1px solid rgba(245,193,108,.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5c16c;
    font-size: 16px;
}

/* ── QR area ── */
.qs-qr-area {
    text-align: center;
    margin-bottom: 16px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qs-qr-wrap {
    display: inline-block;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    box-shadow:
        0 0 0 1px rgba(245,193,108,.2),
        0 8px 32px rgba(0,0,0,.5),
        0 0 60px rgba(245,193,108,.08);
    position: relative;
}
/* Corner accent */
.qs-qr-wrap::before,
.qs-qr-wrap::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    border-color: #f5c16c;
    border-style: solid;
}
.qs-qr-wrap::before {
    top: -2px; left: -2px;
    border-width: 2px 0 0 2px;
    border-radius: 4px 0 0 0;
}
.qs-qr-wrap::after {
    bottom: -2px; right: -2px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 4px 0;
}
.qs-qr-wrap img {
    display: block;
    width: 210px;
    height: 210px;
    border-radius: 6px;
}

/* ── Loading ── */
.qs-loading {
    flex-direction: column;
    gap: 14px;
    color: rgba(255,255,255,.4);
    font-size: 13px;
    text-align: center;
}
.qs-spinner {
    width: 44px; height: 44px;
    border: 3px solid rgba(245,193,108,.12);
    border-top-color: #f5c16c;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Error ── */
.qs-error-box {
    display: none;
    text-align: center;
    padding: 20px;
    color: #f44336;
    font-size: 13px;
}

/* ── Countdown ── */
.qs-cd-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
}
.qs-cd-lbl {
    font-size: 11px;
    color: rgba(255,255,255,.35);
    line-height: 1.6;
}
.qs-cd-dot {
    display: inline-block;
    width: 6px; height: 6px;
    background: #4caf50;
    border-radius: 50%;
    margin-right: 4px;
    animation: dotBlink 1.5s ease-in-out infinite;
}
@keyframes dotBlink { 0%,100%{opacity:1} 50%{opacity:.2} }

#qs-time {
    font-size: 32px;
    font-weight: 900;
    font-family: monospace;
    color: #4caf50;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(76,175,80,.4);
}
#qs-time.warn   { color: #ff9800; text-shadow: 0 0 20px rgba(255,152,0,.4); }
#qs-time.danger { color: #f44336; text-shadow: 0 0 20px rgba(244,67,54,.4); }

/* ── Status ── */
.qs-status {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.5;
}
.qs-waiting {
    background: rgba(33,150,243,.08);
    border: 1px solid rgba(33,150,243,.2);
    color: #90caf9;
}
.qs-paid {
    background: rgba(76,175,80,.12);
    border: 1px solid rgba(76,175,80,.3);
    color: #a5d6a7;
}
.qs-expired {
    background: rgba(244,67,54,.08);
    border: 1px solid rgba(244,67,54,.2);
    color: #ef9a9a;
}

/* ── Cara bayar ── */
.qs-cara {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12px;
    color: rgba(255,255,255,.45);
    line-height: 2;
    margin-bottom: 14px;
}
.qs-cara .qs-cara-title {
    color: #f5c16c;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.qs-cara-step {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 4px;
    line-height: 1.5;
}
.qs-cara-step .num {
    width: 18px; height: 18px;
    background: rgba(245,193,108,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #f5c16c;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Tombol tutup ── */
.btn-qs-tutup {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.5);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: .3px;
}
.btn-qs-tutup:hover {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.7);
}
