/* ==========================================================================
   HOMEBIMBA — Design System
   --------------------------------------------------------------------------
   Sumber kebenaran warna: "Owlyte — Brand Color System & Governance".
   Aturan yang dihormati di stylesheet ini:
     · Core identity  : Deep Crimson Red   #B80F0A  (30% permukaan inti)
     · Program accent : Playful Coral Red  #F74040  (10% badge / CTA / aksen)
     · Neutral 60%    : #FFFFFF, #F8FAFC, #F1F5F9
     · Dark surfaces  : Academic Navy #1B3B6F, Slate Steel Gray #334155
     · Teks di atas warna gelap WAJIB putih / kuning #FCE344 — tidak pernah hitam.
     · Kode warna resmi TIDAK pernah dirombak (tanpa opacity/saturasi/terang).
       Karena itu semua "soft tint" memakai ramp netral, bukan warna brand transparan.
   ========================================================================== */

:root {
    /* ── Brand tokens ── */
    --hb-core: #B80F0A;      /* Owlyte — Deep Crimson Red */
    --hb-accent: #F74040;    /* Homebimba — Playful Coral Red */
    --hb-navy: #1B3B6F;      /* Owlyte Academy — Academic Navy */
    --hb-slate: #334155;     /* R&D — Slate Steel Gray */
    --hb-gold: #D97706;      /* Hometta — Warm Amber Gold */
    --hb-emerald: #0D7A5F;   /* Homeiqra — Islamic Emerald */
    --hb-purple: #581C87;    /* Owlyte Labs — Deep Innovation Purple */
    --hb-indigo: #3730A3;    /* Owkelas — Electric Sapphire */
    --hb-plum: #701A75;      /* Owl Parliament — Royal Plum */
    --hb-on-dark: #FFFFFF;   /* satu-satunya warna teks pada permukaan gelap */
    --hb-highlight: #FCE344; /* kuning highlight yang diizinkan brand */

    /* ── Netral 60% + ramp pendukung ── */
    --hb-white: #FFFFFF;
    --hb-offwhite: #F8FAFC;
    --hb-gray: #F1F5F9;
    --oc-text: #1E293B;
    --oc-text-muted: #64748B;
    --oc-border: #E2E8F0;
    --oc-border-strong: #CBD5E1;

    /* ── Alias yang dipertahankan agar halaman lama tetap jalan ── */
    --oc-primary: var(--hb-core);
    --oc-primary-dark: var(--hb-core);
    --oc-primary-light: var(--hb-accent);
    --oc-primary-soft: var(--hb-gray);
    --oc-accent: var(--hb-accent);
    --oc-surface: var(--hb-offwhite);
    --oc-bg: var(--hb-gray);
    --oc-sidebar: var(--hb-white);
    --oc-radius: 14px;
    --oc-radius-sm: 10px;
    --oc-radius-lg: 18px;
    --oc-gradient: linear-gradient(135deg, var(--hb-core), var(--hb-navy));
    --oc-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --oc-shadow: 0 4px 16px rgba(15, 23, 42, .07);
    --oc-shadow-lg: 0 16px 40px rgba(15, 23, 42, .12);
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }
* { font-variant-ligatures: none; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--oc-surface);
    color: var(--oc-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: .95rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { transition: color .15s ease; }
img { max-width: 100%; }

:focus-visible {
    outline: 2px solid var(--oc-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.app-shell { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.app-sidebar {
    width: 264px; flex-shrink: 0; display: flex; flex-direction: column;
    background: var(--oc-sidebar); border-right: 1px solid var(--oc-border);
}
.app-sidebar .sidebar-header {
    position: relative; padding: 1.05rem 1.15rem; border-bottom: 1px solid var(--oc-border);
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.app-sidebar .sidebar-header .btn-close { position: absolute; top: .9rem; right: .9rem; }
.app-sidebar .sidebar-brand {
    display: flex; flex-direction: row; align-items: center; gap: .6rem;
    font-weight: 800; letter-spacing: -.01em; color: var(--oc-text); text-decoration: none;
    overflow: hidden; min-width: 0;
}
.app-sidebar .sidebar-brand .brand-mark {
    width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center;
    border-radius: var(--oc-radius-sm); background: var(--oc-gradient); color: var(--hb-on-dark);
    font-size: 1.05rem;
}
.app-sidebar .sidebar-brand .brand-mark--logo {
    width: auto; height: auto; max-width: 172px; max-height: 34px; min-width: 0;
    background: none; color: initial; font-size: initial; border-radius: 0; object-fit: contain;
}
.app-sidebar .sidebar-scroll { flex: 1; overflow-y: auto; padding-bottom: 1.5rem; }

.app-sidebar .sidebar-section {
    display: flex; align-items: center; gap: .4rem; width: 100%;
    margin: 0; padding: 1.15rem 1.25rem .3rem;
    font-size: .66rem; font-weight: 700; letter-spacing: .11em;
    text-transform: uppercase; color: var(--oc-text-muted);
}
.app-sidebar .sidebar-toggle {
    border: 0; background: none; font: inherit; cursor: pointer;
    user-select: none; text-align: left;
}
.app-sidebar .sidebar-toggle:hover { color: var(--oc-primary); }
.app-sidebar .sidebar-toggle .chevron {
    margin-left: auto; font-size: .66rem; transition: transform .15s ease;
}
.app-sidebar .sidebar-toggle[aria-expanded="false"] .chevron { transform: rotate(-90deg); }

.app-sidebar .sidebar-link {
    position: relative; display: flex; align-items: center; gap: .7rem;
    padding: .62rem 1.15rem; margin: .04rem .55rem;
    color: var(--oc-text); text-decoration: none;
    font-size: .9rem; font-weight: 500;
    border-radius: var(--oc-radius-sm);
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.app-sidebar .sidebar-link:hover { background: var(--oc-bg); }
.app-sidebar .sidebar-link i { font-size: 1.05rem; color: var(--oc-text-muted); transition: color .15s ease; }
.app-sidebar .sidebar-link:hover i { color: var(--oc-primary); }
.app-sidebar .sidebar-link.active {
    background: var(--oc-primary); color: var(--hb-on-dark); font-weight: 600;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .16);
}
.app-sidebar .sidebar-link.active i { color: var(--hb-on-dark); }
.app-sidebar .sidebar-link.is-locked { opacity: .45; pointer-events: none; }
.app-sidebar .is-locked-group { opacity: .45; }
.app-sidebar .sidebar-link .badge { margin-left: auto; }

@media (min-width: 992px) {
    .app-sidebar.offcanvas-lg {
        position: sticky; top: 0; height: 100vh; transform: none;
        visibility: visible; background: var(--oc-sidebar);
        border-right: 1px solid var(--oc-border); width: 264px;
    }
}

/* ── Main column ── */
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.app-navbar {
    position: sticky; top: 0; z-index: 1020;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--oc-border);
}
/* Pita identitas 3px: hanya dua kode resmi, batas keras tanpa blending. */
.app-navbar::before {
    content: ''; display: block; height: 3px;
    background: linear-gradient(90deg, var(--hb-core) 0 62%, var(--hb-accent) 62% 100%);
}

.app-content {
    flex: 1; width: 100%; padding: 1.75rem 1.75rem 2.75rem;
}
/* Batasi lebar baca di monitor lebar tanpa merusak grid Bootstrap. */
.app-content > * { max-width: 1440px; margin-left: auto; margin-right: auto; }
@media (max-width: 1199.98px) { .app-content { padding: 1.5rem 1.25rem 2.25rem; } }
@media (max-width: 575.98px)  { .app-content { padding: 1.1rem .9rem 6rem; } }

.app-footer {
    padding: 1.15rem 1.75rem; background: var(--hb-slate); color: var(--hb-on-dark);
    font-size: .82rem;
}
.app-footer a { color: var(--hb-on-dark); text-decoration: none; }
.app-footer a:hover { color: var(--hb-highlight); }
.app-footer .text-muted { color: rgba(255, 255, 255, .7) !important; }
@media (max-width: 575.98px) { .app-footer { padding: 1rem 1.1rem; } }

/* ── Page header ── */
.oc-page-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    flex-wrap: wrap; gap: .75rem 1rem; margin-bottom: 1.5rem;
}
.oc-page-head .oc-page-title { margin: 0; }
.oc-page-subtitle { margin: .25rem 0 0; font-size: .88rem; color: var(--oc-text-muted); line-height: 1.4; }

.oc-page-title {
    font-size: 1.5rem; font-weight: 800; letter-spacing: -.025em;
    line-height: 1.2; color: var(--oc-text);
}
.oc-section-title {
    display: flex; align-items: center; gap: .55rem;
    margin: 0 0 1rem; font-size: 1.05rem; font-weight: 700; letter-spacing: -.015em;
    color: var(--oc-text); line-height: 1.3;
}
.oc-section-title::before {
    content: ''; width: 4px; height: 1.1em; border-radius: 999px;
    background: var(--hb-accent); flex-shrink: 0;
}
.oc-section-title .oc-section-meta { margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--oc-text-muted); }

/* ── Cards ── */
.oc-card {
    background: var(--hb-white); border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius); overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.oc-card:hover { box-shadow: var(--oc-shadow); border-color: var(--oc-border-strong); }
/* Di lebar tablet tabel bisa melebihi lebar kartu: biarkan kartu yang
   menggulir horizontal, bukan memotong kolomnya. (Di ponsel tabel diganti
   menjadi kartu .oc-mobile-card.) */
@media (min-width: 768px) and (max-width: 1199.98px) { .oc-card { overflow-x: auto; } }

/* ── Tables ── */
.oc-table {
    --bs-table-bg: transparent; --bs-table-border-color: transparent;
    border-collapse: separate; border-spacing: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.oc-table thead th {
    font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: none;
    color: var(--oc-text); background: var(--oc-bg); white-space: nowrap;
    padding: .9rem 1.1rem; border-bottom: 2px solid var(--oc-border-strong);
}
.oc-table thead th:first-child { border-top-left-radius: var(--oc-radius); }
.oc-table thead th:last-child { border-top-right-radius: var(--oc-radius); }
.oc-table tbody td {
    vertical-align: middle; padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--oc-border);
    font-size: .9rem; line-height: 1.5; color: var(--oc-text);
}
.oc-table tbody tr:last-child td { border-bottom: 0; }
.oc-table tbody tr:hover { background: var(--hb-offwhite); }
.oc-table tbody tr:hover td { color: var(--oc-text); }
.oc-table code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: .85rem; font-weight: 500; letter-spacing: -.01em;
    background: var(--hb-offwhite); padding: .25rem .5rem;
    border-radius: 6px; border: 1px solid var(--oc-border);
}
.oc-table .text-primary {
    font-weight: 600; color: var(--hb-core) !important;
}

/* ── Stats ── */
.oc-stat {
    height: 100%; padding: 1.2rem 1.25rem;
    background: var(--hb-white); border: 1px solid var(--oc-border);
    border-left: 3px solid var(--oc-primary); border-radius: var(--oc-radius);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.oc-stat .stat-label {
    font-size: .74rem; font-weight: 600; color: var(--oc-text-muted);
    text-transform: uppercase; letter-spacing: .05em;
}
.oc-stat .stat-value {
    font-size: 1.85rem; font-weight: 800; line-height: 1.15;
    letter-spacing: -.025em; color: var(--oc-text);
}
.oc-stat-clickable { cursor: pointer; }
.oc-stat-clickable:hover {
    transform: translateY(-3px); box-shadow: var(--oc-shadow-lg);
    border-color: var(--oc-border-strong); border-left-width: 4px;
}

.oc-stat-accent {
    height: 100%; padding: 1.1rem 1.15rem; border: 0; border-radius: var(--oc-radius);
    background: var(--oc-gradient); color: var(--hb-on-dark);
    box-shadow: 0 8px 22px rgba(27, 59, 111, .22);
}
.oc-stat-accent .stat-label { color: rgba(255, 255, 255, .85); }
.oc-stat-accent .stat-value { color: var(--hb-on-dark); font-size: 1.5rem; }

/* ── Dashboard keuangan (KPI, grafik, laporan) ── */
.oc-kpi { display: flex; flex-direction: column; gap: .55rem; }
.oc-kpi .oc-kpi-icon {
    flex: none; width: 36px; height: 36px; display: grid; place-items: center;
    border-radius: var(--oc-radius-sm); color: var(--hb-on-dark); font-size: 1.05rem;
}
.oc-kpi .stat-value { font-size: 1.6rem; }
.stat-delta { display: flex; align-items: center; gap: .25rem; font-size: .78rem; font-weight: 700; }
.stat-delta.is-up { color: #0D7A5F; }
.stat-delta.is-down { color: #B91C1C; }
.stat-delta .stat-delta-note,
.oc-kpi .stat-delta-note {
    margin-left: auto; font-weight: 500; font-size: .74rem; color: var(--oc-text-muted);
}

.legend-item { display: inline-flex; align-items: center; gap: .35rem; color: var(--oc-text-muted); }
.legend-dot { flex: none; width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* Daftar ringkas dengan bar proporsional (metode bayar, member teratas) */
.oc-breakdown li { padding: .65rem 0; border-bottom: 1px solid var(--hb-offwhite); }
.oc-breakdown li:first-child { padding-top: 0; }
.oc-breakdown li:last-child { padding-bottom: 0; border-bottom: 0; }
.oc-breakdown .bd-label { font-size: .88rem; font-weight: 600; color: var(--oc-text); }
.oc-breakdown .bd-value { flex: none; font-size: .88rem; font-weight: 700; color: var(--oc-text); }
.oc-breakdown .bd-note { font-size: .74rem; color: var(--oc-text-muted); margin-top: .2rem; }
.oc-meter {
    height: 6px; margin-top: .35rem; overflow: hidden;
    background: var(--hb-offwhite); border-radius: 999px;
}
.oc-meter > span { display: block; height: 100%; border-radius: 999px; transition: width .5s ease; }
.oc-rank {
    display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: .5rem;
    border-radius: 6px; background: var(--hb-offwhite);
    font-size: .7rem; font-weight: 800; color: var(--oc-text-muted);
}

/* ── Bukti transfer ── */
.oc-proof-grid {
    display: grid; gap: 1rem; padding: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.proof-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--hb-white); border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius);
    transition: box-shadow .2s ease, border-color .2s ease;
}
.proof-card:hover { box-shadow: var(--oc-shadow); border-color: var(--oc-border-strong); }
.proof-thumb {
    position: relative; aspect-ratio: 16 / 9; overflow: hidden;
    display: grid; place-items: center;
    background: var(--hb-offwhite); border-bottom: 1px solid var(--oc-border);
}
.proof-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.proof-thumb-icon { font-size: 2.4rem; color: #B91C1C; }
.proof-thumb-badge {
    position: absolute; top: .5rem; left: .5rem; padding: .12rem .4rem;
    border-radius: 5px; background: #B91C1C; color: var(--hb-on-dark);
    font-size: .62rem; font-weight: 800; letter-spacing: .06em;
}
.proof-body { display: flex; flex-direction: column; flex: 1; padding: .85rem .9rem .9rem; }
.proof-title { margin: 0; font-size: .9rem; font-weight: 700; }
.proof-member { margin: 0 0 .35rem; font-size: .76rem; color: var(--oc-text-muted); }
.proof-amount { flex: none; font-size: .88rem; font-weight: 800; color: #B80F0A; white-space: nowrap; }
.proof-meta { margin: 0 0 .6rem; font-size: .74rem; color: var(--oc-text-muted); }
.proof-form { margin-top: auto; }

/* ── Filter laporan ── */
.oc-filter-bar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: .6rem;
    padding: .7rem .85rem;
    background: var(--hb-white); border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius);
}
.oc-filter-search { max-width: 22rem; }

/* Cetak laporan: sisakan angka dan grafik, buang kontrol interaktif. */
@media print {
    .no-print,
    .app-sidebar, .app-topnav, .app-bottomnav, .oc-mobile-card,
    .pagination, .oc-filter-bar, .wa-float, .btn { display: none !important; }
    .app-main { margin: 0 !important; padding: 0 !important; }
    .oc-card, .oc-stat, .proof-card { break-inside: avoid; box-shadow: none; }
    .oc-table thead th { background: #F1F5F9 !important; }
    .oc-proof-grid { grid-template-columns: repeat(2, 1fr); }
    body { background: #FFFFFF; }
}

/* ── Hero / welcome ── */
.oc-welcome {
    position: relative; overflow: hidden;
    padding: 1.6rem 2rem; margin-bottom: 1.5rem;
    background: var(--oc-gradient); border-radius: var(--oc-radius-lg);
    color: var(--hb-on-dark);
}
.oc-welcome::after {
    content: ''; position: absolute; right: -70px; top: -95px;
    width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .10);
}
.oc-welcome > * { position: relative; z-index: 1; }
.oc-welcome h1 { margin: 0 0 .25rem; font-size: 1.4rem; font-weight: 800; letter-spacing: -.025em; color: #FFFFFF !important; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.oc-welcome p  { margin: 0; color: rgba(255, 255, 255, .88); font-size: .92rem; }
.oc-welcome .welcome-kicker {
    display: inline-flex; align-items: center; gap: .4rem;
    margin-bottom: .7rem; padding: .22rem .7rem;
    background: var(--hb-accent); color: var(--hb-on-dark);
    border-radius: 999px; font-size: .7rem; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase;
}
.oc-welcome .welcome-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.oc-welcome .btn-ghost-light {
    color: var(--hb-on-dark); border: 1px solid rgba(255, 255, 255, .55);
    font-weight: 600; border-radius: var(--oc-radius-sm);
}
.oc-welcome .btn-ghost-light:hover { background: rgba(255, 255, 255, .14); color: var(--hb-on-dark); border-color: var(--hb-on-dark); }

/* ── Action card ── */
.oc-action-card {
    display: flex; align-items: center; gap: .85rem; height: 100%; padding: 1rem;
    background: var(--hb-white); border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius); color: var(--oc-text); text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.oc-action-card:hover {
    border-color: var(--oc-primary); transform: translateY(-2px);
    box-shadow: var(--oc-shadow); color: var(--oc-text);
}
.oc-action-card .action-icon {
    width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center;
    border-radius: var(--oc-radius-sm); background: var(--oc-bg);
    font-size: 1.15rem; transition: background-color .18s ease, color .18s ease;
}
.oc-action-card:hover .action-icon { background: var(--oc-primary); color: var(--hb-on-dark); }
.oc-action-card .action-text { font-weight: 600; font-size: .9rem; }
.oc-action-card .action-desc { margin-top: .1rem; font-size: .78rem; color: var(--oc-text-muted); }

/* ── Menu card (grid pintasan member) ── */
.oc-menu-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: .45rem; height: 100%; padding: 1.35rem 1rem;
    background: var(--hb-white); border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius); color: var(--oc-text); text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.oc-menu-card:hover {
    transform: translateY(-3px); border-color: var(--oc-primary);
    box-shadow: var(--oc-shadow); color: var(--oc-text);
}
.oc-menu-card .mc-icon {
    width: 48px; height: 48px; display: grid; place-items: center;
    border-radius: var(--oc-radius); background: var(--oc-bg);
    font-size: 1.35rem; transition: background-color .18s ease, color .18s ease;
}
.oc-menu-card:hover .mc-icon { background: var(--oc-primary); color: var(--hb-on-dark); }
.oc-menu-card .mc-label { font-weight: 700; font-size: .9rem; }
.oc-menu-card .mc-desc { font-size: .73rem; line-height: 1.35; color: var(--oc-text-muted); }

/* ── Guide strip ── */
.oc-guide {
    display: flex; align-items: flex-start; gap: .95rem; margin-bottom: 1.5rem;
    padding: 1.1rem 1.25rem; background: var(--oc-bg);
    border: 1px solid var(--oc-border); border-left: 3px solid var(--hb-accent);
    border-radius: var(--oc-radius);
}
.oc-guide .guide-icon {
    width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center;
    border-radius: var(--oc-radius-sm); background: var(--hb-accent);
    color: var(--hb-on-dark); font-size: 1.25rem;
}
.oc-guide .guide-title { margin-bottom: .15rem; font-size: 1rem; font-weight: 800; color: var(--oc-text); }
.oc-guide .guide-text { font-size: .87rem; color: var(--oc-text-muted); }

/* ── Empty state ── */
.oc-empty {
    padding: 2.5rem 1.5rem; text-align: center;
    background: var(--hb-white); border: 1px dashed var(--oc-border-strong);
    border-radius: var(--oc-radius);
}
.oc-empty .empty-icon {
    width: 56px; height: 56px; margin: 0 auto .9rem; display: grid; place-items: center;
    border-radius: var(--oc-radius); background: var(--oc-bg);
    color: var(--oc-text-muted); font-size: 1.5rem;
}
.oc-empty .empty-title { margin-bottom: .2rem; font-weight: 700; font-size: .98rem; }
.oc-empty .empty-text { margin: 0; font-size: .85rem; color: var(--oc-text-muted); }

/* ── Video ── */
.oc-video-frame {
    position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
    background: #000; border: 1px solid var(--oc-border); border-radius: var(--oc-radius);
}
.oc-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Bottom navigation (mobile) ── */
.app-bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: none;
    padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--oc-border);
}
.app-bottomnav .bnb-item {
    position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: .18rem;
    padding: .5rem .2rem; color: var(--oc-text-muted); text-decoration: none;
    font-size: .76rem; font-weight: 600; border-radius: var(--oc-radius-sm);
    transition: color .15s ease;
}
.app-bottomnav .bnb-item i { font-size: 1.3rem; line-height: 1; }
.app-bottomnav .bnb-item.active { color: var(--oc-primary); }
.app-bottomnav .bnb-item.active::before {
    content: ''; position: absolute; top: .1rem; width: 22px; height: 3px;
    border-radius: 999px; background: var(--hb-accent);
}
.app-bottomnav .bnb-item.bnb-locked { opacity: .4; }
@media (max-width: 991.98px) {
    .app-bottomnav { display: flex; }
    body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ── Mobile card (pengganti tabel di ponsel) ── */
.oc-mobile-card {
    margin-bottom: .85rem; padding: 1.15rem 1.1rem;
    background: var(--hb-white); border: 1px solid var(--oc-border); border-radius: var(--oc-radius);
    transition: box-shadow .18s ease, border-color .18s ease;
}
.oc-mobile-card:hover {
    box-shadow: var(--oc-shadow); border-color: var(--oc-border-strong);
}
.oc-mobile-card .mc-title {
    font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--oc-text);
}
.oc-mobile-card .mc-sub {
    font-size: .87rem; color: var(--oc-text-muted); margin-top: .25rem;
}
.oc-mobile-card .mc-meta {
    font-size: .82rem; color: var(--oc-text-muted); margin-top: .5rem;
    padding-top: .5rem; border-top: 1px solid var(--hb-offwhite);
}
.oc-mobile-card .mc-actions { margin-top: .85rem; }
.oc-mobile-card code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: .82rem; font-weight: 500; letter-spacing: -.01em;
    background: var(--hb-offwhite); padding: .2rem .45rem;
    border-radius: 5px; border: 1px solid var(--oc-border);
}

/* ── Bootstrap overrides ── */
.btn {
    border-radius: var(--oc-radius-sm); font-weight: 600; font-size: .9rem;
    padding: .6rem 1.1rem; transition: all .16s ease; line-height: 1.4;
}

.btn-primary {
    background: var(--oc-primary); border-color: var(--oc-primary); color: var(--hb-on-dark);
}
.btn-primary:hover, .btn-primary:focus,
.btn-primary:active, .btn-primary.show {
    background: var(--oc-primary); border-color: var(--oc-primary); color: var(--hb-on-dark);
}
.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15, 23, 42, .2);
}
.btn-primary:active { transform: none; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .2); }
.btn-primary:disabled { background: var(--oc-primary); border-color: var(--oc-primary); opacity: .65; }

