/* ============================================================
   Hu Tieu Go Ong Map — Maidstone
   Vietnamese Street Food · Global Stylesheet
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette — sunny yellow + teal + orange (logo-matched) */
  --yellow: #f2de6b; /* logo circle background */
  --yellow-light: #faf5b0;
  --yellow-dark: #c9ab10;
  --red: #c0392b;
  --orange: #e87e42; /* warm CTA / action */
  --orange-dark: #c56227;
  --orange-light: #f5c097;
  --teal: #5a9099; /* cart awning accent */
  --teal-dark: #3d7480;
  --teal-light: #a8d4da;
  --cream: #fdfcf4;
  --cream-2: #f5f0dc;
  --dark: #1c1c1c; /* logo text black */
  --dark-2: #2d2d2d;
  --dark-3: #3e3e3e;
  --charcoal: #2c2c2c;
  --text-light: #fdfcf4;
  --text-muted: #7a6e5a;
  --white: #ffffff;
  --bg-light: #fdfcf8;
  --bg-card: #ffffff;
  --border: #e5ddc4;
  --success: #1e7e34;
  --success-bg: #e6f4ea;
  --error: #b71c1c;
  --error-bg: #fdecea;
  --warning: #c06000;
  --warning-bg: #fff3e0;
  --info: #1558b0;
  --info-bg: #e3f0fd;
  /* Gold aliases used by the admin insights/dashboard charts */
  --gold: #f2de6b;
  --gold-dark: #c9ab10;
  --gold-light: #faf5b0;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.07);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.18);
  --transition: 0.2s ease;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--bg-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--teal-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  line-height: 1.22;
  color: var(--dark);
}
h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}
h3 {
  font-size: 1.3rem;
}
p {
  margin-bottom: 0.75rem;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--sm {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--md {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.text-center {
  text-align: center;
}
.text-muted {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.btn:active {
  transform: none;
}
/* orange — primary CTA */
.btn-red,
.btn-orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-red:hover,
.btn-orange:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}
/* yellow — brand accent */
.btn-amber {
  background: var(--yellow);
  color: var(--dark);
  border-color: var(--yellow);
}
.btn-amber:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  color: var(--white);
}
/* gold — admin action (same as yellow) */
.btn-gold {
  background: var(--yellow);
  color: var(--dark);
  border-color: var(--yellow-dark);
}
.btn-gold:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  color: var(--white);
}
/* teal — secondary */
.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-teal:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}
.btn-outline {
  background: transparent;
  border-color: currentColor;
}
.btn-outline-light {
  background: transparent;
  border-color: rgba(253, 252, 244, 0.5);
  color: var(--text-light);
}
.btn-outline-light:hover {
  background: rgba(253, 252, 244, 0.12);
}
.btn-danger {
  background: var(--error);
  color: var(--white);
  border-color: var(--error);
}
.btn-danger:hover {
  background: #891515;
}
.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
}
.btn-full {
  width: 100%;
  justify-content: center;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-pending {
  background: var(--warning-bg);
  color: var(--warning);
}
.badge-confirmed {
  background: var(--success-bg);
  color: var(--success);
}
.badge-cancelled {
  background: var(--error-bg);
  color: var(--error);
}
.badge-completed {
  background: var(--info-bg);
  color: var(--info);
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dark-2);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--charcoal);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(90, 144, 153, 0.18);
}
.form-control::placeholder {
  color: #b0a888;
}
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}
.form-control.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.12);
}
.form-error {
  display: none;
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 0.3rem;
  font-weight: 600;
}
.form-error.visible {
  display: block;
}

/* Hide number input spinners globally */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ---------- Guest stepper ---------- */
.guest-stepper {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  min-height: 52px;
  box-sizing: border-box;
}
.guest-stepper:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(90, 144, 153, 0.18);
}
.guest-stepper.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.12);
}
.stepper-btn {
  background: transparent;
  border: none;
  width: 50px;
  height: 100%;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--dark-2);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.stepper-btn:first-child {
  border-right: 1.5px solid var(--border);
}
.stepper-btn:last-child {
  border-left: 1.5px solid var(--border);
}
.stepper-btn:hover:not(:disabled) {
  background: rgba(90, 144, 153, 0.1);
  color: var(--teal-dark);
  border-color: var(--teal);
}
.stepper-btn:active:not(:disabled) {
  background: rgba(90, 144, 153, 0.18);
  color: var(--teal-dark);
}
.stepper-btn:disabled {
  color: var(--border);
  cursor: not-allowed;
  background: transparent;
}
.stepper-value {
  flex: 1;
  height: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  border: none;
  outline: none;
  background: var(--white);
  padding: 0 0.95rem;
  min-width: 0;
  font-family: var(--font-sans);
  -moz-appearance: textfield;
  appearance: textfield;
  letter-spacing: 0;
}
.stepper-value::placeholder {
  color: #b0a888;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0;
}

