/* ═══════════════════════════════════════════
   PRIME KITCHEN — Premium PWA Stylesheet
   ═══════════════════════════════════════════ */

:root {
  --black:       #100b08;
  --black-soft:  #17100c;
  --surface:     #201610;
  --surface-2:   #2a1d15;
  --border:      rgba(255,230,205,0.1);
  --border-gold: rgba(234,164,84,0.38);
  --gold:        #eaa454;
  --gold-light:  #ffd08a;
  --gold-pale:   rgba(234,164,84,0.14);
  --red:         #c0392b;
  --red-glow:    rgba(192,57,43,0.28);
  --cream:       #fff3e2;
  --muted:       #aa927d;
  --muted-2:     #78685b;
  --text:        #f0dfcc;
  --radius-sm:   14px;
  --radius:      20px;
  --radius-lg:   28px;
  --shadow:      0 12px 40px rgba(0,0,0,0.5);
  --shadow-gold: 0 8px 28px rgba(212,175,55,0.2);
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-disp:   'Poppins', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --font-ar:     'Amiri', 'Aref Ruqaa', 'Times New Roman', serif;
  --safe-b:      env(safe-area-inset-bottom, 0px);
  --safe-t:      env(safe-area-inset-top, 0px);
}

/* ── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(5.8rem + var(--safe-b));
}
*:not(input):not(textarea) { user-select: none; -webkit-user-select: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; color: inherit; }
h1,h2,h3,h4,p { margin: 0; }

/* ══════════════════════════════════════
   SPLASH
══════════════════════════════════════ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 40% 35%, #1e1208, #080401 70%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: splashIn 0.5s ease both;
}
@keyframes splashIn {
  from { opacity: 0; transform: scale(0.88) translateY(1.2rem); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.splash-logo {
  width: min(220px, 58vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 32px rgba(234,164,84,0.4));
  animation: splashGlow 1.8s ease infinite alternate;
}
@keyframes splashGlow {
  from { filter: drop-shadow(0 0 20px rgba(234,164,84,0.3)); }
  to   { filter: drop-shadow(0 0 42px rgba(234,164,84,0.6)); }
}
.splash-progress {
  width: 8rem;
  height: 2px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
}
.splash-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px;
  animation: splashLoad 1.4s ease forwards;
}
@keyframes splashLoad {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ══════════════════════════════════════
   TOPBAR
══════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-top: var(--safe-t);
  background: rgba(16,11,8,0.9);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  max-width: 600px;
  margin: 0 auto;
  gap: 0.5rem;
}
.brand { display: flex; align-items: center; gap: 0.55rem; min-width: 0; flex: 0 1 auto; }
.topbar-actions { display: flex; align-items: center; gap: 0.42rem; flex: 0 0 auto; }

/* ── Download App CTA ───────────────── */
.download-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.52rem 0.9rem; min-height: 2.4rem;
  background: linear-gradient(135deg, #ffd08a 0%, var(--gold) 55%, #b8941e 100%);
  color: var(--black);
  border: 1px solid rgba(255,243,226,0.18);
  border-radius: 999px;
  font-family: var(--font-disp);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em;
  cursor: pointer; touch-action: manipulation;
  box-shadow: 0 6px 18px rgba(212,175,55,0.32), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  position: relative;
}
.download-btn:hover { filter: brightness(1.05); }
.download-btn:active { transform: scale(0.96); }
.download-btn::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 999px; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(234,164,84,0.55);
  animation: dlPulse 2.4s ease-out infinite;
}
@keyframes dlPulse {
  0%   { box-shadow: 0 0 0 0 rgba(234,164,84,0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(234,164,84,0); }
  100% { box-shadow: 0 0 0 0 rgba(234,164,84,0); }
}
.dl-icon { width: 0.95rem; height: 0.95rem; flex: 0 0 auto; animation: dlBounce 2.6s ease-in-out infinite; }
@keyframes dlBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(2px); }
}
.dl-label { white-space: nowrap; }