.btn-outline-primary {
    color: var(--oc-primary); border-color: var(--oc-primary); font-weight: 600;
    padding: .55rem 1rem;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background: var(--oc-primary); border-color: var(--oc-primary); color: var(--hb-on-dark);
}

/* WhatsApp button - using official WhatsApp green */
.btn-success {
    background: #25D366; border-color: #25D366; color: #fff;
}
.btn-success:hover, .btn-success:focus, .btn-success:active {
    background: #20BD5A; border-color: #20BD5A; color: #fff;
    transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37, 211, 102, .35);
}
.btn-success:active { transform: none; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .2); }

.btn-sm {
    font-size: .85rem; padding: .45rem .85rem;
}

/* ── Typography improvements ── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700; letter-spacing: -.02em; color: var(--oc-text);
}
h1 { font-size: 1.75rem; line-height: 1.2; }
h2 { font-size: 1.5rem; line-height: 1.3; }
h3 { font-size: 1.25rem; line-height: 1.35; }
h4 { font-size: 1.1rem; line-height: 1.4; }
h5 { font-size: 1rem; line-height: 1.45; }
h6 { font-size: .9rem; line-height: 1.5; }

strong, b { font-weight: 600; }

code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: .85em; font-weight: 500; letter-spacing: -.01em;
    background: var(--hb-offwhite); padding: .2em .4em;
    border-radius: 4px; border: 1px solid var(--oc-border);
}

/* ── Table row animations ── */
.oc-table tbody tr {
    transition: background-color .15s ease;
}
.oc-table tbody td {
    transition: color .15s ease;
}

