/* ============================================================
   KOREA F&B — Professional Design System
   Ẩm thực Hàn Việt · Mì Cay 7 Cấp Độ
   ============================================================ */
:root {
  --red-50: #fff1f2;
  --red-100: #ffe4e6;
  --red-200: #fecdd3;
  --red-300: #fda4af;
  --red-400: #fb7185;
  --red-500: #f43f5e;
  --red-600: #e11d48;
  --red-700: #be123c;
  --red-800: #9f1239;
  --red-900: #881337;
  --red-950: #4c0519;

  /* Light theme */
  --bg: #fff8f6;
  --bg-2: #ffffff;
  --ink: #1c1917;
  --ink-2: #ffffff;
  --ink-3: #f5f0ee;
  --text: #1c1917;
  --muted: #78716c;
  --muted-2: #a8a29e;
  --line: rgba(28, 25, 23, 0.08);
  --line-strong: rgba(28, 25, 23, 0.14);
  --surface: #ffffff;
  --surface-2: #ffffff;
  --glass: rgba(255, 255, 255, 0.75);
  --gold: #d97706;
  --gold-2: #f59e0b;
  --success: #16a34a;
  --warn: #ca8a04;
  --danger: #dc2626;
  --info: #0284c7;

  --font: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --font-display: "Be Vietnam Pro", system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow: 0 16px 40px rgba(28, 25, 23, 0.08);
  --shadow-sm: 0 6px 20px rgba(28, 25, 23, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Background ambiance (light) ---------- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 500px at 0% -5%, rgba(251, 113, 133, 0.18), transparent 55%),
    radial-gradient(800px 400px at 100% 5%, rgba(251, 191, 36, 0.14), transparent 50%),
    radial-gradient(700px 500px at 50% 100%, rgba(254, 205, 211, 0.35), transparent 55%),
    linear-gradient(180deg, #fff8f6 0%, #ffffff 40%, #fff5f3 100%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
.display {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, #9f1239 0%, #e11d48 45%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}

/* ---------- Layout shells ---------- */
.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

.container-wide {
  width: min(1440px, 100% - 1.5rem);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, opacity 0.2s;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  color: #fff;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 12px 32px rgba(225, 29, 72, 0.5);
  filter: brightness(1.05);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1c1917;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
}

.btn-ghost {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--red-50);
  border-color: rgba(225, 29, 72, 0.25);
}

.btn-outline {
  border: 1.5px solid rgba(225, 29, 72, 0.4);
  color: var(--red-700);
  background: rgba(225, 29, 72, 0.06);
}

/* Google Maps — màu xanh map, tách biệt primary đỏ */
.btn-maps {
  background: #fff;
  border: 1.5px solid #1a73e8;
  color: #1a73e8;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.12);
}

.btn-maps:hover:not(:disabled) {
  background: #e8f0fe;
  border-color: #1557b0;
  color: #1557b0;
  box-shadow: 0 6px 18px rgba(26, 115, 232, 0.18);
}

.maps-link {
  color: #1a73e8 !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 115, 232, 0.35);
  text-underline-offset: 2px;
  font-weight: 700;
}

.maps-link:hover {
  color: #1557b0 !important;
  border-bottom-color: #1557b0;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--line);
}

.btn-block {
  width: 100%;
}

/* ---------- Cards / glass ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-hot {
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  color: #fff;
}

.badge-gold {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #1c1917;
}

.badge-soft {
  background: #f5f5f4;
  color: #57534e;
  border: 1px solid var(--line);
}

.badge-success {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.badge-warn {
  background: rgba(202, 138, 4, 0.12);
  color: #a16207;
  border: 1px solid rgba(202, 138, 4, 0.28);
}

.badge-danger {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.badge-info {
  background: rgba(2, 132, 199, 0.1);
  color: #0369a1;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

/* ---------- Status pills ---------- */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.green { background: var(--success); box-shadow: 0 0 8px var(--success); }
.status-dot.yellow { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.status-dot.red { background: var(--danger); box-shadow: 0 0 8px var(--danger); animation: pulse 1.2s infinite; }
.status-dot.blue { background: var(--info); box-shadow: 0 0 8px var(--info); }
.status-dot.gray { background: var(--muted-2); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.04);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1440px, 100% - 1.5rem);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: transparent;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 16px rgba(225, 29, 72, 0.28);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.brand-mark img,
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.brand-mark-lg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

/* Không dùng pseudo icon nữa — logo = favicon/app icon */
.brand-mark::after {
  content: none;
  display: none;
}

.brand-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
}

.nav-pills {
  display: flex;
  gap: 0.35rem;
  background: var(--glass);
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.nav-pills a,
.nav-pills button {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: 0.2s var(--ease);
}

.nav-pills a.active,
.nav-pills button.active,
.nav-pills a:hover,
.nav-pills button:hover {
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  color: #fff;
}

/* ============================================================
   LANDING MARKETING (F&B · tone sáng · Haidilao-inspired)
   ============================================================ */
.landing.mkt {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
}

.mkt-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 0.65rem;
}

.mkt-section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.mkt-section-head {
  max-width: 40rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.mkt-section-head h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.mkt-sub {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.mkt-center-cta {
  text-align: center;
  margin-top: 1.75rem;
}

/* Hero */
.mkt-hero {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.mkt-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mkt-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(1.15);
}

.mkt-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(255, 248, 246, 0.97) 0%, rgba(255, 248, 246, 0.88) 42%, rgba(255, 245, 243, 0.55) 100%),
    radial-gradient(ellipse 60% 80% at 90% 40%, rgba(251, 113, 133, 0.18), transparent 60%);
}

.mkt-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.mkt-hero-copy h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1rem;
}

