/*
|--------------------------------------------------------------------------
| ASTRO GAME CENTER - TEMA NEON BERSAMA
|--------------------------------------------------------------------------
| Dipakai di semua halaman (member, owner, operator).
| Load setelah Tailwind CDN dan font Orbitron/Inter.
|--------------------------------------------------------------------------
*/

:root {
    --void: #050914;
    --deep: #0a1428;
    --panel: #0d1a33;
    --line: #16294d;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --violet: #a855f7;
    --ink: #e6f1ff;
    --muted: #6b85ac;
    --green: #34d399;
    --yellow: #facc15;
    --danger: #fb7185;
}

* {
    font-family: 'Inter', sans-serif;
}

.font-display {
    font-family: 'Orbitron', sans-serif;
}

html, body {
    background: var(--void);
    color: var(--ink);
    min-height: 100vh;
}


/* -------- LATAR: SIRKUIT + BINTANG -------- */

.bg-scene {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bg-circuit {
    position: absolute;
    inset: -10%;
    opacity: 0.25;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 10%, transparent 75%);
}

.bg-glow {
    position: absolute;
    width: 55vw;
    height: 55vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.18;
}

.glow-cyan { top: -15%; left: -10%; background: var(--cyan); }
.glow-violet { bottom: -20%; right: -10%; background: var(--violet); }

.stars {
    position: absolute;
    inset: 0;
    background-repeat: repeat;
    background-image:
        radial-gradient(1.5px 1.5px at 20px 30px, #ffffff 100%, transparent),
        radial-gradient(1px 1px at 90px 120px, #ffffff 100%, transparent),
        radial-gradient(1.5px 1.5px at 160px 60px, #a9c7ff 100%, transparent),
        radial-gradient(1px 1px at 220px 180px, #ffffff 100%, transparent),
        radial-gradient(1.5px 1.5px at 280px 40px, #ffffff 100%, transparent);
    background-size: 300px 220px;
    animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
    from { opacity: 0.45; }
    to { opacity: 0.9; }
}


/* -------- KARTU & ELEMEN UMUM -------- */

.card {
    background: linear-gradient(180deg, var(--panel), var(--deep));
    border: 1px solid var(--line);
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.06),
        0 0 30px rgba(34, 211, 238, 0.08),
        0 20px 50px -20px rgba(0, 0, 0, 0.7);
}

.field {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: var(--ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field::placeholder { color: #3f5578; }

.field:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #04101f;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px -8px rgba(34, 211, 238, 0.6);
    transition: filter 0.15s, transform 0.1s;
}

.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: scale(0.99); }

.btn-secondary {
    background: linear-gradient(135deg, var(--violet), #7c3aed);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 8px 24px -8px rgba(168, 85, 247, 0.55);
}

.badge-astro {
    border-radius: 14px;
    background: linear-gradient(160deg, #0f1f3d, #081327);
    border: 1px solid var(--line);
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.15),
        0 0 20px rgba(34, 211, 238, 0.3),
        inset 0 0 14px rgba(34, 211, 238, 0.08);
}

.brand-title {
    background: linear-gradient(90deg, #ffffff, var(--cyan) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.04em;
}


/* -------- NAVBAR (TOPBAR) -------- */

.astro-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(10, 20, 40, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.astro-nav-item {
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.astro-nav-item:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.05);
}

.astro-nav-item.active {
    color: #04101f;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.astro-nav-item.danger {
    color: #fca5a5;
}

.astro-nav-item.danger:hover {
    background: rgba(244, 63, 94, 0.15);
    color: #fecaca;
}


/* -------- KOMPONEN BILLING PS (dipakai owner/billing.php) -------- */
/* Semua warna WAJIB lewat variabel :root di atas. Jangan pakai hex sendiri. */

.font-orbitron { font-family: 'Orbitron', sans-serif; }

.panel {
    background: linear-gradient(180deg, var(--panel), var(--deep));
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.06),
        0 0 30px rgba(34, 211, 238, 0.08),
        0 20px 50px -20px rgba(0, 0, 0, 0.7);
}

.panel-title { color: var(--cyan); font-size: 18px; font-weight: 800; }
.panel-kicker { color: var(--muted); font-size: 12px; }

.field-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.select-modern {
    width: 100%;
    color: var(--ink);
    background: var(--deep);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.select-modern:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.select-modern option { background: var(--deep); color: var(--ink); }

.customer-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.customer-tab {
    border: 1px solid var(--line);
    background: var(--deep);
    color: var(--muted);
    border-radius: 11px;
    padding: 12px;
    font-weight: 700;
    transition: 0.2s;
}
.customer-tab:hover { border-color: var(--cyan); color: var(--ink); }

.quota-card {
    border-radius: 13px;
    padding: 14px 8px;
    text-align: center;
    background: var(--deep);
    border: 1px solid var(--line);
}
.quota-card.ps3 { border-color: var(--violet); box-shadow: 0 0 18px rgba(168, 85, 247, 0.14); }
.quota-card.ps4 { border-color: var(--cyan);   box-shadow: 0 0 18px rgba(34, 211, 238, 0.14); }
.quota-card.vip { border-color: var(--yellow); box-shadow: 0 0 18px rgba(250, 204, 21, 0.12); }
.quota-number { font-family: 'Orbitron', sans-serif; font-size: 26px; font-weight: 800; }

.price-card {
    border: 1px solid rgba(34, 211, 238, 0.4);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--panel), var(--deep));
    padding: 15px 18px;
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.06);
    transition: 0.2s;
}
.price-card:hover { box-shadow: 0 0 26px rgba(34, 211, 238, 0.16); transform: translateY(-1px); }
.price-name { font-family: 'Orbitron', sans-serif; font-weight: 700; }
.price-value { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 22px; }
.price-sub { color: var(--cyan); font-size: 12px; }

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.section-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--cyan);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.station-wrap {
    background: linear-gradient(180deg, var(--panel), var(--deep));
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
}
.station-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.station-card {
    position: relative !important;
    border-radius: 14px !important;
    padding: 14px !important;
    background: linear-gradient(180deg, var(--panel), var(--deep)) !important;
    border: 1px solid rgba(34, 211, 238, 0.35) !important;
    transition: 0.2s !important;
    overflow: hidden;
}
.station-card:before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--cyan));
}
.station-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 20px rgba(34, 211, 238, 0.12);
}
.station-card .bg-slate-900 {
    background: var(--void) !important;
    border: 1px solid var(--line);
}
.station-card button { border-radius: 9px !important; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }
.station-card .timer { font-family: 'Orbitron', monospace !important; letter-spacing: 0.04em; }

.active-panel { overflow: hidden; }
.active-table { width: 100%; border-collapse: collapse; }
.active-table th {
    text-align: left;
    padding: 12px 14px;
    background: rgba(34, 211, 238, 0.06);
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.active-table td { padding: 13px 14px; border-top: 1px solid var(--line); font-size: 13px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 800;
}
.badge-green { background: rgba(52, 211, 153, 0.1); color: var(--green);  border: 1px solid rgba(52, 211, 153, 0.25); }
.badge-red   { background: rgba(251, 113, 133, 0.1); color: var(--danger); border: 1px solid rgba(251, 113, 133, 0.25); }

.modal-bg { backdrop-filter: blur(8px); background: rgba(5, 9, 20, 0.85); }
.modal-box {
    background: linear-gradient(180deg, var(--panel), var(--deep));
    border: 1px solid rgba(34, 211, 238, 0.35);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55), 0 0 35px rgba(34, 211, 238, 0.1);
}

.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
    .station-grid { grid-template-columns: 1fr; }
}


/* -------- VARIAN "VIVID" (landing page + halaman login/daftar/reset) -------- */
/* Pakai dengan menambah class "vivid" di <body>. Latar sedikit lebih terang. */

.vivid .bg-circuit {
    opacity: 0.35;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 10%, transparent 75%);
}

.vivid .bg-glow {
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    opacity: 0.28;
}

.vivid .stars { animation-name: twinkle-vivid; }

@keyframes twinkle-vivid {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.vivid .card {
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.08),
        0 0 40px rgba(34, 211, 238, 0.12),
        0 25px 60px -20px rgba(0, 0, 0, 0.7);
}

.tab-inactive { color: var(--muted); }

.btn-secondary { transition: filter 0.15s, transform 0.1s; }
.btn-secondary:hover { filter: brightness(1.08); }
.btn-secondary:active { transform: scale(0.99); }

/* cegah geser samping di halaman landing (pasang class di <html>) */
html.no-xscroll, html.no-xscroll body { overflow-x: hidden; }


/* -------- DIALOG BERTEMA (assets/astro-ui.js) -------- */
/* Pengganti alert / confirm / prompt bawaan browser. Warna WAJIB lewat variabel :root. */

