/* =====================================================================
   Web khach hang - cung ngon ngu thiet ke voi app nhan vien:
   "ca phe rang" (nau espresso, kem sua, caramel), phong Be Vietnam Pro (dong goi san, khong tai tu ngoai),
   the bo tron bong am, hat ca phe lam dau an, vet tron day coc lam hoa tiet. Mobile-first, tu doi sang che do toi.
   ===================================================================== */
@font-face { font-family: "Be Vietnam Pro"; src: url("../fonts/BeVietnamPro-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("../fonts/BeVietnamPro-SemiBold.ttf") format("truetype"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("../fonts/BeVietnamPro-Bold.ttf") format("truetype"); font-weight: 700 900; font-style: normal; font-display: swap; }

:root {
  --bg: #faf4ea;
  --surface: #ffffff;
  --surface-2: #f6ecdd;
  --surface-3: #efe1cd;
  --text: #2b1810;
  --muted: #7d6858;
  --brand: #7a4120;
  --brand-strong: #5c2f14;
  --on-brand: #ffffff;
  --accent: #d9862f;
  --accent-soft: #f9e8cf;
  --espresso: #2b1810;
  --ok: #3c7a4b;
  --warn: #9a6412;
  --bad: #b23a2e;
  --line: #ecdfcc;
  --line-strong: #dac8ad;
  --shadow: 0 8px 28px rgba(92, 47, 20, 0.1);
  --shadow-lg: 0 20px 48px rgba(92, 47, 20, 0.2);
  --radius: 18px;
  --gutter: 18px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a100a;
    --surface: #251912;
    --surface-2: #2f2118;
    --surface-3: #3a2a1f;
    --text: #f5eadf;
    --muted: #bfa995;
    --brand: #e8ac70;
    --brand-strong: #f5c391;
    --on-brand: #1d1009;
    --accent: #eaa04c;
    --accent-soft: #3b2a1a;
    --ok: #62c58a;
    --warn: #e6b45a;
    --bad: #f0857c;
    --line: #3a2b20;
    --line-strong: #4d3a2b;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* Logo tach ca phe */
.logo {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff4e2; flex: none;
  background: linear-gradient(135deg, #efa64f, #b9611d); box-shadow: 0 6px 14px rgba(217, 134, 47, .4);
}

/* ---------- Nut ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 1.3em; border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 92%, #fff), var(--brand)); color: var(--on-brand); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 32%, transparent); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { min-height: 54px; padding: 0 1.7em; font-size: 1.05rem; }
.btn-sm { min-height: 38px; padding: 0 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--text); font-size: 1.2rem; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--surface-2); }

/* ---------- Trang chu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: 10px var(--gutter); background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; text-decoration: none; color: var(--text); margin-right: auto; }
.site-nav { display: none; gap: 24px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--brand); }
@media (min-width: 720px) { .site-nav { display: flex; } .brand { margin-right: 0; } .site-header .btn { margin-left: auto; } }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }

.pill {
  display: inline-flex; align-items: center; gap: .55em; padding: .32em .95em; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font-size: .9rem; font-weight: 600; margin-bottom: 18px;
}
.pill::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--muted); }
.pill.is-open { color: var(--ok); }
.pill.is-open::before { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.pill.is-closed { color: var(--warn); }
.pill.is-closed::before { background: var(--warn); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-tight { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; }
@media (min-width: 720px) { .grid-tight { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.ficon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--brand); margin-bottom: 12px; }
.ficon.small { width: 42px; height: 42px; border-radius: 13px; }

.signature { display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.signature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.signature .media { position: relative; }
.thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.placeholder {
  width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; color: color-mix(in srgb, var(--brand) 60%, transparent);
  background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--accent) 26%, var(--surface-2)));
}
.placeholder.tint-1 { background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, #6fa37a 30%, var(--surface-2))); }
.placeholder.tint-2 { background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, #d98b8b 28%, var(--surface-2))); }
.placeholder.tint-3 { background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, #7fa3c9 28%, var(--surface-2))); }
.price-tag {
  position: absolute; left: 12px; bottom: 12px; padding: .22em .8em; border-radius: 999px; font-weight: 700; font-size: .92rem;
  background: rgba(43, 24, 16, .82); color: #fff; backdrop-filter: blur(4px);
}
.signature .body { padding: 14px 16px 18px; }
.signature h3 { font-size: 1.04rem; margin-bottom: .2em; }
.signature .desc { color: var(--muted); font-size: .9rem; margin: 0; }
.price { color: var(--brand-strong); font-weight: 700; white-space: nowrap; }

.menu-board { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.menu-cat { padding: 18px 18px 8px; }
.menu-cat h3 { font-size: 1.12rem; padding-bottom: .5em; margin-bottom: .2em; border-bottom: 2px solid var(--accent); display: inline-block; }
.menu-cat ul { list-style: none; margin: 0; padding: 0; }
.menu-cat li { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.menu-cat li:last-child { border-bottom: 0; }
.mini { width: 46px; height: 46px; border-radius: 13px; object-fit: cover; background: var(--surface-2); }
.mini-empty { display: grid; place-items: center; color: color-mix(in srgb, var(--brand) 55%, transparent); background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); }
.menu-cat .nm { display: grid; min-width: 0; font-weight: 600; }
.menu-cat .nm small { color: var(--muted); font-weight: 400; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.contact { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact .card { padding: 20px; }
.contact h3 { font-size: .95rem; color: var(--muted); font-weight: 600; margin-bottom: .3em; }
.contact p { margin: 0; font-size: 1.05rem; font-weight: 600; }
.site-footer { margin-top: 40px; padding: 30px 0 44px; color: #d9c4ac; background: linear-gradient(180deg, #2f1b11, #241209); text-align: center; font-size: .92rem; }
.site-footer .container { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.site-footer .logo { width: 30px; height: 30px; border-radius: 9px; box-shadow: none; }

/* ---------- Trang dat mon ---------- */
.app-bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.app-bar .btn { flex: none; white-space: nowrap; }
.app-title { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.app-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.badge {
  align-self: flex-start; font-size: .76rem; font-weight: 600; padding: .1em .75em; border-radius: 999px;
  background: var(--accent-soft); color: var(--brand-strong);
}
.banner { margin: 12px var(--gutter) 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--warn) 14%, var(--surface)); color: var(--text); border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line)); }
.order-main { max-width: 760px; margin: 0 auto; padding: 14px var(--gutter) 130px; }
.search { position: relative; }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: grid; }
.search input, .field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
}
.search input { border-radius: 999px; padding-left: 44px; box-shadow: var(--shadow); border-color: var(--line); }
.search input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent); outline-offset: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; position: sticky; top: 57px; background: var(--bg); z-index: 10; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); box-shadow: 0 6px 14px color-mix(in srgb, var(--brand) 30%, transparent); }
.tabs { display: flex; gap: 8px; padding: 10px var(--gutter) 2px; max-width: 760px; margin: 0 auto; box-sizing: border-box; }
.tabs .chip { flex: 1; text-align: center; }
.cat-title { font-size: 1.2rem; margin: 22px 0 12px; }
.cat-title::before { content: ""; display: inline-block; width: .42em; height: .62em; margin-right: .5em; border-radius: 50%; background: linear-gradient(135deg, #eaa04c, #a9541a); transform: rotate(28deg); vertical-align: .05em; }
.product { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 10px; margin-bottom: 14px; }
.product .thumb, .product .placeholder { width: 104px; height: 104px; aspect-ratio: auto; border-radius: 14px; }
.product > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.product h3 { font-size: 1.03rem; margin: 2px 0 .15em; }
.product .desc {
  color: var(--muted); font-size: .88rem; margin: 0 0 .4em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.product .price { font-size: 1.05rem; }
.btn-add { gap: .35em; padding: 0 1em 0 .8em; }
.stepper { display: inline-flex; align-items: center; gap: 6px; padding: 3px; border-radius: 999px; background: var(--accent-soft); }
.stepper button {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface);
  color: var(--brand); font-size: 1.2rem; line-height: 1; font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px rgba(92, 47, 20, .15);
}
.stepper button:hover { background: var(--surface-2); }
.stepper output { min-width: 1.7em; text-align: center; font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }

.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 62%, transparent);
}
.cart-bar .btn {
  max-width: 728px; margin: 0 auto; display: flex; justify-content: space-between; box-shadow: 0 16px 36px rgba(43, 24, 16, .4);
  background: linear-gradient(135deg, #4a2818, #2b1810); color: #fff; border: 1px solid rgba(255, 255, 255, .1);
}
.cart-bar .btn:hover { background: linear-gradient(135deg, #573020, #341f14); }
.cart-bar .count { background: linear-gradient(180deg, #f0ae5a, #d9862f); color: #2b1810; border-radius: 999px; padding: 0 .75em; min-width: 2em; text-align: center; font-weight: 800; }

.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 10, 4, .58); backdrop-filter: blur(2px); }
.sheet-panel {
  position: relative; width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; background: var(--bg);
  border-radius: 28px 28px 0 0; padding: 8px var(--gutter) calc(22px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg);
}
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 4px auto 0; }
@media (min-width: 720px) { .sheet { align-items: center; } .sheet-panel { border-radius: 28px; } .sheet-grip { display: none; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--bg); padding: 8px 0; z-index: 2; }
.sheet-head h2 { margin: 0; font-size: 1.3rem; }
.line { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-top { display: flex; justify-content: space-between; gap: 12px; }
.line-top .name { font-weight: 700; }
.line-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.line input.note { flex: 1; min-height: 38px; padding: 4px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; }
.summary { padding: 14px 0; display: grid; gap: 6px; }
.summary .total { font-size: 1.25rem; font-weight: 800; color: var(--brand-strong); }
.summary div { display: flex; justify-content: space-between; }
.form { display: grid; gap: 14px; margin-top: 8px; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; }
.field .hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.field .err { color: var(--bad); font-size: .88rem; margin-top: 4px; }
.field [aria-invalid="true"] { border-color: var(--bad); }
.radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-row label {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 12px; margin: 0;
  border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); cursor: pointer; font-weight: 600;
}
.radio-row input { width: auto; min-height: 0; accent-color: var(--brand); }
.radio-row label:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 22%, transparent); }
.form-error { color: var(--bad); font-weight: 600; }

