/* Design tokens
   White base, chili accent (ớt), herb green for "open", turmeric for ratings.
   Fonts are chosen in Admin → Brand; every preset ships with full Vietnamese glyphs (public/fonts). */
:root {
  --bg: #ffffff;
  --surface: #faf6f2;          /* rice-paper tint for grouped areas */
  --ink: #221b17;
  --ink-2: #5f5550;
  --ink-3: #8d827b;
  --line: #ece4dd;
  --chili: #e2401c;            /* brand accent */
  --chili-deep: #b02a0c;       /* accent text on white (AA) */
  --chili-wash: #fdeee8;
  --herb: #2e8a45;
  --herb-wash: #e7f4ea;
  --turmeric: #e9a514;
  --warn-wash: #fff6dc;
  --danger: #b4231a;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow: 0 1px 2px rgba(60, 30, 10, .06), 0 6px 18px rgba(60, 30, 10, .07);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Baloo 2", var(--font);
  --head-track: 0;
  --head-weight: 800;
  --gutter: 16px;
  --tabbar: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--font); }
img { display: block; max-width: 100%; }
a { color: var(--chili-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #1d6fd6; outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── Type ── */
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
.display { font-family: var(--font-head); font-weight: var(--head-weight); font-size: clamp(36px, 9vw, 58px); line-height: 1.08; letter-spacing: var(--head-track); }
.h1 { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 27px; letter-spacing: var(--head-track); line-height: 1.15; }
.h2 { font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: var(--head-track); }
.h3 { font-weight: 650; font-size: 16px; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); font-size: 13px; }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.strike { text-decoration: line-through; color: var(--ink-3); }

/* ── Layout ── */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 640px; }
.stack > * + * { margin-top: 12px; }
.stack-l > * + * { margin-top: 24px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap-ok { flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
main { padding-bottom: calc(var(--tabbar) + 32px); min-height: 70vh; }

/* ── Top bar ── */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 12px; height: 58px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: var(--head-weight); font-size: 22px; letter-spacing: var(--head-track); }
.brand img { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; }
.brand .role { font-size: 12px; font-weight: 600; color: var(--chili-deep); background: var(--chili-wash); padding: 2px 8px; border-radius: 99px; letter-spacing: 0; }
.topnav { display: none; gap: 4px; margin-left: 16px; }
.topnav a { padding: 8px 12px; border-radius: 99px; color: var(--ink-2); text-decoration: none; font-weight: 550; }
.topnav a[aria-current="page"] { background: var(--surface); color: var(--ink); }
.iconbtn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 99px; cursor: pointer; color: var(--ink); }
.iconbtn:hover { background: var(--surface); }
.iconbtn svg { width: 22px; height: 22px; }
.dot { position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--chili); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.langbtn { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 10px; font-size: 13px; font-weight: 600; cursor: pointer; }

/* ── Bottom tab bar (mobile) ── */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; height: var(--tabbar); background: #fff; border-top: 1px solid var(--line); display: flex; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--ink-3); font-size: 11.5px; font-weight: 600; position: relative; }
.tabbar a svg { width: 23px; height: 23px; }
.tabbar a[aria-current="page"] { color: var(--chili-deep); }
.tabbar .dot { top: 6px; right: calc(50% - 22px); }
@media (min-width: 860px) {
  .tabbar { display: none; }
  .topnav { display: flex; }
  main { padding-bottom: 48px; }
}