/* Aksen program Homebimba — untuk CTA sekunder / badge. */
.btn-brand { background: var(--hb-accent); border: 1px solid var(--hb-accent); color: var(--hb-on-dark); }
.btn-brand:hover, .btn-brand:focus, .btn-brand:active {
    background: var(--hb-accent); border-color: var(--hb-accent); color: var(--hb-on-dark);
    transform: translateY(-1px); box-shadow: 0 8px 20px rgba(247, 64, 64, .35);
}
.btn-outline-brand { color: var(--hb-accent); border: 1px solid var(--hb-accent); font-weight: 600; }
.btn-outline-brand:hover, .btn-outline-brand:focus {
    background: var(--hb-accent); border-color: var(--hb-accent); color: var(--hb-on-dark);
}

.form-control, .form-select {
    border-color: var(--oc-border); border-radius: var(--oc-radius-sm);
    font-size: .93rem; padding: .65rem .9rem; color: var(--oc-text);
    line-height: 1.5;
}
.form-control:focus, .form-select:focus {
    border-color: var(--oc-primary); box-shadow: 0 0 0 3px rgba(30, 41, 59, .1);
}
.form-control::placeholder { color: #94A3B8; }
.form-label {
    font-size: .84rem; font-weight: 600; color: var(--oc-text);
    margin-bottom: .4rem; display: block;
}
.input-group-text { border-color: var(--oc-border); color: var(--oc-text-muted); }
.form-check-input:checked { background-color: var(--oc-primary); border-color: var(--oc-primary); }

.badge { border-radius: 999px; padding: .34em .68em; font-size: .7rem; font-weight: 700; }
.badge-soft { background: var(--oc-bg); color: var(--oc-text); }
.badge-brand { background: var(--hb-accent); color: var(--hb-on-dark); }

.pagination {
    --bs-pagination-color: var(--oc-text); --bs-pagination-hover-color: var(--oc-primary);
    --bs-pagination-active-bg: var(--oc-primary); --bs-pagination-active-border-color: var(--oc-primary);
    --bs-pagination-border-radius: var(--oc-radius-sm);
}
.page-link:focus { box-shadow: 0 0 0 3px rgba(30, 41, 59, .1); }

.dropdown { position: relative; z-index: 9999; }
.dropdown-menu { border-radius: var(--oc-radius); border-color: var(--oc-border); box-shadow: var(--oc-shadow-lg); padding: .35rem; }
.dropdown-item { border-radius: var(--oc-radius-sm); font-size: .9rem; padding: .5rem .75rem; }
.dropdown-item:active { background: var(--oc-primary); }
.dropdown-header { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--oc-text-muted); }

