/* ==========================================================================
   Billas v4 — single stylesheet for public, customer, admin, and WiFi UI.
   No build step, no external font/CDN. Mobile-first and print-friendly.
   ========================================================================== */

:root {
    --bg: #f4f7f6;
    --surface: #ffffff;
    --surface-muted: #eef4f2;
    --ink: #0e1c1a;
    --ink-soft: #445a56;
    --muted: #6b807c;
    --line: #dbe6e3;
    --brand: #0f766e;
    --brand-dark: #0b4f4a;
    --brand-soft: #d7f1ed;
    --accent: #f59e0b;
    --danger: #c2410c;
    --danger-soft: #ffede6;
    --warning: #a16207;
    --warning-soft: #fef3c7;
    --success: #15803d;
    --success-soft: #dcfce7;
    --info: #0369a1;
    --info-soft: #e0f2fe;
    --dark: #0b1220;
    --dark-soft: #121d31;
    --radius: 18px;
    --radius-sm: 11px;
    --shadow: 0 18px 50px rgba(14, 35, 32, 0.08);
    --shadow-sm: 0 6px 20px rgba(14, 35, 32, 0.07);
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5rem; color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.45rem); }
h2 { font-size: clamp(1.2rem, 2.3vw, 1.55rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1rem; }
ul, ol { margin-top: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
code, .mono, pre { font-family: var(--mono); }
:focus-visible { outline: 3px solid rgba(15, 118, 110, .4); outline-offset: 2px; }

.muted { color: var(--muted) !important; }
.small { font-size: .84rem; }
.hidden { display: none !important; }
.accent { color: var(--brand); }
.break { overflow-wrap: anywhere; }
.center { text-align: center; justify-content: center; }
.nowrap { white-space: nowrap; }
.grow { flex: 1 1 240px; }

.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2.25rem 0 3.5rem; }
.eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: .4rem;
}

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: 1px solid transparent;
    background: var(--surface-muted);
    color: var(--ink);
    padding: .68rem 1.05rem;
    border-radius: 999px;
    font: inherit;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(15, 118, 110, .25); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-muted); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #9a3412; }
.btn-sm { padding: .38rem .72rem; font-size: .8rem; }
.btn-lg { padding: .9rem 1.45rem; font-size: 1rem; }
.btn-block { width: 100%; }
.link { font-weight: 600; }
.inline-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.inline-form { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }

