/* Member area — hand-written CSS, no build step, no external dependencies.
   Dark theme with red accent matching the Predator landing vibe. */

:root {
    --bg: #0a0507;
    --bg-raised: #17090d;
    --bg-card: #1d0d12;
    --accent: #e11d2e;
    --accent-hover: #f43f4f;
    --text: #ffffff;
    --text-muted: #a89aa0;
    --border: #3a2028;
    --success: #22c55e;
    --warning-bg: #3a2a10;
    --warning-text: #fbbf24;
    --info-bg: #1c2b4a;
    --info-text: #93c5fd;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 14px;
    line-height: 1.5;
}

a { color: var(--accent-hover); }

.boot-splash {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
}
body.auth-pending .app-layout { display: none; }
body:not(.auth-pending) .boot-splash#boot-splash { display: none; }

/* ---------- Forms (shared: auth pages + app) ---------- */
.form-label { display: block; margin: 0.75rem 0 0.25rem; font-weight: 600; }
.form-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-raised);
    color: var(--text);
    font-size: 1rem;
}
.form-input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
select.form-input { appearance: auto; }
.form-code { letter-spacing: 0.35em; text-align: center; font-size: 1.25rem; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 0.55rem 0.95rem;
    font-size: 0.92rem;
    cursor: pointer;
    background: #2a151b;
    color: var(--text);
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; font-weight: 700; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-outline { background: transparent; border-color: var(--border); }
.btn-link { background: none; color: var(--accent-hover); padding: 0.35rem; }
.btn-block { width: 100%; margin-top: 0.85rem; }
.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.82rem; }

