/* =========================================================
   style.css — Gaya global (dipakai di semua halaman)
   Palet warna & bahasa desain mengikuti Roulette Tantangan asli.
   ========================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
    --red: #ff5470;
    --green: #3ddc84;
    --violet: #8b6bff;
    --lime: #c8ff5a;
    --bg-deep: #0a0912;
    --panel: #1a1630;
    --panel-2: #221c40;
    --border: #322c56;
    --border-soft: rgba(255,255,255,.07);
    --ink: #f5f3ff;
    --muted: #9d93c4;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Skala radius & bayangan yang konsisten di seluruh UI */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 26px;
    --shadow-sm: 0 8px 20px -12px rgba(0,0,0,.55);
    --shadow-lg: 0 24px 55px -22px rgba(0,0,0,.7);
    --ease: cubic-bezier(.22,1,.36,1);
}

html { min-height: 100%; }

body {
    min-height: 100vh;
    background: radial-gradient(circle at 15% -10%, #2a2158 0%, transparent 55%),
                radial-gradient(circle at 110% 8%, #1e2a52 0%, transparent 50%),
                radial-gradient(circle at 50% 120%, #201a3e 0%, transparent 60%),
                var(--bg-deep);
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--font-body);
    display: flex;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    /* padding-bottom menyediakan ruang ekstra di bawah agar konten terakhir
       tidak pernah mentok atau tertutup bottom-nav yang fixed, termasuk
       di perangkat dengan safe-area-inset (notch/gesture bar) */
    padding: 16px 12px calc(140px + env(safe-area-inset-bottom, 0px));
}

.app { width: 100%; max-width: 480px; }

::selection { background: var(--lime); color: var(--bg-deep); }

a, button, input, .nav-item, .icon-btn { -webkit-tap-highlight-color: transparent; }
button, .icon-btn, .nav-item, .saldo-btn, .modal-actions button, .quick-amounts button, .wallet-method {
    -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 6px; }

@media (hover: hover) {
    .icon-btn:hover { border-color: var(--lime); color: var(--ink); }
    .nav-item:hover { color: var(--ink); }
    .saldo-btn:hover { filter: brightness(1.08); }
    .card:hover { border-color: var(--border-soft); }
}

/* ---------- Top bar (dipakai di header tiap halaman) ---------- */
.top-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.top-left { display: flex; gap: 6px; align-items: center; }
.icon-btn {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.15s;
    font-family: var(--font-body);
    white-space: nowrap;
    user-select: none;
}
.icon-btn.slash { opacity: 0.4; text-decoration: line-through; }
.icon-btn.slash-off { opacity: 1; text-decoration: none; }
.icon-btn:active { transform: scale(0.94); }

.hero h1 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; white-space: nowrap; }
.hero h1 span { color: var(--lime); }

/* ---------- Brand bar (logo EVOLVE, tampil di semua halaman) ---------- */
.brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 8px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink);
}
.brand-logo {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 9px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px var(--border-soft), 0 6px 16px -8px rgba(0,0,0,.6);
    transition: transform .2s var(--ease);
}
.brand:active .brand-logo { transform: scale(.92); }
.brand-name {
    font-family: var(--font-display);
    font-size: 17.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.brand-name span { color: var(--lime); }

.user-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 4px 6px 4px 10px;
    text-decoration: none;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.user-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.user-chip .chip-sep { color: var(--border); }
.user-chip #userChipSaldo { color: var(--lime); font-weight: 700; }
.coin-ic { width: 15px; height: 15px; flex-shrink: 0; }
.user-chip .coin-ic { width: 13px; height: 13px; color: var(--lime); flex-shrink: 0; }
.user-chip .logout-ic {
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--panel-2); color: var(--red); font-size: 11px;
    border: none; cursor: pointer;
}

/* =========================================================
   Dompet (Wallet) — saldo card, modal deposit/tarik,
   dan riwayat transaksi. Dipakai di Beranda & Profil.
   ========================================================= */