@media (max-width: 420px) {
  .brand-text { display: none; }
  .download-btn { padding: 0.5rem 0.72rem; font-size: 0.74rem; }
  .cart-pill-total { display: none; }
  .cart-pill { padding: 0.45rem 0.6rem; }
}
@media (max-width: 340px) {
  .dl-label { display: none; }
  .download-btn { padding: 0.5rem 0.62rem; }
}

.brand-logo {
  width: 2.6rem; height: 2.6rem;
  object-fit: contain; flex: 0 0 auto;
  border-radius: 10px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: var(--font-disp);
  font-size: 0.96rem; font-weight: 900;
  color: var(--cream); letter-spacing: 0.06em; line-height: 1;
  white-space: nowrap;
}
.brand-label {
  font-family: var(--font-serif);
  font-size: 0.58rem; font-style: italic;
  color: var(--gold); letter-spacing: 0.01em; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Cart pill */
.cart-pill {
  display: flex; align-items: center; gap: 0.42rem;
  padding: 0.48rem 0.82rem 0.48rem 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  flex: 0 0 auto;
}
.cart-pill.has-items { border-color: var(--border-gold); background: rgba(234,164,84,0.1); }
.cart-pill-icon { display: grid; place-items: center; color: var(--muted); }
.cart-pill.has-items .cart-pill-icon { color: var(--gold); }
.cart-pill-icon svg { width: 0.95rem; height: 0.95rem; }
.cart-pill-count {
  font-size: 0.7rem; font-weight: 700;
  background: var(--gold); color: var(--black);
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%; display: none; place-items: center;
}
.cart-pill.has-items .cart-pill-count { display: grid; }
.cart-pill-total { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.cart-pill.has-items .cart-pill-total { color: var(--gold-light); }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 82vh; min-height: 82svh;
  display: flex; align-items: flex-end;
  overflow: clip;
  padding-top: calc(3.5rem + var(--safe-t));
}
.hero-bg { position: absolute; inset: 0; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  transform: scale(1.05);
  animation: kenBurns 14s ease-out forwards;
}
@keyframes kenBurns {
  from { transform: scale(1.08); }
  to   { transform: scale(1.00); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(234,164,84,0.12), transparent 34%),
    linear-gradient(90deg, rgba(10,6,3,0.94) 0%, rgba(10,6,3,0.62) 46%, rgba(10,6,3,0.22) 100%),
    linear-gradient(0deg, rgba(10,6,3,0.99) 0%, rgba(10,6,3,0.72) 44%, rgba(10,6,3,0.18) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 1.4rem 1.2rem calc(2.4rem + var(--safe-b));
  width: 100%; max-width: 540px; margin: 0 auto;
  animation: fadeUp 0.8s 0.3s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-size: 0.76rem; font-weight: 500; color: rgba(255,255,255,0.72);
  margin-bottom: 1.1rem;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 0.42rem; height: 0.42rem;
  border-radius: 50%; background: #2dca72;
  animation: blink 2s infinite;
}
@keyframes blink {
  0%,100% { box-shadow: 0 0 0 3px rgba(45,202,114,0.2); }
  50%      { box-shadow: 0 0 0 7px rgba(45,202,114,0); }
}
.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(3rem, 14.5vw, 4.6rem);
  font-weight: 900; line-height: 0.9;
  letter-spacing: -0.055em; color: var(--cream);
  margin-bottom: 0.9rem;
  text-shadow: 0 4px 28px rgba(0,0,0,0.88);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #fff4d2 0%, var(--gold-light) 38%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-family: var(--font-serif);
  font-size: 1.05rem; font-style: italic;
  color: rgba(255,243,226,0.84); margin-bottom: 1.7rem; letter-spacing: 0.02em;
}
.hero-actions { display: flex; flex-direction: column; gap: 0.7rem; }
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 1.5rem; min-height: 3.4rem;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, #b8941e 100%);
  color: var(--black); font-weight: 800; font-size: 1.05rem;
  border-radius: 16px; border: none; cursor: pointer;
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform 0.18s ease;
  letter-spacing: -0.01em;
}
.btn-gold:active { transform: scale(0.97); }
.hero-trust { font-size: 0.8rem; color: rgba(255,255,255,0.36); text-align: center; }
.hero-scroll-hint {
  position: absolute; bottom: 1.4rem; left: 50%;
  transform: translateX(-50%); color: rgba(255,255,255,0.22); z-index: 2;
  animation: bounce 2.8s ease infinite;
}
.hero-scroll-hint svg { width: 1.25rem; height: 1.25rem; }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(5px); }
}