/* Guest count label strip under the stepper */
.stepper-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0 2px;
}
#guest-count-label:not(:empty) {
  display: inline-flex;
  align-items: center;
  background: rgba(90, 144, 153, 0.12);
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  transition: opacity var(--transition);
}

/* ---------- Alerts ---------- */
.alert {
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border-left: 4px solid var(--success);
}
.alert-error {
  background: var(--error-bg);
  color: var(--error);
  border-left: 4px solid var(--error);
}
.alert-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border-left: 4px solid var(--warning);
}
.alert-info {
  background: var(--info-bg);
  color: var(--info);
  border-left: 4px solid var(--info);
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--white);
}
thead th {
  background: var(--dark);
  color: var(--yellow);
  padding: 0.9rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
tbody tr:last-child {
  border-bottom: none;
}
tbody tr:hover {
  background: #fdfae8;
}
tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
}

/* ---------- Stat cards ---------- */
.stat-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--dark);
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
}
.stat-card.gold {
  border-top: 4px solid var(--yellow);
}
.stat-card.red {
  border-top: 4px solid var(--orange);
}
.stat-card.amber {
  border-top: 4px solid var(--yellow);
}
.stat-card.green {
  border-top: 4px solid var(--success);
}
.stat-card.blue {
  border-top: 4px solid var(--teal);
}
.stat-card.orange {
  border-top: 4px solid var(--orange);
}

/* ---------- Admin sidebar ---------- */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sidebar-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--yellow);
}
.sidebar-brand .brand-name {
  font-family: var(--font-display);
  color: var(--yellow);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.sidebar-brand .brand-vn {
  color: rgba(242, 222, 107, 0.55);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
}
.nav-section-label {
  padding: 0.5rem 1.5rem 0.25rem;
  font-size: 0.68rem;
  color: rgba(90, 144, 153, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: rgba(253, 252, 244, 0.65);
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    background var(--transition),
    color var(--transition);
  border-left: 3px solid transparent;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--yellow);
  text-decoration: none;
}
.nav-link.active {
  background: rgba(242, 222, 107, 0.13);
  color: var(--yellow);
  border-left-color: var(--yellow);
}
.nav-link .nav-icon {
  font-size: 1.05rem;
  width: 1.2rem;
  text-align: center;
}
.sidebar-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-footer .admin-name {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  background: var(--white);
  border-bottom: 3px solid var(--yellow);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.topbar-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--dark);
}
.page-body {
  padding: 2rem;
  flex: 1;
}

/* ---------- Filter bar ---------- */
.filter-bar {
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.filter-bar__row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  position: relative;
}
.filter-field--search {
  flex: 1;
  min-width: 200px;
}
.filter-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.filter-field input,
.filter-field select {
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--bg-light);
  color: var(--charcoal);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  height: 2.4rem;
  box-sizing: border-box;
}
.filter-field input:focus,
.filter-field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(90, 144, 153, 0.15);
}
.filter-clear-x {
  position: absolute;
  right: 0.55rem;
  bottom: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.1rem 0.2rem;
  line-height: 1;
  border-radius: 50%;
}
.filter-clear-x:hover {
  color: var(--error);
}
.filter-field--search input {
  padding-right: 2rem;
}
.filter-bar__actions {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  padding-bottom: 0;
}
.filter-bar__count {
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  align-self: flex-end;
  padding-bottom: 0.1rem;
}
.filter-bar__count strong {
  color: var(--charcoal);
}