/* ── Buttons & forms ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-weight: 650; cursor: pointer; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { border-color: #d9cdc4; }
.btn.primary { background: var(--chili); border-color: var(--chili); color: #fff; }
.btn.primary:hover { background: #cf3914; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--chili-deep); }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label.field { display: block; }
label.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; border: 1px solid #dcd2ca; border-radius: var(--radius-s); padding: 10px 12px; background: #fff; }
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { border-color: var(--chili); outline: 2px solid var(--chili-wash); }
.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--chili); flex: none; }
.seg { display: inline-flex; background: var(--surface); border-radius: 99px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; border-radius: 99px; padding: 8px 16px; font-weight: 650; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.form-error { background: #fdecea; color: var(--danger); border-radius: var(--radius-s); padding: 10px 12px; font-size: 14px; }

/* ── Home hero ── */
.hero { padding: 26px 0 8px; }
.hero .display { max-width: 12ch; }
.hero .where { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; font-size: 14px; }
.hero .where select { border: 0; background: transparent; font-weight: 700; color: var(--ink); padding: 0; cursor: pointer; }
.search { position: relative; margin-top: 18px; }
.search input { width: 100%; height: 54px; border-radius: 99px; border: 2px solid var(--ink); padding: 0 20px 0 50px; font-size: 16px; background: #fff; }
.search input:focus { outline: none; border-color: var(--chili); box-shadow: 0 0 0 4px var(--chili-wash); }
.search svg { position: absolute; left: 18px; top: 16px; width: 22px; height: 22px; color: var(--ink-2); }

/* Category rail: horizontally scrolling plates */
.rail { display: flex; gap: 10px; overflow-x: auto; padding: 16px var(--gutter) 6px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 9px 16px; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 14px; }
.filters select { min-height: 38px; border-radius: 99px; border: 1px solid var(--line); padding: 0 12px; background: #fff; font-weight: 600; font-size: 14px; }

/* ── Restaurant cards ── */
.cards { display: grid; gap: 20px 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }
.rcard { text-decoration: none; color: inherit; display: block; }
.rcard .cover { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: var(--surface); }
.rcard .cover img { width: 100%; height: 100%; object-fit: cover; }
.rcard.closed .cover img { filter: grayscale(.85) opacity(.7); }
.rcard .badge-closed { position: absolute; left: 10px; bottom: 10px; background: rgba(34,27,23,.86); color: #fff; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.rcard .logo { position: absolute; right: 10px; bottom: -18px; width: 46px; height: 46px; border-radius: 12px; border: 3px solid #fff; background: #fff; }
.rcard .body { padding: 10px 2px 0; }
.rcard .name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-2); font-size: 13.5px; margin-top: 3px; }
.meta .star { color: var(--ink); font-weight: 650; }
.meta .star::before { content: "★ "; color: var(--turmeric); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--surface); color: var(--ink-2); }
.pill.open { background: var(--herb-wash); color: var(--herb); }
.pill.hot { background: var(--chili-wash); color: var(--chili-deep); }
.pill.warn { background: var(--warn-wash); color: #8a5a00; }
.pill.test { background: #fff1c2; color: #6d4b00; border: 1px dashed #c99a1c; }

/* ── Restaurant page ── */
.rhead .cover { aspect-ratio: 16 / 7; max-height: 320px; width: 100%; object-fit: cover; border-radius: 0 0 var(--radius-l) var(--radius-l); background: var(--surface); }
@media (min-width: 860px) { .rhead .cover { border-radius: var(--radius-l); margin-top: 16px; } }
.rhead .info { display: flex; gap: 14px; margin-top: -30px; align-items: flex-end; }
.rhead .info img { width: 76px; height: 76px; border-radius: 18px; border: 4px solid #fff; background: #fff; flex: none; }
.catnav { position: sticky; top: 58px; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.catnav .rail { padding-top: 10px; padding-bottom: 10px; }
.menu-section { padding-top: 22px; scroll-margin-top: 120px; }
.dish { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; }
.dish:disabled { cursor: default; opacity: .55; }
.dish .txt { flex: 1; min-width: 0; }
.dish .name { font-weight: 650; }
.dish .desc { color: var(--ink-2); font-size: 13.5px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish .price { margin-top: 6px; font-weight: 700; }
.dish .ph { position: relative; width: 104px; height: 104px; flex: none; border-radius: var(--radius-m); overflow: hidden; background: var(--surface); }
.dish .ph img { width: 100%; height: 100%; object-fit: cover; }
.dish .add { position: absolute; right: 6px; bottom: 6px; width: 32px; height: 32px; border-radius: 99px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--chili-deep); font-size: 22px; font-weight: 600; line-height: 1; }
.menu-grid { display: grid; grid-template-columns: 1fr; column-gap: 32px; }
@media (min-width: 860px) { .menu-grid { grid-template-columns: 1fr 1fr; } }

/* Floating cart bar: the "tray" */
.traybar { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(var(--tabbar) + 10px); max-width: 560px; margin: 0 auto; }
@media (min-width: 860px) { .traybar { bottom: 20px; } }
.traybar a { display: flex; align-items: center; gap: 12px; background: var(--chili); color: #fff; text-decoration: none; border-radius: 99px; padding: 8px 20px 8px 8px; box-shadow: 0 10px 30px rgba(178, 42, 12, .35); font-weight: 700; }
.traybar .count { width: 40px; height: 40px; border-radius: 99px; background: #fff; color: var(--chili-deep); display: grid; place-items: center; font-size: 16px; }

/* ── Sheet / modal ── */
.scrim { position: fixed; inset: 0; background: rgba(34, 27, 23, .48); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease-out; }
@media (min-width: 640px) { .scrim { align-items: center; } }
.sheet { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: var(--radius-l) var(--radius-l) 0 0; animation: rise .22s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 640px) { .sheet { border-radius: var(--radius-l); } }
.sheet .sheet-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--surface); }
.sheet .sheet-body { padding: 18px var(--gutter) 8px; }
.sheet .sheet-foot { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; }
.sheet .close { position: absolute; margin: 12px; width: 38px; height: 38px; border-radius: 99px; border: 0; background: rgba(255,255,255,.95); box-shadow: var(--shadow); cursor: pointer; font-size: 20px; }
.optgroup { padding: 14px 0; border-top: 8px solid var(--surface); margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
.optgroup .opt { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.optgroup .opt:last-child { border-bottom: 0; }
.optgroup .opt input { width: 20px; height: 20px; accent-color: var(--chili); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--chili-deep); border-radius: 99px; }
.stepper span { min-width: 26px; text-align: center; font-weight: 700; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ── Panels, receipts, tables ── */
.panel { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px; background: #fff; }
.panel.tint { background: var(--surface); border-color: transparent; }
.receipt .line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.receipt .line.total { border-top: 1px dashed #d8ccc2; margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 18px; }
.receipt .line.minus { color: var(--herb); }
.receipt .explain { font-size: 12.5px; color: var(--ink-3); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 650; color: var(--ink-2); font-size: 12.5px; background: var(--surface); padding: 10px 12px; white-space: nowrap; }
table.t td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
table.t td.r, table.t th.r { text-align: right; }
table.t tr.clickable { cursor: pointer; }
table.t tr.clickable:hover td { background: #fffaf7; }
.kpis { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 14px; border-radius: var(--radius-m); background: var(--surface); }
.kpi b { display: block; font-size: 21px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi span { font-size: 13px; color: var(--ink-2); }
.kpi.accent { background: var(--chili-wash); }
.kpi.accent b { color: var(--chili-deep); }

/* Order tracker: a vertical timeline (a real sequence) */
.track { list-style: none; padding: 0; margin: 0; }
.track li { position: relative; padding: 0 0 18px 30px; color: var(--ink-3); }
.track li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 99px; border: 2px solid #d7cbc1; background: #fff; }
.track li::after { content: ""; position: absolute; left: 12px; top: 22px; bottom: 0; width: 2px; background: #eadfd6; }
.track li:last-child::after { display: none; }
.track li.done { color: var(--ink); }
.track li.done::before { background: var(--herb); border-color: var(--herb); }
.track li.done::after { background: var(--herb); }
.track li.now { color: var(--ink); font-weight: 700; }
.track li.now::before { background: var(--chili); border-color: var(--chili); box-shadow: 0 0 0 5px var(--chili-wash); }
.track time { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-3); }

.empty { text-align: center; padding: 48px 16px; color: var(--ink-2); }
.empty .h2 { color: var(--ink); margin-bottom: 6px; }

/* Console layout (restaurant / courier / admin) */
.console { display: grid; gap: 20px; padding-top: 18px; }
.subnav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; }
.subnav a { flex: none; padding: 8px 14px; border-radius: 99px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; border: 1px solid var(--line); }
.subnav a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.ordercard { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px; }
.ordercard.new { border-color: var(--chili); box-shadow: 0 0 0 3px var(--chili-wash); }
.ordercard .items { margin: 8px 0; padding: 0; list-style: none; font-size: 14px; }
.ordercard .items li { padding: 2px 0; }
.ordercards { display: grid; gap: 12px; }
@media (min-width: 860px) { .ordercards { grid-template-columns: 1fr 1fr; } }
.banner { border-radius: var(--radius-m); padding: 12px 14px; font-size: 14px; }
.banner.warn { background: var(--warn-wash); color: #6b4800; }
.banner.info { background: var(--surface); }
.banner.ok { background: var(--herb-wash); color: #1f5e30; }
.banner.test { background: #fff1c2; border: 1px dashed #c99a1c; color: #5c3f00; }

/* Toast */
.toasts { position: fixed; z-index: 70; left: 0; right: 0; top: 66px; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 16px; font-weight: 550; box-shadow: var(--shadow); max-width: 520px; animation: rise .2s ease-out; }
.toast.err { background: var(--danger); }

/* Notifications drawer */
.notif { padding: 12px 0; border-bottom: 1px solid var(--line); }
.notif.unread .h3::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--chili); border-radius: 99px; margin-right: 8px; vertical-align: middle; }

/* Menu editor */
.edit-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.edit-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--surface); flex: none; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #d6ccc4; border-radius: 99px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 99px; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--herb); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid #1d6fd6; outline-offset: 2px; }
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0; color: var(--ink-3); font-size: 13px; }
.bar { height: 8px; border-radius: 99px; background: var(--chili); min-width: 2px; }
.rcard .cover img.logo { width: 46px; height: 46px; object-fit: cover; }
a.chip { text-decoration: none; }

/* Dish photo slot in the menu editor */
.photo-slot { position: relative; width: 64px; height: 64px; flex: none; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px dashed #d6c8bd; display: grid; place-items: center; cursor: pointer; color: var(--ink-3); font-size: 11px; text-align: center; line-height: 1.2; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-slot .cam { position: absolute; right: 3px; bottom: 3px; width: 22px; height: 22px; border-radius: 99px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; font-size: 12px; }
.photo-slot.busy::after { content: "…"; position: absolute; inset: 0; background: rgba(255,255,255,.8); display: grid; place-items: center; font-size: 20px; }
.photo-preview { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--radius-m); background: var(--surface); }
/* Font picker */
.fontpick { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .fontpick { grid-template-columns: 1fr 1fr; } }
.fontpick label { border: 2px solid var(--line); border-radius: var(--radius-m); padding: 14px; cursor: pointer; display: block; }
.fontpick input { position: absolute; opacity: 0; }
.fontpick input:checked + .fp { outline: none; }
.fontpick label:has(input:checked) { border-color: var(--chili); background: var(--chili-wash); }
.fontpick label:has(input:focus-visible) { outline: 3px solid #1d6fd6; outline-offset: 2px; }
.fontpick .fp-head { font-size: 26px; line-height: 1.15; }
.fontpick .fp-body { font-size: 15px; margin-top: 4px; }

/* Chat buttons — brand colours of each app */
.btn.chat { color: #fff; border: 0; }
.btn.chat.zalo { background: #0068ff; }
.btn.chat.messenger { background: #0866ff; }
.btn.chat.whatsapp { background: #128c4a; }
.prefs .check { padding: 10px 0; border-bottom: 1px solid var(--line); }
.prefs .check:last-child { border-bottom: 0; }
.secret-hint { font-size: 12.5px; color: var(--herb); font-weight: 600; }
.url-copy { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--surface); padding: 6px 8px; border-radius: 6px; word-break: break-all; }
