/* ==========================================================================
   xBStore — Shared FE skin (main.blade token system)
   Dark navy + gold. Used by account/invoice/deposit/history pages on main layout.
   Depends on :root --bj-* / --es-* from main.blade.php
   ========================================================================== */

/* --- Page shell (bjmain already pads for fixed nav via --bjx-nav-h) ----- */
.xb-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
    color: var(--bj-text, hsl(var(--foreground, 210 20% 96%)));
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-sans), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.xb-page h1,
.xb-page h2,
.xb-page h3,
.xb-page h4,
.xb-page button,
.xb-page a,
.xb-page p,
.xb-page span,
.xb-page td,
.xb-page th,
.xb-page label,
.xb-page input,
.xb-page select,
.xb-page textarea {
    font-family: inherit !important;
}
.xb-page--narrow {
    max-width: 720px;
}
.xb-page--wide {
    max-width: 1120px;
}
.xb-page--full {
    max-width: 72rem; /* full-ish page for invoice */
}
@media (min-width: 768px) {
    .xb-page { padding: 1.5rem 1.25rem 3.5rem; }
}
/* Token bridge: bjmain hsl vars → shared FE tokens */
body.bjx-body-shell {
    --bj-text: hsl(var(--foreground));
    --bj-muted: hsl(var(--muted-foreground));
    --bj-surface: hsl(var(--card));
    --bj-surface-2: hsl(var(--secondary));
    --bj-bg: hsl(var(--background));
    --bj-border: hsl(var(--border) / 0.55);
    --bj-accent: hsl(var(--primary));
    --bj-accent-glow: hsl(var(--primary) / 0.15);
    --bj-success: #3dd68c;
    --bj-danger: #ff6b6b;
    --bj-gradient-2: linear-gradient(135deg, #c98900 0%, #f0b429 48%, #ffe066 100%);
}

/* --- Hero strip --------------------------------------------------------- */
.xb-hero {
    background: linear-gradient(180deg, rgba(17, 29, 46, 0.95), rgba(11, 15, 20, 0.92));
    border: 1px solid var(--bj-border, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.xb-hero h1,
.xb-hero .xb-hero-title {
    font-family: inherit;
    font-size: 1.125rem; /* text-lg — seragam FE */
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
    color: var(--bj-text, #e6edf6);
}
.xb-hero p,
.xb-hero .xb-hero-sub {
    margin: 0.4rem 0 0;
    font-size: 0.75rem;
    color: var(--bj-muted, #9aa6b2);
}

/* --- Cards -------------------------------------------------------------- */
.xb-card {
    background: var(--bj-surface, #111d2e) !important;
    border: 1px solid var(--bj-border, rgba(255, 255, 255, 0.08)) !important;
    border-radius: 16px !important;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    color: var(--bj-text, #e6edf6);
}
.xb-card h2,
.xb-card h3,
.xb-card .xb-card-title {
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.85rem;
    color: var(--bj-text, #e6edf6);
}
.xb-card-muted {
    background: var(--bj-surface-2, #16233a) !important;
}

/* --- Balance pill ------------------------------------------------------- */
.xb-balance {
    background: rgba(255, 210, 0, 0.08);
    border: 1px solid rgba(255, 210, 0, 0.28);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin-top: 0.85rem;
}
.xb-balance-label {
    font-size: 0.8rem;
    color: var(--bj-muted, #9aa6b2);
}
.xb-balance-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bj-accent, #ffd200);
    letter-spacing: 0.2px;
}

/* --- Buttons ------------------------------------------------------------ */
.xb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    border: 0;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.xb-btn-gold {
    background: linear-gradient(135deg, #c98900 0%, #f0b429 48%, #ffe066 100%) !important;
    color: #1a1408 !important;
    box-shadow: 0 6px 18px rgba(240, 180, 41, 0.22);
    border: 0 !important;
}
.xb-btn-gold:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    color: #1a1408 !important;
    box-shadow: 0 10px 24px rgba(240, 180, 41, 0.3);
}
.xb-btn-outline {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--bj-text, #e6edf6) !important;
    border: 1px solid rgba(255, 210, 100, 0.28) !important;
}
.xb-btn-outline:hover {
    border-color: rgba(240, 180, 41, 0.55) !important;
    color: #f0b429 !important;
    background: rgba(240, 180, 41, 0.08) !important;
}
.xb-btn-sm {
    min-height: 36px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
}
.xb-btn-block {
    width: 100%;
}
.xb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

/* Override legacy .btn-primary on account pages */
.xb-page .btn-primary,
.es-dashboard .btn-primary,
.es-account .btn-primary {
    background: var(--bj-gradient-2, linear-gradient(135deg, #ffd200, #ff9f1a)) !important;
    border: none !important;
    color: #1a1400 !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 20px rgba(255, 159, 26, 0.22);
}
.xb-page .btn-primary:hover,
.es-dashboard .btn-primary:hover,
.es-account .btn-primary:hover {
    filter: brightness(1.08);
    color: #1a1400 !important;
}

/* --- Status badges ------------------------------------------------------ */
.xb-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    border: 1px solid transparent;
}
.xb-badge-ok,
.xb-page .badge.bg-success,
.es-dashboard .badge.bg-success {
    background: rgba(56, 242, 163, 0.14) !important;
    color: var(--bj-success, #38f2a3) !important;
    border-color: rgba(56, 242, 163, 0.28) !important;
}
.xb-badge-wait,
.xb-page .badge.bg-warning,
.es-dashboard .badge.bg-warning {
    background: rgba(255, 210, 0, 0.14) !important;
    color: var(--bj-accent, #ffd200) !important;
    border-color: rgba(255, 210, 0, 0.28) !important;
}
.xb-badge-bad,
.xb-page .badge.bg-danger,
.es-dashboard .badge.bg-danger {
    background: rgba(255, 77, 77, 0.14) !important;
    color: var(--bj-danger, #ff4d4d) !important;
    border-color: rgba(255, 77, 77, 0.28) !important;
}
.xb-badge-info,
.xb-page .badge.bg-info,
.es-dashboard .badge.bg-info {
    background: rgba(96, 165, 250, 0.14) !important;
    color: #60a5fa !important;
    border-color: rgba(96, 165, 250, 0.28) !important;
}

/* --- Alerts (kill light Bootstrap blues) -------------------------------- */
.xb-alert,
.xb-page .alert,
.es-account .alert,
.es-dashboard .alert {
    border-radius: 12px !important;
    border: 1px solid var(--bj-border, rgba(255, 255, 255, 0.08)) !important;
    background: var(--bj-surface-2, #16233a) !important;
    color: var(--bj-text, #e6edf6) !important;
    padding: 0.85rem 1rem;
}
.xb-alert-info,
.xb-page .alert-primary,
.xb-page .alert-info,
.es-account .alert-primary,
.es-account .bg-blue-100 {
    background: rgba(255, 210, 0, 0.08) !important;
    border-color: rgba(255, 210, 0, 0.25) !important;
    color: var(--bj-text, #e6edf6) !important;
}
.xb-page .alert-success,
.es-account .alert-success {
    background: rgba(56, 242, 163, 0.1) !important;
    border-color: rgba(56, 242, 163, 0.3) !important;
    color: var(--bj-success, #38f2a3) !important;
}
.xb-page .alert-danger,
.es-account .alert-danger {
    background: rgba(255, 77, 77, 0.1) !important;
    border-color: rgba(255, 77, 77, 0.3) !important;
    color: #ff8a8a !important;
}

/* Legacy light blue info box on deposit */
.es-account .bg-blue-100,
.es-account .text-blue-700,
.es-account .dark\:bg-blue-200,
.es-account .dark\:text-blue-800 {
    background: rgba(255, 210, 0, 0.08) !important;
    color: var(--bj-text, #e6edf6) !important;
    border: 1px solid rgba(255, 210, 0, 0.22);
    border-radius: 12px;
}
.es-account marquee {
    color: var(--bj-accent, #ffd200) !important;
}

/* --- Tables (layout ala Riwayat.png — kolom merata, aksi center) -------- */
.xb-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0;
    border: 0;
}
/* tabel pesanan: fixed layout biar header & isi lurus per kolom */
.xb-page .table.xb-orders,
.es-dashboard .table.xb-orders,
.es-riwayat .table.xb-orders {
    color: var(--bj-text, #e6edf6) !important;
    margin-bottom: 0 !important;
    width: 100%;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    table-layout: fixed;
}
.xb-page .table.xb-orders th,
.xb-page .table.xb-orders td,
.es-dashboard .table.xb-orders th,
.es-dashboard .table.xb-orders td,
.es-riwayat .table.xb-orders th,
.es-riwayat .table.xb-orders td {
    padding: 0.85rem 0.65rem !important;
    vertical-align: middle !important;
    text-align: left !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}
.xb-page .table.xb-orders th,
.es-dashboard .table.xb-orders th,
.es-riwayat .table.xb-orders th {
    background: transparent !important;
    color: #8b98ab !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.75rem !important;
}
.xb-page .table.xb-orders td,
.es-dashboard .table.xb-orders td,
.es-riwayat .table.xb-orders td {
    font-size: 0.875rem !important;
    font-weight: 500;
    color: #e6edf6 !important;
    background: transparent !important;
}
.xb-page .table.xb-orders tbody tr:last-child td,
.es-dashboard .table.xb-orders tbody tr:last-child td,
.es-riwayat .table.xb-orders tbody tr:last-child td {
    border-bottom: 0 !important;
}
.xb-page .table.xb-orders tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02) !important;
}
/* proporsi kolom (desktop) — mirip Riwayat.png */
.xb-orders .col-inv { width: 18%; }
.xb-orders .col-svc { width: 26%; }
.xb-orders .col-tgt { width: 16%; }
.xb-orders .col-prc { width: 14%; }
.xb-orders .col-st  { width: 12%; }
.xb-orders .col-act { width: 14%; }
/* harga: left-align (bukan kanan jauh) */
.xb-orders .xb-col-num {
    text-align: left !important;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
/* AKSI + tombol Detail: center di kolom (seperti referensi) */
.xb-orders .xb-col-act {
    text-align: center !important;
    white-space: nowrap;
}
.xb-orders th.xb-col-act {
    text-align: center !important;
}
.xb-orders .xb-col-act .xb-btn,
.xb-orders .xb-btn-detail {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 2rem !important;
    height: 2rem !important;
    padding: 0 1.1rem !important;
    border-radius: 999px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: transparent !important;
    color: #e6edf6 !important;
    box-shadow: none !important;
}
.xb-orders .xb-btn-detail:hover {
    border-color: rgba(240, 180, 41, 0.5) !important;
    color: #f0b429 !important;
    background: rgba(240, 180, 41, 0.06) !important;
}
/* Aksi ikon: Detail (mata) + Ulas (bintang) */
.xb-orders .xb-act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    vertical-align: middle;
}
.xb-orders .xb-act-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    padding: 0 !important;
    margin: 0;
    border-radius: 0.55rem !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #c9d4e6 !important;
    box-shadow: none !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: border-color .15s, color .15s, background .15s, transform .12s;
    line-height: 0;
}
.xb-orders .xb-act-btn svg {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}
.xb-orders .xb-act-btn:hover {
    border-color: rgba(240, 180, 41, 0.45) !important;
    color: #f0b429 !important;
    background: rgba(240, 180, 41, 0.1) !important;
    transform: translateY(-1px);
}
.xb-orders .xb-act-btn--review {
    color: #f0b429 !important;
    border-color: rgba(240, 180, 41, 0.28) !important;
    background: rgba(240, 180, 41, 0.08) !important;
}
.xb-orders .xb-act-btn--review:hover {
    background: rgba(240, 180, 41, 0.16) !important;
    border-color: rgba(240, 180, 41, 0.55) !important;
}
.xb-orders .xb-act-btn--done {
    color: #3dd68c !important;
    border-color: rgba(61, 214, 140, 0.28) !important;
    background: rgba(61, 214, 140, 0.08) !important;
    cursor: default;
    pointer-events: none;
}
.xb-orders .xb-act-btn:focus-visible {
    outline: 2px solid rgba(240, 180, 41, 0.55);
    outline-offset: 2px;
}
/* status teks (dashboard, detail modal, invoice) — bukan badge */
.xb-st,
.xb-orders .xb-st {
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.25;
}
.xb-st-wait,
.xb-orders .xb-st-wait { color: #f0b429 !important; }
.xb-st-ok,
.xb-orders .xb-st-ok { color: #3dd68c !important; }
.xb-st-bad,
.xb-orders .xb-st-bad { color: #ff6b6b !important; }
.xb-st-info,
.xb-orders .xb-st-info { color: #60a5fa !important; }
.xb-st-muted { color: #9aa8bc !important; }
/* fallback tabel lain (deposit dll) */
.xb-page .table:not(.xb-orders),
.es-account .table:not(.xb-orders) {
    width: 100%;
    border-collapse: collapse;
    color: var(--bj-text, #e6edf6);
    margin: 0;
}
.xb-page .table:not(.xb-orders) th,
.xb-page .table:not(.xb-orders) td {
    padding: 0.7rem 0.85rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.xb-page .table:not(.xb-orders) th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8b98ab;
    font-weight: 700;
}

/* --- Account side nav --------------------------------------------------- */
.xb-sidenav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: sticky;
    top: calc(var(--bjx-nav-h, 4rem) + 0.75rem);
}
/* form controls on account pages (no bootstrap needed) */
.xb-page .form-control,
.xb-page select.form-control,
.xb-page input.form-control {
    width: 100%;
    min-height: 2.75rem;
    border-radius: 0.65rem;
    border: 1px solid hsl(var(--border) / 0.6);
    background: hsl(var(--background) / 0.55);
    color: hsl(var(--foreground));
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
}
.xb-page .form-control:focus {
    outline: none;
    border-color: hsl(var(--primary) / 0.55);
    box-shadow: 0 0 0 1px hsl(var(--primary) / 0.25);
}
/* custom detail modal (tanpa Bootstrap) */
.bjx-detail-modal .bjx-modal { max-width: 28rem; }
.bjx-detail-modal .bjx-modal-body {
    max-height: min(70vh, 28rem);
    overflow-y: auto;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
}
.bjx-detail-modal .bjx-modal-body table,
.bjx-detail-modal .xb-detail-table {
    width: 100%;
    border-collapse: collapse;
}
.bjx-detail-modal .bjx-modal-body td,
.bjx-detail-modal .bjx-modal-body th,
.bjx-detail-modal .xb-detail-table td,
.bjx-detail-modal .xb-detail-table th {
    padding: 0.55rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
    vertical-align: middle;
}
.bjx-detail-modal .xb-detail-table th {
    width: 38%;
    font-size: 0.78rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
}
.bjx-detail-modal .xb-detail-table td {
    font-size: 0.84rem;
    font-weight: 500;
    color: #e6edf6;
    word-break: break-word;
}
.bjx-detail-modal .xb-detail-table tr:last-child th,
.bjx-detail-modal .xb-detail-table tr:last-child td {
    border-bottom: none;
}
.bjx-detail-modal .bjx-modal-body .table { color: inherit; }
/* Invoice link — underline jelas biar ketahuan bisa dibuka */
.bjx-detail-modal .xb-detail-invoice-link {
    color: #f0b429 !important;
    font-weight: 700;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(240, 180, 41, 0.65);
    transition: color .15s, text-decoration-color .15s;
}
.bjx-detail-modal .xb-detail-invoice-link:hover {
    color: #ffd56a !important;
    text-decoration-color: #ffd56a;
}
.bjx-detail-modal .xb-detail-price {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #f0b429;
}
/* Status pill (Success / Pending / dll) — bukan badge bootstrap polos */
.bjx-detail-modal .xb-detail-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.55rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    border: 1px solid transparent;
    white-space: nowrap;
}
.bjx-detail-modal .xb-detail-pill::before {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
.bjx-detail-modal .xb-detail-pill--ok {
    color: #3dd68c;
    background: rgba(61, 214, 140, 0.12);
    border-color: rgba(61, 214, 140, 0.35);
}
.bjx-detail-modal .xb-detail-pill--wait {
    color: #f0b429;
    background: rgba(240, 180, 41, 0.12);
    border-color: rgba(240, 180, 41, 0.35);
}
.bjx-detail-modal .xb-detail-pill--info {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.35);
}
.bjx-detail-modal .xb-detail-pill--bad {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.35);
}
.bjx-detail-modal .xb-detail-pill--muted {
    color: #9aa8bc;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}
.bjx-detail-modal .xb-detail-invoice-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.85rem;
    min-height: 2.4rem;
    padding: 0.5rem 1rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(240, 180, 41, 0.4);
    background: rgba(240, 180, 41, 0.1);
    color: #f0b429 !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .15s, border-color .15s, color .15s;
}
.bjx-detail-modal .xb-detail-invoice-cta:hover {
    background: rgba(240, 180, 41, 0.18);
    border-color: rgba(240, 180, 41, 0.65);
    color: #ffd56a !important;
}
.xb-sidenav a,
.xb-sidenav button {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 44px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--bj-border, rgba(255, 255, 255, 0.08));
    background: var(--bj-surface, #111d2e);
    color: var(--bj-text, #e6edf6) !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
    width: 100%;
    text-align: left;
    cursor: pointer;
}
.xb-sidenav a:hover,
.xb-sidenav button:hover {
    border-color: var(--bj-accent, #ffd200);
    color: var(--bj-accent, #ffd200) !important;
}
.xb-sidenav a.active {
    background: var(--bj-gradient-2, linear-gradient(135deg, #ffd200, #ff9f1a));
    border-color: transparent;
    color: #1a1400 !important;
}

/* Satu menu akun (semua breakpoint) — ganti double mobile+desktop nav */
.xb-acc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1rem;
    padding: 0.35rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(12, 20, 36, 0.55);
}
.xb-acc-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.4rem 0.95rem;
    border-radius: 0.6rem;
    border: 0;
    background: transparent;
    color: var(--bj-muted, #9aa6b2) !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: color .15s, background .15s;
}
.xb-acc-tabs a:hover {
    color: var(--bj-accent, #f0b429) !important;
    background: rgba(240, 180, 41, 0.08);
}
.xb-acc-tabs a.active {
    background: linear-gradient(135deg, #c98900 0%, #f0b429 48%, #ffe066 100%);
    color: #1a1408 !important;
    box-shadow: 0 4px 14px rgba(240, 180, 41, 0.25);
}
/* legacy classes — hide double nav if still referenced */
.xb-sidenav-mobile,
.xb-sidenav-desktop { display: none !important; }

/* Dashboard akun — hero cantik */
.xb-dash-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(ellipse 90% 120% at 10% 0%, rgba(240, 180, 41, 0.14), transparent 50%),
        radial-gradient(ellipse 70% 100% at 95% 20%, rgba(40, 100, 200, 0.16), transparent 55%),
        linear-gradient(155deg, rgba(22, 34, 58, 0.95), rgba(8, 14, 28, 0.98));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
    padding: 1.15rem 1.15rem 1.05rem;
    margin-bottom: 1rem;
}
.xb-dash-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem 1rem;
}
.xb-dash-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}
.xb-dash-avatar {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(240, 180, 41, 0.45);
    box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.12);
    background: #0b1220;
    flex-shrink: 0;
}
.xb-dash-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #eef3fb;
    line-height: 1.25;
}
.xb-dash-meta {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: var(--bj-muted, #9aa6b2);
}
.xb-dash-role {
    display: inline-flex;
    margin-top: 0.35rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(240, 180, 41, 0.12);
    color: #f0b429;
    border: 1px solid rgba(240, 180, 41, 0.28);
}
.xb-dash-balance {
    min-width: 10.5rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.85rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(240, 180, 41, 0.22);
    text-align: right;
}
.xb-dash-balance-label {
    font-size: 0.72rem;
    color: var(--bj-muted, #9aa6b2);
    margin: 0 0 0.2rem;
}
.xb-dash-balance-value {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f0b429;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.xb-dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.95rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.xb-dash-actions .xb-btn { flex: 1 1 auto; min-width: 6.5rem; }
.xb-dash-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.xb-dash-section-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #eef3fb;
}
.xb-dash-section-head a {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f0b429 !important;
    text-decoration: none !important;
}
.xb-dash-section-head a:hover { text-decoration: underline !important; }
.xb-order-link {
    color: #f0b429 !important;
    font-weight: 600;
    text-decoration: none !important;
}
.xb-order-link:hover { text-decoration: underline !important; }
@media (max-width: 575px) {
    .xb-dash-top { flex-direction: column; }
    .xb-dash-balance { width: 100%; text-align: left; min-width: 0; }
    .xb-dash-actions .xb-btn { flex: 1 1 calc(50% - 0.3rem); }
}

/* --- Key/value rows (invoice style) ------------------------------------- */
.xb-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.xb-row:last-child {
    border-bottom: 0;
}
.xb-label {
    color: var(--bj-muted, #9aa6b2);
    font-size: 0.85rem;
}
.xb-value {
    font-weight: 700;
    text-align: right;
    word-break: break-word;
}

/* --- Profile / dashboard header row ------------------------------------- */
.xb-profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.xb-profile-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}
.xb-avatar {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(255, 210, 0, 0.45);
    background: var(--bj-surface-2, #16233a);
}
.xb-muted {
    color: var(--bj-muted, #9aa6b2) !important;
}
.xb-gold {
    color: var(--bj-accent, #ffd200) !important;
}
.xb-gradient-text {
    background: linear-gradient(135deg, #ffd200, #ff9f1a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* --- Modal polish ------------------------------------------------------- */
.xb-page .modal-content,
.es-dashboard .modal-content {
    background: var(--bj-surface, #111d2e) !important;
    border: 1px solid var(--bj-border, rgba(255, 255, 255, 0.08)) !important;
    color: var(--bj-text, #e6edf6) !important;
    border-radius: 16px !important;
}
.xb-page .modal-header,
.es-dashboard .modal-header {
    border-bottom-color: var(--bj-border, rgba(255, 255, 255, 0.08)) !important;
}
.xb-page .btn-close,
.es-dashboard .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: 0.7;
}

/* --- Forms on account pages --------------------------------------------- */
.xb-page .form-control,
.es-account .form-control,
.es-account select.form-control {
    background: var(--bj-bg, #0b0f14) !important;
    border: 1px solid var(--bj-border, rgba(255, 255, 255, 0.08)) !important;
    color: var(--bj-text, #e6edf6) !important;
    border-radius: 12px !important;
    min-height: 44px;
}
.xb-page .form-control:focus,
.es-account .form-control:focus {
    border-color: var(--bj-accent, #ffd200) !important;
    box-shadow: 0 0 0 3px var(--bj-accent-glow, rgba(255, 210, 0, 0.15)) !important;
}
.xb-page .col-form-label,
.es-account .col-form-label {
    color: var(--bj-muted, #9aa6b2) !important;
}

/* Kill conflicting indigo/slate overrides if a page sets them */
.es-dashboard,
.es-account,
.xb-page {
    --primary: var(--bj-accent, #ffd200);
    --primary-dark: #e6b800;
    --text: var(--bj-text, #e6edf6);
    --text-secondary: var(--bj-muted, #9aa6b2);
    --card: var(--bj-surface, #111d2e);
    --border: var(--bj-border, rgba(255, 255, 255, 0.08));
}

/* Dashboard cards legacy class */
.es-dashboard .dashboard-card {
    background: var(--bj-surface, #111d2e) !important;
    border: 1px solid var(--bj-border, rgba(255, 255, 255, 0.08)) !important;
    border-radius: 16px !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    color: var(--bj-text, #e6edf6);
}

/* Deposit legacy card surfaces */
.es-account .css-6qw8qz,
.es-account .css-6qw8qzz {
    background: var(--bj-surface, #111d2e) !important;
    border: 1px solid var(--bj-border, rgba(255, 255, 255, 0.08)) !important;
    border-radius: 16px !important;
}
.es-account .css-138rpjnn {
    background: var(--bj-surface, #111d2e) !important;
    border: 1px solid var(--bj-border, rgba(255, 255, 255, 0.08)) !important;
    color: var(--bj-text, #e6edf6) !important;
}
.es-account .css-138rpjn {
    background: var(--bj-gradient-2, linear-gradient(135deg, #ffd200, #ff9f1a)) !important;
    color: #1a1400 !important;
    border: none !important;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 767px) {
    .xb-hero {
        padding: 1rem;
        border-radius: 14px;
    }
    .xb-card {
        padding: 1rem;
        border-radius: 14px;
    }
    .xb-profile-row {
        flex-direction: column;
        align-items: stretch;
    }
    .xb-profile-row .xb-actions,
    .xb-profile-row .xb-btn,
    .xb-profile-row .btn-primary {
        width: 100%;
    }
    .xb-orders .col-inv { width: 22%; }
    .xb-orders .col-svc { width: 28%; }
    .xb-orders .col-tgt { width: 0; }
    .xb-orders .col-prc { width: 18%; }
    .xb-orders .col-st  { width: 16%; }
    .xb-orders .col-act { width: 16%; }
    .xb-page .table.xb-orders th,
    .xb-page .table.xb-orders td {
        padding: 0.7rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    .xb-page .table.xb-orders th {
        font-size: 0.65rem !important;
    }
    .es-dashboard .dashboard-card {
        padding: 1rem !important;
    }
}

@media (max-width: 420px) {
    .xb-actions {
        flex-direction: column;
    }
    .xb-actions .xb-btn,
    .xb-actions .btn-primary {
        width: 100%;
    }
}