.mkt-h1-accent {
  background: linear-gradient(135deg, #be123c, #e11d48 50%, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mkt-lead {
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.mkt-trust-pill,
.promo-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.mkt-trust-pill {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.promo-banner {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: #b45309;
}

.mkt-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.mkt-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted-2);
  font-weight: 600;
}

.mkt-hero-visual {
  position: relative;
}

.mkt-hero-card {
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(159, 18, 57, 0.12);
  border: 1px solid var(--line);
}

.mkt-hero-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.mkt-hero-card-cap {
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mkt-hero-card-cap strong {
  font-size: 1.05rem;
}

.mkt-hero-card-cap span {
  font-size: 0.85rem;
  color: var(--muted);
}

.mkt-float-stats {
  position: absolute;
  left: -0.5rem;
  bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.mkt-float-stats div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.55rem 0.75rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  min-width: 4.2rem;
}

.mkt-float-stats b {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--red-700);
  line-height: 1.1;
}

.mkt-float-stats small {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
}

/* Promise cards */
.mkt-promise {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mkt-promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.mkt-promise-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.35rem 1.25rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}

.mkt-promise-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(225, 29, 72, 0.25);
}

.mkt-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--red-50), var(--red-100));
  border: 1px solid var(--red-200);
  margin-bottom: 0.85rem;
}

.mkt-promise-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.mkt-promise-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Story */
.mkt-story-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.mkt-story-media {
  position: relative;
  display: grid;
  gap: 0.75rem;
}

.mkt-story-media img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 16/11;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.mkt-story-img2 {
  width: 72% !important;
  margin-left: auto;
  margin-top: -2.5rem;
  aspect-ratio: 4/3 !important;
  border: 4px solid #fff !important;
  box-shadow: var(--shadow) !important;
}

.mkt-story-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.mkt-story-copy p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.85rem;
  font-size: 0.98rem;
}

.mkt-story-copy strong {
  color: var(--red-800);
}

.mkt-checklist {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mkt-checklist li {
  padding: 0.55rem 0.85rem 0.55rem 2.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}

.mkt-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0.75rem;
  color: var(--red-600);
  font-weight: 900;
}

/* Spice track */
.mkt-spice {
  background: linear-gradient(180deg, #fff 0%, var(--red-50) 100%);
}

.mkt-spice-track {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.5rem;
}

.mkt-spice-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 0.4rem;
  text-align: center;
  border-top: 3px solid var(--spice, var(--red-500));
  transition: transform 0.2s;
}

.mkt-spice-step:hover {
  transform: translateY(-2px);
}

.mkt-spice-lv {
  display: block;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--spice, var(--red-600));
}

.mkt-spice-emoji {
  display: block;
  font-size: 0.95rem;
  margin: 0.25rem 0;
}

.mkt-spice-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.25;
}

/* Signature menu cards */
.mkt-sig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.mkt-sig-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
  text-align: left;
  color: inherit;
}

.mkt-sig-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(159, 18, 57, 0.1);
  border-color: rgba(225, 29, 72, 0.3);
}

.mkt-sig-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--ink-3);
  overflow: hidden;
}

.mkt-sig-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.mkt-sig-card:hover .mkt-sig-thumb img {
  transform: scale(1.05);
}

.mkt-sig-thumb .badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.mkt-sig-spicy {
  left: auto !important;
  right: 10px;
}

.mkt-sig-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.3rem;
}

.mkt-sig-body h3 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
}

.mkt-sig-body p {
  font-size: 0.8rem;
  color: var(--muted-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.mkt-sig-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
}

.mkt-sig-foot .price {
  font-weight: 800;
  color: var(--gold);
  font-size: 0.98rem;
}

.mkt-sig-add {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red-600);
}

/* Related dishes */
.mkt-related {
  background: #fff;
  border-top: 1px solid var(--line);
}

.mkt-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.mkt-related-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  align-items: stretch;
}

.mkt-related-card img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.mkt-related-card div {
  padding: 1rem 1rem 1rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mkt-related-card h3 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.mkt-related-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Steps */
.mkt-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.mkt-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1rem;
  text-align: center;
}

