:root {
  --space: #080914;
  --space2: #10162a;
  --panel: rgba(16, 23, 42, .78);
  --panel2: rgba(255, 255, 255, .08);
  --paper: rgba(255, 255, 255, .95);
  --ink: #f8fafc;
  --dark: #0f172a;
  --muted: #a7b0c4;
  --line: rgba(255, 255, 255, .14);
  --cyan: #35e7ff;
  --violet: #8b5cf6;
  --gold: #f7c948;
  --rose: #fb7185;
  --green: #34d399;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: Tahoma, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 9%, rgba(53, 231, 255, .19), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(139, 92, 246, .22), transparent 26%),
    linear-gradient(145deg, #050611, #11182d 52%, #070a16);
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .58;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.8) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(53,231,255,.8) 0 1px, transparent 1px);
  background-size: 92px 92px, 137px 137px;
  background-position: 0 0, 38px 51px;
}

.app-shell {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 12px 12px 96px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  background: rgba(8, 9, 20, .82);
  backdrop-filter: blur(16px);
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #020617;
  font-weight: 900;
  font-size: 24px;
  box-shadow: 0 0 28px rgba(53,231,255,.34);
}
.topbar h1 { margin: 0; font-size: clamp(22px, 6vw, 38px); line-height: 1; }
.topbar p { margin: 5px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.admin-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.hero-strip {
  min-height: 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
  align-items: center;
  margin: 8px 0 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.04)),
    radial-gradient(circle at 82% 20%, rgba(247,201,72,.22), transparent 38%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-strip span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(53,231,255,.38);
  border-radius: 999px;
  color: #b8f8ff;
  font-size: 12px;
  font-weight: 900;
}
.hero-strip strong {
  display: block;
  max-width: 620px;
  font-size: clamp(26px, 7vw, 52px);
  line-height: 1.04;
}
.hero-strip p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.hero-strip img {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  filter: drop-shadow(0 22px 28px rgba(0,0,0,.42));
}

.offers-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
}
.offers-rail::-webkit-scrollbar, .categories::-webkit-scrollbar { display: none; }
.offer-chip {
  flex: 0 0 210px;
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(247,201,72,.38);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(247,201,72,.18), rgba(139,92,246,.16));
  color: var(--ink);
  text-align: right;
}
.offer-chip span { font-weight: 900; }
.offer-chip strong { font-size: 24px; color: var(--gold); }
.offer-chip small { color: var(--muted); }

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 98px;
  gap: 8px;
  margin-bottom: 10px;
}
.search-row input, .search-row button {
  height: 50px;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.search-row input {
  width: 100%;
  padding: 0 14px;
  background: rgba(255,255,255,.94);
  color: var(--dark);
  outline: none;
}
.search-row input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(53,231,255,.15); }
.search-row button {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #020617;
  font-weight: 900;
}
#cartCount {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  border-radius: 999px;
  background: #020617;
  color: #fff;
}

.categories {
  position: sticky;
  top: 68px;
  z-index: 9;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 12px;
  background: rgba(8, 9, 20, .82);
  backdrop-filter: blur(16px);
}
.cat-btn {
  flex: 0 0 auto;
  min-width: 92px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: var(--muted);
  font-weight: 900;
}
.cat-btn.active {
  background: rgba(53,231,255,.2);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 22px rgba(53,231,255,.18);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.dish-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  min-height: 142px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.09);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}
.dish-card.unavailable { opacity: .52; }
.dish-img {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.1);
}
.dish-img img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(52,211,153,.92);
  color: #03120d;
  font-size: 10px;
  font-weight: 900;
}
.offer-badge { top: auto; bottom: 8px; background: rgba(247,201,72,.95); }
.dish-info { display: grid; gap: 7px; min-width: 0; }
.dish-info h3 { margin: 0; font-size: 18px; line-height: 1.2; }
.dish-info p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.option-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.option-tags span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #dbeafe;
  font-size: 10px;
  font-weight: 800;
}
.dish-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.price { display: block; font-weight: 900; font-size: 18px; color: #fff; }
del { display: block; color: #94a3b8; font-size: 12px; }
.prep { color: var(--muted); font-size: 11px; font-weight: 800; }
.add-btn {
  height: 40px;
  min-width: 84px;
  border: 0;
  border-radius: 14px;
  background: var(--rose);
  color: #fff;
  font-weight: 900;
}
.add-btn:disabled { background: #64748b; cursor: not-allowed; }

.cart-drawer, .option-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  background: rgba(2, 6, 23, .72);
}
.cart-drawer.open, .option-sheet.open { display: block; }
.cart-panel, .option-panel {
  position: absolute;
  inset: auto 0 0 0;
  max-height: 92vh;
  overflow: auto;
  padding: 14px;
  border-radius: 28px 28px 0 0;
  background: #0f172a;
  border: 1px solid var(--line);
  box-shadow: 0 -26px 60px rgba(0,0,0,.42);
}
.option-panel { display: grid; gap: 12px; }
.option-panel img { width: 100%; height: 190px; object-fit: cover; border-radius: 20px; }
.option-panel h2, .option-panel p { margin: 0; }
.option-panel p { color: var(--muted); line-height: 1.6; }
.close-btn, .cart-head button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 24px;
}
.close-btn { position: absolute; top: 18px; left: 18px; z-index: 2; }
.option-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dbeafe;
}
.choice.active { border-color: var(--cyan); background: rgba(53,231,255,.12); color: #fff; }
.choice input { width: auto; height: auto; }
.cart-head, .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cart-head h2, .section-head h2 { margin: 0; }
.cart-items { display: grid; gap: 8px; margin: 14px 0; }
.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
}
.cart-line b { display: block; font-size: 14px; }
.cart-line small { color: var(--muted); font-weight: 800; }
.qty { display: grid; grid-template-columns: 32px 32px 32px; gap: 4px; align-items: center; text-align: center; }
.qty button { height: 32px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font-weight: 900; }