/* Status dropdown colour accent */
.filter-select--status-pending {
  border-color: var(--warning) !important;
  color: var(--warning) !important;
}
.filter-select--status-confirmed {
  border-color: var(--success) !important;
  color: var(--success) !important;
}
.filter-select--status-cancelled {
  border-color: var(--error) !important;
  color: var(--error) !important;
}
.filter-select--status-completed {
  border-color: var(--info) !important;
  color: var(--info) !important;
}

/* Active filter chips */
.filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.filter-chips__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-right: 0.25rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  color: var(--charcoal);
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.filter-chip:hover {
  background: var(--error-bg);
  border-color: var(--error);
  color: var(--error);
}
.filter-chip .fa-xmark {
  font-size: 0.7rem;
  opacity: 0.6;
}
.filter-chip--pending {
  background: var(--warning-bg);
  border-color: var(--warning);
  color: var(--warning);
}
.filter-chip--confirmed {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}
.filter-chip--cancelled {
  background: var(--error-bg);
  border-color: var(--error);
  color: var(--error);
}
.filter-chip--completed {
  background: var(--info-bg);
  border-color: var(--info);
  color: var(--info);
}
.filter-chip--pending:hover,
.filter-chip--confirmed:hover,
.filter-chip--cancelled:hover,
.filter-chip--completed:hover {
  filter: brightness(0.92);
}

/* ---------- Inline table number input ---------- */
.td-table-num {
  white-space: nowrap;
}
.table-num-input {
  width: 4rem;
  padding: 0.25rem 0.4rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  background: var(--bg-light);
  color: var(--charcoal);
  text-align: center;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  -moz-appearance: textfield;
  appearance: textfield;
}
.table-num-input::-webkit-outer-spin-button,
.table-num-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.table-num-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(90, 144, 153, 0.15);
  background: #fff;
}

/* ---------- Sortable table headers ---------- */
.th-sort a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}
.th-sort a:hover {
  color: var(--teal-dark);
}
.th-sort--active a {
  color: var(--teal-dark);
}
.sort-icon {
  opacity: 0.3;
  font-size: 0.8em;
}
.sort-icon--active {
  opacity: 1;
  color: var(--teal-dark);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--charcoal);
  transition:
    background var(--transition),
    color var(--transition);
}
.pagination a:hover {
  background: var(--yellow);
  color: var(--dark);
  text-decoration: none;
}
.pagination .active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* ---------- Bar charts ---------- */
.bar-wrap {
  background: var(--border);
  border-radius: 999px;
  height: 10px;
  flex: 1;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal));
  transition: width 0.6s ease;
}

/* ---------- Chart box ---------- */
.chart-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.chart-box h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--dark);
}

/* ============================================================
   PUBLIC SITE
   ============================================================ */