.mkt-step span {
  display: inline-block;
  font-weight: 900;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.mkt-step h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.mkt-step p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* CTA band */
.mkt-cta-band {
  background: linear-gradient(120deg, #9f1239 0%, #e11d48 45%, #be123c 100%);
  color: #fff;
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.mkt-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.mkt-cta-band h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 900;
  margin-bottom: 0.4rem;
}

.mkt-cta-band p {
  opacity: 0.92;
  max-width: 32rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.mkt-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.mkt-cta-band .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: none;
}

.mkt-cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.mkt-cta-band .btn-primary {
  background: #fff;
  color: var(--red-800);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Footer */
.mkt-footer {
  background: #fffaf9;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.25rem;
}

.mkt-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
}

.mkt-footer h4 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.mkt-footer p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.mkt-footer a {
  color: var(--red-700);
  font-weight: 600;
}

.mkt-footer a:hover {
  text-decoration: underline;
}

.mkt-footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted-2);
}

/* Legacy role cards (light) */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.role-card {
  padding: 1.35rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: 0.25s var(--ease);
  display: block;
  text-align: left;
}

.role-card:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 72, 0.3);
  box-shadow: var(--shadow);
}

.role-card .role-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
  background: var(--red-50);
  border: 1px solid var(--red-200);
}

.role-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.role-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.role-card .role-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red-600);
}

.store-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.store-info strong {
  color: var(--ink);
}

/* ---------- Customer guide page ---------- */
.guide-page {
  background: var(--bg);
}

.guide-hero {
  background: linear-gradient(145deg, #fff8f6 0%, #fff 45%, #fef3c7 100%);
  border-bottom: 1px solid var(--line);
  padding: 2.25rem 0 2.5rem;
}

.guide-hero-inner {
  max-width: 720px;
}

.guide-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-700);
  margin-bottom: 0.65rem;
}

.guide-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.guide-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #9f1239, #b45309);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.guide-lead {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.guide-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.guide-meta span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.guide-section {
  padding: 2.25rem 0;
}

.guide-section-alt {
  background: #fff;
  border-block: 1px solid var(--line);
}

.guide-section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.guide-section-head h2 {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
}

.guide-section-head p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 720px;
  margin: 0 auto;
}

.guide-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.85rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.04);
}

.guide-step-n {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
}

.guide-step h3 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.guide-step p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.guide-status-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.4rem;
}

.guide-status-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  min-width: 100px;
  text-align: center;
}

.guide-status-item span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red-50);
  color: var(--red-700);
  font-size: 0.75rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.guide-status-item strong {
  display: block;
  font-size: 0.88rem;
}

.guide-status-item em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.guide-status-arrow {
  align-self: center;
  color: var(--muted-2);
  font-weight: 700;
}

.guide-tips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.guide-tip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.guide-tip strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.guide-tip p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.guide-tip code {
  font-size: 0.85em;
  background: var(--ink-3);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.guide-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.guide-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
}

.guide-qr-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 0.65rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.04);
}

.guide-qr-num {
  font-weight: 900;
  color: var(--red-700);
  font-size: 1.05rem;
}

.guide-qr-img-wrap {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #fff;
}

.guide-qr-img-wrap img {
  display: block;
  width: 140px;
  height: 140px;
}

.guide-qr-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red-700);
  text-decoration: none;
}

.guide-qr-link:hover {
  text-decoration: underline;
}

.guide-staff-box {
  max-width: 900px;
}

.guide-staff-box > h2 {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-align: center;
}

.guide-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}

.guide-staff-grid h3 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.guide-staff-grid p {
  margin: 0.2rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.guide-staff-grid code {
  font-size: 0.8em;
  background: var(--ink-3);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.guide-cta-band {
  background: linear-gradient(135deg, #7f1d1d, #b91c1c 50%, #b45309);
  color: #fff;
  padding: 2.5rem 0;
  text-align: center;
}

.guide-cta-band h2 {
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
}

.guide-cta-band p {
  opacity: 0.9;
  margin-bottom: 1.15rem;
}

.guide-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.guide-cta-band .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.guide-cta-band .btn-primary {
  background: #fff;
  color: #9f1239;
  box-shadow: none;
}

@media (max-width: 640px) {
  .guide-step {
    grid-template-columns: 42px 1fr;
    padding: 0.85rem;
  }

  .guide-step-n {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }

  .guide-status-arrow {
    display: none;
  }

  .guide-qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-qr-img-wrap img {
    width: 120px;
    height: 120px;
  }
}

/* ---------- Install / PWA shortcut ---------- */
.btn-install {
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: #fff;
  border: none;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.28);
  font-weight: 800;
}

.btn-install:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35);
}

.install-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 18, 0.45);
  z-index: 120;
}

