/* GILIR. — mengikuti desain aplikasi (Inter, hitam-putih netral) */
:root {
  --bg: #FAFAF9; --ink: #0A0A0A; --card: #FFFFFF; --line: #EAEAEA; --line2: #D4D4D4; --soft: #F0F0F0;
  --muted: #737373; --sub: #525252; --text2: #404040; --grey: #A3A3A3; --light: #D4D4D4; --err: #9F1D1D;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { color: var(--ink); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.5; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); } a:hover { color: var(--sub); }
button { font: inherit; }
button, .btn { transition: opacity .15s ease, background .15s ease, border-color .15s ease; }
button:hover:not(:disabled), .btn:hover { opacity: .88; }
button:disabled { opacity: .4; cursor: not-allowed; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dark button:focus-visible { outline-color: #FFFFFF; }
input:focus { border-color: var(--ink); outline: none; }
input::placeholder { color: var(--grey); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.shell { min-height: 100vh; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.topbar { background: #FFFFFF; border-bottom: 1px solid var(--line); }
.topbar-in { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); }
.logo { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.pill { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--sub); font-size: 14px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.pill:hover { color: var(--ink); }
.pill.on { background: var(--ink); color: #FFFFFF; }
.statusrow { padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); display: inline-block; }
.dot.off { background: transparent; border: 1.5px solid var(--grey); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.tag { border: 1px dashed var(--line2); border-radius: 999px; padding: 2px 10px; }
.main { padding-top: 28px; padding-bottom: 104px; }

/* ---------- utilities ---------- */
.btn { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; text-align: center; }
.btn-dark { background: var(--ink); color: #FFFFFF; } .btn-dark:hover { color: #FFFFFF; }
.btn-light { background: #FFFFFF; color: var(--ink); border: 1px solid var(--line2); }
.btn-outline { background: #FFFFFF; color: var(--ink); border: 1px solid var(--ink); }
.btn-white { background: #FFFFFF; color: var(--ink); }
.btn-ghost-dark { background: transparent; color: #FFFFFF; border: 1px solid #FFFFFF; margin-top: 12px; }
.h40 { min-height: 40px; } .h44 { min-height: 44px; } .h48 { min-height: 48px; } .h52 { min-height: 52px; } .h54 { min-height: 54px; }
.h56 { min-height: 56px; } .h60 { min-height: 60px; } .h68 { min-height: 68px; }
.sq44 { width: 44px; height: 44px; flex: none; padding: 0; }
.r12 { border-radius: 12px; } .r14 { border-radius: 14px; } .r16 { border-radius: 16px; } .rfull { border-radius: 999px; }
.px14 { padding-left: 14px; padding-right: 14px; } .px16 { padding-left: 16px; padding-right: 16px; } .px18 { padding-left: 18px; padding-right: 18px; }
.px20 { padding-left: 20px; padding-right: 20px; } .px24 { padding-left: 24px; padding-right: 24px; } .px28 { padding-left: 28px; padding-right: 28px; }
.fs12 { font-size: 12px; } .fs13 { font-size: 13px; } .fs14 { font-size: 14px; } .fs15 { font-size: 15px; } .fs16 { font-size: 16px; } .fs18 { font-size: 18px; } .fs19 { font-size: 19px; }
.fw500 { font-weight: 500; } .fw600 { font-weight: 600; }
.full { width: 100%; } .grow { flex: 1 1 160px; min-width: 0; }
.muted { color: var(--muted); } .text2 { color: var(--text2); } .grey { color: var(--grey); } .light { color: var(--light); } .ink { color: var(--ink); }
.center { text-align: center; } .right { text-align: right; } .m0 { margin: 0; } .m2 { margin: 2px 0 0; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mb12 { margin-bottom: 12px; }
.pad48 { padding: 48px 0; }
.wrapany { overflow-wrap: anywhere; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.row8 { display: flex; flex-wrap: wrap; gap: 8px; }
.row12 { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center-y { align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.stack10 { display: flex; flex-direction: column; gap: 10px; }
.stack16 { display: flex; flex-direction: column; gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid2g10 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3g8 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid-auto170 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px 12px; }
.divider-top { border-top: 1px solid var(--soft); padding-top: 16px; }
.card { background: var(--card); border: 1px solid var(--line); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 13px; font-weight: 500; color: var(--text2); }
.lbl-note { color: var(--muted); font-weight: 400; }
.req { color: var(--err); }
.input { min-height: 50px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 12px; font: inherit; font-size: 16px; background: #FFFFFF; color: var(--ink); width: 100%; }
.input.h44 { min-height: 44px; } .input.h48 { min-height: 48px; font-size: 15px; } .input.h52 { min-height: 52px; }
.input.err { border-color: var(--err); }
.input:disabled { background: var(--soft); }
.hint { font-size: 12px; color: var(--muted); }
.hint.center { font-size: 13px; margin: 0; }
.hint-match { font-size: 12px; font-weight: 500; color: var(--text2); }
.hint-match:empty { display: none; }
.hint-match.bad { color: var(--err); }
.err-text { margin: 0; font-size: 14px; font-weight: 500; color: var(--err); }
.info-box { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 14px; color: var(--text2); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text2); cursor: pointer; min-height: 32px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.h2 { margin: 0 0 4px; font-size: 26px; font-weight: 600; letter-spacing: -0.04em; }
.h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.h3c { margin: 0 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.h4 { margin: 0; font-size: 16px; font-weight: 600; }
.sub { margin: 0 0 24px; font-size: 14px; color: var(--muted); }
.sub0 { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.sub2 { margin: 0; color: var(--sub); }

/* ---------- landing ---------- */
.landing { display: flex; flex-direction: column; gap: 72px; }
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 1 1 420px; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line2); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 500; color: var(--text2); }
.h1 { margin: 20px 0 18px; font-size: clamp(40px, 10vw, 60px); line-height: 1.02; letter-spacing: -0.05em; font-weight: 600; }
.lead { margin: 0 0 32px; font-size: 18px; color: var(--sub); max-width: 470px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 470px; margin-top: 44px; }
.stat-n { font-size: 30px; font-weight: 300; letter-spacing: -0.04em; }
.stat-l { font-size: 13px; color: var(--muted); }
.hero-art { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; position: relative; padding: 24px 0 40px; }
.hero-circle { position: absolute; width: 360px; height: 360px; max-width: 100%; border-radius: 50%; background: #EFEFED; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.phone { position: relative; width: 250px; height: 500px; border-radius: 42px; background: var(--ink); padding: 10px; box-shadow: 0 30px 70px rgba(0, 0, 0, .18); }
.phone-screen { width: 100%; height: 100%; border-radius: 33px; background: #FFFFFF; padding: 30px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.ps-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.ps-num { text-align: center; margin-top: 18px; }
.ps-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; color: var(--muted); }
.ps-big { font-size: 64px; font-weight: 300; letter-spacing: -0.06em; line-height: 1.1; }
.ps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 12px; text-align: center; }
.ps-k { font-size: 10px; color: var(--muted); } .ps-v { font-size: 14px; font-weight: 600; }
.ps-banner { margin-top: auto; background: var(--ink); color: #FFFFFF; border-radius: 12px; padding: 12px; font-size: 12px; font-weight: 500; text-align: center; }
.float-card { position: absolute; left: 50%; bottom: 0; transform: translateX(-190px); background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .10); display: flex; align-items: center; gap: 12px; }
.float-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.fc-k { font-size: 11px; color: var(--muted); } .fc-v { font-size: 15px; font-weight: 600; }
.fits { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: center; font-size: 15px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.step { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.step-n { font-size: 13px; color: var(--muted); }
.step-t { font-size: 18px; font-weight: 600; margin: 8px 0 4px; }
.step-d { font-size: 14px; color: var(--sub); }
.step.dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.step.dark .step-n { color: var(--grey); } .step.dark .step-d { color: var(--light); }
.form-card { width: 100%; max-width: 520px; margin: 0 auto; border-radius: 24px; padding: clamp(20px, 6vw, 32px); scroll-margin-top: 24px; }

/* ---------- login / empty ---------- */
.login-card { max-width: 400px; margin: 32px auto 0; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.empty-card { max-width: 460px; margin: 32px auto 0; border-radius: 24px; padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ---------- poster QR ---------- */
.qr-page { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: center; }
.poster { width: 340px; max-width: 100%; aspect-ratio: 148 / 210; background: #FFFFFF; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 24px 60px rgba(0, 0, 0, .08); padding: 36px 32px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.poster-head { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.poster-name { font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; }
.poster-qr { width: 190px; }
.qr { display: block; width: 100%; height: auto; }
.qr-fallback { font-size: 12px; overflow-wrap: anywhere; color: var(--muted); }
.poster-foot { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.poster-cta { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.poster-note { font-size: 11px; color: var(--muted); }
.qr-side { flex: 1 1 300px; min-width: 0; max-width: 400px; display: flex; flex-direction: column; gap: 20px; }
.h-ready { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.linkbox { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: #FFFFFF; font-size: 12px; color: var(--sub); }
.linkbox .mono { flex: 1 1 auto; min-width: 0; }
.linkbox .btn { flex: none; }

/* ---------- pelanggan ---------- */
.c-wrap { max-width: 400px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.c-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; }
.c-store { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.openflag { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.dot7 { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.dot7.off { background: transparent; border: 1.5px solid var(--grey); }
.c-closed { border-radius: 24px; padding: 56px 24px; text-align: center; }
.c-form { border-radius: 24px; padding: 32px 24px; display: flex; flex-direction: column; gap: 24px; }
.c-count { font-size: 64px; font-weight: 300; line-height: 1; letter-spacing: -0.05em; }
.c-countl { font-size: 14px; color: var(--muted); margin-top: 8px; }
.near { background: var(--ink); color: #FFFFFF; border-radius: 14px; padding: 14px 18px; font-weight: 500; text-align: center; }
.c-ticket { border-radius: 24px; padding: 36px 24px 28px; text-align: center; }
.c-my { font-size: clamp(72px, 24vw, 96px); line-height: 1; font-weight: 300; letter-spacing: -0.06em; margin: 14px 0 28px; }
.c-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 20px; }
.c-mid { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.c-k { font-size: 12px; color: var(--muted); } .c-v { font-size: 20px; font-weight: 600; }
.confirm { background: #FFFFFF; border: 1px solid var(--ink); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.linkbtn { min-height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; text-decoration: underline; }
.c-called { background: var(--ink); color: #FFFFFF; border-radius: 28px; min-height: 560px; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; animation: pulse 1.6s ease-in-out 3; }
.cc-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.24em; color: var(--grey); }
.cc-title { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.cc-num { font-size: clamp(80px, 26vw, 112px); font-weight: 300; letter-spacing: -0.06em; line-height: 1; }
.cc-sub { font-size: 17px; color: var(--light); }
.cc-recall { margin-top: 4px; border: 1px solid var(--sub); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; }
.c-done { border-radius: 24px; padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
@keyframes pulse { 50% { transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .c-called { animation: none; } }

/* ---------- dashboard ---------- */
.admin { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.admin-col { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.admin-col + .admin-col { flex-basis: 400px; }
.panel { background: var(--ink); color: #FFFFFF; border-radius: 24px; padding: clamp(20px, 5vw, 28px); display: flex; flex-direction: column; gap: 22px; }
.panel-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.eyebrow-dark { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; color: var(--grey); }
.panel-num { font-size: clamp(64px, 18vw, 88px); line-height: 1; font-weight: 300; letter-spacing: -0.06em; margin-top: 8px; }
.panel-name { font-size: 15px; color: var(--light); margin-top: 8px; }
.recall-chip { display: inline-flex; margin-top: 10px; border: 1px solid var(--sub); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 500; }
.panel-wait { font-size: 40px; font-weight: 300; line-height: 1; letter-spacing: -0.04em; }
.pbtn { min-height: 56px; border: 1px solid var(--muted); border-radius: 14px; background: #262626; color: #FFFFFF; font-size: 15px; font-weight: 600; }
.pbtn:hover:not(:disabled) { background: #3A3A3A; border-color: var(--grey); opacity: 1; }
.box-row { border-radius: 18px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.box-manual { border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.box-manual .btn { flex: none; }
.demo-box { border: 1px dashed var(--line2); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.demo-h { margin: 0; font-size: 12px; font-weight: 500; color: var(--muted); }
.box-cal { border-radius: 18px; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.cal { flex: 1 1 150px; min-width: 0; width: auto; font-size: 15px; }
.hist-chip { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--text2); }
.recap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.recap > div { background: #FFFFFF; padding: 12px 14px; }
.recap > .rc-dark { background: var(--ink); color: #FFFFFF; }
.rc-n { font-size: 26px; font-weight: 300; letter-spacing: -0.04em; }
.rc-l { font-size: 12px; color: var(--muted); }
.rc-dark .rc-l { color: var(--light); }
.box-list { border-radius: 18px; padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.segs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--soft); padding: 4px; border-radius: 12px; }
.seg { min-height: 44px; padding: 0 6px; border: 0; border-radius: 9px; background: transparent; color: var(--sub); font-size: 14px; font-weight: 500; cursor: pointer; }
.seg.on { background: #FFFFFF; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .10); }
.seg-n { color: var(--muted); font-weight: 500; }
.lock-hint { margin: 0; padding: 10px 12px; background: #F5F5F4; border-radius: 10px; font-size: 13px; color: var(--text2); }
.qlist { max-height: 440px; overflow-y: auto; }
.empty-list { margin: 0; padding: 24px 0; text-align: center; color: var(--muted); font-size: 14px; }
.row-a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.row-a.on { background: var(--ink); color: #FFFFFF; }
.row-h { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--soft); }
.r-code { flex: none; width: 64px; font-size: 16px; font-weight: 600; }
.r-code.dim { font-size: 15px; color: var(--sub); }
.r-col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.r-name { flex: 1 1 auto; min-width: 0; }
.r-meta { flex: none; font-size: 12px; color: var(--muted); }
.r-tag { flex: none; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.row-a .btn, .row-h .btn { flex: none; }
.status-pill { flex: none; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; }
.pill-served { background: var(--soft); color: var(--text2); }
.pill-skip { background: #FFFFFF; color: var(--sub); border: 1px solid var(--line); }
.pill-off { background: #FFFFFF; color: var(--muted); border: 1px solid var(--line); }

/* ---------- layar TV ---------- */
.tv { background: var(--ink); color: #FFFFFF; border-radius: 28px; padding: clamp(24px, 5vw, 40px); display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 40px); align-items: stretch; }
.tv-main { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.tv-store { font-size: 18px; font-weight: 500; color: var(--grey); }
.tv-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.3em; color: var(--muted); }
.tv-num { font-size: clamp(96px, 22vw, 220px); line-height: 0.9; font-weight: 300; letter-spacing: -0.07em; }
.tv-sub { font-size: 22px; color: var(--grey); }
.tv-side { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; border-top: 1px solid #262626; padding-top: 24px; }
.tv-next { font-size: 48px; font-weight: 300; line-height: 1.3; letter-spacing: -0.04em; color: var(--light); }
.tv-empty { font-size: 18px; color: var(--grey); }
.tv-qr-row { display: flex; align-items: center; gap: 14px; }
.tv-qr { flex: none; width: 96px; padding: 4px; background: #FFFFFF; border-radius: 10px; }
.tv-qr-text { font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--light); }
.is-tv .main { max-width: 1400px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--ink); color: #FFFFFF; padding: 14px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: 0 12px 32px rgba(0, 0, 0, .2); z-index: 10; pointer-events: none; }

@media (max-width: 480px) {
  .float-card { transform: translateX(-50%); }
  .login-card { padding: 24px; }
}

/* ---------- cetak poster ---------- */
@media print {
  @page { size: A5; margin: 0; }
  body * { visibility: hidden; }
  .poster, .poster * { visibility: visible; }
  .poster { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; border: 0; box-shadow: none; border-radius: 0; padding: 18mm 14mm; }
  .poster-qr { width: 60%; }
  .poster-name { font-size: 30pt; }
  .poster-cta { font-size: 20pt; }
}

/* =====================================================================
   v1.1.0 — KOMPONEN BARU (langganan & Admin Pusat)
      Disalin dari design/mockup-antrian-subscription.html; container query diganti @media.
   ===================================================================== */
:root {
  --warn-bg: #FFF6DB;   --warn-line: #EED48A;   --warn-ink: #5C4400;
  --danger-bg: #FDEEEE; --danger-line: #F0C4C4; --danger-ink: #9F1D1D;
  --info-bg: #EEF2F8;   --info-line: #CAD6E7;   --info-ink: #1F3A5F;
  --ok-bg: #EAF5EE;     --ok-line: #BFDCC9;     --ok-ink: #1E5E36;
  --danger: #9F1D1D;    --overlay: rgba(10, 10, 10, .45);
}
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i16 { width: 16px; height: 16px; }
.btn-danger { background: var(--danger); color: #FFFFFF; }
.danger-text { color: var(--danger-ink); }
.link-more { min-height: 44px; display: inline-flex; align-items: center; gap: 2px; padding: 0 8px 0 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.strike { color: var(--muted); text-decoration: line-through; font-weight: 400; }
.uniq { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* status langganan di dashboard */
.subline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 8px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 2px 4px 2px 16px; font-size: 14px; color: var(--text2); }
.subline .s-txt { display: flex; align-items: center; gap: 8px; padding: 10px 0; min-width: 0; }
.dot.trial { background: var(--grey); } .dot.ok { background: var(--ok-ink); }
.banner { display: flex; gap: 10px; align-items: flex-start; border: 1px solid; border-radius: 16px; padding: 14px 14px 14px 16px; font-size: 14px; line-height: 1.45; }
.banner > .i { margin-top: 1px; }
.b-main { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.b-body { flex: 1 1 220px; min-width: 0; }
.b-t { font-weight: 600; }
.b-s { font-size: 13px; opacity: .9; margin-top: 2px; }
.banner .btn { flex: none; }
.banner.warn, .alert.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.banner.danger, .alert.danger { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger-ink); }
.banner.info, .alert.info { background: var(--info-bg); border-color: var(--info-line); color: var(--info-ink); }
.banner.ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }

/* badge status */
.pill-trial { background: var(--soft); color: var(--text2); }
.pill-ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill-stop { background: var(--danger-bg); color: var(--danger-ink); }
.pill-wait { background: var(--info-bg); color: var(--info-ink); }
.pill-temp { background: #FFFFFF; color: var(--info-ink); border: 1px solid var(--info-line); }
.pill-flag { background: var(--warn-bg); color: var(--warn-ink); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* halaman bayar */
.pay-wrap { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.pay-card { border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.amount-card { border: 1.5px solid var(--ink); }
.amount { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acct { font-size: 20px; font-weight: 600; letter-spacing: 0.02em; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 15px; }
.qris-img { width: 220px; max-width: 100%; aspect-ratio: 1; padding: 10px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; align-self: center; }
.qris-img svg { width: 100%; height: 100%; display: block; }
.link-help { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text2); text-decoration: underline; text-underline-offset: 3px; }
.reason { font-size: 12px; color: var(--danger-ink); }
.ic-circle { width: 48px; height: 48px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--text2); }
.ic-circle .i { width: 22px; height: 22px; }

/* radio kartu */
.opt { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1px solid var(--line2); border-radius: 12px; background: #FFFFFF; cursor: pointer; }
.opt.on { border: 1.5px solid var(--ink); }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line2); flex: none; }
.opt.on .radio { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px #FFFFFF; }
.opt-t { font-size: 15px; font-weight: 600; } .opt-s { font-size: 12px; color: var(--muted); }

/* input tambahan */
.ipre { position: relative; } .ipre > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; }
.ipre .input { padding-left: 44px; }
.textarea { min-height: 88px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; font-size: 15px; background: #FFFFFF; color: var(--ink); }
.textarea.err { border-color: var(--err); } .textarea .ph { color: var(--grey); }
.count { font-size: 12px; color: var(--muted); text-align: right; }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchip { min-height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: #FFFFFF; font-size: 13px; font-weight: 500; color: var(--text2); display: inline-flex; align-items: center; }
.drop { border: 1.5px dashed var(--line2); border-radius: 14px; padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: #FFFFFF; }

/* bottom sheet / dialog */
.overlay { position: fixed; inset: 0; background: var(--overlay); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet { width: 100%; max-width: 480px; background: #FFFFFF; border-radius: 24px 24px 0 0; padding: 12px 20px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 -12px 40px rgba(0, 0, 0, .15); }
.grip { width: 36px; height: 4px; border-radius: 4px; background: var(--line2); align-self: center; margin-bottom: 4px; }
.sheet-t { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
@media (min-width: 600px) { .overlay { align-items: center; } .sheet { max-width: 440px; border-radius: 24px; padding-top: 24px; } .grip { display: none; } }

/* admin pusat */
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 999px; scrollbar-width: none; }
.tabs .pill { flex: none; }
.tab-n { min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--danger); color: #FFFFFF; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.alert { display: flex; gap: 10px; align-items: center; min-height: 52px; border: 1px solid; border-radius: 14px; padding: 10px 8px 10px 14px; font-size: 14px; line-height: 1.4; text-decoration: none; }
.alert .a-body { flex: 1 1 auto; min-width: 0; } .alert .a-t { font-weight: 600; } .alert .a-s { font-size: 12px; opacity: .9; }
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.metric { position: relative; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); min-width: 0; }
.metric .m-l { font-size: 12px; color: var(--muted); padding-right: 18px; }
.metric .m-n { font-size: 28px; font-weight: 300; letter-spacing: -0.04em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.metric .m-s { font-size: 12px; color: var(--muted); }
.metric .m-go { position: absolute; top: 12px; right: 10px; color: var(--grey); }
.metric.dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; } .metric.dark .m-l, .metric.dark .m-s { color: var(--light); }
.metric.span2 { grid-column: span 2; }
.m-split { display: flex; gap: 14px; } .m-split > div { display: flex; flex-direction: column; }
@media (min-width: 1000px) { .mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .metric.span2 { grid-column: span 2; } }
.fchips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.fchip { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: #FFFFFF; font-size: 13px; font-weight: 500; color: var(--text2); display: inline-flex; align-items: center; white-space: nowrap; }
.fchip.on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.search { position: relative; } .search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 42px; }
.srow { display: flex; align-items: center; gap: 10px; padding: 14px 8px 14px 16px; border-radius: 16px; text-decoration: none; color: var(--ink); min-height: 72px; }
.srow .s-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.srow .s-go { color: var(--grey); }
.btn-wa { color: var(--ink); }
.paycard { border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.paycard.urgent { border-left: 3px solid var(--info-ink); }
.pc-amt { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 0; }
.kv dt { font-size: 12px; color: var(--muted); } .kv dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.log { font-size: 13px; padding: 10px 0; border-top: 1px solid var(--soft); display: flex; flex-direction: column; gap: 2px; }
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #FFFFFF; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 960px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #F7F7F6; cursor: pointer; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.late { color: var(--danger-ink); font-weight: 500; }
.tv-off { justify-content: center; align-items: center; text-align: center; min-height: 420px; flex-direction: column; gap: 16px; }
.tv-off-t { font-size: clamp(40px, 6vw, 64px); font-weight: 300; letter-spacing: -0.05em; line-height: 1.05; }

/* ----- tambahan kecil untuk elemen sungguhan (bukan mockup) ----- */
.badges .status-pill, .status-pill.pill-temp { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.qris-img img { width: 100%; height: 100%; display: block; object-fit: contain; }
.qris-thumb { width: 120px; padding: 6px; }
.opt { width: 100%; text-align: left; font: inherit; color: var(--ink); }
.textarea { display: block; width: 100%; font: inherit; font-size: 15px; resize: vertical; }
.textarea:focus { border-color: var(--ink); outline: none; }
select.btn { appearance: none; -webkit-appearance: none; font: inherit; font-size: 13px; }
.alert { color: inherit; }
.srow { cursor: pointer; }
.metric .m-n.sm { font-size: 22px; }
.kv .span2 { grid-column: span 2; }
.gap14 { gap: 14px; }
.self-start { align-self: flex-start; } .self-center { align-self: center; } .nopad { padding-left: 0; }
.row12.top { align-items: flex-start; } .flex140 { flex: 1 1 140px; } .nowrap { flex-wrap: nowrap; align-items: center; }
.empty-card.m0top { margin: 0 auto; padding: 32px 20px; }
.main.wide { max-width: 1280px; }
.d-only { display: none; }
@media (min-width: 1024px) { .d-only { display: block; } .m-only { display: none; } }
