/* =========================================================
   Ransum Bina Pertiwi — mobile first
   Warna diambil dari logo Bina Pertiwi
   ========================================================= */
:root {
    /* Tema HUT ke-50 Bina Pertiwi: navy & gold */
    --navy: #0F1B3D;
    --navy-2: #1C2C5E;
    --blue: #1C3D7A;
    --gold: #C9A24A;
    --gold-2: #E3C67A;
    --gold-dark: #8F6D24;
    --gold-soft: #FBF6E9;
    --green: #2F8F5B;
    --green-dark: #1D5E3B;
    --green-soft: #EAF5EE;
    --bg: #F6F4EF;
    --card: #FFFFFF;
    --text: #1A2033;
    --muted: #6B7080;
    --line: #E8E3D8;
    --warn: #A86E12;
    --warn-soft: #FFF6E5;
    --danger: #C0463C;
    --danger-soft: #FCEDEB;
    --info-soft: #EEF2FA;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(15, 27, 61, .06), 0 4px 16px rgba(15, 27, 61, .06);
    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 1.4rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1.05rem; }
p { margin: .25rem 0; }
.ic { flex-shrink: 0; vertical-align: middle; }

.container { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.container.wide { max-width: 1200px; }
.page { padding-top: 16px; padding-bottom: 32px; flex: 1; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.big { font-size: 1.15rem; }
.ok-text { color: var(--green); font-weight: 600; }
span.ok-text { display: inline-flex; align-items: center; gap: 4px; }
.warn-text { color: var(--warn); font-weight: 600; }
.danger-text { color: var(--danger); font-weight: 700; }
.inline { display: inline; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wrap { flex-wrap: wrap; }
.gap { gap: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Top bar ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand img { height: 34px; width: auto; }
.topbar-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who { display: flex; flex-direction: column; text-align: right; min-width: 0; }
.who strong { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.who span { font-size: .75rem; color: var(--muted); }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--navy); cursor: pointer; }
.icon-btn:hover { background: var(--bg); }

.subnav { background: var(--navy); }
.subnav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { color: #C9D0EA; padding: 8px 12px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .9rem; font-weight: 500; }
.subnav a:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.08); }
.subnav a.active { background: var(--green); color: #fff; }

.footer { text-align: center; color: var(--muted); font-size: .75rem; padding: 16px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 1px solid transparent; border-radius: 12px; padding: 10px 16px;
    font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none !important;
    transition: background .15s, transform .05s; white-space: nowrap; min-height: 42px;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #1C9641; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-2); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { background: #fff; color: var(--danger); border-color: #F3C4C4; }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn:disabled, .btn[disabled] { background: #EEF1F6; color: #A3AABB; border-color: transparent; cursor: not-allowed; transform: none; }
.btn-sm { padding: 6px 12px; min-height: 34px; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: 14px 20px; font-size: 1rem; min-height: 50px; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span:first-child, .field-label { font-size: .85rem; font-weight: 600; color: var(--navy); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
    font: inherit; font-size: 16px; /* 16px mencegah auto-zoom di iPhone */
    width: 100%; padding: 11px 12px; border: 1px solid #CFD5E1; border-radius: 12px; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(33,171,75,.18); }
input[type=file] { font-size: .9rem; }
textarea { resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); flex-shrink: 0; }
.field-error { color: var(--danger); font-size: .82rem; }
.field-error ul { margin: 0; padding-left: 18px; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; min-width: 0; }
.grid-2, .grid-3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.filters select { flex: 1 1 180px; width: auto; }
.filters input { flex: 3 1 200px; width: auto; }

/* ---------- Cards, alerts, banners ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--navy); }
.center-card { max-width: 480px; margin: 40px auto; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: .92rem; }
.alert a { font-weight: 700; }
.alert-ok { background: var(--green-soft); color: var(--green-dark); border: 1px solid #BFE6CB; }
.alert-err { background: var(--danger-soft); color: #8F2424; border: 1px solid #F3C4C4; }
.alert-secret { background: #FFFBEA; color: #6B4E00; border: 1px dashed #E2B93B; }

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; margin-bottom: 14px; border: 1px solid; }
.banner > div { display: flex; flex-direction: column; gap: 2px; }
.banner strong { font-size: .95rem; }
.banner span { font-size: .85rem; }
.banner-info { background: var(--info-soft); border-color: #BBD3F3; color: #12407A; }
.banner-warn { background: var(--warn-soft); border-color: #F1D49A; color: #7A4F0A; }
.banner-muted { background: #EEF0F4; border-color: #DADFE8; color: #4A5163; }
.banner-note { background: #fff; border-color: var(--line); color: var(--text); }

/* ---------- Peserta: hero, segmented, progress ---------- */
.hero { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero-tenant { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); }
.hero-title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.hero h1 { font-size: 1.35rem; letter-spacing: .03em; }
.hero p { opacity: .92; font-size: .9rem; }

.seg { display: flex; background: #E9EDF4; border-radius: 14px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.seg a { flex: 1; text-align: center; padding: 10px 8px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg a:hover { text-decoration: none; color: var(--navy); }
.seg a.active { background: var(--green); color: #fff; box-shadow: 0 2px 6px rgba(33,171,75,.3); }
.seg-sm a { padding: 8px 6px; font-size: .85rem; }
.seg-sm a.active { background: #fff; color: var(--navy); box-shadow: var(--shadow); }

.progress-card { background: #FFF4F4; border: 1px solid #F6CFCF; color: #8F2424; border-radius: 14px; padding: 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.progress-card.complete { background: var(--green-soft); border-color: #BFE6CB; color: var(--green-dark); }
.bar { height: 10px; background: rgba(0,0,0,.08); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--danger); border-radius: 99px; transition: width .4s; }
.progress-card.complete .bar span { background: var(--green); }
.bar.thin { height: 6px; background: #EEF1F6; }
.bar.thin span { background: var(--green); }

.cat-tabs { display: flex; gap: 4px; background: #E9EDF4; border-radius: 14px; padding: 4px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; white-space: nowrap; font-size: .9rem; }
.cat-tabs a:hover { text-decoration: none; color: var(--navy); }
.cat-tabs a.active { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; display: inline-block; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.section-head h2 { display: flex; align-items: center; gap: 8px; }

/* ---------- Menu cards ---------- */
.menu-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.menu-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 2px solid transparent; transition: border-color .2s; }
.menu-card.mine { border-color: var(--green); box-shadow: 0 0 0 4px rgba(33,171,75,.15), var(--shadow); }
.menu-img { position: relative; aspect-ratio: 4 / 3; background: #EEF1F6; }
.menu-img img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; color: #9AA4BC; background: linear-gradient(135deg, #EEF2F8, #E2E8F2); }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: rgba(255,255,255,.92); color: var(--navy); backdrop-filter: blur(4px); }
.chip-booth { left: 12px; bottom: 12px; }
.chip-kcal { right: 12px; bottom: 12px; color: #B45309; }
.chip-picked { right: 12px; top: 12px; background: var(--green); color: #fff; }
.soldout-badge { display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #E85A7A; color: #fff; font-weight: 800; letter-spacing: .05em; padding: 8px 20px; border-radius: 99px; font-size: .95rem; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.menu-card.soldout .menu-img > img, .menu-card.soldout .img-placeholder { filter: grayscale(1); opacity: .45; }
.menu-card.soldout .soldout-badge { display: block; }
.menu-card.soldout .menu-body { opacity: .55; }
.menu-body { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 4px; }
.menu-body .tenant { color: var(--blue); font-weight: 600; font-size: .85rem; }
.menu-body .desc { color: var(--muted); font-size: .88rem; }
.stock-row { margin-top: 6px; font-size: .85rem; }
.stock-left b { color: var(--green-dark); font-size: 1rem; }
.menu-card.soldout .stock-left b { color: var(--danger); }
.menu-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.menu-foot form { margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }

/* ---------- Voucher / QR ---------- */
.voucher-list { display: grid; gap: 16px; }
.voucher { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; border-top: 5px solid var(--green); scroll-margin-top: 80px; }
.voucher.claimed { border-top-color: #A3AABB; }
.voucher:target { box-shadow: 0 0 0 4px rgba(33,171,75,.35), var(--shadow); }
.empty-voucher { border-top-color: #CFD5E1; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.voucher-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.voucher-head .status-pill { margin-left: auto; }
.voucher-main { display: flex; flex-direction: column-reverse; gap: 14px; }
.voucher-info h3 { font-size: 1.15rem; }
.voucher-info .tenant { color: var(--blue); font-weight: 600; }
.booth-big { margin-top: 10px; background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; }
.booth-big span { font-size: .78rem; opacity: .8; }
.booth-big strong { font-size: 1.6rem; letter-spacing: .03em; }
.booth-big small { opacity: .85; }
.qr-box { position: relative; align-self: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(100%, 280px); }
.qr-box img { width: 100%; height: auto; image-rendering: pixelated; }
.qr-box .code { font-size: 1.05rem; font-weight: 700; color: var(--navy); letter-spacing: .12em; }
.voucher.claimed .qr-box img { opacity: .15; }
.stamp { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg); border: 3px solid var(--green); color: var(--green); font-weight: 900; font-size: 1.4rem; padding: 6px 14px; border-radius: 10px; text-align: center; background: rgba(255,255,255,.85); line-height: 1.1; }
.stamp small { font-size: .7rem; font-weight: 700; }
.voucher-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.status-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.pill-done { background: var(--green-soft); color: var(--green-dark); }
.pill-wait { background: var(--warn-soft); color: var(--warn); }
.pill-none { background: #EEF0F4; color: var(--muted); }
.pill-off { background: var(--danger-soft); color: var(--danger); margin-left: 6px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; color: var(--text); border-left: 4px solid var(--navy); }
a.stat:hover { text-decoration: none; transform: translateY(-1px); }
.stat span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.stat strong { font-size: 1.6rem; color: var(--navy); }
.stat small { font-size: .75rem; color: var(--muted); }
.stat-ok { border-left-color: var(--green); }
.stat-ok strong { color: var(--green-dark); }
.stat-warn { border-left-color: #E2A23B; }
.stat-danger { border-left-color: var(--danger); }
.stat-info { border-left-color: var(--blue); }

.cat-stats { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
.stack-bar { display: flex; height: 14px; border-radius: 99px; background: #E9EDF4; overflow: hidden; margin-bottom: 10px; }
.stack-bar .seg-ok { background: var(--green); }
.stack-bar .seg-warn { background: #F2C14E; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.lg-ok { background: var(--green); } .lg-warn { background: #F2C14E; } .lg-rest { background: #D4DAE5; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #F8F9FC; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table .num { text-align: right; white-space: nowrap; }
.row-muted td { opacity: .55; }
.booth-tag { display: inline-block; background: var(--navy); color: #fff; font-weight: 700; padding: 3px 10px; border-radius: 8px; font-size: .85rem; }

.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.page-head .back { width: 100%; display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 0 16px; align-items: start; }
.plain-list { list-style: none; margin: 0 0 12px; padding: 0; }
.plain-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.plain-list li:last-child { border-bottom: none; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.danger-zone { margin-top: 8px; }
.danger-card { border: 1px solid #F3C4C4; }

/* ---------- Admin menu cards ---------- */
.admin-menu-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.admin-menu-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow); display: flex; gap: 12px; padding: 10px; }
.admin-menu-card.inactive { opacity: .6; }
.admin-menu-card .thumb { width: 96px; height: 96px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #EEF1F6; }
.admin-menu-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-menu-card .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.admin-menu-card .actions { margin-top: 4px; }
.photo-preview { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #EEF1F6; border: 1px dashed #CFD5E1; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Tenant scanner ---------- */
.scanner-card { display: flex; flex-direction: column; gap: 12px; }
.scanner { position: relative; border-radius: 14px; overflow: hidden; background: #0E1430; min-height: 260px; }
#qr-reader { width: 100%; }
#qr-reader video { width: 100% !important; height: auto !important; object-fit: cover; }
#qr-reader img[alt="Info icon"], #qr-reader__dashboard_section_csr span { display: none !important; }
.scanner-idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #C9D0EA; text-align: center; padding: 16px; }
.scanner.running .scanner-idle { display: none; }
.scanner-tools:empty { display: none; }
.manual { border-top: 1px solid var(--line); padding-top: 12px; }
.manual input { text-transform: uppercase; letter-spacing: .1em; }

.scan-result { border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); border: 2px solid; background: #fff; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 80px; }
.scan-result.ready { border-color: var(--green); background: #F4FBF6; }
.scan-result.success { border-color: var(--green); background: var(--green); color: #fff; }
.scan-result.warn { border-color: #E2A23B; background: var(--warn-soft); }
.scan-result.error { border-color: var(--danger); background: var(--danger-soft); }
.scan-result .res-title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; }
.scan-result .res-name { font-size: 1.3rem; font-weight: 800; }
.scan-result dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: .92rem; }
.scan-result dt { color: inherit; opacity: .7; }
.scan-result dd { margin: 0; font-weight: 600; }

.history { list-style: none; margin: 0; padding: 0; }
.history li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.history li:last-child { border-bottom: none; }
.history-time { width: 56px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.history-time strong { font-size: 1rem; color: var(--navy); }
.history-time span { font-size: .72rem; color: var(--muted); }
.history-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ---------- Login ---------- */
.login-body { background: linear-gradient(160deg, #EAF6EE 0%, #F4F6FA 45%, #E8EDF8 100%); }
.login-body .footer { display: none; }
.login-wrap { min-height: calc(100vh - 48px); display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(27,36,81,.12); padding: 28px 22px; display: flex; flex-direction: column; gap: 16px; }
.login-logo { height: 56px; width: auto; margin: 0 auto 4px; }
.login-hero { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; border-radius: 14px; padding: 14px; }
.login-hero h1 { font-size: 1.2rem; letter-spacing: .05em; }
.login-hero p { font-size: .85rem; opacity: .92; margin: 0; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: .9rem; z-index: 100; box-shadow: 0 6px 20px rgba(0,0,0,.25); max-width: calc(100% - 32px); }

/* ---------- Desktop ---------- */
@media (min-width: 640px) {
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(4, 1fr); }
    .stats-6 { grid-template-columns: repeat(3, 1fr); }
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
    .voucher-main { flex-direction: row; align-items: center; justify-content: space-between; }
    .qr-box { width: 240px; flex-shrink: 0; }
    .page-head .back { width: auto; }
    .page-head:has(.back) { flex-direction: column; align-items: flex-start; }
    .admin-menu-grid { grid-template-columns: repeat(2, 1fr); }
    .who strong { max-width: 260px; }
}
@media (min-width: 1000px) {
    .container:not(.wide) { max-width: 1000px; }
    .menu-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-6 { grid-template-columns: repeat(6, 1fr); }
    .cat-stats { grid-template-columns: repeat(3, 1fr); }
    .two-col { grid-template-columns: 1.2fr 1fr; }
    .admin-menu-grid { grid-template-columns: repeat(3, 1fr); }
    .voucher-list { grid-template-columns: repeat(2, 1fr); }
}


/* =========================================================
   Tema HUT ke-50: navy & gold (override komponen)
   Prinsip: navy untuk struktur, gold hanya untuk aksen & tombol utama,
   konten tetap di kartu putih supaya mudah dibaca.
   ========================================================= */

/* Header & logo */
.topbar { background: #fff; border-bottom: none; }
.topbar::after { content: ""; display: block; height: 2px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-2) 50%, var(--gold) 80%, transparent); }
.brand { display: inline-flex; }
.brand:hover { text-decoration: none; }
.brand-logos { display: inline-flex; align-items: center; gap: 12px; }
.brand .logo-bp { height: 30px; width: auto; }
.brand .logo-50 { height: 38px; width: auto; }
.brand-sep { width: 1px; height: 30px; background: linear-gradient(transparent, var(--gold), transparent); }
.icon-btn { color: var(--navy); border-color: var(--line); }
.subnav { background: var(--navy); }
.subnav a { color: #C3C9DC; border-radius: 0; }
.subnav a:hover { background: transparent; color: #fff; }
.subnav a.active { background: transparent; color: var(--gold-2); box-shadow: inset 0 -2px 0 var(--gold); }

/* Tipografi */
.tagline { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--gold-dark); margin: 2px 0 0; font-size: .98rem; letter-spacing: .01em; }
.eyebrow { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: 2px; }
.page-head h1, .section-head h2 { font-family: var(--serif); color: var(--navy); letter-spacing: .01em; }
.page-head h1 { font-size: 1.55rem; }
.card-title { color: var(--navy); }
a { color: var(--blue); }

/* Tombol */
.btn-primary { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); box-shadow: 0 2px 8px rgba(201, 162, 74, .3); }
.btn-primary:hover { background: linear-gradient(135deg, var(--gold), #B48C35); color: var(--navy); }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-2); }
.btn-ghost { color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--gold-soft); }
.btn:disabled, .btn[disabled] { background: #EFECE5; color: #A9A69C; box-shadow: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 74, .22); }
.check input { accent-color: var(--navy); }

/* Hero */
.hero {
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(227, 198, 122, .20) 0%, transparent 45%),
        linear-gradient(135deg, #0F1B3D 0%, #1C2C5E 100%);
    border: 1px solid rgba(201, 162, 74, .35);
    padding: 20px 18px;
}
.hero::after { right: -70px; top: -70px; width: 200px; height: 200px; background: none; border: 1px solid rgba(227, 198, 122, .28); box-shadow: 0 0 0 18px rgba(227, 198, 122, .05); }
.hero-eyebrow { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; margin-bottom: 4px; }
.hero-title { margin-bottom: 0; color: var(--gold-2); }
.hero h1 {
    font-family: var(--serif); font-size: 1.75rem; letter-spacing: .01em; color: var(--gold-2);
    background: linear-gradient(180deg, #F4E1A4 0%, #D3AE57 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .tagline { color: #EBDDB0; font-size: .95rem; margin: 2px 0 8px; }
.hero-desc { opacity: .85; font-size: .88rem; margin: 0; }

/* Tab */
.seg { background: #ECE8DE; }
.seg a.active { background: var(--navy); color: var(--gold-2); box-shadow: 0 2px 8px rgba(15, 27, 61, .22); }
.seg-sm a.active { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.cat-tabs { background: #ECE8DE; }
.cat-tabs a.active { background: #fff; color: var(--navy); box-shadow: var(--shadow), inset 0 -2px 0 var(--gold); }
.dot { background: var(--gold); }

/* Progres */
.progress-card { background: var(--gold-soft); border-color: #EAD9A8; color: var(--navy); }
.bar span { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.progress-card.complete { background: var(--green-soft); border-color: #C3E2CF; color: var(--green-dark); }
.progress-card.complete .bar span { background: var(--green); }
.bar.thin span { background: var(--gold); }

/* Kartu menu */
.menu-card.mine { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 74, .18), var(--shadow); }
.chip-picked { background: var(--navy); color: var(--gold-2); }
.menu-body h3 { color: var(--navy); }
.menu-body .tenant { color: var(--gold-dark); }
.stock-left b { color: var(--navy); }
.soldout-badge { background: var(--danger); }
.img-placeholder { background: linear-gradient(135deg, #EEF0F6, #E4E8F1); color: #A2AABD; }

/* Voucher / QR */
.voucher { border-top-color: var(--gold); }
.voucher:target { box-shadow: 0 0 0 4px rgba(201, 162, 74, .35), var(--shadow); }
.voucher-head { color: var(--navy); }
.voucher-info h3 { color: var(--navy); }
.voucher-info .tenant { color: var(--gold-dark); }
.booth-big { background: linear-gradient(135deg, #0F1B3D, #1C2C5E); border: 1px solid rgba(201, 162, 74, .4); }
.booth-big strong { color: var(--gold-2); }
.qr-box { border-color: #E5DCC4; }
.qr-box .code { color: var(--navy); }

/* Banner, statistik, tabel */
.banner-info { background: var(--info-soft); border-color: #CFD9EE; color: var(--navy-2); }
.stat { border-left-color: var(--navy); }
.stat strong { color: var(--navy); }
.stat-info { border-left-color: var(--gold); }
.stat-ok { border-left-color: var(--green); }
.stat-ok strong { color: var(--green-dark); }
.stat-warn { border-left-color: var(--gold-2); }
.stat-danger { border-left-color: var(--danger); }
.table th { background: #FAF8F3; }
.booth-tag { background: var(--navy); color: var(--gold-2); }
.history-time strong { color: var(--navy); }
.stack-bar .seg-ok { background: var(--green); }
.stack-bar .seg-warn { background: var(--gold-2); }
.lg-warn { background: var(--gold-2); }

/* Halaman login */
.login-body {
    background:
        radial-gradient(70% 50% at 50% 0%, rgba(201, 162, 74, .28), transparent 65%),
        linear-gradient(180deg, #0B1530 0%, #14224A 55%, #0F1B3D 100%);
}
.login-card { border-top: 3px solid var(--gold); gap: 18px; }
.login-brand { display: flex; justify-content: center; }
.login-brand .logo-bp { height: 38px; width: auto; }
.login-brand .logo-50 { height: 54px; width: auto; }
.login-brand .brand-sep { height: 40px; }
.login-hero {
    flex-direction: column; align-items: flex-start; gap: 2px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(227, 198, 122, .20) 0%, transparent 50%),
        linear-gradient(135deg, #0F1B3D 0%, #1C2C5E 100%);
    border: 1px solid rgba(201, 162, 74, .35);
    padding: 16px;
}
.login-hero h1 {
    font-family: var(--serif); font-size: 1.6rem; letter-spacing: .01em;
    background: linear-gradient(180deg, #F4E1A4 0%, #D3AE57 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.login-hero .tagline { color: #EBDDB0; font-size: .92rem; margin: 0 0 6px; }
.login-hero p { opacity: .85; }
.footer { color: #8A8778; }

@media (max-width: 380px) {
    .brand .logo-bp { height: 24px; }
    .brand .logo-50 { height: 30px; }
    .brand-logos { gap: 8px; }
    .who strong { max-width: 110px; }
}

/* =========================================================
   Halaman login (referensi: key visual HUT ke-50)
   Latar foto + teks di kiri + kartu kaca (glassmorphism).
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.login-body { background: #0B1530; overflow-x: hidden; }
.login-body .page { padding-top: 0; padding-bottom: 0; }

.lg-bg {
    position: fixed; inset: 0; z-index: 0;
    background:
        linear-gradient(180deg, rgba(8, 15, 36, .55) 0%, rgba(8, 15, 36, .25) 45%, rgba(8, 15, 36, .10) 70%, rgba(8, 15, 36, .45) 100%),
        url("/img/login-bg-mobile.webp") center bottom / cover no-repeat,
        #0B1530;
}
.login-body .sparkles { z-index: 0; }

.lg { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 28px 4px 32px; color: #fff; }

/* Teks pembuka */
.lg-intro { display: flex; flex-direction: column; align-items: flex-start; }
.lg-logos { align-self: center; display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.lg-logo-bp { height: 32px; width: auto; }
.lg-logo-50 { height: 50px; width: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35)); }
.lg-logo-sep { width: 1px; height: 40px; background: linear-gradient(transparent, rgba(227, 198, 122, .9), transparent); }
.lg-eyebrow { font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: #E9E2CF; margin-bottom: 8px; }
.lg-title {
    font-family: var(--serif); font-weight: 700; font-size: 2.15rem; line-height: 1.12; margin: 0 0 8px;
    background: linear-gradient(180deg, #FBEFC8 0%, #E7CB82 55%, #C99A3B 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .35));
}
.lg-intro .tagline { color: #EAD493; font-size: 1rem; margin: 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.lg-rule { display: block; width: 44px; height: 2px; background: var(--gold); margin: 18px 0 14px; }
.lg-desc { margin: 0; font-size: .95rem; line-height: 1.55; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }

/* Kartu kaca */
.lg-card {
    width: 100%; max-width: 420px; align-self: center;
    background: linear-gradient(160deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .06) 100%), rgba(15, 27, 61, .38);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 22px; padding: 26px 22px 22px;
    -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
    display: flex; flex-direction: column; gap: 14px;
}
.lg-card-title { font-family: var(--serif); font-size: 1.9rem; text-align: center; color: #FBF3DC; margin: 0; }
.lg-card-sub { text-align: center; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(255, 255, 255, .78); margin: -6px 0 4px; }
.lg-card .alert { margin-bottom: 0; }
.lg-form { display: flex; flex-direction: column; gap: 12px; }
.lg-input { position: relative; display: block; }
.lg-input .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, .85); pointer-events: none; }
.lg .lg-card .lg-input input {
    width: 100%; padding: 13px 14px 13px 46px; font-size: 16px; color: #fff;
    background: rgba(8, 15, 36, .35); border: 1px solid rgba(255, 255, 255, .30); border-radius: 12px;
}
.lg .lg-card .lg-input input::placeholder { color: rgba(255, 255, 255, .62); }
.lg .lg-card .lg-input input:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(227, 198, 122, .25); background: rgba(8, 15, 36, .5); }
.lg .lg-card .lg-input input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px #1A2850 inset; caret-color: #fff; }
.lg-check { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: rgba(255, 255, 255, .88); cursor: pointer; margin-top: 2px; }
.lg-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
.lg-btn {
    margin-top: 6px; position: relative; display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 54px; border: 0; border-radius: 999px; cursor: pointer;
    font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--navy);
    background: linear-gradient(135deg, #F3DC97 0%, #E1BF6A 50%, #C99A3B 100%);
    box-shadow: 0 8px 22px rgba(201, 162, 74, .35); transition: transform .05s, filter .15s;
}
.lg-btn:hover { filter: brightness(1.04); }
.lg-btn:active { transform: scale(.99); }
.lg-btn:disabled { filter: grayscale(.4) brightness(.9); cursor: wait; }
.lg-btn-arrow { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; font-style: normal; }
.lg-help { text-align: center; font-size: .82rem; color: rgba(255, 255, 255, .72); margin: 2px 0 0; }

/* Laptop: teks di kiri, kartu di kanan */
@media (min-width: 900px) {
    .login-body .page { max-width: 1160px; }
    .lg-bg {
        background:
            linear-gradient(90deg, rgba(8, 15, 36, .78) 0%, rgba(8, 15, 36, .45) 40%, rgba(8, 15, 36, .05) 70%),
            url("/img/login-bg-desktop.webp") center right / cover no-repeat,
            #0B1530;
    }
    .lg { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; padding: 40px 24px; }
    .lg-intro { max-width: 520px; }
    .lg-logos { align-self: flex-start; margin-bottom: 56px; }
    .lg-logo-bp { height: 38px; }
    .lg-logo-50 { height: 62px; }
    .lg-title { font-size: 3.1rem; }
    .lg-intro .tagline { font-size: 1.2rem; }
    .lg-desc { font-size: 1.05rem; }
    .lg-card { max-width: 380px; padding: 34px 30px 26px; }
    .lg-card-title { font-size: 2.3rem; text-align: left; }
    .lg-card-sub { text-align: left; }
}
@media (max-width: 899px) {
    .lg { padding-top: 18px; gap: 18px; }
    .lg-logos { margin-bottom: 18px; }
    .lg-rule { margin: 14px 0 10px; }
    .lg-card { padding: 22px 20px 18px; gap: 12px; }
}

/* tombol lihat/sembunyikan password */
.lg .lg-card .lg-input input#login-password { padding-right: 52px; }
.lg-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; background: transparent; color: rgba(255, 255, 255, .85); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.lg-eye:hover { background: rgba(255, 255, 255, .08); }
.lg-eye .ic { position: static; transform: none; }
.lg-eye .eye-hide { display: none; }
.lg-eye[aria-pressed="true"] .eye-show { display: none; }
.lg-eye[aria-pressed="true"] .eye-hide { display: grid; }
.lg-eye .eye-show { display: grid; }

/* penghitung jatah di tab kategori (mis. Snack 2/3) */
.tab-count { font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: rgba(15, 27, 61, .08); color: var(--navy); }
.tab-count.done { background: var(--gold); color: var(--navy); }
.sel-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.jatah-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.jatah-row > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.jatah-row input { max-width: 110px; text-align: center; }
.upload-errors { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; }