.install-modal {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(420px, 100%);
  max-height: min(88dvh, 560px);
  background: #fff;
  border-radius: 18px 18px 0 0;
  z-index: 130;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 640px) {
  .install-modal {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    border-radius: 18px;
    max-height: 80vh;
  }
}

.install-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.install-modal-body {
  padding: 1rem;
  overflow-y: auto;
}

.install-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
  padding: 0.65rem;
  border-radius: 14px;
  background: #fff8f6;
  border: 1px solid var(--line);
}

.install-brand img {
  border-radius: 12px;
}

.install-name {
  font-weight: 900;
  font-size: 1.05rem;
}

.install-steps {
  margin: 0 0 0.85rem 1.1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
}

.install-steps li {
  padding-left: 0.15rem;
}

.install-icon {
  display: inline-block;
  font-size: 0.95rem;
}

.install-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

/* ---------- Revenue report ---------- */
.rev-bars {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rev-bar-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.88rem;
}

.rev-bar-day {
  font-weight: 700;
  color: var(--muted);
}

.rev-bar-track {
  height: 12px;
  border-radius: 999px;
  background: var(--ink-3, #f5f0ee);
  overflow: hidden;
}

.rev-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e11d48, #f59e0b);
  min-width: 4px;
}

.rev-bar-val {
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  font-size: 0.82rem;
}

/* ---------- Menu admin ---------- */
.menu-admin-table td {
  vertical-align: middle;
}

.menu-admin-thumb-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong, #e7e0dc);
  background: #f5f5f4;
}

.menu-admin-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pos-admin-shortcuts {
  border: 1px dashed var(--line-strong, #e7e0dc);
  background: linear-gradient(135deg, #fff8f6, #fff);
}

/* ---------- Public board (TV / khách xem) ---------- */
.public-board {
  min-height: 100dvh;
  background: linear-gradient(165deg, #1c1412 0%, #3f1f1a 45%, #1c1412 100%);
  color: #fffaf7;
  padding: 1rem 1.25rem 1.5rem;
  box-sizing: border-box;
}

.public-board-off {
  display: grid;
  place-items: center;
  text-align: center;
}

.pb-off-inner h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.pb-off-inner p {
  color: #e7d5cc;
  font-size: 1.1rem;
}

.pb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pb-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pb-brand strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
}

.pb-brand span {
  display: block;
  font-size: 0.95rem;
  color: #fde68a;
  font-weight: 600;
}

.pb-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 1.05rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.45);
}

.pb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: pb-pulse 1.4s infinite;
}

@keyframes pb-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.pb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  min-height: calc(100dvh - 140px);
}

.pb-grid-one {
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.pb-col {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.pb-col-cook {
  border-color: rgba(251, 191, 36, 0.35);
}

.pb-col-ready {
  border-color: rgba(74, 222, 128, 0.4);
}

.pb-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.1rem;
  background: rgba(0, 0, 0, 0.25);
}

.pb-col-cook .pb-col-head {
  background: linear-gradient(90deg, rgba(180, 83, 9, 0.45), transparent);
}

.pb-col-ready .pb-col-head {
  background: linear-gradient(90deg, rgba(21, 128, 61, 0.45), transparent);
}

.pb-col-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.pb-count {
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.05rem;
}

.pb-col-body {
  padding: 0.85rem;
  overflow-y: auto;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  align-content: start;
}

.pb-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: rgba(255, 250, 247, 0.55);
  font-size: 1.1rem;
}

.pb-card {
  background: #fff;
  color: #1c1412;
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  animation: pb-in 0.35s ease;
}

@keyframes pb-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.pb-card.is-ready {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25), 0 12px 28px rgba(0, 0, 0, 0.2);
}

.pb-card.is-cooking {
  border-color: #f59e0b;
}

.pb-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.pb-table {
  font-size: 1.45rem;
  font-weight: 900;
  color: #b91c1c;
  line-height: 1.1;
}

.pb-code {
  font-weight: 800;
  font-size: 1rem;
  color: #b45309;
  background: #fff7ed;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
}

.pb-guest {
  font-size: 0.95rem;
  font-weight: 700;
  color: #57534e;
}