.saldo-card {
    background: linear-gradient(135deg, #20351f 0%, #1d1836 55%, #241d47 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px 18px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.saldo-info .lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.saldo-info .val { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--lime); margin-top: 2px; }
.saldo-info .val .unit { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.saldo-actions { display: flex; gap: 8px; }
.saldo-btn {
    border: none; border-radius: 12px; padding: 9px 14px; font-weight: 700; font-size: 12.5px;
    cursor: pointer; font-family: var(--font-display); white-space: nowrap;
}
.saldo-btn.deposit { background: var(--lime); color: var(--bg-deep); }
.saldo-btn.withdraw { background: var(--panel-2); color: var(--ink); border: 1px solid var(--border); }
.saldo-btn:active { transform: scale(0.95); }
.saldo-note { font-size: 10.5px; color: #5f5a85; margin: -6px 0 14px 2px; }

/* Modal generik (dipakai deposit/tarik) */
.modal-overlay {
    /* Sengaja TIDAK pakai backdrop-filter/blur (lihat catatan di beranda.css
       untuk .overlay) — blur full-screen yang di-toggle bisa memicu
       "black flash" sesaat di banyak WebView Android. */
    position: fixed; inset: 0; background: rgba(8,6,18,.92);
    display: flex; align-items: center; justify-content: center; z-index: 60;
    opacity: 0; pointer-events: none; transition: opacity .25s; padding: 20px;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal-card {
    width: 100%; max-width: 360px; border-radius: 22px; padding: 22px 20px;
    background: linear-gradient(160deg,#241d47,#181334); border: 1px solid var(--border);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
    transform: scale(.9); transition: transform .3s cubic-bezier(.2,1.4,.4,1);
}
.modal-overlay.show .modal-card { transform: scale(1); }
.modal-card h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 4px; }
.modal-card .sub { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.modal-field { margin-bottom: 12px; }
.modal-field label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.modal-field input {
    width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px;
    padding: 11px 13px; font-size: 15px; color: var(--ink); font-family: var(--font-display); outline: none;
}
.modal-field input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(200,255,90,.15); }
.quick-amounts { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.quick-amounts button {
    flex: 1; min-width: 64px; background: var(--panel-2); border: 1px solid var(--border); color: var(--ink);
    border-radius: 10px; padding: 7px 0; font-size: 12px; font-weight: 600; cursor: pointer;
}
.quick-amounts button:active { transform: scale(0.95); }
.modal-msg { font-size: 12px; padding: 9px 11px; border-radius: 10px; margin-bottom: 12px; display: none; }
.modal-msg.error { display: block; background: rgba(255,84,112,.12); color: #ff8fa3; border: 1px solid rgba(255,84,112,.35); }
.modal-msg.success { display: block; background: rgba(61,220,132,.12); color: #7cf0ad; border: 1px solid rgba(61,220,132,.35); }
.modal-actions { display: flex; gap: 8px; margin-top: 4px; }
.modal-actions button {
    flex: 1; padding: 12px 0; border-radius: 12px; font-weight: 700; font-size: 13.5px;
    cursor: pointer; font-family: var(--font-display); border: none;
}
.modal-btn-cancel { background: var(--panel-2); color: var(--muted); border: 1px solid var(--border) !important; }
.modal-btn-confirm { background: var(--lime); color: var(--bg-deep); }

/* ----- Modal Isi Ulang / Penarikan (wallet.js) ----- */
.wallet-card .sub { margin-bottom: 8px; }
.wallet-saldo-row {
    display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
    font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink);
}
.wallet-saldo-row svg { width: 22px; height: 22px; color: var(--lime); }
.wallet-field-lbl {
    font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase;
    letter-spacing: .06em; margin-bottom: 6px;
}
.wallet-readonly {
    background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px;
    padding: 11px 13px; font-size: 14px; color: var(--ink); margin-bottom: 14px;
}
.quick-amounts.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-amounts.grid3 button { min-width: 0; padding: 10px 0; }
.wallet-method-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px;
}
.wallet-method {
    background: var(--panel-2); border: 1px solid var(--border); color: var(--ink);
    border-radius: 12px; padding: 10px 4px; font-size: 12px; font-weight: 700;
    font-family: var(--font-display); cursor: pointer;
}
.wallet-method.active { background: var(--lime); color: var(--bg-deep); border-color: var(--lime); }
.wallet-note { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }

/* Riwayat transaksi (Profil) */
.tx-row { display: flex; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.tx-row:last-child { border-bottom: none; }
.tx-ic { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tx-ic svg { width: 15px; height: 15px; }
.tx-ic.deposit { background: rgba(61,220,132,.15); color: var(--green); }
.tx-ic.withdraw { background: rgba(255,84,112,.15); color: var(--red); }
.tx-ic.bet { background: rgba(139,107,255,.15); color: var(--violet); }
.tx-ic.win { background: rgba(200,255,90,.15); color: var(--lime); }
.tx-ic.bonus { background: rgba(90,169,255,.15); color: #5aa9ff; }
.tx-ic.refund { background: rgba(61,220,132,.12); color: var(--green); }
.tx-body { flex: 1; min-width: 0; }
.tx-body .t { font-size: 12.5px; font-weight: 600; }
.tx-body .d { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.tx-amt { font-family: var(--font-display); font-weight: 700; font-size: 13px; white-space: nowrap; }
.tx-amt.plus { color: var(--green); }
.tx-amt.minus { color: var(--red); }

/* ---------- Section label ---------- */
.section-lbl {
    font-size: 11px; color: var(--muted); text-transform: uppercase;
    letter-spacing: .1em; margin: 14px 0 6px 4px; font-weight: 600;
}

/* ---------- Kartu generik ---------- */
.card {
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
    transition: border-color .2s var(--ease);
}

/* ---------- Footer ---------- */
footer.app-footer { text-align: center; color: var(--muted); font-size: 11px; margin-top: 22px; line-height: 1.6; }

/* =========================================================
   Bottom Navigation — 5 halaman
   ========================================================= */
.bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    z-index: 40;
    padding: 0 12px calc(10px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}
.bottom-nav-inner {
    width: 100%;
    max-width: 480px;
    display: flex;
    background: rgba(26,22,48,.85);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-xl);
    box-shadow: 0 -10px 40px -12px rgba(0,0,0,.7);
    padding: 8px 6px;
    pointer-events: auto;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 2px 6px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--muted);
    transition: .15s;
    position: relative;
}
.nav-item:active { transform: scale(0.93); }
.nav-item .nav-ic {
    width: 21px;
    height: 21px;
    line-height: 1;
    transition: .15s;
}
.nav-item .nav-lbl {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
    font-family: var(--font-body);
}
.nav-item.active {
    color: var(--lime);
    background: linear-gradient(180deg,#20351f,#1d1836);
}
.nav-item.active .nav-ic { transform: translateY(-1px) scale(1.06); }
.nav-item.active::after {
    content: '';
    position: absolute;
    top: 2px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 8px 1px var(--lime);
}

@media (max-width: 400px) {
    .hero h1 { font-size: 19px; }
    .icon-btn { font-size: 11px; padding: 4px 10px; }
    .nav-item .nav-lbl { font-size: 9px; }
}

/* ----- Toast (pengganti alert()/Notification bawaan browser) ----- */
.toast-stack {
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--violet);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    opacity: 0;
    transform: translateY(10px) scale(.98);
    transition: opacity .2s ease, transform .2s ease;
    cursor: pointer;
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast.hide { opacity: 0; transform: translateY(6px) scale(.98); }
.toast-win { border-left-color: var(--green); }
.toast-lose { border-left-color: var(--red); }
.toast-msg { line-height: 1.4; }

/* =========================================================
   Wallet pages — referensi Isi Ulang / Penarikan / Riwayat
   ========================================================= */
.wallet-overlay { align-items: stretch; justify-content: center; padding: 0; background: rgba(8,6,18,.88); }
.wallet-confirm-overlay { background: rgba(8,6,18,.85); }
.wallet-screen {
    width: min(100%, 480px); height: min(100vh, 900px); margin: auto;
    background: linear-gradient(160deg,#253a43 0%,#20333b 58%,#1e2d34 100%);
    border-left: 1px solid rgba(255,255,255,.04); border-right: 1px solid rgba(255,255,255,.04);
    display: flex; flex-direction: column; overflow: hidden;
}
.wallet-screen-head {
    min-height: 64px; display: grid; grid-template-columns: 52px 1fr 82px; align-items: center;
    padding: 0 12px; background: rgba(22,34,40,.76); border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0;
}
.wallet-screen-head h2 { font-family: var(--font-display); font-size: 19px; text-align: center; margin: 0; color: #e8eef0; }
.wallet-back,.wallet-head-link,.wallet-head-icon { border: 0; background: none; color: #2ee58f; cursor: pointer; font-family: var(--font-display); }
.wallet-back { font-size: 39px; line-height: 1; text-align: left; padding: 0 4px; }
.wallet-head-link { justify-self: end; font-size: 12px; font-weight: 700; text-decoration: underline; color: #d7dfe1; }
.wallet-head-icon { justify-self: end; font-size: 20px; color: #9fb2b9; }
.wallet-head-spacer { display:block; width: 52px; }
.wallet-scroll { flex: 1; overflow-y: auto; padding: 18px 14px 30px; scrollbar-width: thin; }
.wallet-page-title { font-size: 15px; font-weight: 700; color: #e2e9eb; margin: 0 0 4px; }
.wallet-balance-line { display:flex; align-items:center; gap:8px; font-family:var(--font-display); font-size:25px; font-weight:700; color:#dbe5e7; margin-bottom:20px; }
.wallet-balance-line .gem-icon,.wallet-balance-line .coin-icon { font-size:24px; color:#d59aff; text-shadow:0 0 8px rgba(213,154,255,.35); }
.wallet-balance-line .coin-icon { color:#ffd43d; text-shadow:0 0 8px rgba(255,212,61,.25); }
.wallet-refresh { margin-left:2px; border:0; background:none; color:#8da3aa; font-size:24px; cursor:pointer; display:inline-block; transition: color .15s; }
.wallet-refresh:hover { color:#2ee58f; }
.wallet-refresh.spinning { animation: wallet-refresh-spin .6s linear; }
@keyframes wallet-refresh-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.wallet-section-title { display:flex; align-items:center; gap:8px; font-size:15px; font-weight:700; color:#e1e8ea; margin:14px 0 10px; }
.wallet-section-title::before { content:'▣'; color:#20db90; font-size:17px; }
.payment-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.payment-grid.single-payment { grid-template-columns:1fr; }
.payment-method-card { min-height:82px; border:1px solid rgba(127,167,179,.25); border-radius:8px; background:#293940; color:#b8c4c8; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; cursor:pointer; font-family:var(--font-body); }
.payment-method-card.active { background:#0ee181; color:#eafef5; border-color:#0ee181; box-shadow:0 6px 18px rgba(14,225,129,.12); }
.payment-method-card span:last-child { font-size:12px; }
.qris-logo { font-family:monospace; font-size:25px; font-weight:900; letter-spacing:-3px; color:#101b1f; }
.payment-method-card:not(.active) .qris-logo { color:#eef2f3; }
.method-name { font-family:var(--font-display); font-size:22px; font-weight:800; letter-spacing:.02em; }
.wallet-field-title { font-size:14px; font-weight:700; color:#dce5e7; margin:12px 0 7px; }
.wallet-field-title small { color:#8eb0bf; font-weight:500; }
.wallet-input { min-height:50px; display:flex; align-items:center; gap:7px; width:100%; background:#293940; border-radius:26px; padding:0 16px; color:#bfcacd; font-size:15px; border:1px solid rgba(255,255,255,.015); }
.wallet-input input { flex:1; width:100%; border:0; outline:0; background:transparent; color:#dce5e7; font-size:16px; font-family:var(--font-body); }
.wallet-input.amount-input span { color:#24d992; }
.wallet-input .phone-prefix { color:#24d992; }
.amount-max-btn {
    flex-shrink:0; border:1px solid rgba(46,229,143,.4); background:rgba(46,229,143,.12); color:#2ee58f;
    font-size:11.5px; font-weight:700; border-radius:20px; padding:5px 12px; cursor:pointer;
    font-family:var(--font-body); transition:.15s;
}
.amount-max-btn:hover { background:rgba(46,229,143,.22); }
.amount-max-btn:active { transform:scale(.95); }
.amount-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:10px 0 15px; }
.amount-grid button { min-height:52px; border-radius:7px; border:2px solid #527786; background:transparent; color:#e1e8ea; font-size:14px; font-weight:600; cursor:pointer; }
.amount-grid button:active,.wallet-small-btn:active,.wallet-primary:active,.wallet-secondary:active { transform:scale(.98); }
.amount-grid button:hover { border-color:#24d992; }
.amount-grid.compact { grid-template-columns:repeat(3,1fr); }
.amount-grid.compact button { min-height:43px; }
.wallet-reference-note,.wallet-info-box { color:#8fa5ad; font-size:11.5px; line-height:1.55; margin:4px 0 16px; }
.wallet-info-box { background:rgba(10,21,26,.18); border:1px solid rgba(144,178,188,.16); border-radius:12px; padding:11px 12px; }

/* ---------- Unggah bukti pembayaran (deposit QRIS) ---------- */
.proof-upload { border-radius:14px; overflow:hidden; margin-bottom:6px; }
.proof-upload-empty {
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
    min-height:120px; padding:18px 16px; text-align:center; cursor:pointer;
    background:#243239; border:1.5px dashed rgba(144,178,188,.35); border-radius:14px;
    color:#9eb0b6; font-size:13px; transition:.15s;
}
.proof-upload-empty:hover { border-color:#0ee181; color:#dce5e7; }
.proof-upload-empty .proof-upload-icon {
    display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px;
    border-radius:50%; background:rgba(14,225,129,.14); color:#24d992; font-size:17px; margin-bottom:2px;
}
.proof-upload-empty small { color:#6f858c; font-size:11px; }
.proof-preview { position:relative; border-radius:14px; overflow:hidden; border:1px solid rgba(144,178,188,.25); background:#101b1f; cursor:pointer; }
.proof-preview img { display:block; width:100%; max-height:260px; object-fit:contain; background:#0c1519; }
.proof-remove {
    position:absolute; top:8px; right:8px; width:28px; height:28px; border-radius:50%; border:0;
    background:rgba(16,27,31,.75); color:#fff; font-size:14px; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.proof-remove:hover { background:rgba(255,84,112,.85); }
.wallet-primary:disabled { opacity:.45; cursor:not-allowed; }

.wallet-primary,.wallet-secondary { width:100%; border:0; border-radius:30px; min-height:52px; font-family:var(--font-display); font-size:15px; font-weight:700; cursor:pointer; }
.wallet-primary { background:#0ee181; color:#e9fff5; }
.wallet-secondary { margin-top:9px; background:#2a3a40; color:#9eb0b6; border:1px solid rgba(132,165,175,.25); }
.wallet-msg { min-height:0; margin:8px 0; border-radius:11px; padding:0; font-size:12px; line-height:1.4; }
.wallet-msg.error,.wallet-msg.success { padding:10px 12px; }
.wallet-msg.error { color:#ff9cab; background:rgba(255,84,112,.1); border:1px solid rgba(255,84,112,.25); }
.wallet-msg.success { color:#7cf0ad; background:rgba(61,220,132,.1); border:1px solid rgba(61,220,132,.25); }

/* QRIS */
.qris-scroll { padding-top:16px; }
.qris-order-card { display:flex; justify-content:space-between; align-items:center; background:#293940; border:1px solid rgba(255,255,255,.06); border-radius:14px; padding:15px; margin-bottom:14px; }
.qris-order-label { color:#8fa5ad; font-size:11px; }
.qris-amount { margin-top:3px; font-family:var(--font-display); font-size:24px; font-weight:800; color:#e7edef; }
.pending-dot { color:#ffb648; font-size:18px; }
.qris-box { width:min(100%,360px); margin:0 auto 14px; background:#fff; border-radius:12px; padding:12px; position:relative; box-shadow:0 14px 28px rgba(0,0,0,.22); }
.qris-box img { display:block; width:100%; aspect-ratio:1; object-fit:contain; image-rendering:auto; }
.qris-logo-large { position:absolute; left:50%; bottom:18px; transform:translateX(-50%); font-size:19px; font-weight:900; color:#111; background:#fff; padding:2px 7px; border-radius:5px; letter-spacing:-1px; }
.qris-detail-card { display:flex; align-items:center; gap:10px; background:#293940; border-radius:12px; padding:12px 13px; margin-bottom:12px; }
.qris-detail-card > div { flex:1; min-width:0; }
.qris-detail-card span,.detail-list span,.detail-account-card span { display:block; color:#8fa5ad; font-size:10.5px; margin-bottom:3px; }
.qris-detail-card strong { display:block; color:#e2eaec; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.qris-detail-card button,.detail-list button { border:1px solid rgba(36,217,144,.45); background:rgba(36,217,144,.08); color:#2ee58f; border-radius:9px; padding:7px 10px; font-size:11px; font-weight:700; cursor:pointer; }

/* Akun tujuan */
.account-empty-card,.withdraw-account-card,.bound-account-row { display:flex; align-items:center; gap:10px; width:100%; background:#293940; border:1px solid rgba(127,167,179,.18); border-radius:12px; padding:12px; margin-bottom:10px; }
.account-empty-card > div:first-child,.account-card-body,.bound-account-left > div:last-child { flex:1; min-width:0; }
.account-empty-card strong,.account-empty-card span,.account-card-body strong,.account-card-body span,.bound-account-left strong,.bound-account-left span { display:block; }
.account-empty-card strong,.account-card-body strong,.bound-account-left strong { color:#e0e8ea; font-size:13px; margin-bottom:3px; }
.account-empty-card span,.account-card-body span,.bound-account-left span { color:#91a6ad; font-size:10.5px; line-height:1.4; }
.account-card-icon { width:34px; height:34px; border-radius:10px; background:#203138; display:flex; align-items:center; justify-content:center; color:#2ee58f; flex-shrink:0; font-size:17px; }
.account-check { color:#2ee58f; font-weight:800; }
.wallet-small-btn { border:1px solid #4e7482; background:transparent; color:#2ee58f; border-radius:10px; padding:8px 12px; font-size:11.5px; font-weight:700; cursor:pointer; flex-shrink:0; }
.bound-account-left { display:flex; align-items:center; gap:10px; flex:1; min-width:0; }
.wallet-form-field { margin-bottom:13px; }
.compact-screen .wallet-scroll { padding-top:16px; }

/* Riwayat */
.history-tabs { display:flex; height:58px; background:#22343b; border-bottom:1px solid rgba(255,255,255,.08); flex-shrink:0; }
.history-tab { flex:1; border:0; border-bottom:3px solid transparent; background:none; color:#aab8bd; font-family:var(--font-body); font-size:14px; font-weight:700; cursor:pointer; }
.history-tab.active { color:#2ee58f; border-bottom-color:#2ee58f; }
.history-scroll { padding:0 14px 30px; }
.history-card { position:relative; display:block; width:100%; text-align:left; border:0; border-bottom:1px solid rgba(255,255,255,.12); background:transparent; color:inherit; padding:15px 20px 15px 0; cursor:pointer; }
.history-top { display:grid; grid-template-columns:1fr auto 22px; align-items:center; gap:8px; color:#b5c1c5; font-size:11px; margin-bottom:8px; }
.history-top time { color:#82969e; white-space:nowrap; }
.history-copy { color:#89a0a8; text-align:right; }
.history-row { display:flex; justify-content:space-between; align-items:center; margin-top:6px; font-size:13px; }
.history-row > span:first-child { color:#8da1a8; }
.history-row strong { color:#dce6e8; font-size:15px; }
.gem-mini { color:#d59aff; font-size:14px; }
.history-status { font-size:13px; font-weight:700; }
.history-status.success { color:#21dc8b; }
.history-status.pending { color:#ffb648; }
.history-status.rejected { color:#ff6b81; }
.wallet-info-box.error { border-color:rgba(255,84,112,.4); color:#ff8fa3; background:rgba(255,84,112,.1); }
.history-arrow { position:absolute; right:2px; top:50%; transform:translateY(-50%); color:#7d969e; font-size:22px; }
.history-empty { padding:40px 10px; text-align:center; color:#879aa1; font-size:13px; }

/* Detail */
.detail-screen .wallet-scroll { padding-top:18px; }
.detail-hero { background:linear-gradient(135deg,#203a3a,#273a41); border:1px solid rgba(36,217,144,.18); border-radius:15px; padding:18px; display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.detail-hero span:first-child { display:block; color:#8da4ab; font-size:11px; margin-bottom:4px; }
.detail-hero strong { color:#e8eff0; font-family:var(--font-display); font-size:24px; }
.detail-list { background:#293940; border-radius:13px; padding:4px 13px; margin-bottom:12px; }
.detail-list > div { display:flex; align-items:center; gap:10px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.06); }
.detail-list > div:last-child { border-bottom:0; }
.detail-list > div > span:first-child { width:92px; flex-shrink:0; margin:0; }
.detail-list strong { flex:1; color:#e1e9eb; font-size:12px; text-align:right; word-break:break-word; }
.detail-section-title { color:#dce5e7; font-size:14px; font-weight:700; margin:16px 2px 8px; }
.detail-account-card { background:#293940; border-radius:13px; padding:5px 13px; }
.detail-account-card > div { display:flex; justify-content:space-between; gap:14px; padding:11px 0; border-bottom:1px solid rgba(255,255,255,.06); }
.detail-account-card > div:last-child { border-bottom:0; }
.detail-account-card strong { color:#e0e8ea; font-size:12px; text-align:right; }
.wallet-confirm-card { width:min(100% - 28px,390px); background:#253940; border:1px solid rgba(36,217,144,.2); border-radius:20px; padding:26px 20px 20px; text-align:center; box-shadow:0 24px 60px rgba(0,0,0,.4); }
.wallet-confirm-icon { width:54px; height:54px; border-radius:50%; margin:0 auto 12px; display:flex; align-items:center; justify-content:center; background:rgba(36,217,144,.14); color:#2ee58f; font-size:28px; font-weight:800; }
.wallet-confirm-card h3 { color:#e7eff0; font-family:var(--font-display); font-size:19px; margin-bottom:7px; }
.wallet-confirm-card p { color:#94a8ae; font-size:12px; line-height:1.5; margin-bottom:18px; }

.wallet-feature-list .wallet-menu-row { width:100%; border:0; background:transparent; color:inherit; font-family:inherit; text-align:left; }
.wallet-feature-list .wallet-menu-row + .wallet-menu-row { border-top:1px solid rgba(255,255,255,.06); }

@media (max-width:380px) {
    .wallet-screen-head { grid-template-columns:44px 1fr 68px; }
    .wallet-screen-head h2 { font-size:17px; }
    .payment-grid { gap:7px; }
    .payment-method-card { min-height:76px; }
    .wallet-scroll { padding-left:12px; padding-right:12px; }
    .history-top { grid-template-columns:1fr auto 18px; }
    .history-top time { font-size:10px; }
}
