/* Thai Garden — guest site. Palette from the dining hall: lacquer red walls, gold stencil, teak, cream marble. */
:root {
  --lacquer: #8f1d17; --lacquer-2: #a8291f; --lacquer-deep: #5a0f0b;
  --gold: #c9a14a; --gold-2: #e5c983; --gold-deep: #9c7629;
  --teak: #5b2f1c; --cream: #f6efe2; --paper: #fbf7ef; --ink: #2b1710; --muted: #7d6557; --line: #e6d8c2;
  --ok: #2f7d4f; --err: #b3261e;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px; --shadow: 0 10px 30px rgba(60, 20, 10, .12);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='%23c9a14a' fill-opacity='.22'%3E%3Cpath d='M14 6h6v2h-2v8h2v2h-6v-2h2V8h-2zM42 34h6v2h-2v8h2v2h-6v-2h2v-8h-2z'/%3E%3C/g%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 16px; }
[dir=rtl] body, [dir=rtl] { font-family: "Noto Kufi Arabic", var(--sans); }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3 { font-family: "Noto Kufi Arabic", var(--serif); letter-spacing: 0; }
img { max-width: 100%; display: block; }
a { color: var(--lacquer); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); } .small { font-size: .86rem; }
.pad { padding: 16px; } .pad-y { padding-block: 40px 70px; } .pad-xl { padding-block: 80px; }
.noscroll { overflow: hidden; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; color: inherit; background: transparent; }
[dir=rtl] .btn { font-family: "Noto Kufi Arabic", var(--sans); }
.btn:active { transform: scale(.97); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #3a2208; box-shadow: 0 6px 18px rgba(201, 161, 74, .35); }
.btn-gold:hover { box-shadow: 0 8px 24px rgba(201, 161, 74, .5); }
.btn-gold:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-ghost-dark { border-color: var(--line); color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 10px max(16px, calc((100% - 1180px) / 2));
  background: rgba(90, 15, 11, .94); backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid rgba(201, 161, 74, .35); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold-2); text-decoration: none; font: 600 1.35rem var(--serif); white-space: nowrap; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.mainnav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.mainnav a { color: #f3e6d0; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .92rem; font-weight: 500; }
.mainnav a:hover, .mainnav a.on { color: #fff; background: rgba(255, 255, 255, .08); }
.mainnav a.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #3a2208; font-weight: 700; margin-inline-start: 6px; }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; padding: 7px 12px; border: 1px solid rgba(201, 161, 74, .5); border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--gold-2); white-space: nowrap; }
.langs summary::-webkit-details-marker { display: none; }
.langs-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 160px; z-index: 60; }
.langs-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.langs-menu a:hover, .langs-menu a.on { background: var(--cream); color: var(--lacquer); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--gold-2); margin: 5px 0; transition: .2s; }
@media (max-width: 900px) {
  .burger { display: block; }
  .mainnav { position: fixed; inset: 58px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--lacquer-deep); padding: 12px 16px 20px; gap: 2px;
    transform: translateY(-120%); transition: transform .25s; box-shadow: var(--shadow); }
  .nav-open .mainnav { transform: none; }
  .mainnav a { padding: 12px 14px; font-size: 1rem; }
  .mainnav a.btn-gold { margin: 8px 0 0; text-align: center; }
  .langs { margin-inline-start: auto; }
  .brand span { font-size: 1.15rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 820px); display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; transform: scale(1.04); animation: drift 24s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(60, 10, 6, .55), rgba(40, 8, 4, .88)); }