.pb-items {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pb-items li {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.pb-qty {
  color: #b91c1c;
  margin-right: 0.15rem;
}

.pb-mod {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  font-style: normal;
  color: #78716c;
}

.pb-foot {
  margin-top: auto;
  padding-top: 0.45rem;
}

.pb-status {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.pb-status.cook {
  background: #fff7ed;
  color: #b45309;
}

.pb-status.ready {
  background: #dcfce7;
  color: #15803d;
}

.pb-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
  color: rgba(255, 250, 247, 0.7);
}

/* Hide site chrome on public board */
body:has(.public-board) .bg-mesh,
body:has(.public-board) .bg-noise {
  opacity: 0.15;
}

@media (max-width: 900px) {
  .pb-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pb-col-body {
    grid-template-columns: 1fr 1fr;
  }

  .pb-table {
    font-size: 1.25rem;
  }
}

@media (max-width: 520px) {
  .public-board {
    padding: 0.75rem;
  }

  .pb-col-body {
    grid-template-columns: 1fr;
  }

  .pb-col-head h2 {
    font-size: 1.1rem;
  }

  .pb-items li {
    font-size: 1rem;
  }
}

/* ---------- Loyalty · Notif · QR bàn ---------- */
.points-chip {
  font-weight: 800;
  white-space: nowrap;
}

.notif-bell {
  position: relative;
  font-size: 1.1rem;
  min-width: 42px;
}

.notif-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red-600, #b91c1c);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.notif-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 80;
}

.notif-panel {
  position: fixed;
  top: calc(var(--header-h, 64px) + 6px);
  right: 12px;
  width: min(380px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  background: #fff;
  border: 1px solid var(--line-strong, #e7e0dc);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(28, 20, 18, 0.18);
  z-index: 90;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notif-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line, #eee);
  flex-wrap: wrap;
}

.notif-panel-body {
  overflow-y: auto;
  padding: 0.35rem;
}

.notif-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.notif-item:hover {
  background: var(--bg-soft, #fff8f6);
}

.notif-item.is-unread {
  background: #fff7ed;
  border-left: 3px solid var(--gold, #b45309);
}

.notif-item strong {
  font-size: 0.92rem;
}

.notif-item span {
  font-size: 0.82rem;
  color: var(--muted, #6b5e58);
  line-height: 1.35;
}

.notif-unread-card {
  border-left: 3px solid var(--gold, #b45309);
  background: #fffaf5;
}

.loyalty-card {
  background: linear-gradient(135deg, #fff8f6, #fff7ed);
  border: 1px solid #fde68a;
}

.loyalty-points {
  font-size: 2rem;
  font-weight: 900;
  color: var(--red-600, #b91c1c);
  line-height: 1.1;
}

.loyalty-points span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

.loyalty-rules {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ref-code-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.ref-code-box code {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  background: #1c1412;
  color: #fde68a;
}

.ref-link-box {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.ref-link-box input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong, #e7e0dc);
  font-size: 0.8rem;
}

.order-guest-card {
  border: 1px solid var(--line-strong, #e7e0dc);
  background: #fff;
}

.table-pill-lg {
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.45rem 0.9rem;
}

.points-redeem-box {
  margin: 0.5rem 0;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px dashed #f59e0b;
}

.qr-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.qr-table-card {
  background: #fff;
  border: 1px solid var(--line-strong, #e7e0dc);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.qr-table-card img {
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fff;
}

.qr-table-num {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--red-600, #b91c1c);
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Marketing responsive */
@media (max-width: 1024px) {
  .mkt-hero-inner { grid-template-columns: 1fr; }
  .mkt-hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .mkt-promise-grid { grid-template-columns: repeat(2, 1fr); }
  .mkt-story-grid { grid-template-columns: 1fr; }
  .mkt-spice-track { grid-template-columns: repeat(4, 1fr); }
  .mkt-related-grid { grid-template-columns: 1fr; }
  .mkt-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .mkt-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .mkt-promise-grid { grid-template-columns: 1fr; }
  .mkt-spice-track { grid-template-columns: repeat(2, 1fr); }
  .mkt-related-card { grid-template-columns: 100px 1fr; }
  .mkt-related-card div { padding: 0.75rem 0.75rem 0.75rem 0; }
  .mkt-steps-grid { grid-template-columns: 1fr 1fr; }
  .mkt-footer-grid { grid-template-columns: 1fr; }
  .mkt-float-stats { left: 0.5rem; right: 0.5rem; bottom: 0.75rem; }
  .mkt-sig-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .mkt-sig-body h3 { font-size: 0.85rem; }
  .mkt-sig-body p { display: none; }
  .nav-pills { display: none; }
  .topbar-inner { gap: 0.5rem; }
  .brand-text span { display: none; }
}

/* ============================================================
   CUSTOMER ORDER
   ============================================================ */
.customer-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100dvh - var(--header-h));
}

@media (min-width: 1024px) {
  .customer-layout {
    grid-template-columns: 1fr 380px;
  }
  .cart-drawer {
    position: sticky !important;
    top: var(--header-h);
    height: calc(100dvh - var(--header-h));
    border-left: 1px solid var(--line);
    border-radius: 0 !important;
    transform: none !important;
    max-height: none !important;
  }
  .cart-overlay { display: none !important; }
  .fab-cart { display: none !important; }
}

/* Table bar */
.table-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.table-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.2), rgba(159, 18, 57, 0.35));
  border: 1px solid rgba(244, 63, 94, 0.4);
  font-weight: 700;
}

/* Category chips */
.cat-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0 1rem;
  scrollbar-width: none;
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: linear-gradient(180deg, rgba(255, 248, 246, 0.98) 70%, transparent);
  margin: 0 -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.cat-scroll::-webkit-scrollbar { display: none; }

.cat-chip {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: 0.2s var(--ease);
}

.cat-chip.active,
.cat-chip:hover {
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  border-color: transparent;
  color: #fff;
}

/* Menu grid — product cards cân đối, ảnh giữa */
.menu-section {
  margin-bottom: 1.75rem;
}

.menu-section h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.menu-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.05);
}

.menu-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 63, 94, 0.35);
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.1);
}

.menu-card .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(160deg, #faf6f4 0%, #f0e9e6 100%);
  flex-shrink: 0;
}

.menu-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.45s var(--ease);
}

.menu-card:hover .thumb img {
  transform: scale(1.05);
}

.menu-card .thumb .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}

.menu-card .thumb .badge-gold {
  left: auto;
  right: 8px;
}

.menu-card .body {
  padding: 0.7rem 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 1 1 auto;
  text-align: center;
  min-height: 5.5rem;
}

.menu-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.menu-card .desc {
  font-size: 0.78rem;
  color: var(--muted-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  line-height: 1.35;
  flex: 1;
}

.menu-card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-top: 0.45rem;
  gap: 0.4rem;
}

.menu-card .price {
  font-weight: 800;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.menu-card .add-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  color: #fff;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.28);
}

/* Cart FAB mobile */
.fab-cart {
  position: fixed;
  bottom: calc(1.25rem + var(--safe-b));
  right: 1.25rem;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-600), var(--red-900));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(225, 29, 72, 0.45);
}