html.astro-dlg-open,
html.astro-dlg-open body { overflow: hidden; }

.astro-dlg-bg,
.astro-sheet-bg {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(5, 9, 20, 0.82);
    backdrop-filter: blur(8px);
    animation: astro-fade-in 0.12s ease-out;
}

.astro-dlg-bg { z-index: 10000; }
.astro-sheet-bg { z-index: 9990; }

.astro-dlg-bg.astro-keluar,
.astro-sheet-bg.astro-keluar { animation: astro-fade-out 0.1s ease-in forwards; }

.astro-dlg {
    --astro-aksen: var(--cyan);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 22px 20px 18px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--panel), var(--deep));
    border: 1px solid rgba(34, 211, 238, 0.35);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55), 0 0 35px rgba(34, 211, 238, 0.1);
    animation: astro-pop-in 0.16s ease-out;
}

.astro-dlg::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--astro-aksen), var(--violet), var(--astro-aksen));
}

.astro-dlg-sukses { --astro-aksen: var(--green); }
.astro-dlg-galat { --astro-aksen: var(--danger); }
.astro-dlg-peringatan { --astro-aksen: var(--yellow); }
.astro-dlg-info { --astro-aksen: var(--cyan); }
.astro-dlg-tanya { --astro-aksen: var(--violet); }
.astro-dlg-bahaya { --astro-aksen: var(--danger); }

.astro-dlg-kepala {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.astro-dlg-ikon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: var(--astro-aksen);
    background: var(--void);
    border: 2px solid var(--astro-aksen);
    filter: drop-shadow(0 0 8px var(--astro-aksen));
}

.astro-dlg-judul {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.astro-dlg-pesan {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink);
    opacity: 0.88;
    white-space: pre-line;
    overflow-wrap: anywhere;
    overflow-y: auto;
    max-height: 55vh;
    -webkit-overflow-scrolling: touch;
}

.astro-dlg-input {
    width: 100%;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    resize: vertical;
}

.astro-dlg-aksi {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.astro-dlg-btn {
    flex: 1;
    min-height: 44px;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.astro-dlg-btn-batal {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    transition: color 0.15s, background 0.15s;
}

.astro-dlg-btn-batal:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }

.astro-dlg-btn-bahaya {
    color: var(--void);
    background: var(--danger);
    box-shadow: 0 8px 24px -8px rgba(251, 113, 133, 0.6);
    transition: filter 0.15s, transform 0.1s;
}

.astro-dlg-btn-bahaya:hover { filter: brightness(1.08); }
.astro-dlg-btn-bahaya:active { transform: scale(0.99); }

.astro-dlg-btn:focus-visible,
.astro-sheet-tutup:focus-visible,
.astro-select-btn:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

/* di dalam daftar yang bisa digulir: cincin fokus ke dalam supaya tidak terpotong */
.astro-sheet-item:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: -2px;
}

/* HP: tombol utama di atas, lebar penuh */
@media (max-width: 480px) {
    .astro-dlg { padding: 20px 16px 16px; }
    .astro-dlg-aksi { flex-direction: column-reverse; }
}


/* -------- DROPDOWN BERTEMA (select[data-astro-select]) -------- */

.astro-select { position: relative; }

.astro-select-asli {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.astro-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    text-align: left;
    color: var(--ink);
    cursor: pointer;
}

.astro-select-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.astro-select-label {
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.astro-select-kosong { color: var(--muted); }

.astro-select-panah {
    flex: none;
    width: 8px;
    height: 8px;
    margin-right: 2px;
    border-right: 2px solid var(--cyan);
    border-bottom: 2px solid var(--cyan);
    transform: translateY(-2px) rotate(45deg);
}

.astro-sheet {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 460px;
    max-height: min(78vh, 640px);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--panel), var(--deep));
    border: 1px solid rgba(34, 211, 238, 0.35);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55), 0 0 35px rgba(34, 211, 238, 0.1);
    animation: astro-pop-in 0.16s ease-out;
}

.astro-sheet-kepala {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.astro-sheet-judul {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--cyan);
}

.astro-sheet-tutup {
    flex: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    border-radius: 10px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.astro-sheet-cari {
    flex: none;
    margin: 12px 16px 0;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 14px;
}

.astro-sheet-daftar {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.astro-sheet-grup {
    padding: 12px 10px 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
}

.astro-sheet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 12px;
    margin-bottom: 2px;
    text-align: left;
    font: inherit;
    cursor: pointer;
    color: var(--ink);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: background 0.12s, border-color 0.12s;
}

.astro-sheet-item:hover:not(:disabled),
.astro-sheet-item:focus-visible { background: rgba(34, 211, 238, 0.08); }

.astro-sheet-item:disabled { opacity: 0.4; cursor: not-allowed; }

.astro-sheet-item[aria-selected="true"] {
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(34, 211, 238, 0.35);
}

.astro-sheet-radio {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--muted);
}

.astro-sheet-item[aria-selected="true"] .astro-sheet-radio {
    border-color: var(--cyan);
    background: var(--cyan);
    box-shadow: inset 0 0 0 3px var(--deep);
}

.astro-sheet-teks {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* HP: daftar muncul dari bawah layar (bottom-sheet) */
@media (max-width: 640px) {
    .astro-sheet-bg {
        align-items: flex-end;
        padding: 0;
    }

    .astro-sheet {
        max-width: none;
        max-height: 82vh;
        border-radius: 20px 20px 0 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        animation: astro-slide-up 0.2s ease-out;
    }
}

@keyframes astro-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes astro-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes astro-pop-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes astro-slide-up { from { transform: translateY(40px); opacity: 0.6; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .astro-dlg-bg, .astro-sheet-bg, .astro-dlg, .astro-sheet { animation: none; }
}


/* -------- ISIAN HARGA (owner/kelola_harga.php) -------- */

.field.field-berubah {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15);
}

.field.field-salah {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.18);
}


/* -------- PENGUMUMAN (pengumuman.php, owner/pengumuman.php, dashboard member) -------- */

.ann-card {
    --ann: var(--cyan);
    border-left: 3px solid var(--ann);
}
.ann-turnamen { --ann: var(--violet); }
.ann-info     { --ann: var(--cyan); }
.ann-promo    { --ann: var(--green); }
.ann-penting  { --ann: var(--yellow); }

.ann-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 800;
    color: var(--ann, var(--cyan));
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid color-mix(in srgb, var(--ann, var(--cyan)) 35%, transparent);
    background: color-mix(in srgb, var(--ann, var(--cyan)) 12%, transparent);
}

/* status acara & penanda kecil (mengganti warna aksen chip-nya sendiri) */
.ann-st-segera  { --ann: var(--cyan); }
.ann-st-hariini { --ann: var(--green); }
.ann-st-lewat   { --ann: var(--muted); }
.ann-baru       { --ann: var(--danger); }

.ann-acara {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.ann-isi { overflow-wrap: anywhere; }
.ann-link { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.ann-link:hover { filter: brightness(1.15); }

.ann-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.15s, color 0.15s;
}
.ann-filter:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.ann-filter.aktif {
    color: #04101f;
    border-color: transparent;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

/* kartu ringkas di dashboard member */
.ann-mini {
    --ann: var(--cyan);
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--ann);
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.15s;
}
.ann-mini:hover { background: rgba(255, 255, 255, 0.07); }

/* badge angka di menu navbar */
.astro-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}
.astro-count[hidden] { display: none; }

/* toast pengumuman baru */
.astro-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: min(340px, calc(100vw - 32px));
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--violet);
    background: linear-gradient(180deg, var(--panel), var(--deep));
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2), 0 20px 50px -20px rgba(0, 0, 0, 0.7);
    color: var(--ink);
}
.astro-toast-kepala { font-size: 11px; font-weight: 800; color: var(--violet); }
.astro-toast-isi { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }


/* -------- DROPDOWN GRUP MENU NAVBAR (Riwayat / Kelola) -------- */

.astro-nav-group { position: relative; }

.astro-nav-group-btn {
    background: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.astro-caret { font-size: 10px; opacity: 0.8; }

.astro-nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 60;
    min-width: 180px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--panel), var(--deep));
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.1), 0 20px 40px -16px rgba(0, 0, 0, 0.8);
}
.astro-nav-menu[hidden] { display: none; }