/* ---------- Navigation ---------- */
.public-nav {
  background: var(--dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 300;
  border-bottom: 3px solid var(--yellow);
}
.public-nav .container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  color: var(--yellow);
  font-size: 1.25rem;
  font-weight: 700;
}
.nav-brand:hover {
  text-decoration: none;
  color: var(--yellow-light);
}
.nav-brand img.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--yellow);
  flex-shrink: 0;
}
.nav-brand-vn {
  font-family: var(--font-display);
  font-size: 0.68rem;
  color: rgba(253, 252, 244, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 400;
  display: block;
  margin-top: 0.1rem;
}
.nav-links {
  display: flex;
  list-style: none;
  height: 100%;
}
.nav-links li {
  display: flex;
  align-items: center;
}
.nav-links a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1.1rem;
  color: rgba(253, 252, 244, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    color var(--transition),
    background var(--transition);
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}
.nav-links a:hover {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
  text-decoration: none;
}
.nav-cta {
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  background: var(--orange);
  color: var(--white) !important;
  font-weight: 700 !important;
  border-bottom: none !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover {
  background: var(--orange-dark) !important;
  color: var(--white) !important;
}

/* ---------- Language switcher ---------- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: .2rem;
  margin-left: .75rem;
  flex-shrink: 0;
}
.lang-btn {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(253, 246, 238, .5);
  text-decoration: none;
  padding: .2rem .4rem;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  line-height: 1;
}
.lang-btn:hover {
  color: var(--yellow);
  text-decoration: none;
}
.lang-btn.active {
  color: var(--yellow);
  background: rgba(242, 222, 107, .12);
}
.lang-sep {
  color: rgba(253, 246, 238, .2);
  font-size: .7rem;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(
      155deg,
      rgba(28, 28, 28, 0.88) 0%,
      rgba(45, 45, 45, 0.78) 100%
    ),
    url("../img/background.jpg") center/cover no-repeat;
  background:
    linear-gradient(
      155deg,
      rgba(28, 28, 28, 0.88) 0%,
      rgba(45, 45, 45, 0.78) 100%
    ),
    image-set(
        url("../img/background.webp") type("image/webp"),
        url("../img/background.jpg") type("image/jpeg")
      )
      center/cover no-repeat;
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: var(--text-light);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-light));
  pointer-events: none;
}
.hero-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(242, 222, 107, 0.15);
  border: 1px solid rgba(242, 222, 107, 0.35);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--text-light);
  margin-bottom: 1.25rem;
}
.hero h1 em {
  color: var(--yellow);
  font-style: normal;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(253, 252, 244, 0.75);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-divider {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  margin: 1.25rem auto;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.25rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  color: rgba(253, 252, 244, 0.8);
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}
.section-alt {
  background: var(--white);
}
.section-dark {
  background: var(--dark);
  color: var(--text-light);
}
.section-red {
  background: var(--orange);
  color: var(--white);
}
.section-cream {
  background: var(--cream);
}
.section-yellow {
  background: var(--yellow);
}
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.4rem;
}
.section-dark .section-label {
  color: var(--yellow);
}
.divider-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  border-radius: 2px;
  margin: 0.75rem 0 1.25rem;
}

/* ---------- Feature icons ---------- */
.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #fdf5cc, #f5e87a);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ---------- Menu tabs ---------- */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.menu-tab {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--charcoal);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.menu-tab:hover,
.menu-tab.active {
  background: var(--yellow);
  border-color: var(--yellow-dark);
  color: var(--dark);
}

/* ---------- Menu grid ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.menu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}
.menu-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.menu-card-emoji {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
  width: 60px;
  height: 60px;
  background: var(--cream-2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-card-img {
  height: 180px;
  margin: -1.25rem -1.5rem 1rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.menu-card:hover .menu-card-img img {
  transform: scale(1.05);
}
.menu-card-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.35rem;
}
.menu-card-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.55;
}
.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}
.menu-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orange);
}
.menu-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--teal-dark);
}
.menu-badge.popular {
  background: #fff3d0;
  color: var(--orange-dark);
}
.menu-badge.new {
  background: #e6f4ea;
  color: var(--success);
}

/* ---------- Combos ---------- */
.combo-card {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}
.combo-card::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(
    circle,
    rgba(242, 222, 107, 0.2),
    transparent 70%
  );
  border-radius: 50%;
}
.combo-number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}
.combo-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.combo-desc {
  font-size: 0.875rem;
  color: rgba(253, 252, 244, 0.7);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.combo-includes {
  list-style: none;
  margin-bottom: 1.25rem;
}
.combo-includes li {
  font-size: 0.83rem;
  color: rgba(253, 252, 244, 0.8);
  padding: 0.25rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.combo-includes li::before {
  content: "✓";
  color: var(--yellow);
  font-weight: 700;
  flex-shrink: 0;
}
.combo-price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--yellow);
  font-weight: 700;
}
.combo-serves {
  font-size: 0.8rem;
  color: rgba(253, 252, 244, 0.5);
  margin-top: 0.2rem;
}

/* ---------- About section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      to bottom,
      rgba(28, 28, 28, 0.35) 0%,
      rgba(28, 28, 28, 0.15) 100%
    ),
    url("../img/OurStory.webp") center/contain no-repeat;
  background-color: #1c1c1c;
  aspect-ratio: 1024 / 1536;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(242, 222, 107, 0.08),
    transparent
  );
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.testimonial-stars {
  color: var(--yellow-dark);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.testimonial-text {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1rem;
}
.testimonial-author {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--dark);
}
.testimonial-platform {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- Opening hours table ---------- */
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}
.hours-row:last-child {
  border: none;
}
.hours-row.today {
  color: var(--teal-dark);
  font-weight: 700;
}
.hours-closed {
  color: var(--text-muted);
}