.fab-cart .count {
  background: #fff;
  color: var(--red-700);
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 0.75rem;
  display: grid;
  place-items: center;
  padding: 0 0.35rem;
}

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: #ffffff;
  border-top: 1px solid var(--line-strong);
  border-radius: 24px 24px 0 0;
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
  padding-bottom: var(--safe-b);
  box-shadow: 0 -12px 40px rgba(28, 25, 23, 0.1);
  color: var(--ink);
}

.cart-drawer.open {
  transform: translateY(0);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.cart-head h3 {
  font-weight: 800;
  font-size: 1.1rem;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.cart-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.cart-line img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--ink-3);
}

.cart-line h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

.cart-line .mods {
  font-size: 0.75rem;
  color: var(--muted-2);
  margin-top: 0.15rem;
}

.cart-line .line-price {
  font-weight: 800;
  color: var(--gold);
  font-size: 0.9rem;
  text-align: right;
}

.qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  background: var(--glass);
  border-radius: 999px;
  padding: 0.15rem;
  border: 1px solid var(--line);
}

.qty-ctrl button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red-50);
  border: 1px solid var(--red-200);
  font-weight: 700;
  color: var(--red-700);
}

.qty-ctrl span {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-foot {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  background: #fffaf9;
}

.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.cart-totals .row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.cart-totals .row.total {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--line);
}

.cart-totals .row.discount {
  color: var(--success);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.65);
  display: grid;
  place-items: end center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 640px) {
  .modal-overlay {
    place-items: center;
    padding: 1.5rem;
  }
}

.modal {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 24px 24px 0 0;
  width: min(480px, 100%);
  max-height: 92dvh;
  overflow-y: auto;
  transform: translateY(30px);
  transition: transform 0.3s var(--ease);
  padding-bottom: var(--safe-b);
  color: var(--ink);
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .modal {
    border-radius: 20px;
  }
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-hero {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--ink-3);
}

.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-hero .close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.modal-body {
  padding: 1.25rem;
}

.modal-body h2 {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.modal-body .price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.modal-body .modal-desc {
  font-size: 0.98rem;
  line-height: 1.45;
  margin-bottom: 0.25rem;
}

.mod-group {
  margin: 1rem 0;
}

.mod-group label.group-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.mod-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mod-opt {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: 0.15s;
}

.mod-opt {
  color: var(--muted);
}
.mod-opt.active {
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  border-color: transparent;
  color: #fff;
}

.mod-opt.spice-hot.active {
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

.note-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  resize: vertical;
  min-height: 72px;
  color: var(--ink);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
}

/* Order status tracker */
.status-tracker {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  margin: 1rem 0;
  overflow-x: auto;
}

.status-step {
  flex: 1;
  min-width: 70px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted-2);
  position: relative;
}

.status-step .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink-3);
  border: 2px solid var(--muted-2);
  margin: 0 auto 0.35rem;
}

.status-step.done .dot,
.status-step.active .dot {
  background: var(--red-600);
  border-color: var(--red-400);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.5);
}

.status-step.active {
  color: var(--ink);
  font-weight: 700;
}

.status-step.done {
  color: var(--red-300);
}

/* ============================================================
   POS
   ============================================================ */
.pos-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem 0 2rem;
}

