:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #f0f0ed;
  --text: #171717;
  --muted: #70706b;
  --dark: #151515;
  --accent: #f4a316;
  --accent-rgb: 244, 163, 22;
  --green: #18864b;
  --danger: #c23b3b;
  --border: #e6e5df;
  --shadow: 0 14px 40px rgba(0,0,0,.07);
  --radius: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
.container { width: min(calc(100% - 28px), var(--container)); margin-inline: auto; }

.hero {
  color: white;
  background:
    radial-gradient(circle at 75% 15%, rgba(var(--accent-rgb), .18), transparent 26%),
    linear-gradient(135deg, #111, #1d1d1d 68%, #121212);
  padding: 34px 0 26px;
}
.hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.eyebrow, .section-kicker {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent);
}
.hero h1, .admin-topbar h1 {
  font-family: "Playfair Display", serif;
  margin: 0;
}
.hero h1 { font-size: clamp(34px, 7vw, 58px); line-height: 1.05; }
.hero__tagline { margin: 10px 0 0; color: #d9d9d4; font-size: 15px; }
.veg-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 800;
  font-size: 12px;
}
.veg-badge--large {
  color: #dff8e8;
  padding: 9px 12px;
  background: rgba(24,134,75,.14);
  border: 1px solid rgba(96,216,147,.28);
  border-radius: 999px;
  white-space: nowrap;
}
.veg-dot {
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 3px;
  position: relative;
}
.veg-dot::after {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  position: absolute;
  inset: 1px;
  margin: auto;
}
.menu-search-wrap { margin-top: 28px; }
.search-box {
  max-width: 760px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 16px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
}
.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 9px 0;
  color: var(--text);
  background: transparent;
}
.search-icon { color: #777; font-size: 24px; line-height: 1; }
.icon-btn {
  width: 34px; height: 34px;
  border: 0; border-radius: 10px;
  background: transparent;
  color: #777;
  font-size: 22px;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn--large { width: 40px; height: 40px; font-size: 26px; }

.category-bar-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246,246,244,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.category-bar {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }
.category-chip {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  transition: .2s ease;
}
.category-chip:hover,
.category-chip.is-active {
  color: #141414;
  border-color: var(--accent);
  background: var(--accent);
}

.menu-main { padding: 30px 0 44px; }
.menu-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}
.menu-meta h2 { margin: 0; font-size: clamp(25px, 4vw, 34px); }
.item-count {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}
.menu-section { scroll-margin-top: 86px; margin-bottom: 36px; }
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.section-head h3 { font-size: 21px; margin: 0; }
.section-head__line { height: 1px; background: var(--border); flex: 1; }
.section-count { font-size: 12px; color: var(--muted); font-weight: 700; }
.menu-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.menu-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 7px 24px rgba(0,0,0,.045);
  transition: transform .2s ease, box-shadow .2s ease;
}
.menu-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.menu-card__image-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e9e8e3;
}
.menu-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.menu-card:hover .menu-card__image { transform: scale(1.025); }
.menu-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,.94);
  border-radius: 999px;
  padding: 7px 9px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.menu-card__body { padding: 16px; }
.menu-card__name { margin: 0; font-size: 17px; line-height: 1.3; }
.menu-card__desc { margin: 7px 0 0; color: var(--muted); font-size: 13px; min-height: 20px; }
.price-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 15px;
}
.price-single {
  font-size: 19px;
  font-weight: 800;
  color: #111;
}
.price-option {
  flex: 1;
  border: 1px solid var(--border);
  background: #fafaf8;
  border-radius: 12px;
  padding: 9px 10px;
}
.price-option__label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .08em;
}
.price-option__value { display: block; font-size: 15px; font-weight: 800; margin-top: 2px; }
.price-option__portion { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }

