:root {
  --bg: #fffaf5;
  --surface: #ffffff;
  --surface-soft: #fff1e6;
  --text: #2d1b12;
  --muted: #856f63;
  --line: #eee1d8;
  --accent: #e85d04;
  --accent-dark: #c94e00;
  --accent-soft: #ffe2cc;
  --success: #2f855a;
  --shadow: 0 10px 30px rgba(71, 36, 16, .08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }

button { font: inherit; }

.app { max-width: 760px; margin: 0 auto; min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(14px + env(safe-area-inset-top)) 18px 12px;
  background: rgba(255, 250, 245, .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(238, 225, 216, .65);
}

.brand { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.subtitle { margin-top: 2px; color: var(--muted); font-size: 13px; }

.icon-button {
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow); font-size: 20px;
}

.view { display: none; padding: 14px 16px 24px; }
.view.active { display: block; }

.hero {
  position: relative; overflow: hidden;
  min-height: 190px; padding: 24px 20px;
  border-radius: 26px;
  background: linear-gradient(135deg, #f97316, #e85d04);
  color: white; display: flex; justify-content: space-between;
  box-shadow: var(--shadow);
}

.hero h1 { margin: 8px 0 10px; max-width: 290px; font-size: clamp(28px, 7vw, 38px); line-height: 1.02; }
.hero p { margin: 0; max-width: 260px; opacity: .9; line-height: 1.4; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; opacity: .85; }
.hero-emoji { position: absolute; right: -8px; bottom: -10px; font-size: 108px; transform: rotate(-10deg); filter: drop-shadow(0 8px 12px rgba(0,0,0,.16)); }

.loyalty-card {
  margin-top: 14px; padding: 16px 17px; border-radius: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); box-shadow: var(--shadow);
}
.loyalty-label { color: var(--muted); font-size: 13px; }
.bonus-value { margin-top: 3px; font-size: 21px; font-weight: 800; }
.level-pill { padding: 8px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; font-weight: 700; }

.section { margin-top: 22px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-heading h2, .page-title h1 { margin: 0; font-size: 24px; letter-spacing: -.4px; }

.category-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 8px;
  scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }

.category-chip {
  white-space: nowrap; border: 1px solid var(--line); background: var(--surface);
  padding: 10px 14px; border-radius: 999px; color: var(--text);
}
.category-chip.active { background: var(--text); color: white; border-color: var(--text); }

.pizza-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.pizza-card {
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--surface); min-width: 0; box-shadow: 0 7px 20px rgba(71,36,16,.04);
}

.pizza-image {
  width: 100%; aspect-ratio: 1.28; object-fit: cover;
  display: grid; place-items: center; background: var(--surface-soft); font-size: 54px;
}
.pizza-image img { width: 100%; height: 100%; object-fit: cover; }

.pizza-body { padding: 12px; }
.pizza-labels { min-height: 18px; color: var(--accent-dark); font-size: 12px; font-weight: 700; }
.pizza-name { margin: 5px 0 4px; font-size: 16px; line-height: 1.15; }
.pizza-description {
  margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pizza-bottom { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pizza-price { font-size: 15px; font-weight: 800; }
.add-button {
  border: 0; background: var(--accent); color: white; width: 36px; height: 36px;
  border-radius: 12px; font-size: 22px; line-height: 1;
}

.page-title { padding: 10px 2px 16px; }
.page-title p { margin: 5px 0 0; color: var(--muted); }

.bottom-nav {
  position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(760px, 100%); display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(18px);
}

.nav-button {
  border: 0; background: transparent; color: var(--muted); min-height: 54px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.nav-button > span { font-size: 22px; }
.nav-button small { font-size: 11px; font-weight: 700; }
.nav-button.active { color: var(--accent); }
.cart-icon-wrap { position: relative; display: inline-flex; }
.badge {
  position: absolute; right: -13px; top: -7px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--accent); color: white;
  font-size: 10px; display: grid; place-items: center;
}

.empty-state { text-align: center; padding: 60px 24px; }
.empty-icon { font-size: 54px; }
.empty-state h2 { margin: 12px 0 6px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); }

.cart-items { display: grid; gap: 10px; }
.cart-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 12px;
}
.cart-item h3 { margin: 0 0 5px; font-size: 16px; }
.cart-meta { color: var(--muted); font-size: 12px; line-height: 1.5; }
.cart-price { font-weight: 800; text-align: right; }
.quantity-row { margin-top: 9px; display: flex; align-items: center; gap: 8px; }
.qty-button { border: 1px solid var(--line); background: var(--surface); width: 30px; height: 30px; border-radius: 9px; }
.remove-button { margin-top: 8px; border: 0; background: none; padding: 0; color: #b42318; font-size: 12px; }

.cart-summary {
  margin-top: 14px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--line); padding: 16px;
}
.summary-row { display: flex; justify-content: space-between; padding: 5px 0; }
.summary-row.total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 19px; }