@media (min-width: 1100px) {
  .pos-layout {
    grid-template-columns: 1fr 400px;
  }
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-card {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.stat-card .label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card .value {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-top: 0.15rem;
}

.stat-card .value.gold { color: var(--gold); }
.stat-card .value.red { color: var(--red-400); }

.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.65rem;
}

.table-tile {
  aspect-ratio: 1;
  border-radius: 16px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: 0.2s var(--ease);
  cursor: pointer;
  position: relative;
}

.table-tile:hover {
  transform: scale(1.03);
}

.table-tile .t-num {
  font-size: 1.35rem;
  font-weight: 900;
}

.table-tile .t-status {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.table-tile.empty { border-color: rgba(34, 197, 94, 0.35); }
.table-tile.empty .t-num { color: var(--success); }

.table-tile.occupied { border-color: rgba(56, 189, 248, 0.4); background: rgba(56, 189, 248, 0.06); }
.table-tile.occupied .t-num { color: var(--info); }

.table-tile.waiting {
  border-color: rgba(234, 179, 8, 0.5);
  background: rgba(234, 179, 8, 0.08);
  animation: tablePulse 2s infinite;
}
.table-tile.waiting .t-num { color: var(--warn); }

.table-tile.served { border-color: rgba(244, 63, 94, 0.45); background: rgba(244, 63, 94, 0.08); }
.table-tile.served .t-num { color: var(--red-400); }

.table-tile.active {
  box-shadow: 0 0 0 2px var(--red-500);
}

@keyframes tablePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(234, 179, 8, 0); }
}

.orders-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: calc(100dvh - var(--header-h) - 2rem);
  overflow-y: auto;
}

.order-card {
  padding: 1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.order-card.flash {
  animation: flashIn 0.6s var(--ease);
  border-color: var(--gold);
}

@keyframes flashIn {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.6); }
  100% { box-shadow: 0 0 0 12px transparent; }
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.order-card-head h4 {
  font-weight: 800;
  font-size: 1rem;
}

.order-items-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.order-items-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  gap: 0.5rem;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ============================================================
   KDS — Kitchen Display
   ============================================================ */
.kds-header-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.kds-tabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.kds-tab {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--muted);
}

.kds-tab.active {
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  color: #fff;
  border-color: transparent;
}

.kds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
  padding-bottom: 2rem;
}

.ticket {
  border-radius: 16px;
  border: 2px solid var(--line-strong);
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.ticket.priority-green { border-color: rgba(34, 197, 94, 0.45); }
.ticket.priority-yellow { border-color: rgba(234, 179, 8, 0.55); box-shadow: 0 0 20px rgba(234, 179, 8, 0.12); }
.ticket.priority-red {
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.2);
  animation: urgent 1.5s infinite;
}

@keyframes urgent {
  0%, 100% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.15); }
  50% { box-shadow: 0 0 28px rgba(239, 68, 68, 0.35); }
}

.ticket-head {
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #fff5f5;
}

.ticket-head .timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 0.95rem;
}

.ticket-body {
  padding: 1rem;
  flex: 1;
}

.ticket-body .batch-name {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.ticket-body .batch-qty {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.03em;
}

.ticket-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.ticket-lines {
  list-style: none;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.ticket-lines li {
  padding: 0.35rem 0;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.ticket-foot {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
}

/* Table-view tickets */
.ticket-table .ticket-body h3 {
  font-size: 1.4rem;
  font-weight: 900;
}

/* Toast */
.toast-wrap {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: 12px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 0.9rem;
  animation: toastIn 0.35s var(--ease);
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.toast.success { border-color: rgba(22, 163, 74, 0.4); }
.toast.warn { border-color: rgba(202, 138, 4, 0.4); }
.toast.order { border-color: rgba(225, 29, 72, 0.35); background: linear-gradient(135deg, #fff, #fff1f2); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Audio ding visual */
.ding-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 150;
  background: rgba(251, 191, 36, 0.08);
  animation: dingFlash 0.5s ease-out;
}

@keyframes dingFlash {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

/* Legend */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.5rem 0 1rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 999px; }

/* Utilities */
.hidden { display: none !important; }
.flex { display: flex; }
.gap-2 { gap: 0.5rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.w-full { width: 100%; }

/* Order history strip for customer */
.my-orders {
  padding: 0 0 1.5rem;
}

.my-order-card {
  padding: 1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 0.65rem;
}

/* QR hint */
.qr-hint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.85rem;
  color: #bae6fd;
  margin-bottom: 1rem;
}

/* Search */
.search-box {
  position: relative;
  margin-bottom: 0.75rem;
}

.search-box input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  outline: none;
}

.search-box input:focus {
  border-color: rgba(244, 63, 94, 0.5);
}

.search-box::before {
  content: "🔍";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Section title with line */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
  font-size: 1rem;
  font-weight: 800;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Spice meter visual */
.spice-meter {
  display: flex;
  gap: 3px;
  margin-top: 0.25rem;
}

.spice-meter i {
  width: 6px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.spice-meter i.on {
  background: linear-gradient(180deg, #fbbf24, #ef4444);
}

/* Auth / promo admin forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"],
.auth-form input[type="number"],
.auth-form input[type="search"],
.auth-form input[type="date"],
.auth-form select,
.auth-form input:not([type]) {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  width: 100%;
}

/* HR · Chấm công */
.hr-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 1rem;
  align-items: start;
}

.hr-panel {
  padding: 1rem 1.1rem;
}

.hr-panel-wide {
  min-width: 0;
}

.hr-emp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.hr-emp-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
}

.hr-emp-card.is-in {
  border-color: rgba(22, 163, 74, 0.4);
  background: linear-gradient(180deg, #f0fdf4, #fff);
}

.hr-emp-card.is-off {
  opacity: 0.55;
}

.hr-emp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
}

.hr-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red-700);
}

.hr-emp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.45rem;
}

.hr-pay-panel input[type="date"],
.hr-pay-panel input[type="number"] {
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-weight: 600;
}

.hr-table-wrap {
  overflow-x: auto;
}

.hr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.hr-table th,
.hr-table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.hr-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 900px) {
  .hr-grid {
    grid-template-columns: 1fr;
  }
}
.auth-form input:disabled {
  opacity: 0.55;
  background: var(--ink-3);
}
.auth-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #b91c1c;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.promo-admin {
  border: 1px solid rgba(225, 29, 72, 0.12);
}