/* --------------------------------------------------------------- surfaces */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.divider { height: 1px; background: var(--line); margin: 1.15rem 0; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.content-grid > .card, .content-grid > aside.card { margin-bottom: 0; }
.section { margin: 2.5rem 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.35rem; flex-wrap: wrap; }
.section-heading h2 { margin: 0; }
.section-heading p { max-width: 390px; margin: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head h1 { margin-bottom: .25rem; }
.page-head p { margin: 0; max-width: 680px; }
.empty-state {
    border: 1px dashed #bfd2ce;
    background: linear-gradient(180deg, #fbfdfc, #f4f9f8);
    border-radius: var(--radius-sm);
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--ink-soft);
}
.empty-state h3 { margin-bottom: .35rem; }
.empty-state p:last-child { margin-bottom: 0; }
.empty-state.compact { padding: 1rem; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--surface); }
.table th, .table td { padding: .72rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { background: #f2f7f6; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fbfdfc; }
.table-compact th, .table-compact td { padding: .5rem .65rem; font-size: .82rem; }
.actions-cell { white-space: nowrap; }
.actions-cell > * { margin-right: .35rem; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .58rem;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--ink-soft);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    line-height: 1.35;
    white-space: nowrap;
}
.badge-lg { padding: .4rem .9rem; font-size: .78rem; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-muted { background: #eef1f0; color: #61716e; }
.badge-soft { background: var(--brand-soft); color: var(--brand-dark); }
.pill-row { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }

/* ----------------------------------------------------------------- alerts */
.alert {
    position: relative;
    padding: .9rem 2.6rem .9rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    margin-bottom: 1rem;
    font-size: .92rem;
}
.alert-error { background: var(--danger-soft); border-color: #fec9b8; color: #7c2d12; }
.alert-success { background: var(--success-soft); border-color: #bbf7d0; color: #14532d; }
.alert-warning { background: var(--warning-soft); border-color: #fde68a; color: #713f12; }
.alert-info { background: var(--info-soft); border-color: #bae6fd; color: #0c4a6e; }
.alert-close { position: absolute; right: .55rem; top: .45rem; border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; color: inherit; line-height: 1; padding: .2rem; }
.notice { border-radius: var(--radius-sm); padding: .85rem 1rem; background: var(--surface-muted); color: var(--ink-soft); margin-top: 1rem; border-left: 4px solid var(--brand); }
.notice-warning { background: var(--warning-soft); border-left-color: #d97706; color: #713f12; }
.notice-info { background: var(--info-soft); border-left-color: #0284c7; color: #0c4a6e; }
.notice-success { background: var(--success-soft); border-left-color: #16a34a; color: #14532d; }
.notice p:last-child { margin-bottom: 0; }
.bare-list { list-style: none; margin: .35rem 0 0; padding: 0; }
.bare-list li { margin-bottom: .25rem; }

/* ------------------------------------------------------------------ forms */
label, .field { display: grid; gap: .35rem; font-size: .86rem; font-weight: 700; color: var(--ink-soft); }
label > span, .field > span { font-weight: 700; }
input, select, textarea {
    width: 100%;
    font: inherit;
    font-size: .94rem;
    font-weight: 400;
    color: var(--ink);
    background: #fbfdfc;
    border: 1px solid #cddad7;
    border-radius: 10px;
    padding: .62rem .75rem;
    transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); outline: none; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--brand); }
input[readonly] { background: #eef3f2; color: var(--ink-soft); }
.hint, .field small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; align-items: end; }
.form-grid.two { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-grid.three { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; grid-column: 1 / -1; margin-top: .3rem; }
.checkbox-field { display: flex; align-items: center; gap: .55rem; padding: .55rem 0; font-weight: 600; }
.checkbox-field input { flex: 0 0 auto; }
.stack-form { display: grid; gap: .9rem; }
.stack-form label { font-size: .85rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin: 0; }
.filter-actions { display: flex; gap: .5rem; padding-bottom: .05rem; }
.field-inline { display: inline-flex; align-items: center; gap: .5rem; }
.field-inline > span { white-space: nowrap; }
.field-inline select, .field-inline input { width: auto; min-width: 130px; }
.settings-form > .card { margin-bottom: 1.4rem; }
.sticky-actions {
    position: sticky;
    bottom: 1rem;
    z-index: 10;
    display: flex;
    gap: .65rem;
    align-items: center;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .55rem .7rem;
    width: fit-content;
    box-shadow: var(--shadow-sm);
}
.toggle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: .7rem; }
.toggle-card {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .8rem .9rem;
    background: #fbfdfc;
    cursor: pointer;
}
.toggle-card strong { display: block; font-size: .9rem; color: var(--ink); }
.toggle-card small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.toggle-card input { position: absolute; opacity: 0; pointer-events: none; }
.switch { flex: 0 0 auto; width: 44px; height: 25px; border-radius: 999px; background: #c9d6d3; position: relative; transition: background .18s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .18s; }
.toggle-card input:checked + .switch { background: var(--brand); }
.toggle-card input:checked + .switch::after { transform: translateX(19px); }
.code-inline { display: inline-block; background: #f1f6f5; border: 1px solid var(--line); border-radius: 7px; padding: .15rem .4rem; font-size: .76rem; overflow-wrap: anywhere; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.rank-list li { display: flex; gap: .7rem; align-items: flex-start; }
.rank-no { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: .78rem; }
.rank-body { flex: 1; min-width: 0; }
.rank-head { display: flex; justify-content: space-between; gap: .5rem; font-size: .88rem; }
.rank-head span { color: var(--muted); white-space: nowrap; }
.progress { height: 7px; border-radius: 999px; background: #e8efed; overflow: hidden; margin: .35rem 0; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #34d399); }

/* --------------------------------------------------------------- headers */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 0;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none !important; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 900; font-size: 1.2rem; box-shadow: 0 8px 18px rgba(15, 118, 110, .28); }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: #fff; }
.brand strong { display: block; line-height: 1.15; font-size: 1.05rem; }
.brand small { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; }
.site-nav a { color: var(--ink-soft); font-weight: 650; font-size: .88rem; padding: .45rem .7rem; border-radius: 999px; text-decoration: none; }
.site-nav a:hover { background: var(--surface-muted); }
.site-nav a.active { background: var(--brand); color: #fff; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 1.3rem 0 2rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .88rem; }
.header-user { display: flex; align-items: center; gap: .55rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; }
.user-name { font-weight: 700; font-size: .85rem; }

/* ------------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr); gap: 2rem; align-items: center; padding: 2.5rem 0 1rem; }
.hero-copy h1 { font-size: clamp(2rem, 5vw, 3.35rem); letter-spacing: -.045em; }
.hero-copy > p { max-width: 590px; color: var(--ink-soft); font-size: 1.02rem; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.4rem 0; }
.hero-points { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; color: var(--ink-soft); font-size: .85rem; }
.hero-points li::before { content: "✓"; color: var(--brand); font-weight: 900; margin-right: .35rem; }
.hero-art { position: relative; min-height: 300px; display: grid; place-items: center; }
.signal-card { position: relative; z-index: 2; display: flex; gap: .8rem; align-items: center; background: var(--dark); color: #fff; border-radius: 22px; padding: 1.1rem 1.25rem; min-width: 250px; box-shadow: 0 24px 60px rgba(11, 18, 32, .3); }
.signal-card strong { display: block; }
.signal-card small { color: #a8c3be; }
.signal-icon { font-size: 1.7rem; color: #5eead4; }
.signal-dot { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 6px rgba(52, 211, 153, .16); }
.hero-orbit { position: absolute; border: 1px solid #c8ded9; border-radius: 50%; }
.orbit-one { inset: 12%; }
.orbit-two { inset: 0 22%; border-style: dashed; }
.orbit-three { inset: 28% 4%; border-color: #e2eeeb; }
.hero-art::before { content: ""; position: absolute; width: 70%; height: 70%; border-radius: 50%; background: radial-gradient(circle, rgba(15, 118, 110, .14), transparent 65%); }

/* --------------------------------------------------------------- packages */
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 1.1rem; }
.package-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.package-card.featured { border-color: var(--brand); box-shadow: 0 20px 52px rgba(15, 118, 110, .16); transform: translateY(-3px); }
.ribbon { position: absolute; top: -11px; right: 1.1rem; background: var(--accent); color: #422006; font-size: .68rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; border-radius: 999px; padding: .25rem .65rem; }
.package-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
.package-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); font-size: 1.2rem; }
.package-card h3 { font-size: 1.15rem; margin-bottom: .15rem; }
.package-duration { color: var(--muted); font-size: .84rem; margin-bottom: .8rem; }
.price { font-size: 2rem; font-weight: 900; letter-spacing: -.04em; color: var(--ink); margin-bottom: .9rem; }
.price span { font-size: .95rem; font-weight: 700; color: var(--muted); margin-right: .18rem; }
.package-features { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .4rem; color: var(--ink-soft); font-size: .86rem; }
.package-features li::before { content: "✓"; color: var(--brand); font-weight: 900; margin-right: .4rem; }
.package-card .btn { margin-top: auto; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.step > span { display: block; font-size: 1.5rem; font-weight: 900; color: var(--brand-soft); letter-spacing: -.05em; margin-bottom: .5rem; }
.step h3 { font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: .88rem; }

/* ---------------------------------------------------------------- payment */
.payment-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr); gap: 1.5rem; align-items: start; padding-top: 1rem; }
.payment-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow); text-align: center; }
.payment-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; text-align: left; }
.payment-head p { margin: 0; }
.payment-amount { margin: 1.5rem auto; display: grid; gap: .3rem; }
.payment-amount small { text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-size: .72rem; font-weight: 800; }
.payment-amount strong { font-size: clamp(2rem, 5vw, 2.7rem); letter-spacing: -.04em; }
.countdown { color: var(--warning); font-weight: 700; font-size: .86rem; }
.qr-box { display: grid; place-items: center; gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; width: fit-content; margin: 0 auto 1.2rem; box-shadow: var(--shadow-sm); }
.qr-box img { width: min(280px, 72vw); height: auto; border-radius: 8px; }
.qr-box.small img { width: min(200px, 60vw); }
.qr-scan { font-size: .78rem; color: var(--muted); font-weight: 700; }
.payment-status { display: flex; align-items: center; justify-content: center; gap: .55rem; margin: 1rem auto; color: var(--ink-soft); font-size: .9rem; }
.spinner { width: 17px; height: 17px; border-radius: 50%; border: 2px solid #c9ded9; border-top-color: var(--brand); animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.payment-steps { text-align: left; max-width: 460px; margin: 1.4rem auto; padding-left: 1.2rem; color: var(--ink-soft); font-size: .88rem; }
.payment-steps li { margin-bottom: .4rem; }
.payment-aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.summary-list { display: grid; gap: .55rem; margin: 0; }
.summary-list > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed #e2ebe9; padding-bottom: .45rem; }
.summary-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.summary-list dt { color: var(--muted); font-size: .82rem; font-weight: 600; }
.summary-list dd { margin: 0; text-align: right; font-size: .88rem; overflow-wrap: anywhere; }
.summary-list.compact > div { padding-bottom: .35rem; }
.invoice-summary { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.invoice-total { display: block; font-size: 2rem; letter-spacing: -.04em; }
.pending-payment { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; border: 1px solid #fde68a; background: #fffbeb; border-radius: var(--radius-sm); padding: 1rem; margin: 1rem 0; }
.pending-payment p { margin: 0; }
.pay-panel { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.pay-panel label > span { font-size: .82rem; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.payment-account { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; background: #fbfdfc; }
.qris-teaser { text-align: left; }
.qr-mini { width: 160px; height: auto; margin: .5rem auto 1rem; border: 1px solid var(--line); border-radius: 10px; padding: .4rem; background: #fff; }
.callout-card { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; border-left: 5px solid var(--accent); }
.callout-card h2 { margin-bottom: .2rem; }
.callout-amount { display: grid; gap: .5rem; justify-items: end; }
.callout-amount strong { font-size: 1.6rem; letter-spacing: -.03em; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.timeline li { display: flex; gap: .65rem; }
.timeline-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: #9fb8b3; margin-top: .4rem; }
.timeline-dot.paid, .timeline-dot.active { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .12); }
.timeline-dot.pending { background: #d97706; box-shadow: 0 0 0 4px rgba(217, 119, 6, .12); }
.timeline-dot.expired, .timeline-dot.cancelled, .timeline-dot.revoked { background: #94a3b8; }
.timeline p { margin: .15rem 0 0; }

/* ----------------------------------------------------------------- stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; margin-bottom: 1.5rem; }
.stat-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; display: grid; gap: .2rem; box-shadow: var(--shadow-sm); }
.stat-label { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-size: clamp(1.25rem, 2.4vw, 1.8rem); letter-spacing: -.035em; line-height: 1.2; }
.stat-note { font-size: .78rem; color: var(--muted); }
.stat-highlight { background: linear-gradient(145deg, var(--brand-dark), var(--brand)); border-color: transparent; color: #fff; }
.stat-highlight .stat-label, .stat-highlight .stat-note { color: #b9e7e0; }
.stat-highlight .stat-value { color: #fff; }
.compact-stats .stat-card { padding: .8rem 1rem; }
.compact-stats .stat-value { font-size: 1.35rem; }

/* ---------------------------------------------------------------- charts */
.bar-chart { display: flex; align-items: end; gap: .35rem; height: 230px; padding: 1rem .3rem .2rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.bar-chart-col { flex: 1 1 0; min-width: 26px; height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: .25rem; }
.bar-stack { flex: 1; width: 100%; display: flex; align-items: end; justify-content: center; gap: 2px; }
.bar { display: block; width: 42%; border-radius: 5px 5px 0 0; min-height: 2px; transition: height .4s ease; }
.bar-revenue { background: linear-gradient(180deg, #2dd4bf, var(--brand)); }
.bar-orders { background: #cbd5e1; }
.bar-label { font-size: .66rem; color: var(--muted); }
.bar-value { font-size: .66rem; font-weight: 800; color: var(--ink-soft); }
.chart-legend { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: .75rem; font-size: .8rem; color: var(--ink-soft); }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .3rem; }
.legend-dot.revenue { background: var(--brand); }
.legend-dot.orders { background: #cbd5e1; }

/* ------------------------------------------------------------ qris unique */
.qris-unique { padding: .2rem; }
.qris-unique.compact { padding: 0; }
.qris-unique-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; flex-wrap: wrap; }
.qris-unique-head h2 { margin-bottom: .15rem; }
.qris-unique-box img { width: min(320px, 78vw); }
.qris-page-grid { align-items: stretch; }
.ordered-steps { padding-left: 1.2rem; color: var(--ink-soft); font-size: .9rem; }
.ordered-steps li { margin-bottom: .4rem; }
.breadcrumb { display: flex; gap: .45rem; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 1rem; flex-wrap: wrap; }

/* ------------------------------------------------------------------ wifi */
.wifi-body { background: radial-gradient(circle at 12% 0%, rgba(45, 212, 191, .14), transparent 32%), radial-gradient(circle at 88% 12%, rgba(245, 158, 11, .1), transparent 28%), #071311; color: #e8f5f2; }
.wifi-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 1.15rem 0; }
.wifi-header .brand { color: #fff; }
.wifi-header .brand small { color: #8fb8b0; }
.wifi-header .brand-mark { background: #0d9488; }
.wifi-status { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid rgba(94, 234, 212, .25); background: rgba(13, 148, 136, .12); color: #99f6e4; padding: .35rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .14); display: inline-block; }
.wifi-main { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 1rem 0 3rem; }
.wifi-footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 1.2rem 0 2rem; border-top: 1px solid rgba(148, 214, 202, .16); color: #9fc3bc; font-size: .82rem; }
.wifi-footer a { color: #99f6e4; }
.wifi-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, .55fr); gap: 1.5rem; align-items: center; padding: 2rem 0 1.4rem; }
.wifi-hero .eyebrow { color: #5eead4; }
.wifi-hero h1 { color: #fff; font-size: clamp(2.05rem, 5vw, 3.3rem); letter-spacing: -.05em; }
.wifi-hero p { color: #a8cbc4; max-width: 600px; }
.wifi-facts { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.wifi-facts > div { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid rgba(148, 214, 202, .2); background: rgba(12, 40, 36, .55); padding: .35rem .65rem; border-radius: 999px; font-size: .76rem; color: #c8e7e1; }
.wifi-badge-card { background: linear-gradient(160deg, rgba(13, 148, 136, .28), rgba(8, 25, 22, .8)); border: 1px solid rgba(94, 234, 212, .24); border-radius: 22px; padding: 1.3rem; display: grid; gap: .25rem; box-shadow: 0 24px 70px rgba(0, 0, 0, .28); }
.wifi-badge-card strong { color: #fff; font-size: 1.25rem; }
.wifi-badge-card span { color: #9fe3d8; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.wifi-badge-card small { color: #8fb8b0; }
.signal-icon.big { font-size: 2rem; color: #5eead4; margin-bottom: .4rem; }
.wifi-body .section-heading h2, .wifi-body .section-heading .muted { color: #e8f5f2; }
.wifi-body .section-heading p, .wifi-body .muted { color: #8fb8b0; }
.wifi-body .package-card { background: #0c1d1a; border-color: rgba(148, 214, 202, .18); box-shadow: 0 20px 50px rgba(0, 0, 0, .24); }
.wifi-body .package-card.featured { border-color: #2dd4bf; }
.wifi-body .package-card h3 { color: #fff; }
.wifi-body .price { color: #fff; }
.wifi-body .package-features { color: #a8cbc4; }
.wifi-body .badge-soft { background: rgba(45, 212, 191, .14); color: #99f6e4; }
.wifi-body .package-icon { background: rgba(45, 212, 191, .14); color: #5eead4; }
.wifi-body .empty-state { background: rgba(12, 29, 26, .7); border-color: rgba(148, 214, 202, .25); color: #a8cbc4; }
.wifi-body .empty-state h3 { color: #e8f5f2; }
.wifi-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.wifi-how-item { border-top: 1px solid rgba(148, 214, 202, .18); padding-top: .8rem; }
.wifi-how-item > span { color: #2dd4bf; font-weight: 900; letter-spacing: .08em; font-size: .8rem; }
.wifi-how-item h3 { color: #e8f5f2; margin: .3rem 0 .2rem; }
.wifi-how-item p { margin: 0; color: #8fb8b0; font-size: .86rem; }
.wifi-session-note { text-align: center; margin-top: 2rem; color: #8fb8b0; }
.wifi-body .alert-error { background: rgba(194, 65, 12, .18); border-color: rgba(251, 146, 60, .35); color: #fed7aa; }
.wifi-body .alert-success { background: rgba(21, 128, 61, .18); border-color: rgba(74, 222, 128, .3); color: #bbf7d0; }
.wifi-body .alert-warning { background: rgba(161, 98, 7, .18); border-color: rgba(251, 191, 36, .3); color: #fde68a; }
.wifi-body .alert-info { background: rgba(3, 105, 161, .2); border-color: rgba(56, 189, 248, .3); color: #bae6fd; }
.wifi-body .alert-close { color: inherit; }
.wifi-pay-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .6fr); gap: 1.4rem; align-items: start; padding-top: 1rem; }
.wifi-payment-card { background: #0c1d1a; border-color: rgba(148, 214, 202, .2); color: #e8f5f2; }
.wifi-payment-card h1 { color: #fff; }
.wifi-payment-card .payment-amount strong { color: #fff; }
.wifi-payment-card .muted { color: #8fb8b0; }
.wifi-payment-card .badge { background: rgba(245, 158, 11, .16); color: #fcd34d; }
.wifi-payment-card .notice { background: rgba(245, 158, 11, .12); border-left-color: #f59e0b; color: #fde68a; }
.wifi-payment-card .empty-state { background: rgba(12, 29, 26, .7); border-color: rgba(148, 214, 202, .25); color: #a8cbc4; }
.wifi-payment-card .empty-state h3 { color: #e8f5f2; }
.wifi-payment-card .qr-box { background: #fff; border-color: transparent; }
.wifi-payment-card .payment-status { color: #a8cbc4; }
.wifi-payment-card .btn-ghost { color: #d7efea; border-color: rgba(148, 214, 202, .3); }
.wifi-payment-card .btn-ghost:hover { background: rgba(148, 214, 202, .1); }
.wifi-pay-wrap .payment-aside { background: #0c1d1a; border-color: rgba(148, 214, 202, .2); color: #d7efea; }
.wifi-pay-wrap .payment-aside h3 { color: #fff; }
.wifi-pay-wrap .summary-list dt { color: #8fb8b0; }
.wifi-pay-wrap .summary-list dd { color: #e8f5f2; }
.wifi-pay-wrap .summary-list > div { border-color: rgba(148, 214, 202, .16); }
.wifi-pay-wrap .notice-info { background: rgba(3, 105, 161, .2); border-left-color: #38bdf8; color: #bae6fd; }
.wifi-voucher-wrap { max-width: 640px; margin: 1rem auto; text-align: center; background: linear-gradient(170deg, rgba(13, 148, 136, .2), rgba(7, 19, 17, .45)); border: 1px solid rgba(94, 234, 212, .22); border-radius: 24px; padding: clamp(1.25rem, 4vw, 2.2rem); box-shadow: 0 26px 70px rgba(0, 0, 0, .25); }
.wifi-voucher-wrap h1 { color: #fff; }
.wifi-voucher-wrap > p { color: #a8cbc4; }
.wifi-voucher-wrap .notice { text-align: left; background: rgba(245, 158, 11, .12); border-left-color: #f59e0b; color: #fde68a; }
.wifi-voucher-wrap .btn-primary { background: #14b8a6; }
.wifi-voucher-wrap .btn-ghost { color: #d7efea; border-color: rgba(148, 214, 202, .3); }
.wifi-voucher-card { background: #f8fdfc; color: var(--ink); border-radius: 18px; padding: 1rem; margin: 1.2rem 0; text-align: left; }
.password-row { align-items: center; }
.password-code { font-size: clamp(1.3rem, 4vw, 2rem); letter-spacing: .08em; color: var(--brand-dark); }
.voucher-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; margin-top: .8rem; }
.voucher-meta > div { display: grid; gap: .12rem; }
.voucher-meta span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.voucher-meta strong { font-size: .9rem; }
.voucher-note { margin-top: .8rem; border-top: 1px dashed #cfe0dc; padding-top: .7rem; display: flex; gap: 1rem; flex-wrap: wrap; background: #eef7f5; border-radius: 10px; padding: .6rem .7rem; }
.wifi-login-steps { text-align: left; max-width: 450px; margin: 1.2rem auto; color: #a8cbc4; padding-left: 1.3rem; font-size: .9rem; }
.wifi-login-steps li { margin-bottom: .35rem; }
.wifi-voucher-wrap .muted.small { color: #8fb8b0; }
.success-mark { width: 58px; height: 58px; border-radius: 50%; background: #14b8a6; color: #05201c; display: grid; place-items: center; font-size: 1.7rem; font-weight: 900; margin: 0 auto .8rem; box-shadow: 0 0 0 10px rgba(20, 184, 166, .12); }

/* ---------------------------------------------------------------- voucher */
.voucher-wrap { max-width: 690px; margin: 1rem auto 2rem; text-align: center; }
.voucher-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); margin: 1.2rem 0; text-align: left; }
.voucher-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-bottom: 1px dashed var(--line); padding: .75rem 0; }
.voucher-row:first-child { padding-top: 0; }
.voucher-row > span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.code { font-family: var(--mono); font-size: 1.15rem; letter-spacing: .03em; overflow-wrap: anywhere; }
.voucher-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .8rem; margin-top: 1rem; }
.voucher-meta > div { display: grid; gap: .15rem; }
.voucher-meta span { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.success-mark { width: 58px; height: 58px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.7rem; font-weight: 900; margin: 0 auto .8rem; box-shadow: 0 0 0 10px rgba(15, 118, 110, .1); }

/* ------------------------------------------------------------------ auth */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 1.6rem; align-items: stretch; max-width: 980px; margin: 1.5rem auto; }
.auth-aside { background: linear-gradient(150deg, var(--brand-dark), #0f766e 62%, #14b8a6); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.auth-aside .eyebrow { color: #99f6e4; }
.auth-aside h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.04em; }
.auth-aside p { color: #d1faf3; }
.auth-aside.admin-aside { background: linear-gradient(150deg, #0b1220, #172b45 68%, #1d4ed8); }
.admin-auth .auth-aside .eyebrow { color: #93c5fd; }
.admin-auth .auth-aside p { color: #dbeafe; }
.check-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; color: #e6fffb; font-size: .92rem; }
.check-list li::before { content: "✓"; color: #5eead4; font-weight: 900; margin-right: .5rem; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 4vw, 2rem); box-shadow: var(--shadow); align-self: center; width: 100%; }
.auth-card h2 { margin-bottom: .25rem; }
.auth-card .link { display: inline-block; margin-top: 1rem; }

/* ------------------------------------------------------------------ admin */
.admin-body { background: #edf2f1; }
.admin-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--dark); color: #dbe9e6; padding: 1rem .8rem; display: flex; flex-direction: column; }
.sidebar-brand { padding: .5rem .5rem 1rem; color: #fff; }
.sidebar-brand .brand-mark { background: #14b8a6; color: #04211d; }
.sidebar-brand small { color: #7fa49e; }
.sidebar-nav { display: grid; gap: .15rem; }
.sidebar-nav a { display: flex; align-items: center; gap: .6rem; color: #b9cfca; font-size: .86rem; font-weight: 650; padding: .5rem .65rem; border-radius: 9px; text-decoration: none; }
.sidebar-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar-nav a.active { background: #115e59; color: #fff; }
.nav-icon { width: 20px; text-align: center; opacity: .85; }
.sidebar-foot { margin-top: auto; padding: 1rem .5rem .25rem; display: grid; gap: .3rem; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-foot a { color: #99f6e4; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.5rem; background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-sub { display: block; font-size: .72rem; }
.admin-content { padding: 1.5rem; max-width: 1440px; width: 100%; }
.nav-toggle { display: none; }
.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.job-list li { display: flex; align-items: flex-start; gap: .55rem; }
.job-list strong { display: block; font-size: .85rem; }
.job-dot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; margin-top: .4rem; background: #94a3b8; }
.job-dot.ok { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .12); }
.job-dot.warn { background: #d97706; box-shadow: 0 0 0 4px rgba(217, 119, 6, .12); }
.job-dot.idle { background: #cbd5e1; }
.batch-actions { border-top: 1px solid var(--line); padding-top: .9rem; }
.admin-content .page-head { margin-bottom: 1.2rem; }

/* ------------------------------------------------------------------ error */
.error-page { max-width: 640px; margin: 3rem auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.5rem 1.5rem; box-shadow: var(--shadow); }
.error-code { display: block; font-size: clamp(3rem, 12vw, 6rem); font-weight: 900; letter-spacing: -.08em; color: var(--brand-soft); line-height: .9; margin-bottom: .5rem; }
.error-page p { color: var(--ink-soft); }
.error-debug { text-align: left; margin: 1rem 0; }
.error-debug pre { background: #0b1220; color: #d7efea; padding: 1rem; border-radius: 10px; overflow: auto; font-size: .78rem; max-height: 300px; }

/* --------------------------------------------------------------- helpers */
.table td .link + .inline-form, .table td .inline-form + .inline-form { margin-left: .2rem; }
.pill-row form { margin: 0; }
.test-gateway-form { align-items: center; }
[data-test-gateway-result].ok { color: var(--success); }
[data-test-gateway-result].bad { color: var(--danger); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
    .stat-grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stat-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { grid-template-columns: 1fr; }
    .hero-art { min-height: 230px; }
    .wifi-hero { grid-template-columns: 1fr; }
    .wifi-badge-card { max-width: 380px; }
    .admin-shell { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 860px) {
    .content-grid, .payment-wrap, .wifi-pay-wrap, .auth-wrap { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .admin-shell { display: block; }
    .sidebar { position: fixed; z-index: 50; left: 0; top: 0; width: 260px; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 0 0 50px rgba(0,0,0,.3); }
    .sidebar.open { transform: translateX(0); }
    .nav-toggle { display: inline-flex; }
    .admin-topbar { padding: .7rem 1rem; }
    .admin-content { padding: 1rem; }
    .stat-grid.three { grid-template-columns: 1fr; }
    .site-header { flex-wrap: wrap; }
    .site-nav { order: 3; width: 100%; overflow-x: auto; }
    .header-user .user-name { display: none; }
}

@media (max-width: 620px) {
    .container, .wifi-main, .wifi-header, .wifi-footer, .site-header, .site-footer { width: min(100% - 1.25rem, 1180px); }
    .stat-grid, .stat-grid.four, .stat-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-grid.five .stat-card:last-child { grid-column: 1 / -1; }
    .hero-copy h1 { font-size: 2rem; }
    .site-nav a { font-size: .8rem; padding: .35rem .55rem; }
    .table th, .table td { padding: .55rem .6rem; font-size: .8rem; }
    .payment-head { flex-direction: column; }
    .callout-card { align-items: flex-start; }
    .callout-amount { justify-items: start; }
    .voucher-row { flex-wrap: wrap; }
    .inline-actions .btn { flex: 1 1 auto; }
    .sticky-actions { width: 100%; border-radius: var(--radius-sm); justify-content: center; }
    .admin-content .page-head .inline-actions, .page-head .inline-form { width: 100%; }
    .filter-bar .field { flex: 1 1 100%; }
    .filter-actions { width: 100%; }
    .filter-actions .btn { flex: 1; }
    .invoice-summary { flex-direction: column; }
    .wifi-voucher-wrap { border-radius: 18px; }
}

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

@media print {
    .site-header, .site-footer, .wifi-header, .wifi-footer, .sidebar, .admin-topbar, .btn, .inline-actions, .alert-close { display: none !important; }
    body { background: #fff; color: #000; }
    .card, .payment-card, .payment-aside { box-shadow: none; border-color: #ccc; break-inside: avoid; }
    .admin-shell { display: block; }
    .admin-content { padding: 0; }
}