@keyframes drift { to { transform: scale(1.12) translateY(-2%); } }
.hero-inner { padding: 60px 20px 90px; max-width: 820px; }
.hero-logo { width: clamp(150px, 22vw, 230px); margin: 0 auto 18px; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .45)); }
.kicker { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; color: var(--gold-2); margin: 0 0 10px; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.8rem); font-weight: 500; text-shadow: 0 2px 18px rgba(0, 0, 0, .4); }
.hero .lead { font-size: clamp(1rem, 2vw, 1.18rem); color: #f1e4cf; max-width: 600px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-hours { position: absolute; bottom: 0; inset-inline: 0; padding: 12px; background: rgba(0, 0, 0, .35); font-size: .9rem; letter-spacing: .08em; color: var(--gold-2); border-top: 1px solid rgba(201, 161, 74, .3); }

.page-hero { position: relative; color: #fff; padding: 80px 0 50px; background-size: cover; background-position: center; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(90, 15, 11, .78), rgba(60, 10, 6, .9)), var(--pattern); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0; color: #fff; }
.page-hero p { margin: 8px 0 0; color: #f1e4cf; }
.page-hero.small { padding: 56px 0 38px; }

/* ---------- bands ---------- */
.band { padding: clamp(56px, 8vw, 100px) 0; }
.about { background: var(--cream); }
.two-col { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.ornament { display: block; width: 46px; height: 46px; margin-bottom: 14px; background: url("../img/mark.png") center/contain no-repeat; }
.about p { font-size: 1.07rem; color: #4a332a; }
.feats { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.feats li { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.stack-photos { position: relative; margin: 0; min-height: 420px; }
.stack-photos img { position: absolute; width: 72%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); border: 6px solid #fff; }
.stack-photos img:first-child { top: 0; inset-inline-start: 0; }
.stack-photos img:last-child { bottom: 0; inset-inline-end: 0; }
@media (max-width: 860px) { .stack-photos { min-height: 330px; } }

.signature { background: var(--lacquer-deep) var(--pattern); color: #fff; }
.signature h2 { color: var(--gold-2); }
.sig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 30px; }
.sig { position: relative; padding: 28px 22px 22px; border-radius: var(--r); background: rgba(255, 255, 255, .05); border: 1px solid rgba(201, 161, 74, .35); color: #fff; text-decoration: none; transition: transform .2s, background .2s; }
.sig:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .09); }
.sig h3 { font-size: 1.45rem; color: var(--gold-2); }
.sig p { color: #ead9bf; font-size: .93rem; margin: 0 0 14px; }
.sig-star { position: absolute; top: 14px; inset-inline-end: 16px; color: var(--gold); }
.sig-price { font: 600 1.2rem var(--serif); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; margin-top: 30px; }
.gallery .g { overflow: hidden; border-radius: 12px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery .g:hover img { transform: scale(1.06); }
.g0 { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } }

.cta-band { position: relative; background-size: cover; background-position: center; padding: 110px 16px; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(40, 12, 6, .55); z-index: -1; }
.cta-box { max-width: 560px; margin: auto; text-align: center; color: #fff; padding: 40px 28px; border-radius: 20px; background: rgba(90, 15, 11, .82); border: 1px solid rgba(201, 161, 74, .5); backdrop-filter: blur(4px); }
.cta-box h2 { color: var(--gold-2); }

/* ---------- footer ---------- */
.footer { background: #1f0d08; color: #d9c7ad; padding: 56px 0 0; }
.foot-grid { width: min(1180px, 100% - 32px); margin: auto; display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1fr; gap: 28px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-logo { width: 150px; }
.footer h4 { color: var(--gold-2); font: 600 1.15rem var(--serif); margin: 0 0 8px; }
.footer p { margin: 0 0 6px; font-size: .93rem; } .footer a { color: #f0dfc4; }
.foot-bottom { margin-top: 40px; padding: 18px 16px; text-align: center; font-size: .82rem; border-top: 1px solid rgba(201, 161, 74, .2); color: #9a8670; }
.foot-bottom a { color: #9a8670; }

/* ---------- menu ---------- */
.menu-page { padding: 24px 0 120px; }
.menu-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.kind-tabs { display: inline-flex; background: var(--cream); padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.kind-tabs button { border: 0; background: none; padding: 9px 22px; border-radius: 999px; font: 600 .95rem var(--sans); cursor: pointer; color: var(--muted); }
[dir=rtl] .kind-tabs button { font-family: "Noto Kufi Arabic", var(--sans); }
.kind-tabs button.on { background: var(--lacquer); color: #fff; }
.menu-search { flex: 1; min-width: 200px; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); font: inherit; background: #fff; }
.cat-chips { position: sticky; top: 56px; z-index: 20; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; background: var(--paper); scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.table-mode .cat-chips { top: 0; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips a { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.cat-chips a.on { background: var(--teak); color: #fff; border-color: var(--teak); }
.prices-note { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.legend { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.menu-cat { padding-top: 26px; scroll-margin-top: 110px; }
.cat-head { text-align: center; margin: 16px 0 14px; position: relative; }
.cat-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 0; color: var(--lacquer-deep); }
.cat-thai { font: italic 500 1.15rem var(--serif); color: var(--gold-deep); display: block; }
.cat-head::after { content: ""; display: block; width: 90px; height: 10px; margin: 10px auto 0; background: radial-gradient(circle, var(--gold) 2px, transparent 3px) center/14px 10px repeat-x; }
.cat-note { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.dishes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 36px; }
@media (max-width: 820px) { .dishes { grid-template-columns: 1fr; } }
.dish { display: flex; gap: 12px; align-items: flex-start; padding: 14px 4px; border-bottom: 1px dashed var(--line); }
.dish.soldout { opacity: .5; }
.dish-img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; }
.dish-body { flex: 1; min-width: 0; }
.dish-title { display: flex; align-items: baseline; gap: 8px; }
.dish-title h3 { font-size: 1.28rem; margin: 0; font-weight: 600; }
.dish-no { font: 600 .78rem var(--sans); color: var(--gold-deep); background: #f6ead2; border-radius: 6px; padding: 1px 6px; flex: none; }
.dots { flex: 1; border-bottom: 1px dotted #cdb894; transform: translateY(-4px); min-width: 12px; }
.dish-price { font: 700 1.05rem var(--sans); color: var(--lacquer); white-space: nowrap; }
.dish-price small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.dish-desc { margin: 4px 0 0; color: #6a5245; font-size: .92rem; }
.dish-vars { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; }
.dish-vars span { background: var(--cream); border-radius: 6px; padding: 2px 8px; }
.set-groups { margin-top: 6px; font-size: .9rem; color: #4a332a; }
.dish-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.dish-tags:empty { display: none; }
.tag { font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #f1e9db; color: #5b4a3d; }
.tag.veg { background: #e3f0df; color: #2f6b34; } .tag.spicy { background: #fbe4dd; color: #a8291f; } .tag.chef { background: #f7ecd0; color: #8a6418; } .tag.out { background: #eee; color: #777; }
.add-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--lacquer); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(143, 29, 23, .3); align-self: center; transition: transform .15s; }
.add-btn:active { transform: scale(.9); }

/* ---------- cart ---------- */
.cartbar { position: fixed; bottom: 16px; inset-inline: 16px; z-index: 70; display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
.cartbar-btn { width: min(520px, 100%); display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, var(--lacquer-2), var(--lacquer)); color: #fff; font: 600 1rem var(--sans); box-shadow: 0 12px 30px rgba(90, 15, 11, .4); }
[dir=rtl] .cartbar-btn { font-family: "Noto Kufi Arabic", var(--sans); }
.cartbar-btn strong { margin-inline-start: auto; color: var(--gold-2); }
.cart-count { min-width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #3a2208; display: grid; place-items: center; font-weight: 800; }
.cartbar.bump .cartbar-btn { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.05); } }
.sheet { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(30, 10, 5, .5); opacity: 0; transition: opacity .25s; }
.sheet-panel { position: absolute; bottom: 0; inset-inline: 0; margin: auto; width: min(560px, 100%); max-height: 92vh; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
.sheet.open { pointer-events: auto; } .sheet.open .sheet-backdrop { opacity: 1; } .sheet.open .sheet-panel { transform: none; }
.sheet-head { display: flex; align-items: center; padding: 18px 20px 10px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 1.6rem; margin: 0; }
.x { margin-inline-start: auto; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--cream); font-size: 1.4rem; cursor: pointer; }
.sheet-body { overflow-y: auto; padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.cl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-main small { color: var(--muted); } .cl-note { font-style: italic; }
.cl-price { font-weight: 700; white-space: nowrap; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 6px; font-size: 1.15rem; }
.cart-total-row strong { color: var(--lacquer); font-size: 1.3rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--lacquer); }
.qty span { min-width: 26px; text-align: center; font-weight: 700; }
.qty.sm button { width: 32px; height: 32px; font-size: 1.1rem; }
.qty-row { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.qty-row .btn { flex: 1; }
.opt-group { margin-bottom: 14px; }
.opt-title { font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--teak); }
.opt-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: .92rem; transition: .15s; }
.pill input:checked + span { background: var(--lacquer); color: #fff; border-color: var(--lacquer); }
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.note-label { display: block; margin: 4px 0 0; }
.note-label textarea { width: 100%; font: 400 .95rem var(--sans); padding: 11px 13px; border: 1px solid #dccbb1; border-radius: 12px; background: #fff; resize: vertical; }
[dir=rtl] .note-label textarea { font-family: "Noto Kufi Arabic", var(--sans); }
.toast { position: fixed; top: 16px; left: 50%; transform: translate(-50%, -150%); z-index: 100; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; transition: transform .3s; max-width: 92vw; text-align: center; box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%, 0); } .toast.ok { background: #24412f; } .toast.err { background: var(--err); }
.done-box { text-align: center; padding: 20px 0; }
.done-ico { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #fff; background: var(--ok); }
.big-code { font: 800 2rem/1.2 ui-monospace, Menlo, monospace; letter-spacing: .08em; color: var(--lacquer); background: var(--cream); border: 2px dashed var(--gold); border-radius: 14px; padding: 10px 18px; display: inline-block; margin: 6px 0 12px; direction: ltr; }

/* ---------- forms ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 34px); box-shadow: var(--shadow); }
.form { display: grid; gap: 14px; }
.form label, .field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--teak); }
.lbl { font-weight: 600; font-size: .92rem; color: var(--teak); }
.form input, .form select, .form textarea { font: 400 1rem var(--sans); padding: 12px 14px; border: 1px solid #dccbb1; border-radius: 12px; background: var(--paper); color: var(--ink); width: 100%; }
[dir=rtl] .form input, [dir=rtl] .form select, [dir=rtl] .form textarea { font-family: "Noto Kufi Arabic", var(--sans); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); background: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font: 600 .95rem var(--sans); cursor: pointer; min-width: 70px; }
.slot.on { background: var(--lacquer); color: #fff; border-color: var(--lacquer); }
.slot:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.shake { animation: shake .5s; } @keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 12px; font-weight: 500; }
.alert-error { background: #fde8e5; color: #8f1d17; border: 1px solid #f3c3bb; }
.form-msg { margin-top: 10px; font-weight: 600; } .form-msg.err { color: var(--err); } .form-msg.ok { color: var(--ok); }
.track-form { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 20px; }
#track-result { text-align: center; }
.plain { list-style: none; padding: 0; }
.progress { display: flex; gap: 6px; list-style: none; padding: 0; margin: 10px auto; max-width: 260px; }
.progress li { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.progress li.on { background: var(--ok); }
.st { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; background: #eee; }
.st-new, .st-pending { background: #fff1d1; color: #8a5a00; } .st-preparing { background: #fde4c8; color: #a04a00; } .st-ready, .st-confirmed { background: #dff2e4; color: #1f6b3a; }
.st-served, .st-collected, .st-completed, .st-seated { background: #e4e9f5; color: #2c4a8a; } .st-cancelled, .st-no_show { background: #f3e1df; color: #8f1d17; }

/* ---------- QR table mode ---------- */
.table-mode { background: var(--paper); }
.table-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--lacquer-deep) var(--pattern); color: #fff; }
.th-mark { width: 42px; height: 42px; object-fit: contain; }
.th-title { display: flex; flex-direction: column; line-height: 1.2; }
.th-name { font: 600 1.05rem var(--serif); color: var(--gold-2); }
.th-title strong { font-size: 1.25rem; }
.table-head .langs { margin-inline-start: auto; }
.table-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px; background: var(--lacquer-deep); }
.ta-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 14px; border: 1px solid rgba(201, 161, 74, .5); background: rgba(255, 255, 255, .06); color: #fff; font: 600 .95rem var(--sans); cursor: pointer; }
[dir=rtl] .ta-btn { font-family: "Noto Kufi Arabic", var(--sans); }
.ta-btn:disabled { opacity: .5; }
.ta-btn span { font-size: 1.2rem; }
.closed-banner { margin: 12px 16px 0; padding: 14px 16px; border-radius: 14px; background: #fff1d1; color: #6d4700; border: 1px solid #f1d58f; font-weight: 600; }
.table-welcome { margin-top: 14px; color: var(--muted); }
.my-orders { margin-top: 8px; }
.my-orders h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.live-dot { font: 600 .72rem var(--sans); color: var(--ok); display: inline-flex; align-items: center; gap: 5px; text-transform: uppercase; letter-spacing: .08em; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.mo { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.mo-head { display: flex; align-items: center; gap: 10px; } .mo-head small { margin-inline-start: auto; color: var(--muted); }
.mo ul { margin: 8px 0 0; padding-inline-start: 18px; font-size: .92rem; }
.feedback { text-align: center; padding: 40px 0 10px; border-top: 1px solid var(--line); margin-bottom: 100px; }
.feedback .form { max-width: 420px; margin: auto; }
.stars { display: flex; justify-content: center; gap: 6px; direction: ltr; }
.stars input { position: absolute; opacity: 0; }
.stars span { font-size: 2.2rem; color: #dccbb1; cursor: pointer; transition: color .15s; }
.stars label:has(input:checked) span, .stars label:has(~ label input:checked) span { color: var(--gold); }
.my-codes { margin-bottom: 20px; } .my-codes h3 { font-size: 1.2rem; }
.pill-link { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font: 700 .92rem ui-monospace, Menlo, monospace; direction: ltr; }
.pill-link.on, .pill-link:hover { background: var(--lacquer); color: #fff; border-color: var(--lacquer); }

/* ---------- reviews ---------- */
.reviews-band { background: var(--paper); border-top: 1px solid var(--line); }
.center-orn { margin: 0 auto 14px; }
.rv-lead { max-width: 560px; margin: 0 auto 30px; color: #5d463a; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; max-width: 860px; margin: 0 auto; }
.rv-card { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; gap: 6px 16px; align-items: center; text-align: start; padding: 22px 24px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.rv-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(60, 20, 10, .16); border-color: var(--gold); }
.rv-logo { grid-row: span 2; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--cream); }
.rv-logo svg { width: 38px; height: 38px; }
.rv-body { display: flex; flex-direction: column; line-height: 1.3; }
.rv-stars { color: var(--gold); letter-spacing: 3px; font-size: .95rem; }
.rv-body strong { font: 600 1.35rem var(--serif); margin-top: 2px; }
[dir=rtl] .rv-body strong { font-family: "Noto Kufi Arabic", var(--serif); font-size: 1.1rem; }
.rv-body small { color: var(--muted); font-size: .88rem; }
.rv-cta { grid-column: 2; font-weight: 700; font-size: .9rem; color: var(--lacquer); }
[dir=rtl] .rv-cta { direction: rtl; }
.rv-inline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.feedback .rv-inline { justify-content: center; }
.rv-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: #fff; color: var(--ink) !important; text-decoration: none; font-weight: 700; font-size: .88rem; border: 1px solid var(--line); }
.rv-pill svg { width: 20px; height: 20px; }
.footer .rv-pill { background: rgba(255, 255, 255, .06); color: #f0dfc4 !important; border-color: rgba(201, 161, 74, .35); }
.rv-pill:hover { border-color: var(--gold); }
[dir=rtl] .rv-arr { display: inline-block; transform: scaleX(-1); }

/* ---------- WhatsApp support button ---------- */
.wa-fab { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); inset-inline-start: 20px; flex-direction: row-reverse; z-index: 80; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wa-ico { width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .45); transition: transform .2s; position: relative; }
.wa-ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: waPulse 2.4s infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.wa-ico svg { width: 32px; height: 32px; }
.wa-fab:hover .wa-ico { transform: scale(1.08); }
.wa-tip { display: flex; flex-direction: column; background: #fff; color: var(--ink); padding: 9px 14px; border-radius: 14px; box-shadow: var(--shadow); line-height: 1.25; opacity: 0; transform: translateX(-10px); transition: .25s; pointer-events: none; white-space: nowrap; }
[dir=rtl] .wa-tip { transform: translateX(10px); }
.wa-tip strong { font-size: .9rem; } .wa-tip small { color: var(--muted); font-size: .78rem; }
.wa-fab:hover .wa-tip, .wa-fab:focus-visible .wa-tip { opacity: 1; transform: none; }
body:has(.cartbar:not([hidden])) .wa-fab { bottom: calc(92px + env(safe-area-inset-bottom)); }
body:has(.sheet.open) .wa-fab { display: none; }
@media (max-width: 600px) { .wa-ico { width: 54px; height: 54px; } .wa-tip { display: none; } }
@media print { .wa-fab { display: none; } }