/* ---------- Admin media (đổi ảnh món) ---------- */
.pos-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.pending-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
  border: 1px solid rgba(225, 29, 72, 0.2);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.08);
  animation: flashIn 0.6s ease;
}

.pending-list .order-card {
  border-color: rgba(234, 179, 8, 0.45);
}

.best-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 1rem;
  align-items: start;
}

.best-selected {
  padding: 0.85rem;
  position: sticky;
  top: calc(var(--header-h) + 12px);
}

.best-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: min(70vh, 560px);
  overflow-y: auto;
}

.best-row {
  display: grid;
  grid-template-columns: 22px 36px 1fr auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.35rem 0.4rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.best-thumb {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--ink-3);
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s;
}

.best-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

.best-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.best-ord {
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--red-600);
  text-align: center;
}

.best-info {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.best-info strong {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.best-move {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.best-move .btn-sm {
  padding: 0.25rem 0.45rem;
  font-size: 0.72rem;
}

.best-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.4rem;
}

.best-pick {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.4rem;
  align-items: center;
  padding: 0.35rem 0.4rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  transition: 0.15s;
  min-height: 48px;
}

.best-pick .best-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.best-pick-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  align-items: flex-start;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  min-width: 0;
  text-align: left;
}

.best-pick span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.best-pick em {
  font-style: normal;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
}

.best-pick.is-on {
  border-color: rgba(225, 29, 72, 0.4);
  background: #fff1f2;
}

.best-pick.is-on em {
  color: var(--red-600);
}

.best-pick:hover {
  border-color: rgba(225, 29, 72, 0.25);
}

.media-cat--compact {
  margin-bottom: 0.85rem;
}

.media-cat--compact .media-cat-title {
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}

/* Zoom lightbox */
.img-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(12, 10, 9, 0.72);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1rem;
  animation: toastIn 0.2s ease;
}

.img-zoom-box {
  position: relative;
  max-width: min(920px, 96vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  padding: 0.65rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.img-zoom-box img {
  max-width: 100%;
  max-height: calc(90vh - 3.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.img-zoom-close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.1rem;
  z-index: 2;
  border: none;
  cursor: pointer;
}

.img-zoom-title {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.45rem;
  padding: 0 0.5rem;
}

@media (max-width: 900px) {
  .best-layout {
    grid-template-columns: 1fr;
  }
  .best-selected {
    position: static;
  }
  .best-picker-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

.media-admin-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.85rem;
  align-items: flex-start;
}

.media-head-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.media-tip {
  font-size: 0.85rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.media-cat {
  margin-bottom: 1.5rem;
}

.media-cat-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.media-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.media-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--ink-3);
  overflow: hidden;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-badge {
  position: absolute;
  top: 8px;
  left: 8px;
}

.media-body {
  padding: 0.75rem 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.media-body strong {
  font-size: 0.92rem;
  color: var(--ink);
}

.media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.media-upload {
  cursor: pointer;
  position: relative;
}

@media (max-width: 640px) {
  .media-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }
  .media-actions .btn {
    font-size: 0.72rem;
    padding: 0.35rem 0.5rem;
  }
}

/* Responsive tweaks — font size menu do responsive.css quản lý (mobile lớn hơn) */
@media (max-width: 480px) {
  .hero h1 { font-size: 2.1rem; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .nav-pills { display: none; }
  .promo-admin { margin-inline: 0; }
}