/* ---------- Booking section (public) ---------- */
.booking-section {
  background: var(--cream-2);
  padding: 5rem 0;
}
.booking-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.booking-card-header {
  background: var(--dark);
  padding: 2rem 2.5rem;
  border-bottom: 4px solid var(--yellow);
}
.booking-card-body {
  padding: 2.5rem;
}
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(253, 252, 244, 0.6);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  font-family: var(--font-display);
  color: var(--yellow);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.footer-vn {
  font-size: 0.9rem;
  color: rgba(242, 222, 107, 0.6);
  margin-bottom: 0.75rem;
}
.footer h4 {
  color: rgba(253, 252, 244, 0.45);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.footer ul {
  list-style: none;
}
.footer ul li {
  margin-bottom: 0.5rem;
}
.footer ul a {
  color: rgba(253, 252, 244, 0.55);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer ul a:hover {
  color: var(--yellow);
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}
.footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 2px solid rgba(242, 222, 107, 0.4);
}
.footer-yellow-strip {
  background: var(--yellow);
  height: 4px;
}

/* ---------- Admin login ---------- */
.login-page {
  min-height: 100vh;
  background: linear-gradient(155deg, var(--dark) 0%, var(--dark-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--yellow);
}
.login-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}
.login-logo img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.85rem;
  border: 3px solid var(--yellow);
  box-shadow: 0 4px 16px rgba(242, 222, 107, 0.35);
}
.login-logo .brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--dark);
}
.login-logo .brand-vn {
  font-size: 0.9rem;
  color: var(--teal);
  font-style: italic;
}
.login-logo .brand-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ---------- Confirm / delete modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}
.modal-backdrop.open .modal-box {
  transform: translateY(0);
}
.modal-box h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.modal-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.modal-box .modal-name {
  font-weight: 700;
  color: var(--dark);
  background: var(--error-bg);
  border-radius: var(--radius);
  padding: 0.25rem 0.6rem;
  font-size: 0.9rem;
}
.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* ---------- Hamburger & mobile drawer ---------- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  background: var(--dark-2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav.open {
  display: block;
}
.mobile-nav ul {
  list-style: none;
  padding: 0.5rem 0 1rem;
}
.mobile-nav li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(253, 252, 244, 0.85);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition:
    color var(--transition),
    border-color var(--transition);
}
.mobile-nav li a:hover {
  color: var(--yellow);
  border-left-color: var(--yellow);
}

/* ── Mobile sidebar drawer & overlay ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s;
}
.sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: auto;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius);
  line-height: 1;
}
.sidebar-close:hover {
  color: #fff;
}
.topbar-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--dark);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius);
  line-height: 1;
  flex-shrink: 0;
}
.topbar-hamburger:hover {
  background: var(--bg-light);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.topbar-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Mobile bottom tab bar ── */
.admin-tab-bar {
  display: none;
}