.alert { border-radius: var(--oc-radius-sm); font-size: .875rem; }
.alert-success { border-left: 4px solid #15803D; }
.alert-danger  { border-left: 4px solid #B91C1C; }
.alert-warning { border-left: 4px solid #B45309; }
.alert-info    { border-left: 4px solid var(--oc-primary); }

.card { border-color: var(--oc-border); border-radius: var(--oc-radius); }
.modal-content { border: 0; border-radius: var(--oc-radius-lg); box-shadow: var(--oc-shadow-lg); }
.offcanvas-header, .offcanvas-footer { border-color: var(--oc-border); }
.offcanvas-lg { border-right: 1px solid var(--oc-border) !important; }

.text-muted { color: var(--oc-text-muted) !important; }
.min-w-0 { min-width: 0; }

/* ── Split-screen auth (login + daftar) ── */
.auth-split { display: flex; min-height: 100vh; }
.auth-split__form {
    flex: 0 0 46%; max-width: 46%;
    display: flex; align-items: center; justify-content: center;
    padding: 3rem 2rem; background: var(--hb-white);
}
.auth-split__inner { width: 100%; max-width: 420px; }

.auth-split__hero { position: relative; flex: 1; overflow: hidden; }
.auth-hero__bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: .22;
}
.auth-hero__scrim { position: absolute; inset: 0; }
.auth-hero__inner {
    position: relative; height: 100%; display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center;
    padding: 3rem; color: var(--hb-on-dark);
}
.auth-hero__eyebrow {
    display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1rem;
    padding: .28rem .8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4);
    font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.auth-hero__title {
    margin: 0 0 .75rem; max-width: 460px;
    font-size: 2.1rem; font-weight: 800; line-height: 1.2; letter-spacing: -.03em;
}
.auth-hero__lead {
    margin: 0; max-width: 440px; font-size: 1rem; line-height: 1.65;
    color: rgba(255, 255, 255, .88);
}
.auth-hero__perks { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .75rem; }
.auth-hero__perks li { display: flex; align-items: center; gap: .7rem; font-size: .9rem; font-weight: 500; }
.auth-hero__perks i {
    width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center;
    border-radius: 8px; background: var(--hb-accent); color: var(--hb-on-dark); font-size: .85rem;
}
.auth-hero__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.auth-hero__byline {
    margin-top: auto; padding-top: 2.5rem;
    display: flex; align-items: center; gap: .55rem;
    font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .75);
}
.auth-hero__byline img { max-height: 20px; width: auto; filter: brightness(0) invert(1); }

.auth-kicker {
    display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .7rem;
    padding: .22rem .7rem; border-radius: 999px;
    background: var(--hb-accent); color: var(--hb-on-dark);
    font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.auth-split__form h1 {
    margin: 0 0 .35rem; font-size: 1.65rem; font-weight: 800;
    letter-spacing: -.03em; color: var(--oc-text);
}
.auth-split__form .lead { margin: 0; font-size: .92rem; color: var(--oc-text-muted); }
.auth-split__brand { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 2rem; }
.auth-split__brand img { max-width: 210px; max-height: 46px; object-fit: contain; }
.auth-split__brand .mark {
    width: 46px; height: 46px; display: grid; place-items: center;
    border-radius: 12px; background: var(--hb-core); color: var(--hb-on-dark); font-size: 1.25rem;
}
.auth-split__brand .mark img { width: 100%; height: 100%; object-fit: contain; }
.auth-split__foot {
    margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--oc-border);
    text-align: center; font-size: .88rem; color: var(--oc-text-muted);
}
.auth-split__foot a { font-weight: 700; color: var(--oc-primary); text-decoration: none; }
.auth-split__foot a:hover { text-decoration: underline; }
.auth-split__byline {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    margin-top: 1.25rem; font-size: .76rem; color: var(--oc-text-muted);
}
.auth-split__byline img { max-height: 16px; width: auto; }

@media (max-width: 991.98px) {
    .auth-split__hero { display: none; }
    .auth-split__form { flex: 1 1 100%; max-width: 100%; padding: 2.5rem 1.5rem; }
}

/* ── Palet brand di halaman admin branding ── */
.brand-swatch {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .3rem .6rem; border: 1px solid var(--oc-border); border-radius: 999px;
    background: var(--hb-white); font: inherit; font-size: .76rem; font-weight: 600;
    color: var(--oc-text); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.brand-swatch:hover { border-color: var(--oc-primary); box-shadow: 0 0 0 3px rgba(30, 41, 59, .1); }
.brand-swatch .swatch-dot {
    width: 14px; height: 14px; border-radius: 4px; background: var(--swatch);
    border: 1px solid rgba(15, 23, 42, .12);
}
.brand-swatch .swatch-name { white-space: nowrap; }

/* Ikon di dalam input (form daftar) */
.input-icon-wrap { position: relative; display: flex; align-items: stretch; min-width: 0; }
.input-icon-wrap .form-control { min-width: 0; flex: 1 1 auto; }
.input-icon {
    display: flex; align-items: center; justify-content: center; width: 44px; flex-shrink: 0;
    background: var(--hb-gray); border: 1px solid var(--oc-border); border-right: 0;
    border-radius: var(--oc-radius-sm) 0 0 var(--oc-radius-sm);
    color: var(--oc-text-muted); font-size: 1rem; transition: all .15s ease;
}
.input-icon-wrap .form-control {
    border-left: 0; border-radius: 0 var(--oc-radius-sm) var(--oc-radius-sm) 0;
    padding: .55rem .9rem; font-size: .925rem;
}
.input-icon-wrap:focus-within .input-icon {
    border-color: var(--oc-primary); background: var(--hb-white); color: var(--oc-primary);
}
.input-icon-wrap:focus-within .form-control {
    border-color: var(--oc-primary); box-shadow: 0 0 0 3px rgba(30, 41, 59, .1);
}
.input-icon-wrap .form-control:focus { box-shadow: none; }
.input-icon-wrap .pw-toggle { right: .7rem; }

/* ── Halaman autentikasi mandiri (lupa/reset password, daftar) ── */
.authcard-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 2rem 1.25rem; background: var(--hb-offwhite);
}
.authcard {
    position: relative; overflow: hidden; width: 100%; max-width: 460px;
    padding: 2.25rem 2rem; background: var(--hb-white);
    border: 1px solid var(--oc-border); border-radius: var(--oc-radius-lg);
    box-shadow: var(--oc-shadow-lg);
}
.authcard__stripe {
    position: absolute; inset: 0 0 auto; height: 4px;
    background: linear-gradient(90deg, var(--hb-core) 0 62%, var(--hb-accent) 62% 100%);
}
.authcard__brand { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.authcard__brand img { max-width: 190px; max-height: 40px; object-fit: contain; }
.authcard__brand .mark {
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 12px; background: var(--hb-core); color: var(--hb-on-dark); font-size: 1.2rem;
}
.authcard__icon {
    width: 56px; height: 56px; margin: 0 auto .9rem; display: grid; place-items: center;
    border-radius: 16px; background: var(--hb-accent); color: var(--hb-on-dark); font-size: 1.5rem;
}
.authcard h1 {
    margin: 0 0 .35rem; text-align: center;
    font-size: 1.45rem; font-weight: 800; letter-spacing: -.025em; color: var(--oc-text);
}
.authcard__lead { margin: 0 0 1.6rem; text-align: center; font-size: .9rem; color: var(--oc-text-muted); }
.authcard__foot {
    margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--oc-border);
    text-align: center; font-size: .87rem; color: var(--oc-text-muted);
}
.authcard__foot a { font-weight: 600; color: var(--oc-primary); text-decoration: none; }
.authcard__foot a:hover { text-decoration: underline; }
.authcard__byline {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    margin-top: 1.2rem; font-size: .74rem; color: var(--oc-text-muted);
}
.authcard__byline img { max-height: 15px; width: auto; }

/* ── Field & utilitas bersama halaman auth ── */
.field-group { margin-bottom: 1.05rem; }
.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 2.75rem; }
.pw-toggle {
    position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
    padding: .3rem; border: 0; background: none; color: var(--oc-text-muted); cursor: pointer;
}
.pw-toggle:hover { color: var(--oc-primary); }
.hint { margin-top: .35rem; font-size: .78rem; color: #94A3B8; }
.wa-btn {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    margin-top: 1rem; padding: .7rem; border-radius: var(--oc-radius-sm);
    background: #25D366; color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none;
}
.wa-btn:hover { color: #fff; filter: brightness(.95); }

/* ── Floating WhatsApp (warna resmi WhatsApp, di luar sistem Owlyte) ── */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff; text-decoration: none;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
    transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37, 211, 102, .55); color: #fff; }
@media (max-width: 991.98px) { .wa-float { bottom: 84px; right: 16px; } }

/* ─────────────────────────────────────────────────────────────
   Halaman Aktivasi Keanggotaan (/member/pembayaran)
   Hanya memakai token brand yang sudah ada di :root.
   ───────────────────────────────────────────────────────────── */

/* Hero: gradasi brand + ornamen tipis agar tak terasa berat seperti banner promo. */
.pay-hero__lead {
    margin: 0; max-width: 62ch;
    font-size: .95rem; line-height: 1.6; color: rgba(255, 255, 255, .9);
}
.pay-hero__deco {
    position: absolute; right: -60px; bottom: -110px;
    width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    pointer-events: none;
}

/* ── Hitungan mundur 24 jam ── */
.pay-countdown {
    padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
    border: 1px solid var(--oc-border);
    border-left: 3px solid var(--hb-gold);
}
.pay-countdown.is-expired { border-left-color: #B91C1C; }
.pay-countdown__head {
    display: flex; align-items: flex-start; justify-content: space-between;
    flex-wrap: wrap; gap: .5rem 1rem;
}
.pay-countdown__label {
    display: flex; align-items: center; gap: .45rem;
    font-size: .95rem; font-weight: 800; color: var(--oc-text);
}
.pay-countdown__label i { color: var(--hb-gold); font-size: 1.05rem; }
.pay-countdown__note { margin-top: .2rem; font-size: .78rem; color: var(--oc-text-muted); }

.pay-clock {
    display: flex; align-items: flex-start; justify-content: center;
    gap: .35rem; margin: 1rem 0 .9rem;
}
.pay-clock__unit {
    min-width: 74px; padding: .55rem .5rem .45rem;
    text-align: center;
    background: var(--hb-offwhite); border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius-sm);
}
.pay-clock__value {
    display: block;
    font-size: 1.9rem; font-weight: 800; line-height: 1.1;
    letter-spacing: -.03em; color: var(--hb-core);
    font-variant-numeric: tabular-nums;
}
.pay-clock__unit-label {
    display: block; margin-top: .1rem;
    font-size: .64rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--oc-text-muted);
}
.pay-clock__sep {
    padding-top: .5rem;
    font-size: 1.5rem; font-weight: 800; color: var(--oc-border-strong);
}
.pay-progress { margin-top: .2rem; }
.pay-progress > span { transition: width .95s linear; }
.pay-countdown__foot {
    display: flex; justify-content: space-between; gap: .75rem;
    margin-top: .55rem; font-size: .76rem; color: var(--oc-text-muted);
}
.pay-countdown__foot strong { color: var(--hb-core); }

