/* --- GLOBAL --- */
* { font-family: 'Poppins', sans-serif; box-sizing: border-box; }
:root { --primary-color: #ff6b81; --glass-bg: rgba(255, 255, 255, 0.05); --glass-border: rgba(255, 255, 255, 0.1); --text-light: #ffffff; }

html, body {
    width: 100%; height: 100%; margin: 0; padding: 0;
    background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
    color: var(--text-light); overflow-x: hidden; 
    display: flex; justify-content: center; align-items: center; position: relative;
}

body::before {
    content: ''; position: fixed; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,107,129,0.1) 0%, transparent 50%);
    animation: pulseBg 10s infinite alternate; z-index: -1; pointer-events: none;
}
@keyframes pulseBg { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.2); opacity: 0.8; } }

/* --- HEADER BADGE (LABEL ATAS TENGAH - VERSI KECIL) --- */
.header-badge {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    
    background-color: #ffffff;
    color: #2c3e50;
    
    /* Ukuran diubah jadi lebih kecil */
    padding: 8px 25px; 
    font-size: 11px; 
    
    /* Lengkungan disesuaikan */
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    
    /* Bayangan diperhalus */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 900;
    
    animation: slideDown 0.8s ease-out;
}
@keyframes slideDown { from { transform: translate(-50%, -100%); } to { transform: translate(-50%, 0); } }

/* --- DASHBOARD --- */
.dashboard-container { width: 100%; padding: 20px; display: flex; justify-content: center; }
.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border); padding: 40px 30px; border-radius: 24px;
    text-align: center; box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 100%; max-width: 380px; animation: floatUp 1s ease-out; position: relative; z-index: 10;
}
@keyframes floatUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.logo-container img {
    width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
    border: 4px solid rgba(255,255,255,0.2); padding: 5px; background: rgba(255,255,255,0.1);
    margin-bottom: 20px; box-shadow: 0 0 20px rgba(255, 107, 129, 0.3);
}