/* ---------- Theo doi don / thanh toan ---------- */
.track-card { padding: 18px; margin-bottom: 16px; }
.track-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.status-badge { padding: .28em .95em; border-radius: 999px; font-weight: 700; font-size: .9rem; background: var(--surface-2); }
.status-ok { color: var(--ok); }
.status-warn { color: var(--warn); }
.status-bad { color: var(--bad); }
.steps { display: flex; gap: 6px; margin: 18px 0 4px; padding: 0; list-style: none; }
.steps li { flex: 1; text-align: center; font-size: .78rem; color: var(--muted); }
.steps li::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 6px; }
.steps li.done::before { background: var(--ok); }
.steps li.now { color: var(--text); font-weight: 700; }
.steps li.now::before { background: var(--accent); }
.pay-box { display: grid; gap: 14px; justify-items: center; text-align: center; }
.qr { width: min(280px, 80vw); aspect-ratio: 1; background: #fff; border-radius: 20px; padding: 10px; border: 1px solid var(--line); object-fit: contain; box-shadow: var(--shadow); }
.kv { width: 100%; display: grid; gap: 8px; text-align: left; }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: var(--surface-2); border-radius: 14px; }
.kv-row span { color: var(--muted); font-size: .88rem; }
.kv-row strong { word-break: break-all; }
.countdown { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--warn); }
.items-list { list-style: none; margin: 8px 0; padding: 0; }
.items-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.items-list .st { display: block; color: var(--muted); font-size: .82rem; }
.items-list li.cancelled { text-decoration: line-through; opacity: .6; }
.actions { display: grid; gap: 10px; margin-top: 12px; }
.note { color: var(--muted); font-size: .9rem; }