/* ---------- Alerts / badges ---------- */
.alert { border-radius: var(--radius); padding: 0.65rem 0.9rem; margin: 0.5rem 0; font-size: 0.9rem; }
.alert-error { background: #3d1015; color: #fca5a5; border: 1px solid #7f1d1d; }
.alert-success { background: #0f2f1c; color: #86efac; border: 1px solid #14532d; }
.alert-warning { background: var(--warning-bg); color: var(--warning-text); border: 1px solid #92400e; }
.alert-info { background: var(--info-bg); color: var(--info-text); border: 1px solid #1e3a8a; }

.badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-sim {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid #92400e;
}
.badge-pending { background: var(--warning-bg); color: var(--warning-text); }
.badge-approved, .badge-succeeded, .badge-active, .badge-verified, .badge-matured, .badge-paid {
    background: #0f2f1c; color: var(--success);
}
.badge-rejected { background: #3d1015; color: #fca5a5; }
.badge-processing { background: var(--info-bg); color: var(--info-text); }
.badge-release { background: #221a38; color: #c4b5fd; }
.badge-cancelled, .badge-closed, .badge-none, .badge-inactive, .badge-unpaid {
    background: #241318; color: var(--text-muted);
}

/* ---------- App layout ---------- */
.app-layout { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 1.1rem;
}
.topbar-brand { font-weight: 800; letter-spacing: 0.14em; color: var(--accent); }
.topbar-user { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; font-size: 0.92rem; }

.app-main-row { flex: 1; display: flex; min-height: 0; }

.sidebar {
    width: 210px;
    flex-shrink: 0;
    background: var(--bg-raised);
    border-right: 1px solid var(--border);
    display: none;
}
.sidebar-nav { display: flex; flex-direction: column; padding: 0.6rem 0; }
.nav-link {
    display: block;
    padding: 0.65rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    text-decoration: none;
}
.nav-link:hover { background: #241318; color: var(--text); }
.nav-link.active { background: var(--accent); color: #fff; font-weight: 700; }

.content {
    flex: 1;
    min-width: 0;
    padding: 1rem 1rem 5rem; /* bottom padding clears the fixed bottom nav */
}

.bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    display: flex;
    background: var(--bg-raised);
    border-top: 1px solid var(--border);
    z-index: 30;
}
.bottom-link {
    flex: 1;
    text-align: center;
    padding: 0.7rem 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}
.bottom-link.active { color: var(--accent-hover); }

@media (min-width: 769px) {
    .sidebar { display: block; }
    .bottom-nav { display: none; }
    .content { padding-bottom: 1.5rem; }
}

/* ---------- Cards / sections ---------- */
.section-title { margin: 0 0 0.75rem; font-size: 1.2rem; }
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.1rem;
    margin-bottom: 1rem;
}
.card h2 { margin: 0 0 0.75rem; font-size: 1rem; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
}
.stat-label { color: var(--text-muted); font-size: 0.82rem; }
.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.15rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-value .cur { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }
/* Kartu stat memanjang penuh (dipakai kartu Saldo Berjalan) */
.stat-card--wide { grid-column: 1 / -1; }
.stat-value .badge { font-size: 0.62rem; vertical-align: middle; margin-left: 0.3rem; }

.bank-card {
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    background: var(--bg-raised);
    padding: 0.8rem 1rem;
    margin-bottom: 0.6rem;
}
.bank-card .bank-name { font-weight: 700; }
.bank-card .bank-number { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; }
.bank-card .bank-holder { color: var(--text-muted); font-size: 0.85rem; }

.invest-card { border-left: 3px solid var(--accent); }
.invest-card .invest-meta { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.3rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.data-table th, .data-table td {
    text-align: left;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.data-table th { color: var(--text-muted); font-weight: 600; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; }
.text-muted { color: var(--text-muted); }
.amount-credit { color: var(--success); font-weight: 600; }
.amount-debit { color: #fca5a5; font-weight: 600; }

/* ---------- Forms ---------- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.6rem 0.9rem;
    margin-bottom: 0.75rem;
}
.filter-field { display: flex; flex-direction: column; gap: 0.2rem; }
.filter-field label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }

/* =====================================================================
   Riwayat Transaksi — reusable flat filter/table system (dark theme).
   Convention: .mfilter (bar) · .mselect (dark select) · .mbtn-accent
   (red action) · .mtable with .mt-time/.mt-num/.mt-status/.mt-note
   (column utilities) · .mbadge-* (flat pills) · .mpager · .mempty.
   ===================================================================== */
.mfilter { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.mselect {
    appearance: none;
    -webkit-appearance: none;
    height: 40px;
    min-width: 190px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background-color: var(--bg-raised);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14' fill='none' stroke='%23a89aa0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
}
.mselect:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.mbtn-accent {
    height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 10px;
    background: #f20d1f;
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}
.mbtn-accent:hover:not(:disabled) { background: #d40c1c; }
.mbtn-accent:disabled { opacity: 0.5; cursor: not-allowed; }

.mtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mtable th {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid #221014;
}
.mtable td { padding: 10px 12px; border-bottom: 1px solid #221014; vertical-align: middle; }
.mtable tbody tr:last-child td { border-bottom: none; }
.mt-time { white-space: nowrap; font-size: 12.5px; color: var(--text-muted); }
.mt-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mtable th.mt-num { text-align: right; }
.mt-num .amt { display: block; font-weight: 600; }
.mt-num .cur { display: block; margin-top: 1px; font-size: 11px; color: var(--text-muted); }
.mt-status { white-space: nowrap; }
.mt-note {
    max-width: 240px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mbadge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.mbadge-setoran { background: #0f2f1c; color: #4ade80; }
.mbadge-penarikan { background: var(--warning-bg); color: var(--warning-text); }
.mbadge-aktivasi { background: var(--info-bg); color: var(--info-text); }
.mbadge-rilis { background: #221a38; color: #c4b5fd; }
.mbadge-menunggu { background: var(--warning-bg); color: var(--warning-text); }
.mbadge-diproses { background: var(--info-bg); color: var(--info-text); }
.mbadge-berhasil, .mbadge-aktif { background: #0f2f1c; color: #4ade80; }
.mbadge-ditolak { background: #3d1015; color: #fca5a5; }
.mbadge-jatuhtempo { background: #221a38; color: #c4b5fd; }
.mbadge-batal, .mbadge-tutup { background: #241318; color: var(--text-muted); }

.mempty { padding: 24px 16px; text-align: center; color: var(--text-muted); font-size: 13.5px; }

.mpager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
}
.mpager button {
    background: none;
    border: none;
    padding: 4px 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
.mpager button:hover:not(:disabled) { color: var(--accent-hover); }
.mpager button:disabled { color: var(--text-muted); opacity: 0.5; cursor: default; }

/* Dashboard banner (admin upload, authed image) */
.dash-banner {
    display: block;
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

/* Brand logo (local /brand-assets/, admin-replaceable). The SVG is white,
   so on light/gold surfaces it sits in a dark chip. */
.dash-brand-logo { height: 28px; width: auto; object-fit: contain; display: block; }
.brand-logo-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    border-radius: 8px;
    padding: 4px 6px;
}
.auth-logo { height: 34px; width: auto; object-fit: contain; display: block; margin: 0; }

.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; margin: 0 0 1rem; }
.detail-list dt { font-weight: 600; color: var(--text-muted); }
.detail-list dd { margin: 0; }

.row-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.empty-state { padding: 2rem 1rem; text-align: center; color: var(--text-muted); }
.loading-state { padding: 2rem 1rem; text-align: center; color: var(--text-muted); }
.wib-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.5rem; }

@media (max-width: 480px) {
    .stat-value { font-size: 1.05rem; }
}

/* =====================================================================
 * Auth pages (login / register) — full-bleed landing replication.
 * Scoped under body.auth-page so app/dashboard styles are untouched.
 * ===================================================================== */

body.auth-page {
    min-height: 100vh;
    padding: 0;
    font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background:
        radial-gradient(ellipse 110% 45% at 50% -8%, rgba(242, 13, 31, 0.38), transparent 60%),
        #050102;
}

.auth-stage {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 18px 20px 42px;
    overflow: hidden;
}

/* Helmet decoration at the bottom, faded into the background. */
.auth-helmet {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 540px);
    opacity: 0.32;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to top, #000 40%, transparent 82%);
    mask-image: linear-gradient(to top, #000 40%, transparent 82%);
}
.auth-stage > *:not(.auth-helmet) { position: relative; z-index: 1; }

/* Top row: circular icon buttons (left) + gold brand badge (right). */
.auth-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.auth-top-left { display: flex; gap: 10px; }

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f20d1f;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(242, 13, 31, 0.45);
}
.icon-btn:hover { background: #ff2233; }

.brand-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #ffd54a;
    border-radius: 12px;
    padding: 7px 12px 7px 8px;
    color: #20060a;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
    max-width: 62%;
}
.brand-badge-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #a30d18;
    color: #ffd54a;
    font-family: Anton, Impact, sans-serif;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.brand-badge-text strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Segmented pill toggle (Login | Signup). */
.seg-toggle {
    display: flex;
    background: #f20d1f;
    border-radius: 999px;
    padding: 4px;
    margin: 24px auto 0;
    width: min(320px, 100%);
}
.seg-item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 999px;
    color: #ffc9cd;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.seg-item.active {
    background: #ff2233;
    color: #fff;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Headings (Anton) + muted caption. */
.auth-heading {
    margin: 28px 0 6px;
    font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
    font-weight: 400;
    font-size: 2.15rem;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #ffffff;
}
.auth-heading span { color: #f5c542; }
.auth-caption {
    margin: 0 0 18px;
    font-size: 0.86rem;
    color: #9a8f91;
}

/* Password / OTP tab toggle — same segmented pill style. */
body.auth-page .auth-tabs {
    display: flex;
    background: #f20d1f;
    border-radius: 999px;
    padding: 4px;
    margin: 6px 0 14px;
    border-bottom: none;
    gap: 0;
}
body.auth-page .auth-tab {
    flex: 1;
    background: none;
    border: none;
    border-radius: 999px;
    padding: 9px 0;
    color: #ffc9cd;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}
body.auth-page .auth-tab.active {
    background: #ff2233;
    color: #fff;
    font-weight: 700;
}

/* Pill inputs: solid red, full-rounded, gold icon left, eye right. */
.field-label {
    display: block;
    margin: 14px 0 7px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #ffffff;
}
.pill { position: relative; display: flex; align-items: center; }
.pill-icon {
    position: absolute;
    left: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffd54a;
    color: #20060a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
body.auth-page .form-input.pill-input {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 999px;
    background: #f20d1f;
    color: #fff;
    padding: 0 20px 0 54px;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 500;
}
body.auth-page .form-input.pill-input::placeholder { color: rgba(255, 255, 255, 0.8); }
body.auth-page .form-input.pill-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 213, 74, 0.35);
}
body.auth-page select.form-input.pill-input { appearance: none; }
body.auth-page .form-input.pill-input--eye { padding-right: 52px; }
.pill-eye {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    padding: 8px;
    opacity: 0.85;
}
.pill-eye:hover { opacity: 1; }

/* OTP verify extras. */
.otp-destination { margin: 4px 0 0; font-size: 0.85rem; color: #9a8f91; }
.otp-destination strong { color: #f5c542; }
body.auth-page .form-code { letter-spacing: 0.5em; text-align: center; font-size: 1.15rem; }

/* Primary submit: red pill, Anton, centered auto width. */
body.auth-page .btn { border-radius: 999px; }
body.auth-page .btn-primary.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 240px;
    height: 52px;
    margin: 24px auto 0;
    padding: 0 2.4rem;
    background: #f20d1f;
    border: 1px solid #f20d1f;
    color: #fff;
    font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(242, 13, 31, 0.4);
}
body.auth-page .btn-primary.auth-submit:hover:not(:disabled) {
    background: #ff2233;
    border-color: #ff2233;
}
body.auth-page .btn-link {
    display: block;
    margin: 0.7rem auto 0;
    background: none;
    color: #9a8f91;
    font-size: 0.85rem;
}
body.auth-page .btn-link:hover:not(:disabled) { color: #e8e0e0; }

/* Agreement checkbox (register). */
.agree-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 18px 0 0;
    font-size: 0.82rem;
    color: #9a8f91;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}
.agree-row input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: #f20d1f;
    flex-shrink: 0;
    cursor: pointer;
}
.agree-row a { color: #f5c542; font-weight: 600; text-decoration: none; }

/* Alerts: subtle tinted boxes that fit the theme. */
body.auth-page .alert {
    border-radius: 12px;
    padding: 0.65rem 0.95rem;
    margin: 0.8rem 0 0;
    font-size: 0.86rem;
}
body.auth-page .alert-error {
    background: rgba(242, 13, 31, 0.14);
    color: #ffb3b9;
    border: 1px solid rgba(242, 13, 31, 0.5);
}
body.auth-page .alert-info {
    background: rgba(255, 213, 74, 0.1);
    color: #ffd54a;
    border: 1px solid rgba(255, 213, 74, 0.4);
}
body.auth-page .alert-success {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

/* Bottom switch link. */
body.auth-page .auth-switch {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.88rem;
    color: #9a8f91;
}
body.auth-page .auth-switch a {
    color: #f5c542;
    font-weight: 700;
    text-decoration: none;
    margin-left: 0.35rem;
}
body.auth-page .auth-switch a:hover { color: #ffd54a; }
body.auth-page .form-hint { color: #9a8f91; }

/* App shell: brand in Anton to match the auth pages. */
body.app-body .topbar-brand {
    font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ---------- Deposit: bank tile grid + copy button (deposit section only) ---------- */
.dep-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}
.dep-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 84px;
    padding: 0.7rem 0.5rem;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font: inherit;
}
.dep-tile:hover { border-color: var(--accent); }
.dep-tile[aria-expanded="true"] { border-color: var(--accent); }
.dep-tile-logo {
    max-height: 30px;
    max-width: 90px;
    object-fit: contain;
}
.dep-tile-fallback {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dep-tile-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #20060a;
    text-align: center;
    line-height: 1.2;
}
.dep-bank-detail {
    margin: 0 0 0.4rem;
    padding: 0.7rem 0.95rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.88rem;
}
.dep-bank-detail p { margin: 0.25rem 0; }
.dep-bank-number { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.dep-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
}
.dep-copy:hover { border-color: var(--accent); color: var(--accent-hover); }

/* ---------- Paket Aktif: mining-style live profit cards ---------- */
.mine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}
.mine-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.1rem;
}
.mine-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.95rem;
}
.mine-meta {
    margin: 0.35rem 0 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.mine-number {
    font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--success);
    font-variant-numeric: tabular-nums;
}
.mine-rate {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.mine-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: mine-pulse 1.6s ease-in-out infinite;
}
@keyframes mine-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
    50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .mine-dot { animation: none; }
}
@media (max-width: 480px) {
    .mine-number { font-size: 1.6rem; }
}

/* ---------- Trading: TradingView chart + symbol chips ---------- */
.tv-symbols {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.75rem;
}
.tv-chip {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-raised);
    color: var(--text-muted);
    font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}
.tv-chip:hover { color: var(--text); border-color: var(--accent); }
.tv-chip.is-on {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.tv-chart {
    width: 100%;
    height: 380px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
}
.tv-chart .sample-note { padding: 2rem 1rem; text-align: center; }
@media (min-width: 769px) {
    .tv-chart { height: 460px; }
}

/* ---------- Trading: Beli/Jual side toggle ---------- */
.side-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 0.25rem;
}
.side-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-raised);
    color: var(--text-muted);
    font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}
.side-btn.side-buy.is-on {
    background: var(--success);
    border-color: var(--success);
    color: #08130c;
}
.side-btn.side-sell.is-on {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ---------- Success modal (dark/red Anton theme) ---------- */
.msuccess-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(5, 1, 2, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.msuccess-card {
    background: var(--bg-card);
    border: 1px solid rgba(225, 29, 46, 0.4);
    border-radius: 12px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
    padding: 1.75rem 1.5rem;
    width: 100%;
    max-width: 340px;
    text-align: center;
}
.msuccess-check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15);
}
.msuccess-title {
    margin: 0 0 0.6rem;
    font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
    font-weight: 400;
    font-size: 1.35rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
}
.msuccess-line {
    margin: 0.2rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}
.msuccess-chip { margin-top: 0.6rem; }
.msuccess-note {
    margin: 0.7rem 0 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.msuccess-close { min-width: 140px; }

/* Spacing override: dash.css (FE) resets .content padding to 0 and loads
   after this file — win on specificity (main element) so the app content
   never sticks to the fixed header. */
body.app-body main.content {
    padding: 1.25rem 1rem 5.5rem;
}

/* Rekening tujuan deposit — exactly one tile selectable. */
.dep-tile.is-selected { border-color: var(--accent); }
.dep-tile-check {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    align-items: center;
    justify-content: center;
}
.dep-tile.is-selected .dep-tile-check { display: inline-flex; }

/* Saldo Berjalan — live aggregate of the per-investment running projection. */
/* Kartu Saldo Berjalan: full-width sendiri, angka satu baris. */
.stat-card--run { grid-column: 1 / -1; }
.stat-card--run strong {
    font-variant-numeric: tabular-nums;
    font-size: 1.35rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}
.run-rate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}
.run-rate[hidden] { display: none; }
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffd54a;
    margin-right: 6px;
    flex-shrink: 0;
    animation: runPulse 1.2s ease-in-out infinite;
}
@keyframes runPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 213, 74, 0.45); }
    50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(255, 213, 74, 0); }
}