.order-form, .admin-form { display: grid; gap: 10px; }
label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 900; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  color: var(--dark);
  outline: none;
}
input, select { height: 46px; padding: 0 12px; }
textarea { min-height: 76px; resize: vertical; padding: 12px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.totals {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px dashed rgba(255,255,255,.2);
  font-weight: 900;
}
.discount-line strong { color: var(--green); }
.grand { font-size: 19px; color: #fff; }
.submit-order, .admin-form button, .login-card button, .section-head button {
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #020617;
  font-weight: 900;
}
.order-msg { min-height: 22px; margin: 0; color: var(--green); font-weight: 900; text-align: center; }
.empty {
  padding: 28px 14px;
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.admin-body { background: #070a16; }
.login-card, .admin-shell {
  position: relative;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 12px;
}
.login-card {
  width: min(420px, calc(100% - 24px));
  margin-top: 12vh;
  padding: 22px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.login-card h1 { margin: 0 0 8px; }
.login-card p { margin: 0 0 14px; color: var(--muted); }
.login-card form { display: grid; gap: 10px; }
.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.admin-header h1 { margin: 0; }
.admin-header p { margin: 6px 0 0; color: var(--muted); }
.admin-actions, .admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-actions a, .tab-btn {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}
.admin-tabs { margin: 12px 0; }
.tab-btn.active { background: rgba(53,231,255,.2); border-color: var(--cyan); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.admin-grid.two-cols {
  display: grid;
  grid-template-columns: minmax(360px, .85fr) minmax(0, 1.15fr);
  gap: 12px;
}
.admin-card {
  padding: 14px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.orders-list, .admin-items { display: grid; gap: 10px; margin-top: 12px; }
.order-card, .admin-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
}
.order-card header, .admin-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.admin-item.rich {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
}
.admin-item img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}
.order-card h3, .admin-item h3 { margin: 0 0 4px; font-size: 16px; }
.order-card p, .admin-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.order-card ul { margin: 10px 0; padding: 0 18px 0 0; }
.status-select { min-width: 128px; height: 40px; border-radius: 12px; }
.mini-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; }
.admin-item button {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-weight: 900;
}
.checks { display: flex; gap: 14px; flex-wrap: wrap; }
.checks label { display: flex; align-items: center; gap: 7px; }
.checks input { width: auto; height: auto; }
.image-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 760px) {
  .app-shell { padding-inline: 20px; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .dish-card { grid-template-columns: 136px minmax(0, 1fr); }
  .dish-img { width: 136px; height: 136px; }
  .cart-panel, .option-panel { width: min(470px, 100%); inset: 0 0 0 auto; border-radius: 28px 0 0 28px; max-height: 100vh; }
}

@media (min-width: 1100px) {
  .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .admin-header, .admin-grid.two-cols { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .hero-strip { grid-template-columns: 1fr 96px; min-height: 120px; padding: 14px; border-radius: 22px; }
  .hero-strip img { width: 96px; height: 96px; border-radius: 22px; }
  .hero-strip p { display: none; }
  .dish-card { grid-template-columns: 96px minmax(0, 1fr); min-height: 124px; gap: 10px; }
  .dish-img { width: 96px; height: 96px; }
  .dish-info h3 { font-size: 16px; }
  .price { font-size: 16px; }
  .add-btn { min-width: 76px; height: 38px; }
  .form-row.two { grid-template-columns: 1fr; }
  .admin-item.rich { grid-template-columns: 54px minmax(0, 1fr); }
  .admin-item.rich .mini-actions { grid-column: 1 / -1; justify-content: stretch; }
  .mini-actions button { flex: 1; }
}

/* Refined luxury space theme overrides */
:root {
  --space: #060814;
  --space2: #101521;
  --panel: rgba(11, 17, 32, .84);
  --panel2: rgba(255, 255, 255, .065);
  --cyan: #9be7ff;
  --violet: #b9a7ff;
  --gold: #d9b76b;
  --rose: #d86d7e;
  --shadow: 0 26px 80px rgba(0, 0, 0, .38);
}
body {
  background:
    radial-gradient(circle at 14% 9%, rgba(155, 231, 255, .12), transparent 25%),
    radial-gradient(circle at 88% 18%, rgba(185, 167, 255, .14), transparent 28%),
    linear-gradient(145deg, #050611, #101522 54%, #070a16);
}
.stars { opacity: .32; }
.brand-mark,
.search-row button,
.submit-order,
.admin-form button,
.login-card button,
.section-head button {
  background: linear-gradient(135deg, #f9e7b2, var(--gold));
  color: #17120a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48), 0 14px 30px rgba(0,0,0,.2);
}
.hero-strip {
  background:
    linear-gradient(135deg, rgba(255,255,255,.105), rgba(255,255,255,.035)),
    radial-gradient(circle at 82% 20%, rgba(217,183,107,.18), transparent 39%);
}
.hero-strip span {
  border-color: rgba(217,183,107,.45);
  color: #f5dfad;
}
.closed-note {
  display: none;
  width: fit-content;
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(216,109,126,.42);
  border-radius: 999px;
  background: rgba(216,109,126,.14);
  color: #ffd7de;
  font-weight: 900;
  font-size: 12px;
}
.ordering-off .closed-note { display: block; }
.offer-chip {
  border-color: rgba(217,183,107,.36);
  background: linear-gradient(135deg, rgba(217,183,107,.16), rgba(185,167,255,.10));
}
.offer-chip strong { color: #f5dfad; }
.cat-btn.active {
  background: rgba(217,183,107,.16);
  border-color: var(--gold);
  box-shadow: 0 0 22px rgba(217,183,107,.13);
}
.dish-card {
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.055));
}
.add-btn {
  background: linear-gradient(135deg, #d86d7e, #9b4eab);
}
.add-btn:disabled {
  background: #475569;
  color: #cbd5e1;
}
.choice.active {
  border-color: var(--gold);
  background: rgba(217,183,107,.13);
}
.tab-btn.active {
  background: rgba(217,183,107,.16);
  border-color: var(--gold);
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}
.switch-row strong { display: block; color: #fff; margin-bottom: 4px; }
.switch-row span { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.switch {
  flex: 0 0 auto;
  display: block;
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch i {
  display: block;
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: #475569;
  border: 1px solid var(--line);
  position: relative;
}
.switch i:before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  top: 3px;
  right: 4px;
  border-radius: 50%;
  background: #fff;
  transition: .18s ease;
}
.switch input:checked + i {
  background: linear-gradient(135deg, #f9e7b2, var(--gold));
}
.switch input:checked + i:before {
  right: 28px;
  background: #17120a;
}

/* App redesign */
.app-body {
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 183, 107, .12), transparent 28%),
    linear-gradient(180deg, #111112 0%, #191817 46%, #0f0f10 100%);
}
.app-frame {
  position: relative;
  width: min(520px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: 10px 12px 92px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
}
.app-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) 44px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  background: rgba(17,17,18,.88);
  backdrop-filter: blur(18px);
}
.app-top h1 { margin: 0; font-size: 20px; letter-spacing: 0; }
.app-top p { margin: 4px 0 0; color: #a8a29e; font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 15px;
  background: rgba(255,255,255,.065);
  color: #f7efe2;
  text-decoration: none;
  font-weight: 900;
}
.app-content { display: grid; gap: 14px; }
.slider-section { display: grid; gap: 9px; }
.hero-slider {
  position: relative;
  height: 238px;
  border-radius: 30px;
  overflow: hidden;
  background: #201f1d;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 24px 50px rgba(0,0,0,.34);
}
.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) 42%;
  align-items: center;
  gap: 8px;
  padding: 18px;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .35s ease, transform .35s ease;
  background:
    radial-gradient(circle at 82% 18%, rgba(217,183,107,.24), transparent 36%),
    linear-gradient(135deg, #24211d, #111112);
}
.slide.active { opacity: 1; transform: scale(1); }
.slide-copy { min-width: 0; }
.slide-copy span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(217,183,107,.14);
  color: #f5dfad;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 10px;
}
.slide-copy h2 {
  margin: 0;
  font-size: clamp(24px, 8vw, 38px);
  line-height: 1.05;
}
.slide-copy p {
  margin: 8px 0 12px;
  color: #b9b2a8;
  font-size: 12px;
  line-height: 1.55;
}
.slide-copy button {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f9e7b2, #d9b76b);
  color: #17120a;
  font-weight: 900;
}
.slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.38));
}
.slider-dots { display: flex; justify-content: center; gap: 6px; }
.slider-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
}
.slider-dots button.active { width: 24px; background: #d9b76b; }
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}
.quick-stats div {
  min-height: 70px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.055);
}
.quick-stats strong { font-size: 22px; color: #f5dfad; }
.quick-stats span { color: #a8a29e; font-size: 11px; font-weight: 900; }
.screen-block {
  padding: 13px;
  border-radius: 24px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}
.block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.block-head h2 { margin: 0; font-size: 18px; }
.block-head button {
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #f7efe2;
  padding: 8px 11px;
  font-weight: 900;
}
.screen-block .categories {
  position: static;
  background: transparent;
  backdrop-filter: none;
  padding: 0;
}
.screen-block .search-row { margin-bottom: 12px; }
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 25;
  width: min(496px, calc(100% - 22px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 6px;
  padding: 8px;
  border-radius: 24px;
  background: rgba(18,18,19,.88);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.42);
  backdrop-filter: blur(18px);
}
.bottom-nav button {
  height: 50px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #a8a29e;
  font-size: 11px;
  font-weight: 900;
}
.bottom-nav button span {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #f5dfad;
  font-size: 15px;
}
.bottom-nav button:active,
.bottom-nav button:hover {
  background: rgba(217,183,107,.12);
  color: #fff;
}
.bottom-nav #bottomCartCount {
  border-radius: 999px;
  background: #d9b76b;
  color: #17120a;
  font-size: 12px;
}
.app-frame .menu-grid { grid-template-columns: 1fr; }
.app-frame .dish-card {
  background: rgba(20,20,21,.74);
  border-color: rgba(255,255,255,.08);
}
.app-frame .cart-panel,
.app-frame .option-panel,
.cart-panel,
.option-panel {
  background: #151515;
}
@media (min-width: 760px) {
  .app-frame .menu-grid { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .hero-slider { height: 214px; border-radius: 26px; }
  .slide { grid-template-columns: minmax(0,1fr) 36%; padding: 15px; }
  .slide-copy p { display: none; }
  .slide img { border-radius: 20px; }
  .screen-block { padding: 11px; }
}

/* Category-card layout inspired by the reference app */
.app-body:before {
  display: none;
}
.app-frame:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 31%;
  max-width: 170px;
  background: linear-gradient(180deg, #f53652, #d91f3d);
  pointer-events: none;
  z-index: 0;
}
.app-frame {
  width: min(430px, 100%);
  isolation: isolate;
  background: #f8f5f2;
  color: #2b3445;
  overflow: clip;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 30px 80px rgba(0,0,0,.38);
}
.app-frame > * { position: relative; z-index: 1; }
.app-top {
  background: transparent;
  padding: 14px 14px 8px;
}
.app-top h1 { color: #2f394c; }
.app-top p { color: #8d8f96; }
.icon-btn {
  background: rgba(255,255,255,.82);
  color: #f53652;
  border-color: rgba(0,0,0,.05);
}
.screen-block {
  background: transparent;
  border: 0;
  padding: 0;
}
.screen-block .categories {
  display: grid;
  gap: 22px;
  overflow: visible;
}
.cat-btn {
  position: relative;
  width: calc(100% - 28px);
  min-height: 104px;
  margin-inline-start: 0;
  margin-inline-end: 34px;
  padding: 16px 82px 16px 58px;
  display: grid;
  align-content: center;
  text-align: right;
  border: 0;
  border-radius: 17px;
  background: #fff;
  color: #30394c;
  box-shadow: 0 12px 26px rgba(34,38,47,.10);
}
.cat-btn.active {
  background: #fff;
  border: 0;
  box-shadow: 0 16px 32px rgba(245,54,82,.20);
}
.cat-btn img {
  position: absolute;
  right: -34px;
  left: auto;
  top: 50%;
  width: 76px;
  height: 76px;
  transform: translateY(-50%) rotate(-8deg);
  border-radius: 28px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 12px 24px rgba(0,0,0,.16);
}
.cat-btn span {
  display: block;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 1px;
}
.cat-btn small {
  margin-top: 9px;
  color: #a0a1a8;
  font-size: 13px;
  font-weight: 700;
}
.cat-btn i {
  position: absolute;
  left: -18px;
  right: auto;
  top: 50%;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #fff;
  color: #f53652;
  font-size: 30px;
  font-style: normal;
  box-shadow: 0 10px 22px rgba(34,38,47,.10);
}
.hero-slider {
  height: 250px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(34,38,47,.10);
  border-color: rgba(0,0,0,.04);
}
.slide {
  grid-template-columns: minmax(0,1fr) 39%;
  background: linear-gradient(135deg, #ffffff, #fff3f5);
  color: #30394c;
}
.slide-copy span {
  background: rgba(245,54,82,.10);
  color: #f53652;
}
.slide-copy p { color: #8d8f96; }
.slide-copy h2 {
  max-width: 245px;
  color: #30394c;
  font-size: clamp(26px, 7vw, 40px);
}
.slide-copy p {
  max-width: 230px;
}
.slide img {
  min-width: 0;
  max-height: 180px;
}
.slide-copy button,
.search-row button,
.submit-order,
.bottom-nav #bottomCartCount {
  background: #f53652;
  color: #fff;
  box-shadow: none;
}
.slider-dots button.active { background: #f53652; }
.quick-stats div,
.offer-chip,
.dish-card,
.pick-result {
  background: #fff;
  color: #30394c;
  border-color: rgba(0,0,0,.05);
  box-shadow: 0 10px 24px rgba(34,38,47,.08);
}
.quick-stats strong,
.offer-chip strong,
.price { color: #30394c; }
.quick-stats span,
.offer-chip small,
.dish-info p,
.prep { color: #8d8f96; }
.option-tags span {
  background: #f5f1ef;
  color: #6b7280;
}
.search-row input {
  background: #fff;
  color: #30394c;
  border-color: rgba(0,0,0,.06);
}
.add-btn {
  background: #f53652;
}
.pick-block { display: grid; gap: 10px; }
.pick-result {
  min-height: 104px;
  display: grid;
  grid-template-columns: 78px minmax(0,1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
}
.pick-result img,
.pick-orbit {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  object-fit: cover;
}
.pick-orbit {
  display: grid;
  place-items: center;
  background: #f53652;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}
.pick-result strong { display: block; font-size: 18px; margin-bottom: 5px; }
.pick-result p { margin: 0 0 6px; color: #8d8f96; font-size: 12px; line-height: 1.5; }
.pick-result span { color: #f53652; font-weight: 900; font-size: 13px; }
.pick-result.spinning img,
.pick-result.spinning .pick-orbit {
  animation: spinDish .45s linear infinite;
}
.pick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pick-actions button {
  height: 46px;
  border: 0;
  border-radius: 16px;
  font-weight: 900;
}
#rerollPickBtn { background: #fff; color: #30394c; }
#addPickBtn { background: #f53652; color: #fff; }
#addPickBtn:disabled { background: #d6d3d1; color: #888; }
@keyframes spinDish {
  to { transform: rotate(360deg) scale(.92); }
}
.bottom-nav {
  background: rgba(255,255,255,.94);
  border-color: rgba(0,0,0,.06);
  width: min(404px, calc(100% - 28px));
}
.bottom-nav button { color: #8d8f96; }
.bottom-nav button span { color: #f53652; }
.cart-panel,
.option-panel {
  background: #fff;
  color: #30394c;
}
.cart-line {
  background: #f8f5f2;
  border-color: rgba(0,0,0,.05);
}
.cart-line small,
.option-panel p { color: #8d8f96; }
.totals { border-top-color: rgba(0,0,0,.08); }
.grand { color: #30394c; }
.close-btn,
.cart-head button {
  background: #f5f1ef;
  color: #30394c;
}
.choice {
  color: #30394c;
  border-color: rgba(0,0,0,.08);
}
.choice.active {
  border-color: #f53652;
  background: rgba(245,54,82,.08);
}
@media (max-width: 430px) {
  .app-frame { width: 100%; }
  .cat-btn {
    min-height: 94px;
    padding: 13px 50px 13px 72px;
  }
  .cat-btn img { width: 66px; height: 66px; right: -28px; left: auto; }
  .cat-btn span { font-size: 22px; }
  .hero-slider { height: 232px; }
  .slide { grid-template-columns: minmax(0,1fr) 35%; }
  .slide-copy h2 { font-size: 28px; }
  .bottom-nav { width: calc(100% - 22px); }
}

/* Food delivery mockup style */
.app-body {
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.20), transparent 24%),
    linear-gradient(135deg, #ff990f, #f57500);
  color: #1f2937;
}
.stars,
.app-frame:before {
  display: none;
}
.app-frame {
  width: min(390px, 100%);
  min-height: 100svh;
  background: #f7f8fb;
  color: #1f2937;
  border-radius: 0;
  box-shadow: 0 28px 70px rgba(76, 36, 0, .28);
  padding: 0 12px 88px;
}
.app-top {
  height: 78px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 42px;
  align-items: center;
  padding: 10px 0 6px;
  background: #f7f8fb;
}
.app-top h1 {
  font-size: 15px;
  color: #1f2937;
  line-height: 1.15;
}
.app-top p {
  font-size: 10px;
  color: #9ca3af;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #fff;
  color: #ff7a00;
  border: 1px solid #edf0f5;
  box-shadow: 0 8px 18px rgba(31,41,55,.06);
}
.app-content {
  gap: 12px;
}
.slider-section {
  gap: 7px;
}
.hero-slider {
  height: 118px;
  border-radius: 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.slide {
  grid-template-columns: minmax(0,1fr) 42%;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff7a00, #ff3f3f);
  color: #fff;
  overflow: hidden;
}
.slide-copy span {
  display: none;
}
.slide-copy h2 {
  max-width: 180px;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}
.slide-copy p {
  max-width: 170px;
  display: block;
  margin: 5px 0 8px;
  color: rgba(255,255,255,.78);
  font-size: 10px;
  line-height: 1.45;
}
.slide-copy button {
  height: 27px;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff;
  color: #ff5a00;
  font-size: 10px;
}
.slide img {
  width: 100%;
  max-height: 96px;
  border-radius: 12px;
  object-fit: cover;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.22));
}
.slider-dots button {
  background: #d7dce5;
}
.slider-dots button.active {
  background: #ff7a00;
}
.quick-stats {
  display: none;
}
.screen-block {
  padding: 0;
  background: transparent;
  border: 0;
}
.block-head {
  margin: 0 0 9px;
}
.block-head h2 {
  font-size: 16px;
  color: #1f2937;
}
.block-head button {
  padding: 0;
  background: transparent;
  color: #ff7a00;
  font-size: 11px;
}
.offers-rail {
  padding-bottom: 0;
}
.offer-chip {
  flex: 0 0 154px;
  min-height: 68px;
  padding: 9px 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #edf0f5;
  color: #1f2937;
  box-shadow: 0 8px 18px rgba(31,41,55,.06);
}
.offer-chip span {
  font-size: 12px;
}
.offer-chip strong {
  color: #ff5a00;
  font-size: 20px;
}
.offer-chip small {
  color: #9ca3af;
  font-size: 10px;
}
.screen-block .categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 2px;
  scrollbar-width: none;
}
.cat-btn {
  flex: 0 0 64px;
  width: 64px;
  min-width: 64px;
  min-height: 74px;
  margin: 0;
  padding: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #6b7280;
  text-align: center;
}
.cat-btn.active {
  background: transparent;
  box-shadow: none;
  color: #ff7a00;
}
.cat-btn img {
  position: static;
  width: 48px;
  height: 48px;
  transform: none;
  border-radius: 16px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 8px 18px rgba(31,41,55,.07);
}
.cat-btn span {
  width: 100%;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-btn small,
.cat-btn i {
  display: none;
}
.search-row {
  grid-template-columns: minmax(0,1fr) 82px;
  margin-bottom: 12px;
}
.search-row input,
.search-row button {
  height: 42px;
  border-radius: 12px;
  border-color: #edf0f5;
}
.search-row input {
  background: #fff;
  color: #1f2937;
  font-size: 12px;
}
.search-row button {
  background: #ff7a00;
  color: #fff;
  font-size: 12px;
}
.app-frame .menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.app-frame .dish-card {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  gap: 8px;
  padding: 9px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #edf0f5;
  box-shadow: 0 8px 18px rgba(31,41,55,.06);
}
.dish-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.15 / 1;
  border-radius: 14px;
  background: #f3f4f6;
}
.dish-img img {
  object-fit: cover;
}
.badge {
  font-size: 9px;
  padding: 3px 6px;
  background: #ff7a00;
  color: #fff;
}
.offer-badge {
  background: #16a34a;
}
.dish-info {
  gap: 5px;
}
.dish-info h3 {
  font-size: 12px;
  color: #1f2937;
  line-height: 1.25;
  min-height: 30px;
}
.dish-info p {
  display: none;
}
.option-tags {
  display: none;
}
.dish-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  align-items: start;
}
.price {
  display: inline-block;
  color: #ff5a00;
  font-size: 13px;
}
del {
  font-size: 10px;
}
.prep {
  display: block;
  color: #9ca3af;
  font-size: 10px;
}
.add-btn {
  width: 100%;
  height: 30px;
  min-width: 0;
  border-radius: 9px;
  background: #ff7a00;
  font-size: 11px;
}
.pick-block {
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31,41,55,.06);
}
.pick-result {
  box-shadow: none;
  border: 1px solid #edf0f5;
}
.bottom-nav {
  width: min(366px, calc(100% - 22px));
  grid-template-columns: repeat(5,1fr);
  padding: 7px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #edf0f5;
  box-shadow: 0 14px 34px rgba(31,41,55,.14);
}
.bottom-nav button {
  height: 48px;
  border-radius: 16px;
  color: #9ca3af;
  font-size: 10px;
}
.bottom-nav button span {
  color: #ff7a00;
  font-size: 14px;
}
.cart-panel,
.option-panel {
  width: min(390px, 100%);
  background: #fff;
  color: #1f2937;
}
.empty.compact {
  background: #fff;
  color: #9ca3af;
}
@media (min-width: 700px) {
  .app-frame {
    margin-top: 28px;
    margin-bottom: 28px;
    min-height: 820px;
    border-radius: 34px;
  }
}
@media (max-width: 430px) {
  .app-frame {
    width: 100%;
    min-height: 100svh;
    border-radius: 0;
  }
  .hero-slider {
    height: 112px;
  }
  .slide {
    grid-template-columns: minmax(0,1fr) 39%;
  }
  .slide-copy h2 {
    font-size: 14px;
  }
  .slide-copy p {
    display: block;
  }
  .cat-btn img {
    width: 46px;
    height: 46px;
    right: auto;
    left: auto;
  }
}

/* Final polish: fonts, icons, clearer random picker, and desktop layout */
.font-Cairo,
.font-Cairo button,
.font-Cairo input,
.font-Cairo select,
.font-Cairo textarea { font-family: "Cairo", Tahoma, Arial, sans-serif; }
.font-Tajawal,
.font-Tajawal button,
.font-Tajawal input,
.font-Tajawal select,
.font-Tajawal textarea { font-family: "Tajawal", Tahoma, Arial, sans-serif; }
.font-Almarai,
.font-Almarai button,
.font-Almarai input,
.font-Almarai select,
.font-Almarai textarea { font-family: "Almarai", Tahoma, Arial, sans-serif; }
.font-System,
.font-System button,
.font-System input,
.font-System select,
.font-System textarea { font-family: Tahoma, Arial, sans-serif; }

.icon-btn svg,
.nav-ico svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.icon-btn {
  transition: transform .18s ease, box-shadow .18s ease;
}
.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255,122,0,.14);
}
.bottom-nav button:nth-child(3) {
  color: #ff5a00;
  background: rgba(255,122,0,.08);
}

.pick-block {
  position: relative;
  overflow: hidden;
}
.pick-block:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 15%, rgba(255,122,0,.14), transparent 38%);
  pointer-events: none;
}
.pick-block > * {
  position: relative;
}
.pick-spotlight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.pick-spotlight span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff3e6;
  color: #ff6a00;
  font-size: 10px;
  font-weight: 900;
}
.pick-spotlight strong {
  color: #111827;
  font-size: 15px;
}
#spinPickBtn {
  min-height: 34px;
  padding-inline: 12px;
  background: #ff7a00;
  color: #fff;
  box-shadow: 0 9px 18px rgba(255,122,0,.18);
}
.pick-result {
  background: linear-gradient(135deg, #fff, #fff8f0);
}
.pick-orbit {
  box-shadow: 0 12px 22px rgba(255,90,0,.18);
}

.dish-card {
  overflow: hidden;
}
.dish-img {
  min-height: 116px;
}
.dish-info h3,
.dish-info p,
.cat-btn span {
  overflow-wrap: anywhere;
}

@media (min-width: 900px) {
  .app-body {
    padding: 28px;
  }
  .app-frame {
    width: min(1180px, 100%);
    min-height: calc(100svh - 56px);
    border-radius: 34px;
    padding: 0 22px 96px;
    overflow: visible;
  }
  .app-top {
    height: 88px;
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    border-radius: 34px 34px 0 0;
  }
  .app-top h1 {
    font-size: 24px;
  }
  .app-top p {
    font-size: 13px;
  }
  .icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }
  .app-content {
    grid-template-columns: 330px minmax(0, 1fr);
    grid-template-areas:
      "hero hero"
      "offers menu"
      "cats menu"
      "pick menu";
    align-items: start;
    gap: 18px;
  }
  .slider-section { grid-area: hero; }
  #offersBlock { grid-area: offers; }
  #categoriesBlock { grid-area: cats; }
  #pickBlock { grid-area: pick; }
  #menuBlock { grid-area: menu; }
  .hero-slider {
    height: 236px;
    border-radius: 24px;
  }
  .slide {
    grid-template-columns: minmax(0, 1fr) 310px;
    padding: 26px 34px;
  }
  .slide-copy h2 {
    max-width: 520px;
    font-size: 32px;
  }
  .slide-copy p {
    max-width: 520px;
    font-size: 13px;
  }
  .slide img {
    max-height: 188px;
  }
  .offers-rail {
    display: grid;
    overflow: visible;
  }
  .offer-chip {
    width: 100%;
    flex-basis: auto;
  }
  .screen-block .categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    overflow: visible;
  }
  .cat-btn {
    width: 100%;
    min-width: 0;
    min-height: 76px;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    align-content: center;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    text-align: right;
  }
  .cat-btn img {
    width: 54px;
    height: 54px;
  }
  .cat-btn span {
    font-size: 14px;
    white-space: normal;
  }
  .app-frame .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .app-frame .dish-card {
    min-height: 292px;
  }
  .dish-img {
    min-height: 142px;
    aspect-ratio: 1.28 / 1;
  }
  .search-row {
    grid-template-columns: minmax(0, 1fr) 120px;
  }
  .bottom-nav {
    width: min(620px, calc(100% - 56px));
  }
  .cart-panel,
  .option-panel {
    width: min(470px, 100%);
  }
}

@media (min-width: 1200px) {
  .app-frame .menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Mobile lock: full app width with no clipped content */
@media (max-width: 899px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }
  .app-body {
    padding: 0;
    background: #f7f8fb;
  }
  .app-frame {
    width: 100%;
    max-width: none;
    min-height: 100svh;
    margin: 0;
    border-radius: 0;
    padding: 0 12px 92px;
    box-shadow: none;
    overflow-x: hidden;
  }
  .app-top,
  .app-content,
  .slider-section,
  .screen-block,
  .search-row,
  .menu-grid,
  .dish-card,
  .slide,
  .slide-copy {
    min-width: 0;
  }
  .app-top {
    left: 0;
    right: 0;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }
  .app-top h1,
  .app-top p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .icon-btn {
    width: 38px;
    height: 38px;
  }
  .hero-slider {
    width: 100%;
    height: 124px;
    border-radius: 17px;
  }
  .slide {
    grid-template-columns: minmax(0, 1fr) minmax(104px, 38%);
    padding: 12px;
  }
  .slide-copy h2 {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.25;
  }
  .slide-copy p {
    max-width: 100%;
    font-size: 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .slide img {
    width: 100%;
    min-width: 0;
    max-height: 98px;
  }
  .screen-block .categories {
    width: 100%;
    max-width: 100%;
  }
  .cat-btn {
    flex: 0 0 62px;
    min-width: 62px;
    width: 62px;
  }
  .cat-btn img {
    width: 47px;
    height: 47px;
  }
  .app-frame .menu-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .app-frame .dish-card {
    width: 100%;
    min-width: 0;
    padding: 8px;
    border-radius: 15px;
  }
  .dish-img {
    min-height: 112px;
    aspect-ratio: 1.08 / 1;
  }
  .dish-info h3 {
    font-size: 12px;
    min-height: 32px;
  }
  .price {
    font-size: 12px;
  }
  .add-btn {
    height: 31px;
  }
  .bottom-nav {
    width: calc(100vw - 20px);
    max-width: 390px;
    bottom: max(8px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 340px) {
  .app-frame .menu-grid {
    grid-template-columns: 1fr;
  }
  .hero-slider {
    height: 138px;
  }
  .slide {
    grid-template-columns: minmax(0, 1fr) 92px;
  }
}

/* Brand color layer */
.app-body,
.admin-body {
  --brand: #ff7a00;
  --page-bg: #ff8a00;
  --brand-strong: color-mix(in srgb, var(--brand) 82%, #d73535);
  --brand-soft: color-mix(in srgb, var(--brand) 12%, #ffffff);
}
.app-body {
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.20), transparent 24%),
    linear-gradient(135deg, var(--page-bg), color-mix(in srgb, var(--page-bg) 78%, #d95800));
}
.admin-body.theme-delivery {
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.10), transparent 24%),
    linear-gradient(135deg, var(--page-bg), color-mix(in srgb, var(--page-bg) 72%, #0f172a));
}
.brand-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 100%;
}
.brand-title img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 7px 16px rgba(31,41,55,.10);
}
.brand-title h1 {
  min-width: 0;
}
.top-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  color: var(--brand);
  border: 1px solid #edf0f5;
  box-shadow: 0 8px 18px rgba(31,41,55,.06);
  font-weight: 900;
  font-size: 18px;
}
.top-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.language-switch {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 10px;
  padding: 5px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
}
.language-switch button {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  font-weight: 900;
}
.language-switch button.active {
  background: var(--brand);
  color: #fff;
}
.admin-language {
  position: sticky;
  top: 10px;
  z-index: 40;
  margin-top: 10px;
}
.lang-en {
  direction: ltr;
}
.lang-en .app-top,
.lang-en .block-head,
.lang-en .dish-meta,
.lang-en .cart-head,
.lang-en .order-foot {
  direction: ltr;
}
.lang-en .dish-info,
.lang-en .slide-copy,
.lang-en .offer-chip,
.lang-en .pick-result,
.lang-en .order-form {
  text-align: left;
}
.slide {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}
.slide-copy button,
.search-row button,
.add-btn,
#spinPickBtn,
#addPickBtn,
.submit-order,
.admin-form button,
.login-card button,
.section-head button,
.bottom-nav #bottomCartCount {
  background: var(--brand);
  color: #fff;
}
.icon-btn,
.bottom-nav button span,
.bottom-nav .nav-ico,
.block-head button,
.offer-chip strong,
.price,
.cat-btn.active,
.pick-result span {
  color: var(--brand);
}
.slider-dots button.active,
.badge {
  background: var(--brand);
}
.bottom-nav button.active,
.bottom-nav button:nth-child(3) {
  background: var(--brand-soft);
  color: var(--brand);
}
.pick-spotlight span {
  background: var(--brand-soft);
  color: var(--brand);
}
.choice.active,
.search-row input:focus {
  border-color: var(--brand);
}
input[type="color"] {
  padding: 4px;
  cursor: pointer;
}
.admin-toast {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 100;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 14px;
  border-radius: 16px;
  background: #101827;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: .2s ease;
  font-weight: 900;
}
.admin-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.admin-toast.success {
  background: #047857;
}
.admin-toast.error {
  background: #b91c1c;
}
.danger-btn,
.admin-item button.danger-btn,
.order-card .danger-btn {
  border-color: rgba(239, 68, 68, .28);
  background: rgba(239, 68, 68, .10);
  color: #ef4444;
}
.danger-btn:hover,
.admin-item button.danger-btn:hover,
.order-card .danger-btn:hover {
  background: #ef4444;
  color: #fff;
}
.order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.order-foot .danger-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-weight: 900;
}

.theme-clean.app-body {
  background: linear-gradient(135deg, var(--page-bg), color-mix(in srgb, var(--page-bg) 18%, #ffffff));
}
.theme-clean .app-frame {
  background: #ffffff;
}
.theme-clean .app-top {
  background: rgba(255,255,255,.92);
}
.theme-clean .dish-card,
.theme-clean .offer-chip,
.theme-clean .pick-block,
.theme-clean .bottom-nav {
  box-shadow: 0 10px 26px rgba(15,23,42,.07);
}

.theme-dark.app-body {
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--brand) 28%, transparent), transparent 28%),
    linear-gradient(135deg, #111827, color-mix(in srgb, var(--page-bg) 40%, #020617));
}
.theme-dark .app-frame {
  background: #111827;
  color: #f8fafc;
}
.theme-dark .app-top,
.theme-dark .bottom-nav,
.theme-dark .dish-card,
.theme-dark .offer-chip,
.theme-dark .pick-block,
.theme-dark .search-row input {
  background: #1f2937;
  color: #f8fafc;
  border-color: rgba(255,255,255,.08);
}
.theme-dark .block-head h2,
.theme-dark .dish-info h3,
.theme-dark .brand-title h1 {
  color: #f8fafc;
}

.theme-compact .hero-slider {
  height: 98px;
}
.theme-compact .app-content {
  gap: 8px;
}
.theme-compact .app-frame .dish-card {
  padding: 7px;
}
.theme-compact .dish-img {
  min-height: 94px;
}
.theme-compact .bottom-nav button {
  height: 42px;
}

.theme-premium.app-body {
  background:
    radial-gradient(circle at 18% 4%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 28%),
    linear-gradient(135deg, var(--page-bg), color-mix(in srgb, var(--page-bg) 45%, #111827));
}
.theme-premium .app-frame {
  background: linear-gradient(180deg, #fffaf2, #f8f0e3);
  color: #251f18;
  box-shadow: 0 36px 90px rgba(36, 20, 4, .30);
}
.theme-premium .app-top {
  background: rgba(255,250,242,.92);
}
.theme-premium .hero-slider {
  border-radius: 30px;
  box-shadow: 0 24px 55px rgba(64, 35, 4, .22);
}
.theme-premium .slide {
  background:
    radial-gradient(circle at 82% 12%, rgba(255,255,255,.16), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 75%, #5b3714), #251f18);
}
.theme-premium .dish-card,
.theme-premium .offer-chip,
.theme-premium .pick-block,
.theme-premium .bottom-nav,
.theme-premium .search-row input {
  background: #fffdf8;
  border-color: rgba(91, 55, 20, .10);
  box-shadow: 0 16px 34px rgba(64,35,4,.10);
}
.theme-premium .block-head h2,
.theme-premium .dish-info h3,
.theme-premium .brand-title h1 {
  color: #251f18;
}
.theme-premium .price,
.theme-premium .offer-chip strong,
.theme-premium .bottom-nav button span,
.theme-premium .icon-btn {
  color: color-mix(in srgb, var(--brand) 72%, #5b3714);
}

.theme-preview-card {
  --preview-brand: #ff7a00;
  --preview-bg: #ff8a00;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.07);
}
.theme-preview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.theme-preview-image {
  position: relative;
  height: 172px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--preview-bg), color-mix(in srgb, var(--preview-bg) 72%, #d95800));
  border: 1px solid rgba(255,255,255,.12);
}
.preview-shell {
  position: absolute;
  inset: 18px 22px;
  display: grid;
  grid-template-rows: 28px 58px 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: #f7f8fb;
  box-shadow: 0 18px 34px rgba(0,0,0,.20);
}
.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #1f2937;
  font-size: 12px;
}
.preview-top i {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(15,23,42,.08);
}
.preview-hero {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 10px;
  padding: 9px;
  border-radius: 16px;
  background: var(--preview-brand);
}
.preview-hero b,
.preview-hero span,
.preview-grid i {
  display: block;
  border-radius: 10px;
}
.preview-hero b {
  background: rgba(255,255,255,.78);
}
.preview-hero span {
  background: rgba(255,255,255,.30);
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.preview-grid i {
  background: #fff;
  box-shadow: 0 8px 16px rgba(15,23,42,.07);
}
.preview-clean .theme-preview-image {
  background: linear-gradient(135deg, var(--preview-bg), #ffffff);
}
.preview-clean .preview-shell {
  background: #fff;
}
.preview-clean .preview-hero {
  background: linear-gradient(135deg, color-mix(in srgb, var(--preview-brand) 18%, #ffffff), #fff);
  border: 1px solid rgba(15,23,42,.06);
}
.preview-clean .preview-hero span {
  background: var(--preview-brand);
}
.preview-dark .theme-preview-image {
  background: linear-gradient(135deg, #111827, color-mix(in srgb, var(--preview-bg) 38%, #020617));
}
.preview-dark .preview-shell,
.preview-dark .preview-top i,
.preview-dark .preview-grid i {
  background: #1f2937;
}
.preview-dark .preview-top {
  color: #f8fafc;
}
.preview-dark .preview-hero {
  background: linear-gradient(135deg, var(--preview-brand), #111827);
}
.preview-compact .preview-shell {
  grid-template-rows: 22px 40px 1fr;
  gap: 7px;
  inset: 22px 34px;
  border-radius: 16px;
}
.preview-compact .preview-hero,
.preview-compact .preview-grid i {
  border-radius: 8px;
}
.preview-premium .theme-preview-image {
  background: linear-gradient(135deg, var(--preview-bg), color-mix(in srgb, var(--preview-bg) 42%, #111827));
}
.preview-premium .preview-shell {
  background: linear-gradient(180deg, #fffaf2, #f8f0e3);
}
.preview-premium .preview-hero {
  background: linear-gradient(135deg, color-mix(in srgb, var(--preview-brand) 72%, #5b3714), #251f18);
}