.toasts { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { padding: 13px 18px; border-radius: 14px; background: var(--espresso); color: #fff; box-shadow: var(--shadow-lg); font-weight: 600; }
.toast-error { background: var(--bad); color: #fff; }
.toast-ok { background: var(--ok); color: #fff; }
.skeleton { height: 104px; border-radius: 18px; margin-bottom: 14px; background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Trang quan ly thuc don (dien thoai cua chu quan) ---------- */
.mg-product { grid-template-columns: 96px 1fr; align-items: start; }
.mg-thumb { position: relative; width: 96px; height: 96px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: none; cursor: pointer; }
.mg-thumb .thumb, .mg-thumb .placeholder { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.mg-cam { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(43, 24, 16, .82); color: #fff; }
.mg-meta { color: var(--muted); font-size: .86rem; margin: 0 0 .35em; }
/* Sua gia truc tiep: cham vao gia -> o go so + Luu / Huy (vung cham >= 44px) */
.mg-price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 .6em; }
.mg-price { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--brand); font: inherit; cursor: pointer; }
.mg-price strong { font-size: 1.05rem; color: var(--text); }
.mg-price-input { flex: 1 1 100%; min-width: 0; min-height: 44px; padding: 0 12px; border: 2px solid var(--accent); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 1.05rem; }
.mg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-bar { width: 100%; height: 8px; margin: 0 0 .6em; accent-color: var(--accent); }
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; box-shadow: var(--shadow-lg); }
.web-card { padding: 16px; margin-bottom: 16px; }
.web-card h3 { margin: 0 0 .3em; font-size: 1.05rem; }
.tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .75rem; }
.book-day { margin: 20px 0 10px; font-size: 1.05rem; }
.book-card { padding: 14px 16px; margin-bottom: 12px; border-left: 5px solid var(--warn); }
.book-card.status-confirmed { border-left-color: var(--ok); }
.book-card.status-cancelled { border-left-color: var(--line-strong); opacity: .7; }
.book-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.book-time { font-size: 1.4rem; }
.book-badge { padding: .2em .8em; border-radius: 999px; background: var(--surface-2); font-size: .82rem; font-weight: 700; }
.book-card.status-pending .book-badge { background: color-mix(in srgb, var(--warn) 18%, var(--surface)); color: var(--warn); }
.book-card.status-confirmed .book-badge { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--ok); }
.book-who { margin: 6px 0 4px; }
.review-item { padding: 12px 0; border-top: 1px dashed var(--line-strong); }
.review-item.off { opacity: .6; }
.review-item .rv-text { margin: 0 0 4px; font-style: italic; }
.slot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
.slot { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.slot-img { position: relative; width: 100%; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface-3); }
.slot-img img { width: 100%; height: 100%; object-fit: cover; }
.slot-empty { display: grid; place-items: center; height: 100%; color: var(--muted); border: 2px dashed var(--line-strong); border-radius: 10px; }
.slot-no { position: absolute; left: 6px; top: 6px; min-width: 24px; height: 24px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: rgba(43, 24, 16, .82); color: #fff; font-size: .78rem; font-weight: 700; }
.slot strong { font-size: .9rem; line-height: 1.25; }
.slot small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.slot-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.slot-actions .btn { min-height: 34px; padding: 0 .7em; font-size: .82rem; }
.cover-preview { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 14px; background: var(--surface-2); margin: 10px 0; }
.checkbox-field { display: flex; align-items: center; gap: 10px; }
.checkbox-field input { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; accent-color: var(--brand); }
.checkbox-field label { margin: 0; }
.post-card { grid-template-columns: 84px 1fr; }
.post-card .thumb, .post-card .placeholder { width: 84px; height: 84px; aspect-ratio: auto; border-radius: 12px; }
.post-card .body-text {
  color: var(--muted); font-size: .88rem; margin: 0 0 .4em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.setup { min-height: 100vh; min-height: 100dvh; display: grid; align-content: center; padding-top: 0; padding-bottom: 8vh; }
.field textarea { min-height: 72px; resize: vertical; }
.site-footer .staff-link { color: #f0b25f; font-weight: 600; }

/* ---------- iPhone / iPad (Safari) ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* O nhap chu nho hon 16px lam Safari tu phong to man hinh khi bam vao o (viewport user-scalable=no bi iOS bo qua) */
@supports (-webkit-touch-callout: none) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea { font-size: 16px !important; }
}

/* Cong tac khoa dat mon / dat ban */
.switch-row { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 1.02rem; cursor: pointer; }
.switch-row input { width: 22px; height: 22px; accent-color: var(--brand, #b8641b); flex: none; }
.table-picker { display: flex; gap: 8px; align-items: center; margin: 6px 0; flex-wrap: wrap; }
.table-picker select { min-height: 40px; max-width: 100%; flex: 1 1 200px; }
.seat-line { font-weight: 600; }