.primary-button {
  width: 100%; margin-top: 14px; border: 0; border-radius: 14px; padding: 14px 18px;
  background: var(--accent); color: white; font-weight: 800;
}
.primary-button:active { background: var(--accent-dark); }
.primary-button.compact { width: auto; min-width: 145px; margin: 0; }
.coming-note { text-align: center; color: var(--muted); font-size: 11px; margin: 8px 0 0; }

.profile-card {
  display: flex; gap: 14px; align-items: center; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
}
.profile-avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--surface-soft); display: grid; place-items: center; font-size: 28px; }
.profile-card h2 { margin: 0 0 4px; }
.profile-card p { margin: 0; color: var(--muted); }

.stats-grid { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.stat-card span { color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; margin-top: 5px; font-size: 24px; }

.profile-section { margin-top: 20px; }
.profile-section h2 { font-size: 18px; }
.level-box { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.level-row { display: flex; justify-content: space-between; gap: 10px; }
.progress { margin-top: 12px; height: 9px; border-radius: 999px; background: var(--surface-soft); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .25s ease; }
.level-box p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }

.menu-list { margin-top: 14px; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.menu-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 15px; display: flex; justify-content: space-between; text-align: left; color: var(--text); }
.menu-row:last-child { border-bottom: 0; }
.disabled-row { opacity: .62; }

.modal { position: fixed; z-index: 100; inset: 0; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(31, 20, 14, .45); }
.modal-sheet {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(760px, 100%); max-height: 88vh; overflow-y: auto;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  background: var(--bg); border-radius: 26px 26px 0 0;
}
.modal-handle { width: 44px; height: 5px; border-radius: 999px; background: #d7c9bf; margin: 0 auto 10px; }
.modal-close { position: absolute; top: 15px; right: 16px; border: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); }
.modal-photo { height: 185px; border-radius: 20px; background: var(--surface-soft); display: grid; place-items: center; font-size: 86px; overflow: hidden; }
.modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.modal-sheet h2 { margin: 16px 0 6px; font-size: 25px; }
.modal-description { margin: 0; color: var(--muted); line-height: 1.45; }
.option-block { margin-top: 20px; }
.option-block h3 { margin: 0 0 10px; font-size: 16px; }

.size-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.size-button { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px; text-align: left; }
.size-button.active { border-color: var(--accent); background: var(--accent-soft); }
.size-button strong, .size-button span { display: block; }
.size-button span { color: var(--muted); font-size: 12px; margin-top: 3px; }

.extras-list { display: grid; gap: 8px; }
.extra-row { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.extra-row label { flex: 1; }
.extra-row small { color: var(--muted); display: block; margin-top: 3px; }
.extra-row input { width: 20px; height: 20px; accent-color: var(--accent); }

.modal-footer {
  position: sticky; bottom: -22px; margin: 20px -18px -22px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255,250,245,.97); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.modal-footer small { display: block; color: var(--muted); }
.modal-footer strong { display: block; font-size: 22px; margin-top: 2px; }

.toast {
  position: fixed; z-index: 150; left: 50%; bottom: 96px; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px); padding: 11px 15px; border-radius: 999px;
  background: var(--text); color: white; font-size: 13px; box-shadow: var(--shadow);
}

.loading, .fatal-error {
  position: fixed; z-index: 200; inset: 0; display: grid; place-content: center;
  text-align: center; padding: 30px; background: var(--bg);
}
.spinner { width: 34px; height: 34px; margin: 0 auto 12px; border: 4px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { color: var(--muted); }
.fatal-icon { font-size: 58px; }
.fatal-error h1 { margin: 12px 0 6px; font-size: 24px; }
.fatal-error p { margin: 0; color: var(--muted); max-width: 330px; }

.hidden { display: none !important; }

@media (min-width: 620px) {
  .pizza-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { min-height: 210px; }
  .hero-emoji { font-size: 130px; right: 30px; }
}


/* ==========================================================
   CHECKOUT
   ========================================================== */

.checkout-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.text-button {
  border: 0;
  background: transparent;
  padding: 8px 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.danger-text {
  color: #b42318;
}

.checkout-alert {
  margin-bottom: 12px;
  padding: 13px 14px;
  border: 1px solid #f5c2c0;
  border-radius: 14px;
  background: #fff0ef;
  color: #8a1c14;
  font-size: 13px;
}

.checkout-card {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.checkout-card h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.checkout-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.checkout-card-heading h2 {
  margin-bottom: 4px;
}

.checkout-card-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.choice-button {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  padding: 12px;
  color: var(--text);
  text-align: left;
}

.choice-button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choice-button strong,
.choice-button span {
  display: block;
}

.choice-button strong {
  font-size: 14px;
}

.choice-button span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.field-wrap {
  margin-top: 14px;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.text-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  padding: 13px 14px;
  color: var(--text);
  font: inherit;
  outline: none;
}

.text-input:focus {
  border-color: var(--accent);
}

.checkout-hint {
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.promo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.secondary-button {
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: transparent;
  padding: 0 14px;
  color: var(--accent-dark);
  font-weight: 800;
}

.secondary-button:disabled,
.primary-button:disabled {
  opacity: .55;
}

.bonus-range {
  width: 100%;
  accent-color: var(--accent);
}

.bonus-range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.checkout-items {
  display: grid;
  gap: 10px;
}

.checkout-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.checkout-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.checkout-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.checkout-totals {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

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

.form-error {
  margin: 10px 0 0;
  color: #b42318;
  font-size: 12px;
  line-height: 1.4;
}

.order-success {
  padding: 72px 20px;
  text-align: center;
}

.success-icon {
  font-size: 58px;
}

.order-success h1 {
  margin: 12px 0 10px;
  font-size: 26px;
}

.order-success p {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 430px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .promo-row {
    grid-template-columns: 1fr;
  }

  .secondary-button {
    min-height: 44px;
  }
}


/* ==========================================================
   ORDERS
   ========================================================== */

.active-order-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--accent);
  border-radius: 20px;
  background: var(--accent-soft);
}

.active-order-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.active-order-label {
  color: var(--muted);
  font-size: 12px;
}

.active-order-card h2 {
  margin: 3px 0 0;
  font-size: 19px;
}

.status-pill {
  max-width: 46%;
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.active-order-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.secondary-full-button {
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--accent);
  border-radius: 13px;
  padding: 11px 14px;
  background: var(--surface);
  color: var(--accent-dark);
  font-weight: 800;
}

.orders-loading {
  padding: 40px 10px;
  color: var(--muted);
  text-align: center;
}

.orders-list {
  display: grid;
  gap: 10px;
}

.order-history-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.order-history-top,
.order-history-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.order-history-card h3 {
  margin: 0;
  font-size: 16px;
}

.order-history-status {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
}

.order-history-meta {
  margin: 7px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.order-history-bottom span {
  color: var(--muted);
  font-size: 11px;
}

.order-history-bottom strong {
  font-size: 16px;
}

.order-status-card {
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--accent-soft);
}

.order-status-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.order-status-card strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.details-info {
  display: grid;
  gap: 10px;
}

.details-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.details-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.details-row span {
  color: var(--muted);
  font-size: 12px;
}

.details-row strong {
  max-width: 62%;
  text-align: right;
  font-size: 13px;
  word-break: break-word;
}


/* ==========================================================
   PROFILE: PROMOS / BIRTHDAY / LOYALTY
   ========================================================== */

.promos-list,
.loyalty-levels {
  display: grid;
  gap: 10px;
}

.promo-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.promo-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.promo-card h3 {
  margin: 0;
  font-size: 17px;
}

.promo-code {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  letter-spacing: .5px;
}

.promo-benefit {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.promo-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.birthday-big {
  font-size: 54px;
  text-align: center;
}

#birthdaySavedCard,
#birthdayFormCard {
  text-align: center;
}

#birthdayFormCard .field-label,
#birthdayFormCard .text-input {
  text-align: left;
}

.birthday-value {
  margin: 8px 0;
  font-size: 26px;
  font-weight: 800;
}

.birthday-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.loyalty-detail-hero {
  margin-bottom: 12px;
  padding: 20px;
  border-radius: 22px;
  background: var(--accent-soft);
  text-align: center;
}

.loyalty-detail-hero > span,
.loyalty-detail-hero p {
  color: var(--muted);
  font-size: 12px;
}

.loyalty-detail-hero h2 {
  margin: 6px 0 2px;
  font-size: 24px;
}

.loyalty-detail-hero strong {
  display: block;
  margin-top: 8px;
  color: var(--accent-dark);
  font-size: 34px;
}

.loyalty-detail-hero p {
  margin: 2px 0 0;
}

.loyalty-detail-progress {
  margin-top: 14px;
}

.loyalty-level-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.loyalty-level-card.current {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.loyalty-level-card strong,
.loyalty-level-card span {
  display: block;
}

.loyalty-level-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.loyalty-percent {
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 800;
}

.loyalty-rules {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.loyalty-rules p {
  margin: 5px 0;
}


/* ==========================================================
   UI POLISH STEP 7
   ========================================================== */

:root {
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 28px rgba(70, 35, 16, .06);
  --shadow-lift: 0 14px 35px rgba(70, 35, 16, .09);
}

body {
  background:
    radial-gradient(circle at top right, rgba(232, 93, 4, .05), transparent 24%),
    var(--bg);
}

.app {
  overflow-x: hidden;
}

.topbar {
  padding-bottom: 10px;
}

.brand {
  font-size: 21px;
  letter-spacing: -.5px;
}

.subtitle {
  font-size: 12px;
}

.hero {
  min-height: 204px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.2), transparent 22%),
    linear-gradient(135deg, #f47a1f, #df5400 72%);
  box-shadow: var(--shadow-lift);
}

.hero h1 {
  margin-top: 10px;
  max-width: 315px;
}

.hero p {
  max-width: 310px;
  font-size: 14px;
}

.hero-emoji {
  opacity: .98;
}

.home-status-strip {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.status-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.8);
  box-shadow: var(--shadow-soft);
}

.status-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-soft);
  font-size: 18px;
}

.status-item small,
.status-item strong {
  display: block;
}

.status-item small {
  color: var(--muted);
  font-size: 10px;
}

.status-item strong {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.25;
}

.quick-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-action {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.quick-action > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 19px;
}

.quick-action strong,
.quick-action small {
  display: block;
}

.quick-action strong {
  font-size: 13px;
}

.quick-action small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.loyalty-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.section {
  margin-top: 24px;
}

.section-heading h2 {
  font-size: 22px;
}

.section-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.category-scroll {
  gap: 7px;
  padding-bottom: 10px;
}

.category-chip {
  padding: 10px 15px;
  box-shadow: 0 3px 10px rgba(70,35,16,.03);
}

.pizza-grid {
  gap: 13px;
}

.pizza-card {
  border: 0;
  box-shadow: var(--shadow-soft);
  transition: transform .16s ease, box-shadow .16s ease;
}

.pizza-card:active {
  transform: scale(.985);
}

.pizza-image {
  background:
    linear-gradient(145deg, #fff5ec, #ffead8);
  font-size: 58px;
}

.pizza-body {
  padding: 13px;
}

.pizza-name {
  font-size: 16px;
}

.pizza-bottom {
  margin-top: 13px;
}

.add-button {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  box-shadow: 0 6px 14px rgba(232,93,4,.22);
}

.cart-item,
.checkout-card,
.profile-card,
.stat-card,
.level-box,
.order-history-card,
.promo-card {
  box-shadow: var(--shadow-soft);
}

.cart-summary {
  position: sticky;
  bottom: calc(74px + env(safe-area-inset-bottom));
  z-index: 12;
  box-shadow: var(--shadow-lift);
}

.cart-summary-title {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

.primary-button {
  min-height: 48px;
  box-shadow: 0 8px 18px rgba(232,93,4,.18);
  transition: transform .12s ease, opacity .12s ease;
}

.primary-button:active {
  transform: scale(.985);
}

.profile-hero {
  margin-bottom: 12px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent-soft), #fff6ef);
  border: 1px solid rgba(232,93,4,.15);
}

.profile-hero span {
  color: var(--muted);
  font-size: 11px;
}

.profile-hero h2 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.15;
}

.profile-hero-icon {
  font-size: 44px;
}

.bottom-nav {
  padding-top: 7px;
  box-shadow: 0 -8px 24px rgba(70,35,16,.05);
}

.nav-button {
  border-radius: 14px;
  transition: background .12s ease, transform .12s ease;
}

.nav-button.active {
  background: var(--accent-bg, var(--accent-soft));
}

.nav-button:active {
  transform: scale(.97);
}

.modal-sheet {
  box-shadow: 0 -18px 40px rgba(48,24,11,.16);
}

.modal-photo {
  background: linear-gradient(145deg, #fff5ec, #ffead8);
}

.choice-button,
.size-button,
.extra-row {
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
}

.choice-button:active,
.size-button:active {
  transform: scale(.985);
}

.menu-row {
  min-height: 50px;
}

.order-success {
  padding-top: 58px;
}

.success-icon {
  filter: drop-shadow(0 8px 18px rgba(47,133,90,.18));
}

@media (max-width: 420px) {
  .home-status-strip,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 220px;
  }

  .hero-emoji {
    font-size: 94px;
    right: -18px;
  }
}