/* ══════════════════════════════════════
   BRAND STORY
══════════════════════════════════════ */
.brand-story {
  background: linear-gradient(180deg, var(--black) 0%, var(--black-soft) 100%);
  border-bottom: 1px solid var(--border);
  padding: 1.8rem 1rem 1.6rem;
  display: flex; justify-content: center;
}

/* ── Premium Intro Card ─────────────── */
.intro-card {
  width: 100%; max-width: 520px;
  position: relative;
  padding: 1.6rem 1.4rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 80% 0%, rgba(234,164,84,0.08), transparent 55%),
    linear-gradient(165deg, rgba(42,29,21,0.92) 0%, rgba(23,16,12,0.95) 100%);
  border: 1px solid rgba(234,164,84,0.22);
  border-radius: 22px;
  box-shadow:
    0 18px 50px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,243,226,0.06);
  overflow: hidden;
}
.intro-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,208,138,0.55), rgba(234,164,84,0.05) 40%, rgba(255,208,138,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.intro-title {
  font-family: var(--font-disp);
  font-size: clamp(1.65rem, 6.5vw, 2rem);
  font-weight: 900; letter-spacing: 0.03em;
  background: linear-gradient(135deg, #fff4d2 0%, var(--gold-light) 45%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-shadow: 0 2px 18px rgba(234,164,84,0.18);
  margin: 0 0 0.85rem;
}
.intro-divider {
  width: 3.5rem; height: 1px;
  margin: 0 auto 1.1rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}
.intro-divider::after {
  content: '✦'; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: var(--gold); font-size: 0.7rem;
  background: var(--surface); padding: 0 0.4rem;
}
.intro-ar {
  font-family: var(--font-ar);
  direction: rtl; text-align: center;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.intro-ar-lead {
  font-size: 1.08rem; font-weight: 700; letter-spacing: 0;
  color: var(--cream);
  margin-bottom: 0.1rem;
}
.intro-star { color: var(--gold); margin: 0 0.15rem; }
.intro-ar p {
  font-size: 0.96rem; line-height: 1.95;
  color: rgba(240,223,204,0.86);
}
.intro-ar-invite {
  margin-top: 0.35rem;
  font-size: 0.95rem !important;
  font-weight: 700;
  color: var(--gold-light) !important;
}

/* ══════════════════════════════════════
   MAIN
══════════════════════════════════════ */
main { max-width: 540px; margin: 0 auto; padding: 0 0.9rem; }

.section-header { margin: 1.8rem 0 1rem; }
.section-eyebrow {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.35rem;
}
.section-title {
  font-family: var(--font-disp);
  font-size: clamp(1.75rem, 8vw, 2.3rem);
  font-weight: 900; color: var(--cream);
  letter-spacing: -0.04em; line-height: 0.95;
}

/* ── Category Tabs ─────────────────── */
.tabs-wrapper {
  margin: 0 -0.9rem;
  padding: 0.45rem 0.9rem 0.55rem;
  background: rgba(16,11,8,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.category-tabs {
  display: flex; gap: 0.42rem;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  padding: 0.52rem 0.95rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  white-space: nowrap; cursor: pointer;
  transition: all 0.17s ease; touch-action: manipulation;
}
.category-tab:active { transform: scale(0.96); }
.category-tab.active { background: var(--gold); border-color: var(--gold); color: var(--black); }

/* ── Menu list ──────────────────────── */
.menu-list { padding-top: 0.4rem; }
.category-block { margin-bottom: 2.2rem; }
.category-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.8rem; padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}
.category-name {
  font-family: var(--font-disp); font-size: 1.2rem; font-weight: 800;
  color: var(--cream); letter-spacing: -0.03em;
}
.category-note { font-size: 0.73rem; color: var(--muted-2); max-width: 55%; text-align: right; }
.items-grid { display: flex; flex-direction: column; gap: 0.6rem; }

/* ── Item Card ──────────────────────── */
.item-card {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.78rem; padding: 0.68rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.18s, background 0.18s;
  touch-action: manipulation; overflow: clip;
}
.item-card.selected {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, rgba(234,164,84,0.09), rgba(192,57,43,0.05));
}
.item-img-wrap {
  width: 5.5rem; height: 5.5rem; flex: 0 0 auto;
  border-radius: 12px; overflow: clip; background: var(--surface-2);
}
.item-image {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.item-card.selected .item-image { transform: scale(1.05); }
.item-info { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.item-top { display: grid; grid-template-columns: 1fr auto; gap: 0.45rem; align-items: start; }
.item-name {
  font-size: 0.9rem; font-weight: 700; color: var(--cream);
  line-height: 1.25; overflow-wrap: anywhere;
}
.item-price-tag {
  font-size: 0.76rem; font-weight: 800; color: var(--gold-light);
  background: var(--gold-pale); border: 1px solid var(--border-gold);
  padding: 0.2rem 0.45rem; border-radius: 999px; white-space: nowrap; align-self: start;
}
.item-actions {
  display: grid; grid-template-columns: 1fr auto;
  gap: 0.5rem; align-items: center; margin-top: 0.5rem;
}
.add-btn {
  width: 100%; min-height: 2.5rem; padding: 0.55rem 0.8rem;
  background: linear-gradient(135deg, var(--red) 0%, #8c1f16 100%);
  color: #fff; border: none; border-radius: 9px;
  font-size: 0.8rem; font-weight: 700;
  cursor: pointer; touch-action: manipulation;
  box-shadow: 0 4px 12px var(--red-glow);
  transition: transform 0.14s;
}
.add-btn:active { transform: scale(0.96); }
.qty-control {
  display: flex; align-items: center; gap: 0.3rem;
  background: var(--surface-2); border-radius: 9px; padding: 0.28rem 0.35rem;
}
.qty-btn {
  display: grid; place-items: center;
  width: 1.85rem; height: 1.85rem;
  border: none; border-radius: 6px;
  background: transparent; color: var(--cream);
  font-size: 1rem; font-weight: 700;
  cursor: pointer; touch-action: manipulation;
  transition: background 0.13s;
}
.qty-btn:active { background: rgba(255,255,255,0.08); }
.qty-value { min-width: 1.3rem; text-align: center; font-size: 0.88rem; font-weight: 700; color: var(--cream); }

/* ── Extras / Sauces ────────────────── */
.extras-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem;
  padding: 0.65rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  border: 1px solid rgba(212,175,55,0.22); border-radius: var(--radius);
}
.extra-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.28rem; padding: 0.75rem 0.4rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all 0.17s ease; touch-action: manipulation; text-align: center;
}
.extra-card input { position: absolute; opacity: 0; pointer-events: none; }
.extra-icon { font-size: 1.4rem; line-height: 1; }
.extra-check {
  position: absolute; top: 0.32rem; right: 0.32rem;
  display: grid; place-items: center;
  width: 1.1rem; height: 1.1rem;
  border: 1.5px solid var(--border); border-radius: 4px;
  background: transparent; color: transparent;
  font-size: 0.6rem; font-weight: 900; transition: all 0.14s;
}
.extra-card.active { border-color: var(--border-gold); background: var(--gold-pale); }
.extra-card.active .extra-check { background: var(--gold); border-color: var(--gold); color: var(--black); }
.extra-name { font-size: 0.76rem; font-weight: 600; color: var(--text); }
.extra-free { font-size: 0.64rem; font-weight: 600; color: #2dca72; }

/* ── Checkout ───────────────────────── */
.checkout-section { margin-top: 0.5rem; }
.checkout-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.2rem;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.field-label { display: flex; flex-direction: column; gap: 0.5rem; }
.field-name {
  display: flex; align-items: center; gap: 0.38rem;
  font-size: 0.76rem; font-weight: 700;
  color: var(--gold); text-transform: uppercase; letter-spacing: 0.07em;
}
.field-name svg { width: 0.82rem; height: 0.82rem; }
.field-label input {
  width: 100%; background: rgba(10,10,10,0.78);
  border: 1.5px solid rgba(255,255,255,0.16); border-radius: 16px;
  padding: 1rem 1.05rem; color: var(--cream);
  font-size: 1.06rem; font-weight: 600; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.field-label input::placeholder { color: var(--muted-2); font-weight: 400; }
.field-label input:focus {
  border-color: rgba(234,164,84,0.72);
  box-shadow: 0 0 0 4px rgba(234,164,84,0.1);
}
.checkout-notice {
  min-height: 0.8rem; font-size: 0.8rem;
  font-weight: 500; line-height: 1.5; border-radius: 10px; padding: 0 0.2rem;
}
.checkout-notice.error { color: #e07070; background: rgba(192,57,43,0.09); padding: 0.5rem 0.75rem; }
.checkout-notice.success { color: #2dca72; background: rgba(45,202,114,0.08); padding: 0.5rem 0.75rem; }
.submit-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 3.55rem; padding: 1rem 1.2rem;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #b8941e 100%);
  color: var(--black); border: none; border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(212,175,55,0.26), inset 0 1px 0 rgba(255,255,255,0.28);
  transition: transform 0.15s, opacity 0.15s;
  touch-action: manipulation;
}
.submit-btn:active { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.submit-label { font-family: var(--font-disp); font-size: 1.08rem; font-weight: 800; }
.submit-total {
  font-size: 0.9rem; font-weight: 700;
  background: rgba(10,10,10,0.12); padding: 0.28rem 0.65rem; border-radius: 999px;
}
.trust-line {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-size: 0.76rem; font-weight: 500; color: var(--muted); text-align: center;
}
.trust-line svg { width: 0.82rem; height: 0.82rem; color: #2dca72; }

/* ── QR section ─────────────────────── */
.qr-section { margin: 2rem 0 0; border-top: 1px solid var(--border); }
.qr-inner {
  padding: 2rem 1.2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center;
}
.qr-headline { font-family: var(--font-disp); font-size: 1rem; font-weight: 800; color: var(--cream); }
.qr-sub { font-size: 0.78rem; color: var(--muted); }
.qr-box { padding: 0.85rem; background: #fff; border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,0.35); }
.qr-box canvas, .qr-box img { border-radius: 6px; }
.qr-note { font-size: 0.72rem; color: var(--muted-2); }

/* ── Footer ─────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 1.2rem 1rem calc(1.4rem + var(--safe-b)); }
.footer-inner {
  max-width: 540px; margin: 0 auto;
  display: flex; align-items: center; gap: 0.65rem; justify-content: center; flex-wrap: wrap;
}
.footer-text { font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.footer-arrow { color: var(--gold); font-size: 1rem; }
.footer-email {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 50%; color: var(--black);
  box-shadow: 0 4px 14px rgba(212,175,55,0.3);
  transition: transform 0.16s;
}
.footer-email:active { transform: scale(0.94); }
.footer-email svg { width: 1.05rem; height: 1.05rem; }

/* ══════════════════════════════════════
   FLOATING BAR
══════════════════════════════════════ */
.floating-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  padding: 0.68rem 0.95rem calc(0.68rem + var(--safe-b));
  background: rgba(16,11,8,0.94);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid var(--border);
  transform: translateY(105%);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
.floating-bar.show { transform: translateY(0); }
.floating-bar-inner {
  display: flex; gap: 0.55rem; align-items: center;
  max-width: 540px; margin: 0 auto;
}
.floating-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1rem; min-height: 3.4rem;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #b8941e 100%);
  color: var(--black); border: none; border-radius: 14px;
  cursor: pointer; touch-action: manipulation;
  box-shadow: 0 -2px 20px rgba(212,175,55,0.18), 0 6px 18px rgba(0,0,0,0.4);
}
.floating-left { display: flex; align-items: center; gap: 0.6rem; }
.floating-badge {
  display: grid; place-items: center;
  min-width: 1.55rem; height: 1.55rem; padding: 0 0.25rem;
  background: rgba(10,6,2,0.18); border-radius: 999px;
  font-size: 0.76rem; font-weight: 800;
}
.floating-label { font-size: 0.9rem; font-weight: 700; }
.floating-total { font-family: var(--font-disp); font-size: 1.08rem; font-weight: 900; }

.summary-toggle {
  display: grid; place-items: center;
  width: 3.4rem; height: 3.4rem; min-height: 3.4rem; flex: 0 0 3.4rem;
  background: var(--surface-2); border: 1px solid var(--border-gold);
  border-radius: 14px; color: var(--gold-light);
  cursor: pointer; touch-action: manipulation;
  transition: background 0.15s;
}
.summary-toggle:active { background: rgba(234,164,84,0.15); }
.summary-toggle svg { width: 1.05rem; height: 1.05rem; }
.summary-toggle.active { background: rgba(234,164,84,0.15); border-color: var(--gold); }

/* ══════════════════════════════════════
   MODAL OVERLAY (shared)
══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,0.68);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  padding: 0 0 var(--safe-b);
  animation: overlayIn 0.22s ease both;
}
.modal-overlay[hidden] { display: none; }
@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Summary Modal ──────────────────── */
.summary-modal {
  width: 100%; max-width: 540px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  animation: sheetUp 0.28s cubic-bezier(0.34,1.36,0.64,1) both;
  max-height: 78vh; display: flex; flex-direction: column;
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.smh {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 1rem 1rem 0.88rem;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.smh-en { font-family: var(--font-disp); font-size: 0.92rem; font-weight: 800; color: var(--cream); }
.smh-sep { color: var(--gold); font-size: 0.7rem; }
.smh-ar { font-size: 0.82rem; font-weight: 600; color: var(--muted); direction: rtl; }
.smh-close {
  margin-left: auto; border: none; background: transparent;
  color: var(--muted); font-size: 1rem; cursor: pointer;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  transition: background 0.14s, color 0.14s;
}
.smh-close:hover { background: rgba(255,255,255,0.07); color: var(--cream); }
.sm-body { flex: 1; overflow-y: auto; padding: 0.4rem 0; }
.sm-empty { padding: 1.5rem 1rem; text-align: center; color: var(--muted); font-size: 0.85rem; }
.sm-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.72rem 1rem; border-bottom: 1px solid var(--border); gap: 0.75rem;
}
.sm-line:last-child { border-bottom: none; }
.sm-name { font-size: 0.86rem; font-weight: 600; color: var(--cream); }
.sm-qty { font-size: 0.74rem; color: var(--muted); margin-top: 1px; }
.sm-price { font-size: 0.86rem; font-weight: 700; color: var(--gold-light); white-space: nowrap; }
.sm-free-tag { font-size: 0.72rem; font-weight: 600; color: #2dca72; }
.sm-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1rem; border-top: 1px solid var(--border); flex-shrink: 0;
}
.sm-footer span { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.sm-footer strong { font-family: var(--font-disp); font-size: 1.5rem; font-weight: 900; color: var(--gold-light); }

/* ── Success Modal ──────────────────── */
.success-overlay { align-items: center; padding: 1rem; }
.success-modal {
  width: 100%; max-width: 480px;
  background: var(--surface);
  border: 1px solid rgba(234,164,84,0.22);
  border-radius: var(--radius-lg);
  overflow: hidden; overflow-y: auto; max-height: 92vh;
  padding: 0 0 1.2rem; position: relative;
  animation: modalPop 0.35s cubic-bezier(0.34,1.4,0.64,1) both;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.88) translateY(1rem); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.success-modal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), #b8941e);
}

/* Loyalty tier */
.loyalty-tier {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1.1rem 1.2rem 0.9rem;
  background: linear-gradient(135deg, rgba(234,164,84,0.1), rgba(234,164,84,0.04));
  border-bottom: 1px solid var(--border);
}
.lt-icons { font-size: 1.5rem; line-height: 1; letter-spacing: 0.04em; }
.lt-info { display: flex; flex-direction: column; }
.lt-rank {
  font-family: var(--font-serif); font-size: 1.12rem;
  font-style: italic; font-weight: 700;
  color: var(--gold-light); line-height: 1.1;
}
.lt-orders { font-size: 0.72rem; font-weight: 500; color: var(--muted); margin-top: 2px; }

/* Order number */
.success-order-num {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.2rem 0.4rem;
}
.son-tag { font-size: 0.72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.son-num {
  font-family: var(--font-disp); font-size: 1.35rem; font-weight: 900;
  color: var(--gold-light); letter-spacing: 0.06em;
}

/* Check animation */
.success-anim {
  position: relative; width: 4rem; height: 4rem; margin: 0.5rem auto;
}
.sa-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--gold);
  animation: ringIn 0.42s ease both;
}
@keyframes ringIn {
  from { transform: scale(0.3); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.sa-check {
  position: absolute; inset: 0.3rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: grid; place-items: center;
  font-size: 1.3rem; color: var(--black); font-weight: 900;
  animation: checkIn 0.38s 0.18s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes checkIn {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* Copy */
.success-copy {
  padding: 0.6rem 1.2rem 0;
  display: flex; flex-direction: column; gap: 0.28rem;
}
.sc-en { font-size: 0.9rem; font-weight: 500; color: var(--text); line-height: 1.5; }
.sc-sm { font-size: 0.82rem; color: var(--muted); }
.sc-ar { font-size: 0.8rem; color: var(--muted); line-height: 1.7; direction: rtl; }

/* Success summary */
.success-summary-block {
  margin: 0.9rem 1.2rem 0;
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.ssl {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.62rem 0.9rem; border-bottom: 1px solid var(--border); gap: 0.75rem;
}
.ssl:last-child { border-bottom: none; }
.ssl-name { font-size: 0.82rem; font-weight: 600; color: var(--cream); }
.ssl-qty { font-size: 0.72rem; color: var(--muted); }
.ssl-price { font-size: 0.82rem; font-weight: 700; color: var(--gold-light); white-space: nowrap; }
.ssl-free { font-size: 0.7rem; color: #2dca72; font-weight: 600; }

.success-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1.2rem 0;
}
.success-total-row span { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.success-total-row strong {
  font-family: var(--font-disp); font-size: 1.65rem; font-weight: 900;
  color: var(--gold-light); letter-spacing: -0.02em;
}
.success-close-btn {
  display: block; width: calc(100% - 2.4rem); margin: 1rem 1.2rem 0;
  padding: 0.88rem; border: 1px solid var(--border-gold); border-radius: 12px;
  background: transparent; color: var(--gold-light);
  font-size: 0.88rem; font-weight: 700; cursor: pointer;
  transition: background 0.15s;
}
.success-close-btn:hover { background: rgba(234,164,84,0.08); }

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.toast {
  position: fixed; bottom: calc(5.5rem + var(--safe-b));
  left: 50%; transform: translateX(-50%) translateY(0.4rem);
  z-index: 300; display: none; white-space: nowrap;
  padding: 0.65rem 1.15rem;
  background: rgba(26,16,10,0.96); border: 1px solid var(--border);
  border-radius: 999px; font-size: 0.82rem; font-weight: 500; color: var(--cream);
  backdrop-filter: blur(12px); pointer-events: none;
}
.toast.show { display: block; animation: toastIn 0.2s ease; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(0.75rem); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (min-width: 600px) {
  .items-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .hero-actions { flex-direction: row; align-items: center; }
  .btn-gold { width: auto; min-width: 11rem; }
  .success-overlay { padding: 1.5rem; }
  .extras-grid { grid-template-columns: repeat(3,1fr); }
}

@media (min-width: 900px) {
  main { padding: 0 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}