/* Keadaan lewat batas waktu: tetap boleh bayar, hanya diarahkan ke CS. */
.pay-expired {
    display: flex; align-items: flex-start; gap: .6rem;
    margin-top: 1rem; padding: .9rem 1rem;
    background: var(--hb-offwhite);
    border: 1px solid var(--oc-border); border-radius: var(--oc-radius-sm);
    font-size: .84rem; line-height: 1.55; color: var(--oc-text);
}
.pay-expired > i { color: #B91C1C; font-size: 1.05rem; line-height: 1.4; }
.pay-expired__cta { margin-top: .8rem; }

/* ── Ringkasan tagihan ── */
.pay-card-head {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem;
}
.pay-invoice {
    padding: 1.1rem 1.25rem;
    background: var(--hb-offwhite);
    border: 1px solid var(--oc-border); border-radius: var(--oc-radius);
}
.pay-invoice__label {
    font-size: .76rem; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; color: var(--oc-text-muted);
}
.pay-invoice__amount {
    margin: .15rem 0 .1rem;
    font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em;
    color: var(--hb-core); line-height: 1.15;
}
.pay-invoice__title { font-size: .85rem; color: var(--oc-text-muted); }

.pay-meta { display: grid; gap: .4rem; margin: 1rem 0 0; }
.pay-meta__row {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1rem; padding-bottom: .4rem;
    border-bottom: 1px dashed var(--oc-border);
}
.pay-meta__row:last-child { border-bottom: 0; padding-bottom: 0; }
.pay-meta dt { font-size: .82rem; font-weight: 500; color: var(--oc-text-muted); }
.pay-meta dd {
    margin: 0; font-size: .85rem; font-weight: 700;
    color: var(--oc-text); text-align: right;
}

/* ── Rekening tujuan + tombol salin ── */
.pay-banks { display: grid; gap: .6rem; }
.pay-bank {
    display: flex; align-items: center; gap: .9rem;
    padding: .85rem .95rem;
    background: var(--hb-white);
    border: 1px solid var(--oc-border); border-radius: var(--oc-radius);
    transition: border-color .16s ease, box-shadow .16s ease;
}
.pay-bank:hover { border-color: var(--oc-border-strong); box-shadow: var(--oc-shadow); }
.pay-bank__icon {
    flex: none; display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: var(--oc-radius-sm);
    background: var(--oc-bg); color: var(--hb-navy); font-size: 1.25rem;
}
.pay-bank__body { min-width: 0; flex: 1; }
.pay-bank__name {
    font-size: .72rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--oc-text-muted);
}
.pay-bank__number {
    display: flex; align-items: center; gap: .5rem;
    font-size: 1.02rem; font-weight: 800; letter-spacing: .02em;
    color: var(--oc-text); font-variant-numeric: tabular-nums;
}
.pay-bank__number > span { word-break: break-all; min-width: 0; }
.pay-bank__holder { font-size: .8rem; color: var(--oc-text-muted); }