.empty-state {
  text-align: center;
  padding: 56px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.empty-state__icon { font-size: 40px; }
.empty-state h3 { margin: 12px 0 4px; }
.empty-state p { color: var(--muted); margin: 0; }

.site-footer { background: var(--dark); color: white; padding: 32px 0 16px; }
.footer-grid { display: grid; gap: 22px; }
.footer-grid h3 { margin: 0 0 7px; font-family: "Playfair Display", serif; font-size: 24px; }
.footer-grid p { margin: 0; color: #c9c9c4; }
.footer-grid a { text-decoration: none; color: #fff; }
.footer-label { display: block; color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid #2e2e2e;
  margin-top: 28px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #888;
  font-size: 12px;
}
.admin-link { color: #bbb !important; }

/* Admin */
.admin-page { background: #f4f4f1; }
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card {
  width: min(100%, 440px);
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 26px;
  padding: 30px;
}
.brand-mark {
  width: 62px; height: 62px; display: grid; place-items: center;
  background: var(--dark); color: var(--accent);
  border-radius: 18px; font-weight: 900; margin-bottom: 22px;
}
.brand-mark--small { width: 42px; height: 42px; margin: 0; border-radius: 12px; }
.login-card h1 { margin: 2px 0 7px; font-family: "Playfair Display", serif; }
.login-card > p { margin: 0 0 22px; color: var(--muted); }
.stack-form { display: grid; gap: 14px; }
label > span { display: block; margin-bottom: 6px; font-size: 12px; color: #5f5f5b; font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid #dcdcd6;
  background: white;
  color: var(--text);
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .13);
}
textarea { resize: vertical; }
.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn--primary { background: var(--accent); color: #181818; }
.btn--ghost { background: white; color: var(--text); border: 1px solid var(--border); }
.btn--danger-soft { background: #fff0f0; color: var(--danger); border: 1px solid #f4cccc; }
.btn--full { width: 100%; }
.form-error { color: var(--danger); font-size: 13px; margin: 0; }
.security-note {
  margin-top: 18px;
  border-radius: 13px;
  padding: 12px 13px;
  background: #fff8df;
  color: #715d12;
  font-size: 12px;
  border: 1px solid #f4dfa0;
}
.security-note--panel { max-width: 760px; }

.admin-shell { min-height: 100vh; }
.admin-sidebar {
  background: #161616;
  color: white;
  padding: 18px;
}
.admin-brand { display: flex; align-items: center; gap: 12px; }
.admin-brand strong { display: block; }
.admin-brand span { color: #8f8f89; font-size: 11px; }
.admin-tabs { display: flex; gap: 7px; overflow-x: auto; margin-top: 18px; scrollbar-width: none; }
.admin-tab {
  flex: 0 0 auto;
  border: 1px solid #2b2b2b;
  color: #cfcfc9;
  background: #1d1d1d;
  border-radius: 10px;
  padding: 9px 11px;
  font-weight: 700;
  font-size: 12px;
}
.admin-tab.is-active { background: var(--accent); border-color: var(--accent); color: #151515; }
.sidebar-bottom { display: none; }
.admin-main { min-width: 0; }
.admin-topbar {
  min-height: 86px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.admin-topbar h1 { font-size: 25px; }
.mobile-nav-btn { display: none; }
.admin-panel { display: none; padding: 20px; }
.admin-panel.is-active { display: block; }
.panel-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.panel-actions h2 { margin: 0; }
.panel-actions p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.admin-filters { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 14px; }
.admin-list { display: grid; gap: 10px; }
.admin-row {
  display: grid;
  grid-template-columns: 62px minmax(0,1fr);
  gap: 12px;
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
}
.admin-row__image {
  width: 62px; height: 62px; border-radius: 12px;
  object-fit: cover; background: #ecece7;
}
.admin-row h3 { font-size: 14px; margin: 0 0 3px; }
.admin-row p { margin: 0; font-size: 11px; color: var(--muted); }
.admin-row__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.mini-btn {
  border: 1px solid var(--border);
  background: #fafaf8;
  border-radius: 9px;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 800;
}
.mini-btn--danger { color: var(--danger); background: #fff7f7; border-color: #f2d3d3; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 7px;
  margin-top: 5px;
}
.status-pill--on { background: #e8f7ee; color: var(--green); }
.status-pill--off { background: #f0f0ed; color: #777; }

.settings-grid { display: grid; gap: 15px; max-width: 780px; }
.field-wide { grid-column: 1 / -1; }
.backup-grid { display: grid; gap: 14px; }
.backup-card, .qr-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}
.backup-card h3 { margin: 0 0 6px; }
.backup-card p, .muted { color: var(--muted); font-size: 12px; }
.backup-card input { margin: 8px 0; }
.qr-panel { max-width: 650px; display: grid; gap: 14px; }
.qr-box {
  width: fit-content;
  min-height: 228px;
  min-width: 228px;
  display: grid; place-items: center;
  background: #fafafa;
  border: 1px dashed #d7d7d0;
  border-radius: 15px;
  padding: 14px;
}
.qr-box img, .qr-box canvas { max-width: 200px; height: auto !important; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.56);
  display: grid; place-items: center;
  padding: 14px;
}
.modal-card {
  width: min(100%, 760px);
  max-height: 92vh;
  overflow: auto;
  background: white;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  padding: 18px;
}
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.modal-head h2 { margin: 0; }
.editor-grid { display: grid; gap: 12px; }
.checkbox-row { display: flex; gap: 16px; flex-wrap: wrap; }
.checkbox-label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.checkbox-label input { width: auto; }
.editor-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }
.toast {
  position: fixed;
  z-index: 150;
  right: 16px;
  bottom: 16px;
  background: #1d1d1d;
  color: white;
  padding: 11px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
}

@media (min-width: 640px) {
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.5fr .8fr 1fr; }
  .admin-filters { grid-template-columns: 1fr 260px; }
  .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .backup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-row { grid-template-columns: 68px minmax(0,1fr) auto; }
  .admin-row__actions { grid-column: auto; justify-content: end; }
  .admin-row__image { width: 68px; height: 68px; }
  .editor-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .editor-grid .field-wide { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-shell { display: grid !important; grid-template-columns: 250px minmax(0,1fr); }
  .admin-sidebar {
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column;
    padding: 22px 16px;
  }
  .admin-tabs { display: grid; overflow: visible; margin-top: 28px; }
  .admin-tab { text-align: left; padding: 11px 12px; }
  .sidebar-bottom { display: grid; gap: 8px; margin-top: auto; }
  .admin-topbar { padding: 20px 28px; }
  .admin-panel { padding: 28px; }
  .backup-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .container { width: min(calc(100% - 20px), var(--container)); }
  .hero { padding-top: 26px; }
  .hero__top { display: block; }
  .veg-badge--large { margin-top: 16px; }
  .menu-meta { align-items: start; }
  .menu-meta .section-kicker { margin-bottom: 5px; }
  .price-row { gap: 6px; }
  .price-option { padding: 8px; }
  .panel-actions { align-items: flex-start; flex-direction: column; }
  .panel-actions .btn { width: 100%; }
  .login-card { padding: 22px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 32px; }
  .hero__tagline { font-size: 13px; }
  .category-chip { padding: 8px 11px; font-size: 12px; }
  .menu-card__body { padding: 14px; }
  .price-option__value { font-size: 14px; }
}
