* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2340 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
}

/* ── Blur Overlay ───────────────────────────── */
#blur-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

#blur-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.blur-content {
    text-align: center;
    color: #1e3a5f;
}

.blur-content p {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 12px;
    color: #1e3a5f;
    letter-spacing: 0.5px;
}

.blur-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #bfdbfe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

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

/* ── Receipt Card ───────────────────────────── */
.receipt-card {
    background: #ffffff;
    max-width: 400px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    overflow: hidden;
    position: relative;
}/* Header */
.receipt-header {
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    color: #fff;
    text-align: center;
    padding: 28px 20px 24px;
}

.bank-logo {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.bank-name {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.bank-sub {
    font-size: 0.78rem;
    opacity: 0.75;
    margin-top: 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Status sukses */
.receipt-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 20px 4px;
}

.status-icon {
    background: #16a34a;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.status-label {
    color: #16a34a;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Nominal */
.receipt-nominal {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    padding: 10px 20px 2px;
    letter-spacing: 0.5px;
}

.receipt-nominal-label {
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
    padding-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Divider */
.receipt-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0 20px;
}

.receipt-divider.dashed {
    background: none;
    border-top: 2px dashed #e5e7eb;
    margin: 0;
}

/* Notch kiri-kanan (efek struk) */
.receipt-divider.dashed::before,
.receipt-divider.dashed::after {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #1e3a5f, #0f2340);
    border-radius: 50%;
    position: absolute;
    top: -11px;
    margin-top: 0;
}

.receipt-divider.dashed {
    position: relative;
    margin: 20px 0;
}

.receipt-divider.dashed::before { left: -11px; }
.receipt-divider.dashed::after  { right: -11px; }

/* Baris detail */
.receipt-rows {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.row-label {
    font-size: 0.83rem;
    color: #9ca3af;
}

.row-value {
    font-size: 0.88rem;
    color: #1f2937;
    font-weight: 600;
    text-align: right;
    font-family: 'Courier New', monospace;
}

/* Tombol Download */
.btn-download {
    display: block;
    margin: 0 24px;
    padding: 13px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(37,99,235,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37,99,235,0.5);
}

.btn-download:active { transform: translateY(0); }

.receipt-note {
    text-align: center;
    font-size: 0.75rem;
    color: #d1d5db;
    padding: 12px 24px 24px;
}

/* ── Modal ──────────────────────────────────── */
#modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-box {
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.modal-icon { font-size: 2.4rem; margin-bottom: 14px; }

.modal-box h3 {
    font-size: 1.05rem;
    color: #1f2937;
    margin-bottom: 10px;
}

.modal-box p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-allow {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.btn-allow:hover { background: #1d4ed8; }

.btn-cancel {
    display: block;
    width: 100%;
    padding: 10px;
    background: none;
    color: #6b7280;
    font-size: 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel:hover { background: #f9fafb; }