body.sidebar-open {
  overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* Sidebar becomes a slide-in drawer */
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay {
    display: block;
  }
  .sidebar-close {
    display: inline-flex;
    align-items: center;
  }
  .topbar-hamburger {
    display: inline-flex;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .menu-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Tables: tighter padding, smaller text */
  .table-wrap table {
    font-size: 0.82rem;
  }
  .table-wrap thead th {
    padding: 0.65rem 0.75rem;
    font-size: 0.7rem;
  }
  .table-wrap tbody td {
    padding: 0.65rem 0.75rem;
  }

  /* Filter bar: tighten up */
  .filter-bar {
    padding: 0.85rem 1rem;
  }
  .filter-bar__row {
    gap: 0.5rem;
  }
  .filter-field input,
  .filter-field select {
    font-size: 0.85rem;
    height: 2.2rem;
    padding: 0.4rem 0.7rem;
  }
  .filter-field label {
    font-size: 0.7rem;
  }

  /* Stat cards */
  .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .stat-value {
    font-size: 1.6rem;
  }

  /* Page body */
  .page-body {
    padding: 1.5rem;
  }
  .topbar {
    padding: 0.85rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-visual {
    aspect-ratio: 1024 / 1536;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }
  .booking-card-header {
    padding: 1.5rem 1.25rem;
  }
  .booking-card-body {
    padding: 1.5rem 1.25rem;
  }
  .form-control {
    font-size: 1rem;
    min-height: 52px;
    padding: 0.85rem 1rem;
  }
  select.form-control {
    min-height: 52px;
  }
  textarea.form-control {
    min-height: 80px;
  }
  .form-label {
    font-size: 0.925rem;
  }
  .guest-stepper {
    height: 56px;
  }
  .stepper-btn {
    width: 56px;
    font-size: 1rem;
  }
  .stepper-value {
    font-size: 1.05rem;
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .hero-content {
    padding: 4rem 1.25rem 6rem;
  }
  /* Modal slides up from bottom on small phones */
  .modal-backdrop {
    align-items: flex-end;
  }
  .modal-box {
    width: 100%;
    max-width: 100% !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(100%);
    max-height: 88vh;
    overflow-y: auto;
  }
  .modal-backdrop.open .modal-box {
    transform: translateY(0);
  }
}

/* ── Sticky mobile Reserve Now bar (public site only) ── */
.mobile-reserve-bar {
  display: none;
}
@media (max-width: 768px) {
  .mobile-reserve-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    transition: transform 0.25s ease;
  }
  .mobile-reserve-bar.hidden {
    transform: translateY(110%);
  }
  .mobile-reserve-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background var(--transition);
  }
  .mobile-reserve-btn:hover {
    background: var(--orange-dark);
    color: var(--white);
  }
  /* Push page content up so it isn't hidden behind the bar */
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

/* ── Phone-specific admin layout ── */
@media (max-width: 480px) {
  /* Show bottom tab bar, add padding so content clears it */
  .admin-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    background: var(--dark);
    border-top: 2px solid var(--yellow);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.55rem 0.25rem;
    color: rgba(253, 252, 244, 0.5);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: color 0.15s;
  }
  .tab-item i {
    font-size: 1.15rem;
  }
  .tab-item.active,
  .tab-item:hover {
    color: var(--yellow);
  }
  .page-body {
    padding: 1rem 0.75rem 5.5rem; /* bottom clears tab bar */
  }
  .topbar {
    padding: 0.7rem 0.85rem;
  }
  .topbar-title {
    font-size: 1.05rem;
  }
  .topbar-date {
    display: none; /* too cramped on small phones */
  }
  .topbar-signout-label {
    display: none; /* icon only */
  }

  /* Filter bar: stack vertically */
  .filter-bar {
    padding: 0.75rem;
  }
  .filter-bar__row {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  .filter-field,
  .filter-field--search {
    min-width: 0;
    width: 100%;
  }
  .filter-bar__actions {
    flex-direction: row;
    gap: 0.4rem;
  }
  .filter-bar__count {
    margin-left: 0;
    align-self: flex-start;
  }

  /* Stat cards: 2 per row on phone */
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .stat-card {
    padding: 1rem 0.75rem;
  }
  .stat-value {
    font-size: 1.4rem;
  }
  .stat-label {
    font-size: 0.72rem;
  }
  .stat-icon {
    font-size: 1.4rem;
  }

  /* Tables: reduce padding further, allow horizontal scroll */
  .table-wrap {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    border-radius: 0;
  }
  .table-wrap table {
    font-size: 0.78rem;
  }
  .table-wrap thead th {
    padding: 0.55rem 0.6rem;
    font-size: 0.65rem;
  }
  .table-wrap tbody td {
    padding: 0.55rem 0.6rem;
  }

  /* Pagination: smaller buttons */
  .pagination a,
  .pagination span {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  /* Cards */
  .card {
    padding: 1rem;
  }

  /* Inline table-number input */
  .table-num-input {
    width: 3.5rem;
    font-size: 0.78rem;
  }

  /* Action buttons in table rows: icon only */
  .btn.btn-sm {
    padding: 0.3rem 0.55rem;
    font-size: 0.78rem;
  }
}

/* ════════════════════════════════════════════════════════════
   PUBLIC PAGE EXTRAS
   ════════════════════════════════════════════════════════════ */

.knock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  vertical-align: middle;
}
.snail-banner {
  background: linear-gradient(135deg, var(--dark-2), var(--dark));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.order-platforms {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.83rem;
  color: var(--text-light);
  font-weight: 600;
  transition: background var(--transition);
}
.platform-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2rem;
  border: 1px solid var(--border);
}
.menu-section-hidden {
  display: none;
}
.menu-section-hidden.active {
  display: grid;
}