.pay-copy {
    flex: none; display: grid; place-items: center;
    width: 34px; height: 34px; padding: 0;
    background: var(--oc-bg); color: var(--oc-text-muted);
    border: 1px solid var(--oc-border); border-radius: 9px;
    cursor: pointer; transition: all .16s ease;
}
.pay-copy:hover { color: var(--hb-core); border-color: var(--hb-core); }
.pay-copy.is-copied { color: #15803D; border-color: #15803D; background: #F0FDF4; }

/* ── Langkah aktivasi ── */
.pay-steps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .1rem; }
.pay-step {
    position: relative; display: flex; gap: .9rem;
    padding-bottom: 1.05rem;
}
.pay-step:last-child { padding-bottom: 0; }
.pay-step::before {
    content: ''; position: absolute;
    left: 15px; top: 32px; bottom: 4px; width: 2px;
    background: var(--oc-border);
}
.pay-step:last-child::before { display: none; }
.pay-step__num {
    flex: none; display: grid; place-items: center;
    width: 32px; height: 32px; z-index: 1;
    border-radius: 50%;
    background: var(--hb-white); border: 2px solid var(--oc-border);
    font-size: .82rem; font-weight: 800; color: var(--oc-text-muted);
}
.pay-step.is-current .pay-step__num {
    background: var(--hb-core); border-color: var(--hb-core); color: var(--hb-on-dark);
}
.pay-step__body { min-width: 0; padding-top: .2rem; }
.pay-step__title { font-size: .92rem; font-weight: 700; color: var(--oc-text); }
.pay-step__body p {
    margin: .2rem 0 0; font-size: .84rem; line-height: 1.6; color: var(--oc-text-muted);
}
.pay-step__body p strong { color: var(--oc-text); }