.astro-nav-menu-item {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.astro-nav-menu-item:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.astro-nav-menu-item.active { color: var(--cyan); background: rgba(34, 211, 238, 0.1); }

/* ---- Sesi 67: navbar laptop satu baris + foto profil di pojok kanan ---- */
.astro-nav-utama > .astro-nav-item,
.astro-nav-utama .astro-nav-group-btn { display: inline-flex; align-items: center; gap: 6px; }
.astro-nav-ikon { line-height: 1; }
/* layar sedang (tablet / laptop kecil): ikon saja, teks lengkap di tooltip */
@media (min-width: 768px) and (max-width: 1199px) {
    .astro-nav-utama .astro-nav-teks { display: none; }
    .astro-nav-utama > .astro-nav-item,
    .astro-nav-utama .astro-nav-group-btn { padding: 0.55rem 0.7rem; font-size: 1rem; }
    .astro-nav-utama .astro-caret { font-size: 9px; }
}

.astro-nav-menu-kanan { left: auto; right: 0; }
.astro-nav-mega {
    left: auto;
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 4px 10px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
}
.astro-nav-mega[hidden] { display: none; }
.astro-nav-kolom + .astro-nav-kolom { border-left: 1px solid var(--line); padding-left: 10px; }
.astro-nav-menu-judul {
    padding: 8px 12px 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
}

.astro-avatar-nav {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #0891b2, #7c3aed);
    border: 2px solid rgba(34, 211, 238, 0.45);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.astro-avatar-nav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.astro-avatar-nav:hover { border-color: var(--cyan); transform: translateY(-1px); }
.astro-avatar-nav.active { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25), 0 0 16px rgba(34, 211, 238, 0.45); }

/* toast chat: naik sedikit supaya tidak menimpa toast pengumuman */
.astro-toast-chat { bottom: 88px; border-left-color: var(--cyan); }
.astro-toast-chat .astro-toast-kepala { color: var(--cyan); }


/* -------- CHAT (chat.php, owner/chat.php) -------- */

.chat-shell [hidden] { display: none !important; }

.chat-shell {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    height: calc(100vh - 150px);
    height: calc(100dvh - 150px);
    min-height: 480px;
    max-height: 820px;
    overflow: hidden;
}

.chat-side {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid var(--line);
}

.chat-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
}

.chat-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.chat-tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.chat-tab.aktif {
    color: #04101f;
    border-color: transparent;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}
.chat-tab .astro-count { margin-left: 6px; }

.chat-pane { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; }

.chat-item {
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}
.chat-item:hover, .chat-item.aktif { background: rgba(34, 211, 238, 0.08); }

.chat-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--cyan);
    background: var(--line);
    border: 1px solid var(--line);
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }

.chat-kosong-kecil { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 13px; }

.chat-seksi {
    margin: 14px 4px 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.chat-cari { margin-top: 8px; }

.chat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 12px;
}
.chat-row:hover { background: rgba(255, 255, 255, 0.04); }
.chat-row-aksi { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.chat-btn {
    padding: 6px 11px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    color: var(--ink);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: filter 0.15s, background 0.15s;
}
.chat-btn:hover { background: rgba(255, 255, 255, 0.1); }
.chat-btn-utama {
    color: #04101f;
    border-color: transparent;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}
.chat-btn-utama:hover { filter: brightness(1.08); background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.chat-btn-bahaya { color: #fecaca; border-color: rgba(251, 113, 133, 0.4); background: rgba(251, 113, 133, 0.12); }
.chat-btn-bahaya:hover { background: rgba(251, 113, 133, 0.25); }

.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.chat-kosong {
    margin: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.chat-aktif { display: flex; flex-direction: column; flex: 1; min-height: 0; }

.chat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}

.chat-back {
    display: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--ink);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.chat-msgs {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
}

.chat-hari {
    align-self: center;
    margin: 8px 0 2px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

.chat-muat-lama {
    align-self: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--cyan);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.chat-bubble {
    max-width: 78%;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.chat-bubble.saya {
    align-self: flex-end;
    color: #04101f;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-bottom-right-radius: 4px;
}
.chat-bubble.dia {
    align-self: flex-start;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    border-bottom-left-radius: 4px;
}
.chat-meta { display: block; margin-top: 2px; font-size: 10px; text-align: right; opacity: 0.7; }

.chat-notice {
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.chat-compose {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--line);
}
.chat-compose textarea { resize: none; max-height: 120px; box-sizing: border-box; display: block; }
.chat-kirim { padding: 11px 18px; border-radius: 12px; font-size: 13px; }
.chat-kirim:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-hitung {
    position: absolute;
    right: 10px;
    bottom: 6px;
    font-size: 10px;
    color: var(--muted);
}
.chat-hitung.lewat { color: var(--danger); font-weight: 800; }

/* -------- CHAT GETSTREAM (sesi 34) -------- */
.chat-menu-btn,
.chat-foto-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--ink);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}
.chat-menu-btn { width: 34px; height: 34px; font-size: 20px; line-height: 1; }
.chat-menu-btn:hover, .chat-foto-btn:hover { background: rgba(255, 255, 255, 0.1); }
.chat-foto-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-banner {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #fde68a;
    background: rgba(250, 204, 21, 0.1);
    border-bottom: 1px solid rgba(250, 204, 21, 0.25);
}

.chat-avatar-ikon { font-size: 18px; background: rgba(168, 85, 247, 0.18); }

.chat-mengetik { color: var(--cyan) !important; font-style: italic; }

.chat-pengirim {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    color: var(--cyan);
}

.chat-foto { display: block; margin: 2px 0 4px; }
.chat-foto img {
    display: block;
    max-width: 240px;
    max-height: 280px;
    width: auto;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.2);
}

.chat-bubble.bisa-pilih { cursor: pointer; }
.chat-bubble.dihapus { opacity: 0.6; }
.chat-teks-hapus { font-style: italic; font-size: 13px; }
.chat-bubble.saya .chat-meta.dibaca { opacity: 1; font-weight: 800; }
.chat-bubble.dia .chat-meta.dibaca { color: var(--cyan); }

.chat-aksi-pesan { display: flex; gap: 6px; flex-wrap: wrap; margin-top: -2px; }
.chat-aksi-pesan.saya { align-self: flex-end; }
.chat-aksi-pesan.dia { align-self: flex-start; }

@media (max-width: 767px) {
    .chat-foto img { max-width: 200px; }
}

@media (max-width: 767px) {
    .chat-shell {
        grid-template-columns: minmax(0, 1fr);
        height: calc(100vh - 120px);
        height: calc(100dvh - 120px);
    }
    .chat-shell .chat-main { display: none; }
    .chat-shell.show-main .chat-side { display: none; }
    .chat-shell.show-main .chat-main { display: flex; }
    .chat-back { display: inline-flex; }
    .chat-side { border-right: 0; }
    .chat-bubble { max-width: 88%; }
}


/* -------- LAPORAN KEUANGAN (owner/laporan_keuangan.php) -------- */

.lap-angka {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.lap-bar {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}
.lap-bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}


/* ------------------------------------------------------------------
   Tombol lihat / sembunyikan password (assets/astro-ui.js)
   Pakai: <input type="password" data-astro-password class="field ...">
------------------------------------------------------------------ */
.astro-pass {
    position: relative;
    display: block;
    width: 100%;
}
.astro-pass .astro-pass-input {
    padding-right: 2.75rem;
}
.astro-pass-btn {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 0 0.75rem 0.75rem 0;
    color: var(--muted, #94a3b8);
    cursor: pointer;
    transition: color 0.15s ease;
}
.astro-pass-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}
.astro-pass-btn:hover,
.astro-pass-btn.aktif {
    color: var(--cyan);
}
.astro-pass-btn:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: -2px;
}


/* =====================================================================
   NAVIGASI BARU (sesi 30, item V)
   - Menu bawah (HP)          : .astro-bottombar
   - Laci menu berkelompok    : .astro-drawer
   - Gelembung chat melayang  : .astro-chat-bubble (semua role, HP & laptop)
   ===================================================================== */

/* ---- menu bawah (HP saja) ---- */
.astro-bottombar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    background: rgba(10, 20, 40, 0.94);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}
@media (min-width: 768px) {
    .astro-bottombar { display: none; }
}

.astro-bb-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.astro-bb-ikon { font-size: 20px; line-height: 1; }