h1 { font-weight: 700; font-size: 24px; margin: 0; background: linear-gradient(90deg, #fff, #ff6b81); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { margin-top: 10px; margin-bottom: 35px; font-size: 14px; color: rgba(255,255,255,0.6); font-weight: 300; }

.btn-main {
    background: linear-gradient(45deg, #ff6b81, #ff4757); color: white; border: none;
    padding: 16px 40px; font-size: 16px; font-weight: 600; border-radius: 50px;
    cursor: pointer; transition: all 0.3s ease; box-shadow: 0 10px 20px rgba(255, 71, 87, 0.3); width: 100%;
}
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(255, 71, 87, 0.4); }

/* --- MODAL --- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px);
    z-index: 1000; justify-content: center; align-items: center; padding: 20px;
}
.modal-content {
    background: #ffffff; color: #333; padding: 30px; border-radius: 20px;
    width: 100%; max-width: 380px; position: relative; box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); margin: auto;
}
.modal-header h2 { margin: 0; color: #2c3e50; font-size: 22px; }

.form-group { margin-bottom: 18px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 12px; color: #7f8c8d; }
.form-group input, .form-group select {
    width: 100%; padding: 12px 15px; border: 2px solid #f1f2f6; border-radius: 12px;
    font-size: 14px; background: #f8f9fa; transition: 0.3s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--primary-color); outline: none; background: #fff; }

.btn-confirm { width: 100%; background-color: #2c3e50; color: white; border: none; padding: 14px; font-size: 15px; border-radius: 12px; cursor: pointer; font-weight: 600; margin-top: 10px; }
.btn-secondary { width: 100%; background-color: #f1f2f6; color: #2f3542; border: none; padding: 12px; border-radius: 12px; font-weight: 600; cursor: pointer; margin-top: 10px; }
.btn-download { width: 100%; background: linear-gradient(45deg, #3498db, #2980b9); color: white; border: none; padding: 14px; font-size: 15px; border-radius: 12px; cursor: pointer; font-weight: 600; margin-top: 15px; display: flex; justify-content: center; gap: 10px; }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: #a4b0be; }

/* --- QRIS & RECEIPT --- */
.qris-container { background: #fff; padding: 10px; border: 2px solid #eee; border-radius: 10px; display: inline-block; margin: 15px 0; }
.qris-container img { width: 180px; height: 180px; object-fit: contain; }

.receipt-box { background: #ffffff; border: 2px dashed #dfe4ea; padding: 20px; border-radius: 15px; margin-top: 20px; position: relative; }
.receipt-label { font-size: 10px; color: #a4b0be; letter-spacing: 1px; margin: 0; font-weight: 700; }
.big-number { font-size: 42px; color: var(--primary-color); margin: 5px 0; font-weight: 700; }
.receipt-divider { height: 1px; background: #dfe4ea; margin: 10px 0; }

/* --- HELP BUTTON & POPUP --- */
.help-container { position: fixed; bottom: 30px; right: 30px; z-index: 990; display: flex; flex-direction: column; align-items: flex-end; }
.btn-help { width: 60px; height: 60px; background: linear-gradient(45deg, #ff6b81, #ff4757); color: white; font-size: 28px; font-weight: 700; border: none; border-radius: 50%; box-shadow: 0 4px 15px rgba(255, 107, 129, 0.4); cursor: pointer; }

.help-popup { 
    background: white; width: 280px; padding: 30px 20px 20px 20px; border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); margin-bottom: 15px; 
    opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.9); transition: all 0.3s ease; 
    position: absolute; bottom: 70px; right: 0; text-align: center; 
}
.help-popup.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

/* Judul Tutorial Baru */
.tutorial-title { margin: 0 0 25px 0; font-size: 24px; font-weight: 800; color: var(--primary-color); letter-spacing: 2px; text-transform: uppercase; }
.close-help { position: absolute; top: 10px; right: 15px; font-size: 28px; cursor: pointer; color: #a4b0be; line-height: 1; z-index: 10; }
.close-help:hover { color: #ff6b81; }
.help-steps { list-style: none; padding: 0; margin-top: 10px; text-align: left; }
.help-steps li { font-size: 13px; color: #555; margin-bottom: 12px; display: flex; align-items: flex-start; }
.help-steps li span { background: #ff6b81; color: white; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; justify-content: center; align-items: center; font-size: 10px; margin-right: 10px; flex-shrink: 0; }

/* --- TOOLTIP PENUNJUK --- */
.help-tooltip {
    position: absolute; bottom: 80px; right: 0;
    background-color: #ffffff; color: #ff6b81;
    padding: 10px 15px; border-radius: 10px;
    font-size: 12px; font-weight: 700; white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0; transform: translateY(10px); transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: none; z-index: 980;
}
.help-tooltip::after {
    content: ''; position: absolute; bottom: -6px; right: 22px;
    width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid #ffffff;
}
.help-tooltip.show { opacity: 1; transform: translateY(0); }

@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.checkmark-circle { width: 60px; height: 60px; position: relative; display: inline-block; border-radius: 50%; border: 3px solid #2ed573; margin-bottom: 10px; }
.checkmark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(45deg); height: 30px; width: 15px; border-bottom: 4px solid #2ed573; border-right: 4px solid #2ed573; }

/* --- STYLE KARTU PEMBAYARAN --- */
.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 10px; }
.payment-card {
    background: #f8f9fa; border: 2px solid #eee; border-radius: 15px; padding: 15px;
    cursor: pointer; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; overflow: hidden;
}
.payment-card .card-icon img { height: 30px; object-fit: contain; margin-bottom: 5px; }
.card-title { display: block; font-weight: 700; font-size: 14px; color: #2c3e50; }
.card-desc { display: block; font-size: 10px; color: #95a5a6; }
.check-icon {
    position: absolute; top: 5px; right: 5px; background: #2ed573; color: white; width: 20px; height: 20px; border-radius: 50%;
    font-size: 12px; display: flex; justify-content: center; align-items: center; opacity: 0; transform: scale(0); transition: 0.3s;
}
.payment-card.active { border-color: #ff6b81; background: #fff0f3; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255, 107, 129, 0.2); }
.payment-card.active .check-icon { opacity: 1; transform: scale(1); }
.payment-card:hover { border-color: #ff6b81; }

/* --- STYLE LOCK SYSTEM --- */
.btn-locked { background: linear-gradient(45deg, #7f8c8d, #95a5a6) !important; cursor: not-allowed !important; box-shadow: none !important; opacity: 0.8; }
.btn-locked:hover { transform: none !important; box-shadow: none !important; }
.btn-locked .liquid { display: none; }