.pay-notes { margin: .45rem 0 0; padding-left: 1.1rem; display: grid; gap: .25rem; }
.pay-notes li { font-size: .83rem; line-height: 1.55; color: var(--oc-text-muted); }

/* ── Panel unggah bukti ── */
.pay-file {
    display: flex; align-items: center; gap: .55rem;
    margin: -.5rem 0 .85rem; padding: .6rem .75rem;
    background: var(--hb-offwhite);
    border: 1px solid var(--oc-border); border-radius: var(--oc-radius-sm);
    font-size: .82rem;
}
.pay-file > i { color: #15803D; font-size: 1.05rem; }
.pay-file__name {
    flex: 1; min-width: 0; font-weight: 600; color: var(--oc-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pay-file__size { flex: none; color: var(--oc-text-muted); font-size: .76rem; }
.form-control.is-invalid { border-color: #B91C1C; }

.pay-steps-note {
    margin-top: .9rem;
    font-size: .78rem; line-height: 1.55; color: var(--oc-text-muted);
}

.pay-proof-status {
    display: flex; align-items: center; gap: .75rem;
    padding: .9rem 1rem;
    background: var(--hb-offwhite);
    border: 1px solid var(--oc-border); border-left: 3px solid var(--hb-gold);
    border-radius: var(--oc-radius-sm);
}
.pay-proof-status__icon {
    flex: none; display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: #FEF3C7; color: var(--hb-gold); font-size: 1.25rem;
}
.pay-proof-status__title { font-size: .9rem; font-weight: 700; color: var(--oc-text); }
.pay-proof-status__meta { font-size: .77rem; color: var(--oc-text-muted); }

.pay-accordion .accordion-item {
    border: 1px solid var(--oc-border); border-radius: var(--oc-radius-sm) !important;
    margin-bottom: .5rem; overflow: hidden;
}
.pay-accordion .accordion-item:last-child { margin-bottom: 0; }
.pay-accordion .accordion-button {
    padding: .7rem .9rem; font-size: .85rem; font-weight: 600;
    background: var(--hb-white); color: var(--oc-text); box-shadow: none !important;
}
.pay-accordion .accordion-button:not(.collapsed) {
    background: var(--oc-bg); color: var(--hb-core);
    border-bottom: 1px solid var(--oc-border);
}
.pay-accordion .accordion-button::after { filter: grayscale(1) opacity(.5); }
.pay-accordion .accordion-body { font-size: .84rem; line-height: 1.6; color: var(--oc-text-muted); }

.pay-help { text-align: center; }
.pay-help__icon {
    display: grid; place-items: center;
    width: 52px; height: 52px; margin: 0 auto .6rem;
    border-radius: 50%; background: var(--oc-bg); color: var(--hb-core); font-size: 1.4rem;
}
.pay-help__title { font-size: 1rem; font-weight: 800; color: var(--oc-text); }
.pay-help__text {
    margin: .3rem 0 .9rem;
    font-size: .83rem; line-height: 1.6; color: var(--oc-text-muted);
}

@media (max-width: 575.98px) {
    .pay-clock { gap: .2rem; }
    .pay-clock__unit { min-width: 0; flex: 1; padding: .5rem .3rem .4rem; }
    .pay-clock__value { font-size: 1.5rem; }
    .pay-clock__sep { font-size: 1.15rem; padding-top: .4rem; }
    .pay-invoice__amount { font-size: 1.45rem; }
    .pay-countdown { padding: 1.1rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important; scroll-behavior: auto !important;
    }
}

/* ── My Profile ─────────────────────────────────────────────────────── */
.pf-hero {
    position: relative; overflow: hidden; margin-bottom: 1.5rem;
    border-radius: var(--oc-radius-lg); background: var(--oc-gradient);
    color: var(--hb-on-dark); box-shadow: 0 10px 30px rgba(15, 23, 42, .16);
}
.pf-hero-texture {
    position: absolute; inset: 0;
    background:
        radial-gradient(420px 200px at 88% -30%, rgba(255, 255, 255, .22), transparent 70%),
        radial-gradient(320px 180px at 8% 130%, rgba(255, 255, 255, .14), transparent 70%);
}
.pf-hero-body {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 1.35rem; flex-wrap: wrap;
    padding: 1.6rem 1.75rem;
}
.pf-avatar {
    flex: none; width: 88px; height: 88px; overflow: hidden;
    display: grid; place-items: center; border-radius: 50%;
    background: rgba(255, 255, 255, .18); border: 3px solid rgba(255, 255, 255, .55);
    font-size: 1.7rem; font-weight: 800; letter-spacing: .02em;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .22);
}
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-avatar-sm {
    width: 68px; height: 68px; font-size: 1.3rem;
    border-color: var(--oc-border); background: var(--oc-bg); color: var(--oc-text);
    box-shadow: none;
}
.pf-avatar-sm.is-removed { opacity: .35; filter: grayscale(1); }

.pf-hero-id { flex: 1 1 240px; min-width: 0; }
.pf-hero-kicker {
    margin-bottom: .35rem; font-size: .72rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .82);
}
.pf-hero-id h1 {
    margin: 0 0 .15rem; font-size: 1.45rem; font-weight: 800; letter-spacing: -.025em;
    color: var(--hb-on-dark); overflow-wrap: anywhere;
}
.pf-hero-id p { margin: 0; font-size: .88rem; color: rgba(255, 255, 255, .86); overflow-wrap: anywhere; }
.pf-hero-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.pf-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .24rem .68rem; border-radius: 999px;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
    font-size: .74rem; font-weight: 600;
}
.pf-chip-ok  { background: rgba(13, 122, 95, .34); border-color: rgba(255, 255, 255, .35); }
.pf-chip-off { background: rgba(217, 119, 6, .34); border-color: rgba(255, 255, 255, .35); }
.pf-hero-actions { display: flex; flex-direction: column; gap: .45rem; }

.pf-card-head { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1.15rem; }
.pf-card-icon {
    flex: none; width: 42px; height: 42px; display: grid; place-items: center;
    border-radius: var(--oc-radius-sm); background: var(--oc-bg); font-size: 1.15rem;
}
.pf-card-head h2 { margin: 0 0 .1rem; font-size: 1.02rem; font-weight: 800; letter-spacing: -.015em; color: var(--oc-text); }
.pf-card-head p  { margin: 0; font-size: .8rem; color: var(--oc-text-muted); }

.pf-upload {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem;
    padding: 1rem; border: 1px dashed var(--oc-border-strong);
    border-radius: var(--oc-radius); background: var(--oc-surface);
}
.pf-upload-fields { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.pf-upload-hint { font-size: .76rem; color: var(--oc-text-muted); }
.pf-upload-remove {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .78rem; font-weight: 600; color: #B91C1C; cursor: pointer;
}

.pf-status {
    display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1rem;
    padding: .4rem .85rem; border-radius: 999px;
    font-size: .82rem; font-weight: 700;
}
.pf-status.is-active  { background: rgba(13, 122, 95, .12); color: #0D7A5F; }
.pf-status.is-expired { background: rgba(185, 28, 28, .1); color: #B91C1C; }
.pf-status.is-empty   { background: var(--hb-gray); color: var(--oc-text-muted); }

.pf-facts { display: grid; gap: .1rem; margin: 0 0 1rem; }
.pf-facts > div {
    display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
    padding: .5rem 0; border-bottom: 1px solid var(--oc-surface);
}
.pf-facts > div:last-child { border-bottom: 0; }
.pf-facts dt { font-size: .82rem; font-weight: 600; color: var(--oc-text-muted); margin: 0; }
.pf-facts dd { margin: 0; font-size: .85rem; font-weight: 700; color: var(--oc-text); text-align: right; }
.pf-meter-note { margin-top: .4rem; font-size: .74rem; color: var(--oc-text-muted); }

.pf-activity { list-style: none; margin: 0; padding: 0; }
.pf-activity li {
    display: flex; align-items: flex-start; gap: .85rem;
    padding: .7rem 0; border-bottom: 1px solid var(--oc-surface);
}
.pf-activity li:first-child { padding-top: 0; }
.pf-activity li:last-child { padding-bottom: 0; border-bottom: 0; }
.pf-activity-icon {
    flex: none; width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: var(--oc-radius-sm); background: var(--oc-bg); font-size: .95rem;
}
.pf-activity-body { min-width: 0; }
.pf-activity-text { font-size: .87rem; color: var(--oc-text); overflow-wrap: anywhere; }
.pf-activity-time { font-size: .75rem; color: var(--oc-text-muted); }

@media (max-width: 767.98px) {
    .pf-hero-body { padding: 1.25rem; gap: 1rem; }
    .pf-avatar { width: 68px; height: 68px; font-size: 1.35rem; }
    .pf-hero-actions { flex-direction: row; width: 100%; }
    .pf-hero-actions .btn { flex: 1; }
}
/* ── Address parts (dropdown wilayah) ── */
.address-parts {
    background: var(--oc-bg);
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius);
    padding: 1rem;
    margin: 1rem 0;
}
.address-parts.is-required legend::after {
    content: ' *';
    color: var(--oc-danger);
}
.address-parts legend {
    font-size: .9rem;
    font-weight: 600;
    color: var(--oc-text);
}
.address-parts .input-icon-wrap:last-child {
    margin-bottom: 0;
}
.address-parts .form-select {
    padding-left: 2.6rem;
}
.address-parts .input-icon-wrap .input-icon {
    z-index: 5;
}
