/* ============ Owner dashboard ============ */
:root {
  --bg: #f5f4f0; --surface: #ffffff; --surface-2: #f8f7f4; --line: #e9e6df; --line-2: #dcd8cf;
  --text: #1b1a17; --text-2: #52514e; --muted: #8b887f;
  --brand: #d9932b; --brand-ink: #1e1406; --brand-soft: #fbf0de;
  --side: #14131a; --side-2: #1e1d26; --side-text: #c9c6d3;
  --good: #0ca30c; --good-soft: #e5f6e5; --bad: #d64545; --bad-soft: #fdeaea; --warn-soft: #fff4dc;
  --series-1: #2a78d6; --series-2: #eb6834; --gold: #eda100;
  --radius: 16px; --shadow: 0 1px 2px rgba(20,18,10,.04), 0 6px 24px rgba(20,18,10,.05);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14.5px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg.lucide { width: 18px; height: 18px; stroke-width: 2; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* ---------- layout ---------- */
.shell { display: flex; min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: 256px; background: var(--side); color: var(--side-text); display: flex; flex-direction: column; padding: 20px 14px; z-index: 50; transition: transform .3s ease; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 20px; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.side-brand i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #f0b85a, #b26b16); font-style: normal; color: #1e1406; }
.venue { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--side-2); margin-bottom: 18px; }
.venue img, .venue .mono { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; flex: none; }
.venue .mono { display: grid; place-items: center; background: #34303f; color: #fff; font-weight: 800; }
.venue b { color: #fff; display: block; font-size: 14px; line-height: 1.2; }
.venue select { width: 100%; background: transparent; border: 0; color: var(--side-text); font-size: 12px; padding: 0; cursor: pointer; }
.venue select option { color: #000; }
.venue a { font-size: 12px; color: #f0b85a; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.side .group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #6f6b7c; padding: 14px 12px 6px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 500; transition: background .2s, color .2s; }
.side nav a:hover { background: var(--side-2); color: #fff; }
.side nav a.on { background: linear-gradient(90deg, rgba(240,184,90,.18), rgba(240,184,90,.04)); color: #fff; box-shadow: inset 3px 0 0 #f0b85a; }
.side nav a.on svg { color: #f0b85a; }
.side nav .pill { margin-left: auto; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.side-foot { border-top: 1px solid #2a2833; padding-top: 12px; display: grid; gap: 2px; }
.side-foot a, .side-foot button { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; font-size: 13.5px; }
.side-foot a:hover, .side-foot button:hover { background: var(--side-2); color: #fff; }
.main { flex: 1; margin-left: 256px; min-width: 0; }
.platform-nav { flex: none !important; margin-bottom: 8px; }
.side > .group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #6f6b7c; padding: 6px 12px 8px; }
.admin-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 32px; background: #1e1d26; color: #e9e6f2; font-size: 13.5px; }
.admin-banner span { display: inline-flex; align-items: center; gap: 8px; }
.admin-banner svg { color: #f0b85a; width: 16px; height: 16px; }
.admin-banner .btn { color: var(--text); }
.renew-banner { background: #fff4dc; color: #74470a; }
.renew-banner svg { color: #b26b16; }
.date-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.date-chips button { height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12px; font-weight: 700; cursor: pointer; }
.date-chips button:hover { border-color: var(--brand); background: var(--brand-soft); }
.admin-banner .btn svg { color: var(--text); }
@media (max-width: 600px) { .item-card .media { aspect-ratio: 16/8; } }
@media (max-width: 960px) { .admin-banner { padding: 10px 16px; } }
.topbar { display: none; }
.content { max-width: 1180px; margin: 0 auto; padding: 28px 32px 80px; }
.scrim { display: none; }

@media (max-width: 960px) {
  .side { transform: translateX(-100%); }
  .side.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.3); }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 40; }
  .main { margin-left: 0; }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; padding: 12px 16px; background: rgba(245,244,240,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .topbar b { flex: 1; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .content { padding: 20px 16px 90px; }
}

/* ---------- page head ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.page-head p { color: var(--muted); margin-top: 4px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.back:hover { color: var(--text); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--text); color: #fff; box-shadow: 0 6px 18px rgba(20,18,10,.18); }
.btn-primary:hover { background: #000; }
.btn-brand { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px rgba(217,147,43,.3); }
.btn-light { background: var(--surface); border-color: var(--line-2); }
.btn-light:hover { background: var(--surface-2); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--text-2); transition: background .2s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.danger:hover { color: var(--bad); background: var(--bad-soft); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 0; }
.card-head h2 { font-size: 16px; font-weight: 800; }
.grid { display: grid; gap: 16px; }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-main { grid-template-columns: 1.65fr 1fr; }
@media (max-width: 1100px) { .g-4 { grid-template-columns: repeat(2, 1fr); } .g-3 { grid-template-columns: repeat(2, 1fr); } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .g-3, .g-2 { grid-template-columns: 1fr; } .g-4 { gap: 10px; } }

/* ---------- stat tiles ---------- */
.stat { padding: 18px 20px; position: relative; overflow: hidden; }
.stat-label { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; font-size: 13px; }
.stat-label svg { width: 16px; height: 16px; color: var(--muted); }
.stat-value { font-size: 32px; font-weight: 800; letter-spacing: -.03em; margin-top: 8px; line-height: 1; }
.stat-sub { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.stat-sub b { color: var(--text-2); }
@media (max-width: 600px) { .stat { padding: 14px; } .stat-value { font-size: 26px; } }

/* ---------- chart ---------- */
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart { position: relative; display: grid; grid-template-columns: repeat(14, 1fr); gap: 8px; align-items: end; height: 220px; padding: 20px 20px 0; }
.chart::before { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; border-bottom: 1px solid var(--line-2); }
.chart .gridline { position: absolute; left: 20px; right: 20px; border-top: 1px dashed var(--line); }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; cursor: default; }
.bar .seg { width: 100%; max-width: 30px; margin: 0 auto; min-height: 0; }
.bar .seg.menu { background: var(--series-1); border-radius: 0 0 0 0; }
.bar .seg.review { background: var(--series-2); }
.bar .seg:first-child { border-radius: 4px 4px 0 0; }
.bar:hover .seg { filter: brightness(1.08); }
.bar .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: 8px 10px; border-radius: 10px; font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 5; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.bar:hover .tip, .bar:focus .tip { opacity: 1; }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.bar.first .tip { left: 0; transform: none; }
.bar.last .tip { left: auto; right: 0; transform: none; }
.xlabels { display: grid; grid-template-columns: repeat(14, 1fr); gap: 8px; padding: 8px 20px 18px; font-size: 11px; color: var(--muted); text-align: center; }
@media (max-width: 600px) { .chart, .xlabels { gap: 3px; padding-left: 12px; padding-right: 12px; } .xlabels span:nth-child(odd) { visibility: hidden; } }

.dist { display: grid; gap: 10px; padding: 16px 20px 20px; }
.dist-row { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.dist-track { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.dist-fill { height: 100%; background: var(--gold); border-radius: 0 4px 4px 0; }
.big-rating { display: flex; align-items: center; gap: 14px; padding: 18px 20px 0; }
.big-rating b { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- lists ---------- */
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); }
.list-item:first-child { border-top: 0; }
.list-item.is-off > :not(.switch):not(.icon-btn) { opacity: .5; }
.thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); display: grid; place-items: center; font-size: 24px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.grow { flex: 1; min-width: 0; }
.title { font-weight: 700; }
.sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.clamp { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-state { text-align: center; padding: 50px 20px; }
.empty-state .emoji { font-size: 46px; margin-bottom: 10px; }
.empty-state h3 { font-size: 18px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); margin-bottom: 18px; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge.good { background: var(--good-soft); color: #087a08; }
.badge.bad { background: var(--bad-soft); color: #b42d2d; }
.badge.warn { background: var(--warn-soft); color: #946100; }
.badge.brand { background: var(--brand-soft); color: #9a5c0b; }
.badge.blue { background: #e6f0fb; color: #1c5cab; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.diet { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; display: inline-grid; place-items: center; flex: none; }
.diet::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.diet-veg { color: #1f9d55; } .diet-vegan { color: #12b886; } .diet-egg { color: #e2a012; } .diet-nonveg { color: #d6403a; }

/* ---------- toggles ---------- */
.switch-input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch { width: 42px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; flex: none; transition: background .25s; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s cubic-bezier(.2,.9,.25,1); }
.switch-input:checked + .switch, .switch.on { background: var(--good); }
.switch-input:checked + .switch::after, .switch.on::after { transform: translateX(18px); }
.switch-input:focus-visible + .switch { outline: 3px solid rgba(217,147,43,.4); outline-offset: 2px; }
button.switch { border: 0; }

/* ---------- items grid ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.searchbox { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); flex: 1; min-width: 200px; max-width: 360px; }
.searchbox input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; }
.searchbox svg { color: var(--muted); width: 16px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chip { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 13px; cursor: pointer; }
.chip.on { background: var(--text); color: #fff; border-color: var(--text); }
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.item-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.item-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20,18,10,.08); }
.item-card .media { position: relative; aspect-ratio: 16/10; background: radial-gradient(circle at 30% 30%, #fbe7c6, #f3efe6 70%); display: grid; place-items: center; font-size: 46px; }
.item-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-card .media .badge { position: absolute; top: 10px; left: 10px; }
.item-card.is-off .media { filter: grayscale(1); opacity: .6; }
.item-card .body { padding: 14px 16px; flex: 1; }
.item-card .row { display: flex; align-items: center; gap: 8px; }
.item-card h3 { font-size: 15.5px; font-weight: 700; flex: 1; min-width: 0; }
.price { font-weight: 800; }
.price s { color: var(--muted); font-weight: 500; margin-right: 4px; }
.item-card .foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface-2); }
.item-card .foot label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.item-card .foot .spacer { flex: 1; }

/* ---------- forms ---------- */
.form-card { padding: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 18px; } }
.fld { display: grid; gap: 7px; align-content: start; }
.fld > label { font-weight: 700; font-size: 13px; color: var(--text-2); }
.fld > label i { color: var(--bad); font-style: normal; margin-left: 2px; }
.fld-textarea, .fld-image, .fld-checkboxselectmultiple, .fld-radioselect, .full { grid-column: 1 / -1; }
.help { color: var(--muted); font-size: 12px; line-height: 1.45; }
.help a { color: var(--brand); text-decoration: underline; }
.errorlist { list-style: none; color: var(--bad); font-size: 12.5px; font-weight: 600; }
.has-error .input { border-color: var(--bad); background: var(--bad-soft); }
.input { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); outline: none; transition: border-color .2s, box-shadow .2s; font-size: 14.5px; }
textarea.input { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b887f' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(217,147,43,.15); }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; position: relative; }
.switch-row b { display: block; font-size: 13.5px; }
.switch-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.switch-row.has-error { border-color: var(--bad); background: var(--bad-soft); }
.switch-row .switch-error { color: var(--bad); font-weight: 700; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; max-height: 260px; overflow-y: auto; padding: 2px; }
.checks > div { display: contents; }
.checks label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 600; user-select: none; }
.checks label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.checks input { accent-color: var(--brand); }
.img-input { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--surface-2); }
.img-preview { width: 92px; height: 92px; border-radius: 14px; overflow: hidden; background: var(--surface); display: grid; place-items: center; font-size: 30px; flex: none; border: 1px solid var(--line); }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-actions { display: grid; gap: 8px; justify-items: start; }
.img-actions .clear { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.section-title { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.section-title:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.section-title h2 { font-size: 16px; font-weight: 800; }
.section-title p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.section-title a { color: var(--brand); text-decoration: underline; font-weight: 600; }
.formset { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.formset h2 { font-size: 16px; font-weight: 800; }
.formset > p { color: var(--muted); font-size: 13px; margin: 4px 0 14px; }
.fs-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; align-items: end; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 10px; }
.fs-row .fld > label { font-size: 12px; }
.fs-row .del { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--bad); font-weight: 600; height: 44px; cursor: pointer; }
.fs-row .del input { position: static; opacity: 1; width: 16px; height: 16px; accent-color: var(--bad); }
.fs-row .del input + .switch { display: none; }
.fs-row.combo { grid-template-columns: 3fr 1fr auto; }
@media (max-width: 600px) { .fs-row, .fs-row.combo { grid-template-columns: 1fr 1fr; } .fs-row .fld:first-child { grid-column: 1 / -1; } }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .form-actions { position: sticky; bottom: 0; background: var(--surface); margin: 24px -18px -18px; padding: 14px 18px; border-radius: 0 0 var(--radius) var(--radius); } .form-actions .btn { flex: 1; } }
@media (max-width: 700px) { .form-actions.static { position: static; margin: 20px 0 0; padding: 16px 0 0; } }
.alert { padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 13.5px; margin-bottom: 16px; }
.alert-error { background: var(--bad-soft); color: #9b2323; }
.note { padding: 14px 16px; border-radius: 12px; background: var(--brand-soft); color: #74470a; font-size: 13px; line-height: 1.55; }
.note a { text-decoration: underline; font-weight: 700; }

/* theme picker */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.themes > div { display: contents; }
.theme-opt { position: relative; cursor: pointer; border-radius: 14px; border: 2px solid var(--line); overflow: hidden; transition: border-color .2s, transform .2s; }
.theme-opt:has(input:checked) { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217,147,43,.2); }
.theme-opt input { position: absolute; opacity: 0; }
.theme-swatch { height: 64px; display: flex; align-items: flex-end; gap: 6px; padding: 10px; }
.theme-swatch i { width: 18px; height: 18px; border-radius: 6px; }
.theme-name { padding: 8px 10px; font-size: 12px; font-weight: 700; background: var(--surface); }
.sw-midnight { background: #0b0b10; } .sw-midnight i:nth-child(1) { background: #e8b65a; } .sw-midnight i:nth-child(2) { background: #1f1f2b; }
.sw-espresso { background: #15100c; } .sw-espresso i:nth-child(1) { background: #d99a5e; } .sw-espresso i:nth-child(2) { background: #2d211a; }
.sw-neon { background: #08081a; } .sw-neon i:nth-child(1) { background: #ff3d8b; } .sw-neon i:nth-child(2) { background: #1c1c3d; }
.sw-cream { background: #faf6ef; } .sw-cream i:nth-child(1) { background: #b4612a; } .sw-cream i:nth-child(2) { background: #f2eadf; }
.sw-matcha { background: #f3f7ef; } .sw-matcha i:nth-child(1) { background: #3f8a43; } .sw-matcha i:nth-child(2) { background: #e5eedd; }
.color-wrap { display: flex; gap: 8px; }
.color-wrap input[type=color] { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; padding: 4px; background: var(--surface); cursor: pointer; flex: none; }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 100; display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--text); color: #fff; font-weight: 600; font-size: 13.5px; box-shadow: 0 12px 30px rgba(0,0,0,.2); animation: toastIn .4s cubic-bezier(.2,.9,.25,1); max-width: 360px; }
.toast.error { background: var(--bad); }
.toast svg { color: #7be07b; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- misc ---------- */
.link-box { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.link-box code { flex: 1; min-width: 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.checklist a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-weight: 600; margin-top: 8px; }
.checklist a:hover { background: var(--brand-soft); }
.checklist svg { color: var(--brand); }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 16px 20px 20px; }
.quick a { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; transition: background .2s, transform .2s; }
.quick a:hover { background: var(--brand-soft); transform: translateY(-2px); }
.quick svg { color: var(--brand); width: 20px; height: 20px; }
.feedback { display: flex; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--line); }
.feedback:first-child { border-top: 0; }
.feedback.new { background: linear-gradient(90deg, #fff8ea, transparent); }
.fb-photos { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.fb-photos img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.reply-box { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--good-soft); border-left: 3px solid var(--good); }
.reply-box p { margin-top: 4px; color: var(--text); }
.reply-panel { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.reply-label { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.reply-chips { display: grid; gap: 6px; margin-bottom: 10px; max-height: 220px; overflow-y: auto; }
.reply-chip { text-align: left; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; line-height: 1.45; cursor: pointer; }
.reply-chip:hover { border-color: var(--brand); }
.reply-chip.on { border-color: var(--brand); background: var(--brand-soft); }
.reply-panel textarea.input { height: auto; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: none; background: var(--brand-soft); color: #9a5c0b; }
.feedback p { margin-top: 6px; line-height: 1.5; color: var(--text-2); }
.offer-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.offer-card .big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.offer-card .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.qr-card { padding: 22px; text-align: center; }
.qr-designer { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding: 22px; align-items: start; }
@media (max-width: 960px) { .qr-designer { grid-template-columns: 1fr; padding: 16px; } .qd-preview { order: -1; } }
.qd-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.qd-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.qd-preset { display: grid; gap: 6px; justify-items: center; padding: 10px 8px 8px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; font-size: 12.5px; transition: border-color .2s, transform .2s; }
.qd-preset img { width: 72px; height: 72px; border-radius: 8px; }
.qd-preset:hover { transform: translateY(-2px); border-color: var(--line-2); }
.qd-preset.on { border-color: var(--brand); background: var(--brand-soft); }
.qd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .qd-grid { grid-template-columns: 1fr; } }
.qd-preview { position: sticky; top: 16px; display: grid; gap: 12px; }
.qd-preview-box { position: relative; border-radius: 18px; background: repeating-conic-gradient(#f1eee8 0% 25%, #faf9f6 0% 50%) 50% / 20px 20px; padding: 18px; display: grid; place-items: center; min-height: 300px; }
.qd-preview-box img { width: 100%; max-width: 300px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.15)); }
.qd-loading { position: absolute; top: 10px; right: 10px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--text); color: #fff; opacity: 0; transition: opacity .2s; }
.qd-loading.show { opacity: 1; }
.qr-card img { width: 100%; max-width: 260px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.qr-card h2 { font-size: 18px; font-weight: 800; margin: 14px 0 4px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches a { width: 34px; height: 34px; border-radius: 10px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-2); }
.swatches a.on { box-shadow: 0 0 0 2px var(--text); }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-art { background: var(--side); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(240,184,90,.35), transparent); top: -120px; right: -160px; }
.login-art h2 { font-size: 40px; line-height: 1.1; letter-spacing: -.02em; position: relative; max-width: 440px; }
.login-art p { color: var(--side-text); margin-top: 14px; position: relative; max-width: 420px; line-height: 1.6; }
.login-form { display: grid; place-items: center; padding: 32px 20px; }
.login-form form { width: 100%; max-width: 380px; display: grid; gap: 16px; }
.remember { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.remember input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.remember b { display: block; }
.remember small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.4; }
.login-form h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
@media (max-width: 860px) { .login-wrap { grid-template-columns: 1fr; } .login-art { display: none; } }
/* ---------- super admin ---------- */
a.stat { transition: transform .2s, box-shadow .2s; }
a.stat:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20,18,10,.08); }
.cafe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.cafe-card { display: flex; flex-direction: column; overflow: hidden; }
.cafe-top { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; }
.cafe-top h3 { font-size: 16px; font-weight: 800; }
.cafe-logo { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; flex: none; }
.cafe-logo.mono { display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #1e1406; background: linear-gradient(135deg, #f0b85a, #d9932b); }
.cafe-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cafe-stats div { padding: 10px 6px; text-align: center; display: grid; gap: 2px; }
.cafe-stats div + div { border-left: 1px solid var(--line); }
.cafe-stats b { font-size: 14px; font-weight: 800; white-space: nowrap; }
.cafe-stats span { font-size: 11px; color: var(--muted); }
.cafe-pay { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 12.5px; color: var(--text-2); border-bottom: 1px solid var(--line); }
.cafe-pay svg { width: 15px; height: 15px; color: var(--brand); }
.cafe-pay span { margin-left: auto; font-weight: 700; color: var(--brand); white-space: nowrap; }
.cafe-pay:hover { background: var(--brand-soft); }
.cafe-actions { display: flex; gap: 8px; padding: 12px 16px; align-items: center; }
.seg-control { justify-self: start; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.seg-control label { position: relative; cursor: pointer; }
.seg-control input { position: absolute; opacity: 0; }
.seg-control span { display: block; padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--text-2); transition: background .2s; }
.seg-control input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.seg-control input:focus-visible + span { outline: 3px solid rgba(217,147,43,.4); }
.creds { max-width: 560px; margin: 30px auto; text-align: center; }
.creds-icon { font-size: 52px; }
.creds h1 { font-size: 24px; font-weight: 800; margin: 6px 0; }
.creds-box { margin-top: 20px; text-align: left; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.creds-box div { display: flex; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: baseline; }
.creds-box div:first-child { border-top: 0; }
.creds-box span { width: 96px; flex: none; color: var(--muted); font-size: 13px; }
.creds-box b { word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; }
@media (max-width: 600px) { .creds-box div { flex-direction: column; gap: 2px; } .page-head .btn { width: 100%; } .page-head .actions { width: 100%; } .page-head .actions .btn { flex: 1; } }

/* ---------- live orders ---------- */
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--good); vertical-align: 4px; margin-left: 6px; box-shadow: 0 0 0 0 rgba(12,163,12,.5); animation: livePulse 2s infinite; }
.live-dot.off { background: var(--bad); animation: none; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 10px rgba(12,163,12,0); } 100% { box-shadow: 0 0 0 0 rgba(12,163,12,0); } }
.top-bell { position: relative; }
.top-bell .pill { position: absolute; top: -6px; right: -6px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; }
.alerts-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: #fff4dc; border: 1px solid #f3dca8; margin-bottom: 16px; }
.alerts-bar > div:first-child { display: grid; gap: 2px; font-size: 13.5px; }
.alerts-bar span { color: #74470a; font-size: 12.5px; }
.alerts-bar.ok { background: var(--good-soft); border-color: #bfe6bf; }
.alerts-bar.ok span { color: #0b5d0b; }
.order-stats { margin-bottom: 16px; }
.order-stats .stat-value { font-size: 26px; }
.calls { display: grid; gap: 8px; margin-bottom: 16px; }
.call { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff0f0; border: 1.5px solid #f5b5b5; animation: callIn .4s ease; }
.call b { font-size: 15px; }
.call small { margin-left: auto; color: var(--muted); }
.call-ico { font-size: 20px; animation: ring 1.2s ease-in-out infinite; display: inline-block; }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-18deg); } 20%, 40% { transform: rotate(18deg); } }
@keyframes callIn { from { transform: translateY(-6px); opacity: 0; } }
.board-tabs { display: none; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.col { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px; min-height: 200px; }
.col h2 { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin: 2px 4px 12px; }
.col h2 b { margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; font-size: 12px; padding: 1px 9px; }
.col-body { display: grid; gap: 10px; }
.col-empty { color: var(--muted); font-size: 12.5px; text-align: center; padding: 24px 8px; }
.ocard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.ocard.enter { animation: callIn .35s ease; }
.ocard.is-new { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(217,147,43,.18); }
.ocard.attention { border-color: #6aa84f; box-shadow: 0 0 0 3px rgba(12,163,12,.15); }
.ocard.is-late { border-color: var(--bad); }
.ocard header { display: flex; align-items: center; gap: 8px; }
.onum { font-weight: 800; font-size: 17px; }
.otable { font-weight: 700; font-size: 13px; background: var(--text); color: #fff; padding: 2px 9px; border-radius: 8px; }
.ototal { margin-left: auto; font-weight: 800; }
.otime { font-size: 12px; }
.otime .eta { font-weight: 700; color: #0b5d0b; }
.otime .eta.late { color: var(--bad); }
.oitems { list-style: none; display: grid; gap: 3px; font-size: 13.5px; border-top: 1px dashed var(--line); padding-top: 8px; }
.oitems small { color: var(--muted); }
.onote { font-size: 12.5px; background: var(--warn-soft); color: #74470a; padding: 6px 9px; border-radius: 8px; }
.ocard .btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.eta-pick { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.eta-pick .small { width: 100%; }
.chip-btn { height: 30px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.chip-btn:hover { border-color: var(--brand); background: var(--brand-soft); }
.chip-btn.on { border-color: var(--brand); background: var(--brand-soft); }
.chip-select { height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; padding: 0 6px; font-weight: 600; }
.btn-ghost-danger { background: transparent; color: var(--bad); border-color: transparent; }
.btn-ghost-danger:hover { background: var(--bad-soft); }
.pay { display: grid; gap: 6px; font-size: 12px; color: var(--text-2); border-top: 1px solid var(--line); padding-top: 8px; }
.pay.paid { display: flex; align-items: center; gap: 8px; color: #087a08; font-weight: 700; }
.pay.claim { background: var(--good-soft); border-radius: 10px; padding: 9px; border-top: 0; }
.pay.claim b { color: #0b5d0b; font-size: 13px; }
.link-sm { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 11.5px; margin-left: auto; }
.dlg { border: 0; border-radius: 18px; padding: 22px; max-width: 380px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.dlg::backdrop { background: rgba(0,0,0,.45); }
.dlg h3 { font-size: 18px; font-weight: 800; }
.reason-list { display: grid; gap: 6px; margin-top: 12px; }
.reason-list label { display: flex; gap: 8px; align-items: center; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; font-size: 13.5px; }
.reason-list label:has(input:checked) { border-color: var(--bad); background: var(--bad-soft); }
@media (max-width: 1100px) {
  .board-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; scrollbar-width: none; }
  .board-tabs button { flex: none; height: 38px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 13px; cursor: pointer; }
  .board-tabs button b { background: var(--surface-2); border-radius: 99px; padding: 0 7px; margin-left: 4px; }
  .board-tabs button.on { background: var(--text); color: #fff; border-color: var(--text); }
  .board-tabs button.on b { background: rgba(255,255,255,.2); }
  .board { grid-template-columns: 1fr; }
  .board .col { display: none; }
  .board[data-active="placed"] .col[data-col="placed"], .board[data-active="preparing"] .col[data-col="preparing"],
  .board[data-active="ready"] .col[data-col="ready"], .board[data-active="unpaid"] .col[data-col="unpaid"] { display: block; }
  .col h2 { display: none; }
}
/* tables page */
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.tcard-admin { padding: 14px; display: grid; gap: 10px; text-align: center; }
.tcard-admin img { width: 130px; height: 130px; margin: 0 auto; border-radius: 10px; border: 1px solid var(--line); }
.tcard-admin h3 { font-size: 16px; font-weight: 800; }
.tcard-admin .actions { justify-content: center; }
.tcard-admin.is-off { opacity: .55; }
.add-tables { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.add-tables .fld { min-width: 110px; }
.add-tables .input { height: 42px; }
.sound-nudge { position: fixed; z-index: 90; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 12px 18px; border-radius: 99px;
  border: 0; background: #1b1a17; color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.3); cursor: pointer;
  animation: nudge 2s ease-in-out infinite; max-width: calc(100vw - 32px); }
.sound-nudge[hidden] { display: none; }
@keyframes nudge { 50% { transform: translateX(-50%) scale(1.04); } }
.pay.refund { background: var(--bad-soft); border-radius: 10px; padding: 9px; border-top: 0; }
.pay.refund b { color: #9b2323; font-size: 13px; }
.cancel-warn { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: #74470a; font-size: 13px; font-weight: 600; }

/* QR page: one or two QR codes */
.g-1 { grid-template-columns: minmax(0, 520px); justify-content: center; }
.qr-mode-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 700px) { .qr-mode-opts { grid-template-columns: 1fr; } }
.qm-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer; }
.qm-opt:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.qm-opt input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.qm-opt span { display: grid; gap: 4px; }
.qm-opt small { color: var(--text-2); font-size: 12.5px; line-height: 1.45; }

/* Scratch cards */
.prize-row { display: flex; align-items: center; gap: 12px; }
.prize-emoji { font-size: 26px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft, #f3efe6); flex: none; }
.chance-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 8px; }
.chance-bar i { display: block; height: 100%; background: var(--brand); }
.code-check { display: flex; gap: 8px; flex-wrap: wrap; }
.code-check input { flex: 1; min-width: 160px; text-transform: uppercase; letter-spacing: .15em; font-weight: 800; font-size: 18px; }
.code-result { margin-top: 14px; padding: 16px; border-radius: 14px; border: 1.5px solid var(--line-2); display: grid; gap: 6px; }
.code-result.ok { border-color: var(--good, #2e9e5b); background: color-mix(in srgb, var(--good, #2e9e5b) 8%, transparent); }
.code-result.bad { border-color: var(--bad); background: var(--bad-soft); }
.ocard .reward { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--brand); }

/* Grid cards must never grow wider than the phone because of a long link or review text */
.grid > * { min-width: 0; }
.link-box { min-width: 0; }
.link-box code { min-width: 0; overflow-wrap: anywhere; word-break: break-all; }
.feedback, .feedback .grow, .clamp { min-width: 0; overflow-wrap: anywhere; }

/* ---- Subscription billing (owner) ---- */
.step-h { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.step-h > span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 13px; flex: none; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan-opt { position: relative; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.po-body { display: grid; gap: 4px; padding: 16px 14px; border: 1.5px solid var(--line-2); border-radius: 16px; height: 100%; transition: border-color .15s, background .15s; }
.plan-opt input:checked + .po-body { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.plan-opt input:focus-visible + .po-body { outline: 2px solid var(--brand); outline-offset: 2px; }
.po-tag { justify-self: start; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--brand); color: #fff; }
.po-name { font-size: 14px; }
.po-price { font-size: 24px; font-weight: 800; }
.po-body small { color: var(--text-2); font-size: 12px; }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
@media (max-width: 700px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-upi { width: 100%; justify-content: center; min-height: 50px; font-size: 15px; }
.pay-qr { display: grid; gap: 8px; justify-items: center; text-align: center; }
.pay-qr img { width: 220px; height: 220px; max-width: 100%; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 8px; }
.pay-qr small { color: var(--text-2); max-width: 220px; }
.pay-pending { display: flex; gap: 14px; align-items: flex-start; border: 1.5px solid #e8b65a; }
.pay-pending h2 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.pp-ico { font-size: 32px; }
/* ---- Subscription billing (super admin) ---- */
.verify-banner { display: flex; align-items: center; gap: 14px; margin-top: 16px; text-decoration: none; color: inherit; border: 1.5px solid #e8b65a; }
.verify-banner small { display: block; color: var(--text-2); font-size: 12.5px; }
.vb-ico { font-size: 28px; }
.renewal { flex-wrap: wrap; }
.req-card { margin-bottom: 14px; }
.req-top { display: flex; gap: 12px; align-items: flex-start; }
.req-top h2 { font-size: 17px; font-weight: 800; }
.req-amount { font-size: 24px; font-weight: 800; }
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.req-grid div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--bg, #f6f4ef); }
.req-grid span { font-size: 11.5px; color: var(--text-2); }
.req-grid .utr { letter-spacing: .06em; overflow-wrap: anywhere; }
.req-shot { max-width: 220px; max-height: 320px; border-radius: 12px; border: 1px solid var(--line); margin-top: 10px; }
.req-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.req-reject { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.req-reject .input { flex: 1; min-width: 0; }
.renew-banner .btn { margin-left: auto; flex: none; }
.side .pill.pill-pro { background: rgba(255,255,255,.12); color: #e8b65a; font-size: 10px; letter-spacing: .03em; }

/* Sidebar on short laptop screens: the menu scrolls instead of hiding links behind the footer */
.side nav { min-height: 0; }
.side nav > * { flex-shrink: 0; }
.side .platform-nav { flex: none; }

/* Ringing alert banner (new order / waiter call) – hard to miss, tap "Seen" to stop */
.alarm-bar { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; align-items: center; gap: 14px;
  width: min(560px, calc(100vw - 24px)); padding: 14px 16px; border-radius: 18px; background: #1b1a22; color: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.35), 0 0 0 4px rgba(240,184,90,.6); animation: alarmPulse 1s ease-in-out infinite; cursor: pointer; }
.alarm-bar[hidden] { display: none; }
.alarm-bar .ab-ico { font-size: 30px; animation: ring 1s ease-in-out infinite; flex: none; }
.alarm-bar .ab-text { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.alarm-bar .ab-text div + div { font-weight: 600; font-size: 13px; opacity: .8; }
.alarm-bar .ab-seen { flex: none; border: 0; border-radius: 12px; padding: 10px 16px; background: #f0b85a; color: #1b1a22; font-weight: 800; font-size: 14px; cursor: pointer; }
@keyframes alarmPulse { 50% { box-shadow: 0 18px 50px rgba(0,0,0,.35), 0 0 0 10px rgba(240,184,90,.15); } }
@media (prefers-reduced-motion: reduce) { .alarm-bar, .alarm-bar .ab-ico { animation: none; } }
.kept-note { font-size: 11.5px; color: #8b879a; padding: 6px 12px 0; line-height: 1.4; }
.reset-stack { width: 100%; max-width: 400px; } .reset-stack > form:first-child { max-width: none; }