/* Sesi 59: menu bawah member 6 kolom, tombol Sewa PS menonjol di tengah */
.astro-bottombar.astro-bb-6 { grid-template-columns: repeat(6, 1fr); gap: 2px; }
.astro-bb-6 .astro-bb-item { font-size: 10px; white-space: nowrap; }
.astro-bb-6 .astro-bb-ikon { font-size: 19px; }
.astro-bb-item.astro-bb-sewa {
    color: #fde68a;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.08));
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.45);
}
.astro-bb-item.astro-bb-sewa.active { color: #fcd34d; background: rgba(245, 158, 11, 0.28); }
.astro-bb-item.astro-bb-sewa.active::before { background: #f59e0b; }
/* Sesi 67: Top-up berdampingan dengan Sewa PS, sama menonjolnya (warna ungu) */
.astro-bb-item.astro-bb-topup {
    color: #ddd6fe;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.24), rgba(139, 92, 246, 0.08));
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.5);
}
.astro-bb-item.astro-bb-topup.active { color: #ede9fe; background: rgba(139, 92, 246, 0.32); }
.astro-bb-item.astro-bb-topup.active::before { background: #a78bfa; }
.astro-bb-item.astro-bb-sewa + .astro-bb-item.astro-bb-topup { margin-left: 3px; }
/* Sesi 76b: menu bawah staf 7 kolom (Billing, Dapur, Gacha, Kasir, Sewa, Top-up, Menu) */
.astro-bottombar.astro-bb-7 { grid-template-columns: repeat(7, 1fr); gap: 1px; padding-left: 2px; padding-right: 2px; }
.astro-bb-7 .astro-bb-item { font-size: 9.5px; }
.astro-bb-7 .astro-bb-ikon { font-size: 18px; }
/* Sesi 76b: 🎰 Gacha menonjol di tengah (warna fuchsia) */
.astro-bb-item.astro-bb-gacha {
    color: #f5d0fe;
    background: linear-gradient(180deg, rgba(217, 70, 239, 0.26), rgba(34, 211, 238, 0.08));
    box-shadow: inset 0 0 0 1px rgba(217, 70, 239, 0.5);
}
.astro-bb-item.astro-bb-gacha .astro-bb-ikon { font-size: 22px; }
.astro-bb-item.astro-bb-gacha.active { color: #fae8ff; background: rgba(217, 70, 239, 0.34); }
.astro-bb-item.astro-bb-gacha.active::before { background: #e879f9; }
.astro-bb-item.active { color: var(--cyan); background: rgba(34, 211, 238, 0.08); }
.astro-bb-item.active::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 30%;
    right: 30%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--cyan);
}
.astro-bb-item .astro-count {
    position: absolute;
    top: 3px;
    left: 54%;
    margin: 0;
}

@media (max-width: 767px) {
    body.astro-ada-bottombar { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* ---- gelembung chat melayang - sesi 58: gaya "Roket Orbit" ----
   Isi markup dari includes/chat_bubble.php (astroChatBubbleIsi()).
   Laptop: ikon bulat (roket + orbit) + kapsul kaca "Chat Astro".
   HP: ikon bulat saja. Ada pesan belum dibaca -> ikon berdenyut. */
.astro-chat-bubble {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 44;
    display: flex;
    align-items: center;
    height: 60px;
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.astro-chat-bubble:hover { transform: translateY(-2px); filter: brightness(1.1); }
.astro-chat-bubble:active { transform: scale(0.96); }
.astro-chat-bubble:focus-visible { outline: none; }
.astro-chat-bubble:focus-visible .acb-ikon { box-shadow: 0 0 0 3px var(--void), 0 0 0 5px var(--cyan); }

/* ikon bulat: bola neon + kilau kaca + ekor gelembung di kiri bawah */
.acb-ikon {
    position: relative;
    z-index: 2;
    flex: none;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle at 50% 55%, #1e3a8a 0%, #0b1838 70%);
    border: 2px solid rgba(34, 211, 238, 0.85);
    box-shadow:
        0 0 0 3px rgba(168, 85, 247, 0.35),
        0 0 22px rgba(34, 211, 238, 0.45),
        inset 0 0 14px rgba(34, 211, 238, 0.35),
        0 12px 26px -10px rgba(0, 0, 0, 0.85);
}
.astro-chat-bubble::before { /* ekor gelembung, di belakang ikon (z-index 1 < ikon 2) */
    content: "";
    position: absolute;
    left: 5px;
    bottom: -4px;
    width: 18px;
    height: 18px;
    z-index: 1;
    background: #0b1838;
    border-left: 2px solid rgba(34, 211, 238, 0.85);
    border-bottom: 2px solid rgba(34, 211, 238, 0.85);
    border-bottom-left-radius: 5px;
    transform: skewX(20deg) rotate(6deg);
    box-shadow: -4px 4px 10px -4px rgba(34, 211, 238, 0.5);
}
.acb-roket {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.55));
    transition: transform 0.25s ease;
}
.astro-chat-bubble:hover .acb-roket { transform: translate(2px, -2px) scale(1.05); }
.acb-api { transform-origin: 32px 45px; animation: acbApi 0.5s ease-in-out infinite alternate; }

/* orbit: lingkaran putus-putus berputar + satelit kecil */
.acb-orbit {
    position: absolute;
    inset: -7px;
    border-radius: 999px;
    border: 1.5px dashed rgba(34, 211, 238, 0.5);
    animation: acbPutar 10s linear infinite;
    pointer-events: none;
}
.acb-orbit::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    border-radius: 999px;
    background: var(--violet);
    box-shadow: 0 0 8px var(--violet), 0 0 3px #fff;
}

/* kapsul kaca berlabel (laptop) */
.acb-kapsul {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 44px;
    margin-left: -20px;
    padding: 0 22px 0 30px;
    border-radius: 0 999px 999px 0;
    background:
        linear-gradient(90deg, rgba(34, 211, 238, 0.16), rgba(168, 85, 247, 0.16)),
        rgba(10, 20, 40, 0.82);
    border: 1.5px solid rgba(34, 211, 238, 0.55);
    border-left: none;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 26px -12px rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.acb-label {
    font-family: "Orbitron", sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    white-space: nowrap;
    background: linear-gradient(90deg, #a5f3fc, #e9d5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.astro-chat-bubble .astro-count,
.astro-chat-bubble.acb-tamu .acp-badge {
    position: absolute;
    top: -2px;
    left: 42px;
    right: auto;
    margin: 0;
    z-index: 3;
    box-shadow: 0 0 0 2px var(--void);
}

/* gelembung chat tamu (halaman publik) berupa <button> - sesi 58 */
button.astro-chat-bubble { border: 0; padding: 0; background: none; cursor: pointer; font: inherit; }
.astro-chat-bubble.acb-tamu { z-index: 60; }

/* ada pesan belum dibaca -> ikon berdenyut */
.astro-chat-bubble:has(.astro-count:not([hidden])) .acb-ikon,
.astro-chat-bubble:has(.acp-badge:not([hidden])) .acb-ikon { animation: acbDenyut 1.8s ease-out infinite; }

/* jendela chat terbuka (laptop): kapsul disembunyikan, roket berganti ✕ */
.astro-chat-bubble.acp-bubble-buka .acb-kapsul { display: none; }
.astro-chat-bubble.acp-bubble-buka .acb-roket { opacity: 0; transform: scale(0.6); }
.astro-chat-bubble.acp-bubble-buka .acb-ikon::after {
    content: "✕";
    position: absolute;
    font-size: 22px;
    font-weight: 800;
    color: #a5f3fc;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
}

@keyframes acbPutar { to { transform: rotate(360deg); } }
@keyframes acbApi { from { transform: scaleY(0.75); opacity: 0.8; } to { transform: scaleY(1.1); opacity: 1; } }
@keyframes acbDenyut {
    0% { box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.35), 0 0 22px rgba(34, 211, 238, 0.45), 0 0 0 0 rgba(34, 211, 238, 0.55), 0 12px 26px -10px rgba(0, 0, 0, 0.85); }
    100% { box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.35), 0 0 22px rgba(34, 211, 238, 0.45), 0 0 0 16px rgba(34, 211, 238, 0), 0 12px 26px -10px rgba(0, 0, 0, 0.85); }
}
@media (prefers-reduced-motion: reduce) {
    .acb-orbit, .acb-api,
    .astro-chat-bubble:has(.astro-count:not([hidden])) .acb-ikon,
    .astro-chat-bubble:has(.acp-badge:not([hidden])) .acb-ikon { animation: none; }
}

@media (max-width: 767px) {
    .acb-kapsul { display: none; }
    .acb-ikon { width: 54px; height: 54px; }
    .acb-roket { width: 44px; height: 44px; }
    .astro-chat-bubble { height: 54px; }
    .astro-chat-bubble .astro-count,
    .astro-chat-bubble.acb-tamu .acp-badge { left: auto; right: -4px; top: -4px; }
    body.astro-ada-bottombar .astro-chat-bubble {
        bottom: calc(80px + env(safe-area-inset-bottom));
        right: 16px;
    }
}
@media print {
    .astro-chat-bubble, .astro-bottombar, .astro-drawer { display: none !important; }
}

/* toast digeser ke atas supaya tidak menimpa gelembung chat */
body.astro-ada-bubble .astro-toast { bottom: 88px; }
body.astro-ada-bubble .astro-toast-chat { bottom: 160px; }
@media (max-width: 767px) {
    body.astro-ada-bottombar .astro-toast { bottom: calc(140px + env(safe-area-inset-bottom)); }
    body.astro-ada-bottombar .astro-toast-chat { bottom: calc(212px + env(safe-area-inset-bottom)); }
}

/* ---- laci menu (HP) ---- */
.astro-drawer {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    justify-content: flex-end;
    background: rgba(5, 9, 20, 0.7);
    backdrop-filter: blur(4px);
    animation: astro-fade-in 0.12s ease-out;
}
.astro-drawer[hidden] { display: none; }
html.astro-drawer-open, html.astro-drawer-open body { overflow: hidden; }

.astro-drawer-panel {
    width: min(330px, 88vw);
    height: 100%;
    overflow-y: auto;
    padding: 14px 12px calc(20px + env(safe-area-inset-bottom));
    border-left: 1px solid var(--line);
    background: linear-gradient(180deg, var(--panel), var(--deep));
    box-shadow: -20px 0 50px -20px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.astro-drawer-kepala {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 6px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
}
.astro-drawer-tutup {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
}
.astro-drawer .astro-nav-item { display: block; }

.astro-drawer-grup { border-radius: 12px; }
.astro-drawer-grup > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 6px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
}
.astro-drawer-grup > summary::-webkit-details-marker { display: none; }
.astro-drawer-grup > summary::after { content: "+"; font-size: 14px; }
.astro-drawer-grup[open] > summary::after { content: "-"; }
.astro-drawer-grup .astro-nav-item { padding-left: 1.25rem; }
.astro-drawer-garis { border-top: 1px solid var(--line); margin: 6px 0; }
.astro-bb-item, .astro-chat-bubble { text-decoration: none; }

/* -------- CHAT GETSTREAM: jeda hemat koneksi (sesi 34b) -------- */
.chat-shell { position: relative; }
.chat-tidur {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 9, 20, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.chat-tidur-kotak { max-width: 340px; text-align: center; }
.chat-tidur-ikon { font-size: 44px; margin-bottom: 6px; }

/* =====================================================================
   SESI 39: JENDELA CHAT MELAYANG (gelembung -> jendela kecil)
   - .acp-*  dipakai chat tamu (halaman depan) & popup chat akun login
   ===================================================================== */
.acp-bubble {
    position: fixed; right: 18px; bottom: 18px; z-index: 60;
    width: 58px; height: 58px; border-radius: 999px; border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 27px; color: #04101f;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 24px rgba(34, 211, 238, .35), 0 12px 30px -10px rgba(0, 0, 0, .8);
    transition: transform .15s;
}
.acp-bubble:hover { transform: scale(1.06); }
.acp-bubble .astro-count, .acp-badge {
    position: absolute; top: -3px; right: -3px; margin: 0; box-shadow: 0 0 0 2px var(--void);
}
.acp-badge {
    min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--danger);
    color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.acp-panel {
    position: fixed; right: 18px; bottom: 88px; z-index: 61;
    width: 380px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px);
    display: flex; flex-direction: column; overflow: hidden;
    border-radius: 18px; border: 1px solid rgba(34, 211, 238, .35);
    background: var(--deep);
    box-shadow: 0 0 40px rgba(34, 211, 238, .18), 0 30px 60px -20px rgba(0, 0, 0, .9);
    transform-origin: bottom right; animation: acpMuncul .18s ease-out;
}
.acp-panel[hidden], .acp-panel [hidden], .acp-badge[hidden] { display: none !important; }
@keyframes acpMuncul { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }
.acp-kepala {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    background: linear-gradient(120deg, #0891b2, #2563eb 70%, #7c3aed); color: #fff; flex-shrink: 0;
}
.acp-kepala-logo {
    width: 36px; height: 36px; border-radius: 999px; background: rgba(255, 255, 255, .16);
    display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.acp-kepala-judul { font-weight: 800; font-size: 14px; line-height: 1.2; }
.acp-kepala-sub { font-size: 11px; opacity: .85; line-height: 1.3; }
.acp-kepala-btn {
    width: 32px; height: 32px; border-radius: 10px; border: 0; cursor: pointer; flex-shrink: 0;
    background: rgba(255, 255, 255, .14); color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center;
    text-decoration: none;
}
.acp-kepala-btn:hover { background: rgba(255, 255, 255, .26); }
.acp-tabs { display: flex; gap: 6px; padding: 8px 10px; background: var(--panel); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.acp-tab {
    flex: 1; padding: 7px 8px; border-radius: 10px; border: 1px solid var(--line); background: transparent;
    color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; position: relative;
}
.acp-tab.aktif { background: var(--cyan); border-color: var(--cyan); color: #04101f; }
.acp-tab .acp-badge { top: -7px; right: -5px; }
.acp-isi { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; background: linear-gradient(180deg, var(--deep), var(--void)); }
.acp-frame { flex: 1; min-height: 0; border: 0; width: 100%; background: var(--void); }
.acp-kaki { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); background: var(--panel); flex-shrink: 0; }
.acp-input {
    flex: 1; resize: none; max-height: 110px; min-height: 42px; padding: 10px 12px; border-radius: 12px; font-size: 14px;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--ink); outline: none;
}
.acp-input:focus { border-color: var(--cyan); }
.acp-kirim {
    width: 42px; height: 42px; border-radius: 12px; border: 0; cursor: pointer; flex-shrink: 0; font-size: 17px;
    background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #04101f; font-weight: 900;
}
.acp-kirim:disabled { opacity: .45; cursor: default; }
.acp-pesan { display: flex; flex-direction: column; margin-bottom: 10px; }
.acp-pesan.saya { align-items: flex-end; }
.acp-pesan-isi {
    max-width: 84%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45;
    white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px;
}
.acp-pesan.saya .acp-pesan-isi { background: linear-gradient(135deg, #0891b2, #2563eb); border-color: transparent; color: #fff; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.acp-pesan.sistem .acp-pesan-isi { background: rgba(34, 211, 238, .08); border-color: rgba(34, 211, 238, .25); color: #bdeefa; }
.acp-pesan-meta { font-size: 10.5px; color: var(--muted); margin-top: 3px; padding: 0 4px; }
.acp-tgl { text-align: center; font-size: 10.5px; color: var(--muted); margin: 6px 0 10px; }
.acp-label { display: block; font-size: 11.5px; font-weight: 700; color: #94a3b8; margin: 10px 0 5px; }
.acp-field {
    width: 100%; padding: 9px 11px; border-radius: 10px; font-size: 13.5px;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--ink); outline: none;
}
.acp-field:focus { border-color: var(--cyan); }
.acp-pilih { display: flex; flex-direction: column; gap: 7px; }
.acp-opsi {
    display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
}
.acp-opsi:has(input:checked) { border-color: var(--cyan); background: rgba(34, 211, 238, .08); }
.acp-opsi input { margin-top: 3px; accent-color: #22d3ee; }
.acp-opsi b { font-size: 13.5px; display: block; }
.acp-opsi span { font-size: 11.5px; color: var(--muted); }
.acp-tombol {
    width: 100%; margin-top: 12px; padding: 11px; border-radius: 12px; border: 0; cursor: pointer; font-weight: 800; font-size: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #04101f;
}
.acp-tombol:disabled { opacity: .5; }
.acp-catatan { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.acp-galat { font-size: 12px; color: #fda4af; margin-top: 8px; }
.acp-link { background: none; border: 0; color: #67e8f9; font-size: 11.5px; cursor: pointer; text-decoration: underline; padding: 0; }
/* sesi 47: asisten chat - tombol cepat, kotak hubungkan, sedang mengetik */
.acp-cepat {
    display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; flex-shrink: 0;
    border-top: 1px solid var(--line); background: var(--deep); scrollbar-width: thin;
}
.acp-chip {
    flex-shrink: 0; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
    border: 1px solid rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .08); color: #a5f3fc;
}
.acp-chip:hover { background: rgba(34, 211, 238, .18); }
.acp-chip-orang { border-color: rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .1); color: #fcd34d; }
.acp-kotak { margin: 4px 0 10px; padding: 12px; border-radius: 14px; border: 1px solid rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .06); }
.acp-ketik { color: var(--muted); font-style: italic; }
.acp-hp { display: none; }
@media (max-width: 767px) {
    .acp-panel { right: 0; left: 0; bottom: 0; top: 0; width: 100%; max-width: none; height: auto; max-height: none; border-radius: 0; border: 0; }
    body.astro-ada-bottombar .acp-bubble { bottom: calc(76px + env(safe-area-inset-bottom)); right: 14px; width: 52px; height: 52px; font-size: 24px; }
    .acp-hp { display: flex; }
}
@media print { .acp-bubble, .acp-panel { display: none !important; } }
body.acp-terbuka { overflow: hidden; }
@media (min-width: 768px) { body.acp-terbuka { overflow: auto; } }

/* halaman chat di dalam jendela melayang (?embed=1) */
body.astro-embed { min-height: 0; }
body.astro-embed main { padding: 0 !important; max-width: none !important; }
body.astro-embed .chat-shell { height: 100vh; height: 100dvh; max-height: none; min-height: 0; border-radius: 0; border: 0; }
@media (min-width: 768px) {
    body.astro-embed .chat-shell { grid-template-columns: minmax(0, 1fr); }
    body.astro-embed .chat-shell .chat-main { display: none; }
    body.astro-embed .chat-shell.show-main .chat-side { display: none; }
    body.astro-embed .chat-shell.show-main .chat-main { display: flex; }
    body.astro-embed .chat-back { display: inline-flex; }
    body.astro-embed .chat-side { border-right: 0; }
}
@media (max-width: 767px) { .astro-chat-bubble.acp-bubble-buka { display: none; } }
.astro-chat-bubble { z-index: 62; }
/* sesi 73: roket chat jangan menutupi tombol di jendela modal (catat jajanan, konfirmasi billing, dll.) */
body:has(.fixed.inset-0:not(.hidden)) .astro-chat-bubble { display: none !important; }


/* =====================================================================
   SESI 69 (Z46): TEMA TERANG - html[data-tema="terang"]
   ---------------------------------------------------------------------
   Dipasang oleh skrip di includes/favicon.php (pilihan disimpan per
   perangkat di localStorage "astro_tema"), diganti lewat tombol ☀️/🌙
   di navbar (window.astroGantiTema). Bawaan tetap Neon gelap.
   1) variabel :root ditimpa -> semua komponen yang memakai var() ikut;
   2) komponen yang memakai warna gelap langsung ditimpa satu per satu;
   3) utility Tailwind warna terang-di-atas-gelap (text-slate-300,
      bg-white/5, bg-rose-900/40, dst.) dipetakan ke padanannya.
   Selektor diawali html[data-tema="terang"] supaya menang dari CSS
   Tailwind CDN yang disuntik belakangan.
   ===================================================================== */

.astro-tema-ke-gelap { display: none; }
html[data-tema="terang"] .astro-tema-ke-terang { display: none; }
html[data-tema="terang"] .astro-tema-ke-gelap { display: inline; }

html[data-tema="terang"] {
    color-scheme: light;
    --void: #f3f6fb;
    --deep: #ffffff;
    --panel: #ffffff;
    --line: #dbe3ee;
    --cyan: #0891b2;
    --blue: #2563eb;
    --violet: #7c3aed;
    --ink: #0f172a;
    --muted: #5b6b82;
    --green: #059669;
    --yellow: #d97706;
    --danger: #e11d48;
    --t-bayang: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px -14px rgba(15, 23, 42, 0.16);
}

/* ---------- latar ---------- */
html[data-tema="terang"] .bg-scene { background: linear-gradient(180deg, #eaf6fb 0%, #f3f6fb 38%, #f5f2fd 100%); }
html[data-tema="terang"] .stars { display: none; }
html[data-tema="terang"] .bg-circuit {
    opacity: 0.6;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
}
html[data-tema="terang"] .bg-glow { opacity: 0.1; }
html[data-tema="terang"] .vivid .bg-glow { opacity: 0.14; }

/* ---------- kartu, panel, dialog ---------- */
html[data-tema="terang"] .card,
html[data-tema="terang"] .panel,
html[data-tema="terang"] .station-wrap,
html[data-tema="terang"] .price-card,
html[data-tema="terang"] .modal-box,
html[data-tema="terang"] .astro-dlg,
html[data-tema="terang"] .astro-sheet,
html[data-tema="terang"] .astro-toast,
html[data-tema="terang"] .astro-nav-menu,
html[data-tema="terang"] .vivid .card {
    background: #ffffff;
    box-shadow: var(--t-bayang);
}
html[data-tema="terang"] .astro-dlg,
html[data-tema="terang"] .astro-sheet,
html[data-tema="terang"] .modal-box { border-color: var(--line); box-shadow: 0 30px 70px -20px rgba(15, 23, 42, 0.35); }
html[data-tema="terang"] .station-card { background: #ffffff !important; border-color: rgba(8, 145, 178, 0.3) !important; }
html[data-tema="terang"] .station-card:hover { box-shadow: 0 12px 28px -12px rgba(15, 23, 42, 0.25); }
html[data-tema="terang"] .station-card .bg-slate-900 { background: #f1f5f9 !important; }
html[data-tema="terang"] .station-card button { box-shadow: none; }
html[data-tema="terang"] .quota-card,
html[data-tema="terang"] .customer-tab { background: #f8fafc; }
html[data-tema="terang"] .active-table th { background: #f1f5f9; }

html[data-tema="terang"] .field { background: #ffffff; }
html[data-tema="terang"] .field::placeholder { color: #94a3b8; }
html[data-tema="terang"] .field:focus { box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15); }
html[data-tema="terang"] .select-modern,
html[data-tema="terang"] .select-modern option { background: #ffffff; }

html[data-tema="terang"] .btn-primary { color: #ffffff; box-shadow: 0 8px 20px -10px rgba(8, 145, 178, 0.7); }
html[data-tema="terang"] .btn-secondary { box-shadow: 0 8px 20px -10px rgba(124, 58, 237, 0.6); }
html[data-tema="terang"] .brand-title { background-image: linear-gradient(90deg, #0f172a, #0891b2 75%); }

html[data-tema="terang"] .badge-green { background: #ecfdf5; border-color: #a7f3d0; }
html[data-tema="terang"] .badge-red { background: #fff1f2; border-color: #fecdd3; }

html[data-tema="terang"] .modal-bg,
html[data-tema="terang"] .astro-dlg-bg,
html[data-tema="terang"] .astro-sheet-bg,
html[data-tema="terang"] .astro-drawer { background: rgba(15, 23, 42, 0.45); }
html[data-tema="terang"] .astro-dlg-ikon { background: #ffffff; filter: none; }
html[data-tema="terang"] .astro-dlg-btn-batal,
html[data-tema="terang"] .astro-sheet-tutup { background: #f1f5f9; }
html[data-tema="terang"] .astro-dlg-btn-batal:hover { background: #e2e8f0; }
html[data-tema="terang"] .astro-dlg-btn-bahaya { color: #ffffff; }
html[data-tema="terang"] .astro-sheet-item:hover:not(:disabled),
html[data-tema="terang"] .astro-sheet-item:focus-visible { background: #ecfeff; }
html[data-tema="terang"] .astro-sheet-item[aria-selected="true"] { background: #e0f7fb; }

/* ---------- navbar, menu bawah, laci ---------- */
html[data-tema="terang"] .astro-topbar { background: rgba(255, 255, 255, 0.9); box-shadow: 0 1px 0 var(--line), 0 6px 20px -16px rgba(15, 23, 42, 0.3); }
html[data-tema="terang"] .astro-nav-item:hover,
html[data-tema="terang"] .astro-nav-menu-item:hover { background: rgba(15, 23, 42, 0.05); }
html[data-tema="terang"] .astro-nav-item.active,
html[data-tema="terang"] .ann-filter.aktif,
html[data-tema="terang"] .chat-tab.aktif,
html[data-tema="terang"] .chat-btn-utama,
html[data-tema="terang"] .chat-bubble.saya,
html[data-tema="terang"] .acp-tab.aktif,
html[data-tema="terang"] .acp-kirim,
html[data-tema="terang"] .acp-tombol,
html[data-tema="terang"] .acp-bubble { color: #ffffff; }
html[data-tema="terang"] .astro-nav-menu-item.active { background: #ecfeff; }
html[data-tema="terang"] .astro-nav-item.danger { color: #e11d48; }
html[data-tema="terang"] .astro-nav-item.danger:hover { color: #be123c; background: #fff1f2; }
html[data-tema="terang"] .astro-nav-menu { box-shadow: 0 20px 40px -18px rgba(15, 23, 42, 0.35); }

html[data-tema="terang"] .astro-bottombar { background: rgba(255, 255, 255, 0.97); box-shadow: 0 -6px 18px -12px rgba(15, 23, 42, 0.3); }
html[data-tema="terang"] .astro-bb-item.active { background: #ecfeff; }
html[data-tema="terang"] .astro-bb-item.astro-bb-sewa { color: #b45309; background: linear-gradient(180deg, #fef3c7, #fffbeb); box-shadow: inset 0 0 0 1px #fcd34d; }
html[data-tema="terang"] .astro-bb-item.astro-bb-sewa.active { color: #92400e; background: #fde68a; }
html[data-tema="terang"] .astro-bb-item.astro-bb-topup { color: #6d28d9; background: linear-gradient(180deg, #ede9fe, #f5f3ff); box-shadow: inset 0 0 0 1px #c4b5fd; }
html[data-tema="terang"] .astro-bb-item.astro-bb-topup.active { color: #5b21b6; background: #ddd6fe; }
html[data-tema="terang"] .astro-bb-item.astro-bb-gacha { color: #a21caf; background: linear-gradient(180deg, #fae8ff, #fdf4ff); box-shadow: inset 0 0 0 1px #f0abfc; }
html[data-tema="terang"] .astro-bb-item.astro-bb-gacha.active { color: #86198f; background: #f5d0fe; }
html[data-tema="terang"] .astro-drawer-panel { background: #ffffff; box-shadow: -20px 0 50px -20px rgba(15, 23, 42, 0.4); }
html[data-tema="terang"] .astro-drawer-tutup { background: #f1f5f9; }

/* gelembung chat: bola neon tetap (ikon khas), kapsulnya ikut terang */
html[data-tema="terang"] .acb-kapsul { background: linear-gradient(90deg, rgba(8, 145, 178, 0.1), rgba(124, 58, 237, 0.1)), rgba(255, 255, 255, 0.92); box-shadow: 0 10px 24px -14px rgba(15, 23, 42, 0.4); }
html[data-tema="terang"] .acb-label { background-image: linear-gradient(90deg, #0891b2, #7c3aed); }

/* ---------- pengumuman, chat, laporan ---------- */
html[data-tema="terang"] .ann-acara,
html[data-tema="terang"] .ann-mini,
html[data-tema="terang"] .ann-filter,
html[data-tema="terang"] .chat-tab,
html[data-tema="terang"] .chat-notice,
html[data-tema="terang"] .chat-muat-lama,
html[data-tema="terang"] .chat-hari { background: #f8fafc; }
html[data-tema="terang"] .ann-mini:hover,
html[data-tema="terang"] .ann-filter:hover,
html[data-tema="terang"] .chat-tab:hover,
html[data-tema="terang"] .chat-row:hover { background: #f1f5f9; }
html[data-tema="terang"] .chat-item:hover,
html[data-tema="terang"] .chat-item.aktif { background: #ecfeff; }
html[data-tema="terang"] .chat-avatar { background: #e0f2fe; }
html[data-tema="terang"] .chat-btn,
html[data-tema="terang"] .chat-back,
html[data-tema="terang"] .chat-menu-btn,
html[data-tema="terang"] .chat-foto-btn { background: #f1f5f9; }
html[data-tema="terang"] .chat-btn:hover,
html[data-tema="terang"] .chat-menu-btn:hover,
html[data-tema="terang"] .chat-foto-btn:hover { background: #e2e8f0; }
html[data-tema="terang"] .chat-btn-bahaya { color: #be123c; background: #fff1f2; }
html[data-tema="terang"] .chat-bubble.dia { background: #f1f5f9; }
html[data-tema="terang"] .chat-banner { color: #92400e; background: #fffbeb; }
html[data-tema="terang"] .chat-tidur { background: rgba(255, 255, 255, 0.85); }
html[data-tema="terang"] .chat-foto img { background: #e2e8f0; }
html[data-tema="terang"] .lap-bar { background: #e2e8f0; }

html[data-tema="terang"] .acp-panel { box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.45); }
html[data-tema="terang"] .acp-isi { background: linear-gradient(180deg, #ffffff, #f3f6fb); }
html[data-tema="terang"] .acp-input,
html[data-tema="terang"] .acp-field { background: #ffffff; }
html[data-tema="terang"] .acp-pesan-isi { background: #f1f5f9; }
html[data-tema="terang"] .acp-pesan.sistem .acp-pesan-isi { background: #ecfeff; color: #0e7490; }
html[data-tema="terang"] .acp-label { color: #475569; }
html[data-tema="terang"] .acp-opsi { background: #f8fafc; }
html[data-tema="terang"] .acp-opsi:has(input:checked) { background: #ecfeff; }
html[data-tema="terang"] .acp-chip { color: #0e7490; background: #ecfeff; }
html[data-tema="terang"] .acp-chip:hover { background: #cffafe; }
html[data-tema="terang"] .acp-chip-orang { color: #b45309; background: #fffbeb; }
html[data-tema="terang"] .acp-kotak { background: #fffbeb; }
html[data-tema="terang"] .acp-galat { color: #e11d48; }
html[data-tema="terang"] .acp-link { color: #0891b2; }

/* ---------- utility Tailwind: warna teks ---------- */
html[data-tema="terang"] .text-slate-50,
html[data-tema="terang"] .text-slate-100,
html[data-tema="terang"] .text-slate-200,
html[data-tema="terang"] .text-gray-100,
html[data-tema="terang"] .text-gray-200 { color: #1e293b; }
html[data-tema="terang"] .text-slate-300,
html[data-tema="terang"] .text-gray-300 { color: #334155; }
html[data-tema="terang"] .text-slate-400,
html[data-tema="terang"] .text-gray-400 { color: #5b6b82; }
html[data-tema="terang"] .text-slate-500,
html[data-tema="terang"] .text-gray-500 { color: #64748b; }
html[data-tema="terang"] .text-slate-600 { color: #94a3b8; }
/* putih di atas latar gelap -> tinta; putih di atas tombol berwarna PEKAT tetap putih */
html[data-tema="terang"] .text-white:not([class*="bg-"]),
html[data-tema="terang"] .text-white[class*="0/"] { color: var(--ink); }
html[data-tema="terang"] .hover\:text-white:hover { color: #0f172a; }
html[data-tema="terang"] .hover\:text-slate-300:hover { color: #1e293b; }

html[data-tema="terang"] .text-cyan-50,
html[data-tema="terang"] .text-cyan-100,
html[data-tema="terang"] .text-cyan-200,
html[data-tema="terang"] .text-cyan-300,
html[data-tema="terang"] .hover\:text-cyan-200:hover,
html[data-tema="terang"] .hover\:text-cyan-300:hover { color: #0e7490; }
html[data-tema="terang"] .text-cyan-400,
html[data-tema="terang"] .hover\:text-cyan-400:hover { color: #0891b2; }
html[data-tema="terang"] .text-emerald-100,
html[data-tema="terang"] .text-emerald-200,
html[data-tema="terang"] .text-emerald-300,
html[data-tema="terang"] .text-green-200,
html[data-tema="terang"] .text-green-300 { color: #047857; }
html[data-tema="terang"] .text-emerald-400,
html[data-tema="terang"] .text-green-400 { color: #059669; }
html[data-tema="terang"] .text-rose-100,
html[data-tema="terang"] .text-rose-200,
html[data-tema="terang"] .text-rose-300,
html[data-tema="terang"] .text-red-200,
html[data-tema="terang"] .text-red-300,
html[data-tema="terang"] .hover\:text-rose-300:hover { color: #be123c; }
html[data-tema="terang"] .text-rose-400,
html[data-tema="terang"] .text-red-400 { color: #e11d48; }
html[data-tema="terang"] .text-amber-100,
html[data-tema="terang"] .text-amber-200,
html[data-tema="terang"] .text-amber-300,
html[data-tema="terang"] .text-orange-200,
html[data-tema="terang"] .text-orange-300 { color: #b45309; }
html[data-tema="terang"] .text-amber-400,
html[data-tema="terang"] .text-orange-400 { color: #d97706; }
html[data-tema="terang"] .text-yellow-100,
html[data-tema="terang"] .text-yellow-200,
html[data-tema="terang"] .text-yellow-300,
html[data-tema="terang"] .text-yellow-400 { color: #a16207; }
html[data-tema="terang"] .text-violet-100,
html[data-tema="terang"] .text-violet-200,
html[data-tema="terang"] .text-violet-300,
html[data-tema="terang"] .text-purple-200,
html[data-tema="terang"] .text-purple-300,
html[data-tema="terang"] .text-fuchsia-200,
html[data-tema="terang"] .text-fuchsia-300 { color: #6d28d9; }
html[data-tema="terang"] .text-violet-400,
html[data-tema="terang"] .text-purple-400,
html[data-tema="terang"] .text-fuchsia-400 { color: #7c3aed; }
html[data-tema="terang"] .text-sky-100,
html[data-tema="terang"] .text-sky-200,
html[data-tema="terang"] .text-sky-300,
html[data-tema="terang"] .text-sky-400 { color: #0369a1; }
html[data-tema="terang"] .text-blue-200,
html[data-tema="terang"] .text-blue-300,
html[data-tema="terang"] .text-blue-400 { color: #1d4ed8; }
html[data-tema="terang"] .text-indigo-200,
html[data-tema="terang"] .text-indigo-300 { color: #4338ca; }
html[data-tema="terang"] .text-teal-200,
html[data-tema="terang"] .text-teal-300 { color: #0f766e; }
html[data-tema="terang"] .text-pink-200,
html[data-tema="terang"] .text-pink-300 { color: #be185d; }
html[data-tema="terang"] .text-lime-200,
html[data-tema="terang"] .text-lime-300 { color: #4d7c0f; }

/* ---------- utility Tailwind: latar ---------- */
html[data-tema="terang"] .bg-white\/5,
html[data-tema="terang"] .hover\:bg-white\/5:hover { background-color: rgba(15, 23, 42, 0.035); }
html[data-tema="terang"] .bg-white\/10,
html[data-tema="terang"] .hover\:bg-white\/10:hover { background-color: rgba(15, 23, 42, 0.06); }
html[data-tema="terang"] .bg-white\/15,
html[data-tema="terang"] .bg-white\/20,
html[data-tema="terang"] .hover\:bg-white\/15:hover,
html[data-tema="terang"] .hover\:bg-white\/20:hover { background-color: rgba(15, 23, 42, 0.09); }
html[data-tema="terang"] [class*="bg-black/"] { background-color: rgba(15, 23, 42, 0.05); }
html[data-tema="terang"] [class*="bg-slate-9"],
html[data-tema="terang"] [class*="bg-gray-9"] { background-color: #f1f5f9; }
html[data-tema="terang"] [class*="bg-slate-8"],
html[data-tema="terang"] [class*="bg-gray-8"] { background-color: #eef2f7; }
html[data-tema="terang"] .bg-slate-700,
html[data-tema="terang"] .hover\:bg-slate-700:hover { background-color: #e2e8f0; }
/* latar warna gelap transparan (-900/-950) -> versi pastel */
html[data-tema="terang"] [class*="bg-rose-9"],
html[data-tema="terang"] [class*="bg-red-9"] { background-color: #fff1f2; }
html[data-tema="terang"] [class*="bg-emerald-9"],
html[data-tema="terang"] [class*="bg-green-9"] { background-color: #ecfdf5; }
html[data-tema="terang"] [class*="bg-amber-9"],
html[data-tema="terang"] [class*="bg-yellow-9"],
html[data-tema="terang"] [class*="bg-orange-9"] { background-color: #fffbeb; }
html[data-tema="terang"] [class*="bg-cyan-9"],
html[data-tema="terang"] [class*="bg-sky-9"],
html[data-tema="terang"] [class*="bg-blue-9"] { background-color: #ecfeff; }
html[data-tema="terang"] [class*="bg-violet-9"],
html[data-tema="terang"] [class*="bg-purple-9"],
html[data-tema="terang"] [class*="bg-indigo-9"],
html[data-tema="terang"] [class*="bg-fuchsia-9"] { background-color: #f5f3ff; }

/* ---------- utility Tailwind: garis ---------- */
html[data-tema="terang"] .border-slate-800,
html[data-tema="terang"] .border-slate-700,
html[data-tema="terang"] .border-gray-800,
html[data-tema="terang"] .border-gray-700 { border-color: #e2e8f0; }
html[data-tema="terang"] .border-slate-600,
html[data-tema="terang"] .hover\:border-slate-600:hover { border-color: #cbd5e1; }
html[data-tema="terang"] [class*="border-white/"],
html[data-tema="terang"] [class*="divide-white/"] > * + * { border-color: rgba(15, 23, 42, 0.1); }
html[data-tema="terang"] .divide-slate-800 > * + *,
html[data-tema="terang"] .divide-slate-700 > * + * { border-color: #e2e8f0; }

/* tabel & kode */
html[data-tema="terang"] code { color: #0e7490; }

/* ---------- tema terang: penyesuaian halaman yang punya <style> sendiri ---------- */
/* panduan.php */
html[data-tema="terang"] .pd-tab,
html[data-tema="terang"] .pd-chip { background: #f8fafc; color: #334155; }
html[data-tema="terang"] .pd-tab[aria-selected="true"] { background: #e0f2fe; color: #0c4a6e; }
html[data-tema="terang"] .pd-chip:hover { color: #0f172a; }
html[data-tema="terang"] .pd-isi h3,
html[data-tema="terang"] .pd-isi b { color: #0f172a; }
html[data-tema="terang"] .pd-isi p,
html[data-tema="terang"] .pd-isi li { color: #334155; }
html[data-tema="terang"] .pd-isi a { color: #0e7490; }
html[data-tema="terang"] .pd-tombol { background: #ecfeff; color: #0e7490; }
html[data-tema="terang"] .pd-tips { background: #ecfdf5; color: #065f46; }
html[data-tema="terang"] .pd-awas { background: #fffbeb; color: #92400e; }
html[data-tema="terang"] mark.pd-tanda { background: #fde68a; color: #0f172a; }
/* includes/info_usaha.php (S&K, privasi, dll.) */
html[data-tema="terang"] .legal h2,
html[data-tema="terang"] .legal b { color: #0f172a; }
html[data-tema="terang"] .legal p,
html[data-tema="terang"] .legal li { color: #334155; }
html[data-tema="terang"] .legal a { color: #0e7490; }
/* sewa.php (member) */
html[data-tema="terang"] .leaflet-container { background: #e2e8f0; }
html[data-tema="terang"] .sm-judul,
html[data-tema="terang"] .sm-filter button.aktif,
html[data-tema="terang"] .sm-chip.aktif { color: #0e7490; }
html[data-tema="terang"] .sm-chip,
html[data-tema="terang"] .sm-mode { background: #f8fafc; }
html[data-tema="terang"] .sm-mode.aktif { background: #ecfeff; }
html[data-tema="terang"] .sm-unit { --k: #0891b2; --k-rgb: 8, 145, 178; }
html[data-tema="terang"] .sm-k-PS3, html[data-tema="terang"] .sm-st-kembali { --k: #9333ea; --k-rgb: 147, 51, 234; }
html[data-tema="terang"] .sm-k-PS4, html[data-tema="terang"] .sm-st-berjalan { --k: #0891b2; --k-rgb: 8, 145, 178; }
html[data-tema="terang"] .sm-k-VIP, html[data-tema="terang"] .sm-st-booking { --k: #ca8a04; --k-rgb: 202, 138, 4; }
html[data-tema="terang"] .sm-k-lain, html[data-tema="terang"] .sm-st-selesai { --k: #059669; --k-rgb: 5, 150, 105; }
html[data-tema="terang"] .sm-st-batal { --k: #64748b; --k-rgb: 100, 116, 139; }
/* owner/laporan_bulanan.php */
html[data-tema="terang"] .lb-uang { background: #f8fafc; }
html[data-tema="terang"] .lb-tabel tfoot td { color: #0f172a; }
html[data-tema="terang"] .lb-tabel tr.lb-akhir-pekan td:first-child { color: #b45309; }
html[data-tema="terang"] .lb-tabel tr.lb-grp th.g-data { color: #0e7490; }
html[data-tema="terang"] .lb-tabel tr.lb-grp th.g-masuk { color: #047857; }
html[data-tema="terang"] .lb-tabel tr.lb-grp th.g-keluar { color: #be123c; }
html[data-tema="terang"] .lb-tabel tr.lb-grp th.g-jumlah { color: #b45309; }
html[data-tema="terang"] .lb-nol { color: #cbd5e1; }
html[data-tema="terang"] .lb-chip { background: #f1f5f9; }
/* owner/buku_poin.php */
html[data-tema="terang"] .bp-tab,
html[data-tema="terang"] .bp-kartu { background: #f8fafc; }
html[data-tema="terang"] .bp-tab:hover { color: #0f172a; background: #f1f5f9; }
html[data-tema="terang"] .bp-tab.aktif { color: #ffffff; background: #0891b2; border-color: #0891b2; }
/* index.php & halaman lain yang memakai warna arbitrer Tailwind bg-[#0.....] / border-[#16294d] */
html[data-tema="terang"] [class*="bg-[#0"] { background-color: rgba(255, 255, 255, 0.85); }
html[data-tema="terang"] section[class*="bg-[#0"] { background-color: #eef3f9; }
html[data-tema="terang"] [class*="border-[#1"] { border-color: var(--line); }
html[data-tema="terang"] [class*="border-slate-800/"] { border-color: #e2e8f0; }
html[data-tema="terang"] .ann-filter.aktif,
html[data-tema="terang"] .chat-tab.aktif { background: linear-gradient(135deg, var(--cyan), var(--blue)); }
html[data-tema="terang"] img[src*="logo-astro-web"] { filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.3)); }
