/* ============================================================
   MAZAG CAFE — Main Stylesheet
   Design: Dark Gold Arabic Luxury
   Colors: #121414 (bg), #f2ca50 (gold), #d4af37 (deep gold)
   Fonts: Cairo (headings/UI), Tajawal (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=Tajawal:wght@400;500;700&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #121414;
  --bg2:       #1e2020;
  --bg3:       #282a2b;
  --gold:      #f2ca50;
  --gold-deep: #d4af37;
  --gold-dim:  rgba(242,202,80,0.15);
  --gold-glow: rgba(242,202,80,0.3);
  --text:      #e2e2e2;
  --text-muted:#d0c5af;
  --text-dim:  #99907c;
  --border:    rgba(77,70,53,0.3);
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: all 0.25s ease;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, .font-cairo { font-family: 'Cairo', sans-serif; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 99px; }
.no-scroll { overflow: hidden; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── LAYOUT ── */
.page {
  display: none;
  min-height: 100vh;
  padding-bottom: 90px;
  position: relative;
  background: var(--bg);
  z-index: 1;
}
.page.active {
  display: block;
}
.container { max-width: 480px; margin: 0 auto; padding: 0 16px; }

/* ── HEADER ── */
.app-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: 56px;
  background: rgba(18,20,20,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(77,70,53,0.2);
}
.app-header .header-title {
  font-family: 'Cairo', sans-serif;
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
}
.header-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: transparent;
  color: var(--gold); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.header-btn:active { transform: scale(0.9); }
.header-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid rgba(242,202,80,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cairo', sans-serif; font-weight: 700;
  font-size: 12px; color: var(--gold);
}

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 200; width: 92%; max-width: 440px;
  background: rgba(24,26,26,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(77,70,53,0.25);
  border-radius: 999px;
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 8px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px;
  width: 64px; height: 48px; border-radius: 999px;
  border: none; background: transparent; cursor: pointer;
  transition: var(--transition); position: relative;
}
.nav-item.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 0 12px var(--gold-glow);
}
.nav-item .material-symbols-outlined { font-size: 22px; color: var(--text-muted); }
.nav-item.active .material-symbols-outlined { color: #3c2f00; font-variation-settings: 'FILL' 1; }
.nav-item span.nav-label { font-family: 'Cairo', sans-serif; font-size: 9px; font-weight: 700; color: var(--text-dim); }
.nav-item.active span.nav-label { color: #3c2f00; }

.cart-badge {
  position: absolute;
  top: 4px;
  right: 50%;
  transform: translateX(14px);
  background: var(--gold);
  color: #000;
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 900;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #181a1a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 10;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: translateX(14px) scale(0); }
  100% { transform: translateX(14px) scale(1); }
}

/* ── GOLD GRADIENT BUTTON ── */
.btn-gold {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a1500; font-family: 'Cairo', sans-serif;
  font-weight: 700; font-size: 16px;
  border: none; border-radius: var(--radius-lg); cursor: pointer;
  box-shadow: 0 0 25px var(--gold-glow);
  transition: var(--transition);
}
.btn-gold:active { transform: scale(0.97); }
.btn-gold .material-symbols-outlined { font-size: 20px; font-variation-settings: 'FILL' 1; }

.btn-outline {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px;
  background: transparent;
  color: var(--gold); font-family: 'Cairo', sans-serif;
  font-weight: 600; font-size: 15px;
  border: 1px solid rgba(242,202,80,0.3);
  border-radius: var(--radius-lg); cursor: pointer;
  transition: var(--transition);
}
.btn-outline:active { transform: scale(0.97); }

.btn-ghost {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px;
  background: transparent;
  color: var(--text-dim); font-family: 'Cairo', sans-serif;
  font-weight: 600; font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:active { transform: scale(0.97); }

/* ── CARDS ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.card-gold {
  background: linear-gradient(135deg, rgba(242,202,80,0.08), rgba(212,175,55,0.04));
  border: 1px solid rgba(242,202,80,0.25);
  border-radius: var(--radius-lg);
  padding: 20px;
}

/* ── SECTION TITLE ── */
.section-title {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.section-title::before {
  content: ''; display: block;
  width: 4px; height: 20px; border-radius: 99px;
  background: var(--gold);
}
.section-title h2 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700; font-size: 16px; color: var(--gold);
}

/* ── PILL TABS (Grid Categories) ── */
.pill-tabs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  padding: 0; margin-bottom: 16px;
}
.pill-tabs::-webkit-scrollbar { display: none; }
.pill-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 12px; border-radius: 12px;
  font-family: 'Cairo', sans-serif; font-size: 13px; font-weight: 700;
  white-space: normal; cursor: pointer; border: none;
  background: rgba(30,32,32,0.8);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: var(--transition); flex-shrink: 0;
  min-height: 100px;
  text-align: center;
}
.pill-tab:hover {
  border-color: var(--gold);
  background: rgba(242,202,80,0.05);
}
.pill-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a1500; border-color: transparent;
  box-shadow: 0 8px 24px rgba(242,202,80,0.3);
}
.pill-tab .material-symbols-outlined { font-size: 28px; font-variation-settings: 'FILL' 1; }

/* ── STEP INDICATOR ── */
.step-indicator {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 8px;
}
.step-dot-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30,32,32,0.8);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.step-dot.done {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border: none;
}
.step-dot.active {
  background: var(--gold-dim);
  border: 2px solid var(--gold);
}
.step-dot .material-symbols-outlined { font-size: 14px; color: var(--text-dim); }
.step-dot.done .material-symbols-outlined { color: #1a1500; font-variation-settings: 'FILL' 1; }
.step-dot.active .material-symbols-outlined { color: var(--gold); }
.step-label { font-family: 'Cairo', sans-serif; font-size: 9px; color: var(--text-dim); }
.step-label.active { color: var(--gold); }
.step-line { flex: 1; height: 1px; background: var(--border); margin: 0 4px 16px; }
.step-line.done { background: var(--gold-deep); }

/* ── DRINK CARD (list) ── */
.drink-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px;
  cursor: pointer; transition: var(--transition); width: 100%;
  text-align: right;
}
.drink-card:active { transform: scale(0.98); }
.drink-card.selected { border-color: var(--gold); background: rgba(242,202,80,0.05); }
.drink-card-img {
  width: 56px; height: 56px; border-radius: 10px; overflow: hidden;
  flex-shrink: 0; background: rgba(242,202,80,0.06);
  display: flex; align-items: center; justify-content: center;
}
.drink-card-img img { width: 100%; height: 100%; object-fit: cover; }
.drink-card-img .material-symbols-outlined { font-size: 22px; color: var(--gold); font-variation-settings: 'FILL' 1; }
.drink-card-info { flex: 1; }
.drink-card-name { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 14px; color: var(--text); }
.drink-card-desc { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.drink-card-price { font-family: 'Cairo', sans-serif; font-weight: 900; font-size: 13px; color: var(--gold); white-space: nowrap; }

/* ── DRINK CARD (featured horizontal scroll) ── */
.drink-featured-card {
  flex-shrink: 0; width: 160px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: var(--transition);
}
.drink-featured-card:active { transform: scale(0.95); }
.drink-featured-img {
  height: 110px; position: relative; overflow: hidden;
}
.drink-featured-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.drink-featured-img .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,32,32,0.9) 0%, transparent 60%);
}
.drink-featured-badge {
  position: absolute; top: 8px; right: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a1500; font-family: 'Cairo', sans-serif;
  font-size: 9px; font-weight: 900;
  padding: 2px 8px; border-radius: 999px;
}
.drink-featured-info { padding: 10px 12px; }
.drink-featured-name { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 13px; color: var(--text); }
.drink-featured-price { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 13px; color: var(--gold); margin-top: 2px; }

/* ── OPTION BUTTON (temp/size/milk) ── */
.option-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 14px 8px;
  background: var(--bg2); border: 2px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  transition: var(--transition); text-align: center;
}
.option-btn:active { transform: scale(0.95); }
.option-btn.selected {
  background: rgba(242,202,80,0.08);
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(242,202,80,0.2);
}
.option-btn .material-symbols-outlined { font-size: 24px; color: var(--text-dim); font-variation-settings: 'FILL' 1; }
.option-btn.selected .material-symbols-outlined { color: var(--gold); }
.option-btn .opt-label { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 13px; color: var(--text-muted); }
.option-btn.selected .opt-label { color: var(--gold); }
.option-btn .opt-sub { font-family: 'Cairo', sans-serif; font-size: 10px; color: var(--text-dim); }

/* ── ADDON CHIP ── */
.addon-chip {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 12px 8px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: var(--transition); text-align: center;
}
.addon-chip:active { transform: scale(0.95); }
.addon-chip.selected { background: rgba(242,202,80,0.08); border-color: var(--gold); }
.addon-chip .material-symbols-outlined { font-size: 18px; color: var(--text-dim); font-variation-settings: 'FILL' 1; }
.addon-chip.selected .material-symbols-outlined { color: var(--gold); }
.addon-chip .chip-name { font-family: 'Cairo', sans-serif; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.addon-chip.selected .chip-name { color: var(--gold); }
.addon-chip .chip-price { font-size: 10px; color: var(--text-dim); }

/* ── MOOD CARD ── */
.mood-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  cursor: pointer; transition: var(--transition); text-align: right;
}
.mood-card:active { transform: scale(0.97); }
.mood-card.selected { box-shadow: 0 0 20px rgba(242,202,80,0.2); }
.mood-emoji { font-size: 32px; margin-bottom: 8px; }
.mood-label { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.mood-desc { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

/* ── ORDER CODE BADGE ── */
.order-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(242,202,80,0.12), rgba(212,175,55,0.08));
  border: 1px solid rgba(242,202,80,0.4);
  color: var(--gold);
  font-family: 'Cairo', sans-serif; font-weight: 900;
  font-size: 20px; letter-spacing: 0.05em;
  padding: 12px 24px; border-radius: var(--radius);
}

/* ── STATUS BADGE ── */
.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Cairo', sans-serif; font-size: 12px; font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.badge-table {
  background: rgba(242, 202, 80, 0.1);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}
.badge-pickup {
  background: rgba(78, 205, 196, 0.1);
  color: #4ECDC4;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}
.status-select {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.status-select:focus {
  background: rgba(255, 255, 255, 0.1);
}
.status-select option {
  background: #1e2020;
  color: var(--text);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ── SEARCH INPUT ── */
.search-input {
  width: 100%; padding: 12px 40px 12px 16px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: 'Tajawal', sans-serif; font-size: 14px;
  outline: none; transition: var(--transition);
}
.search-input:focus { border-color: rgba(242,202,80,0.4); }
.search-wrap { position: relative; }
.search-icon {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); font-size: 18px;
  pointer-events: none;
}

/* ── TEXTAREA ── */
.textarea-field {
  width: 100%; padding: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: 'Tajawal', sans-serif; font-size: 14px;
  outline: none; resize: none; transition: var(--transition);
}
.textarea-field:focus { border-color: rgba(242,202,80,0.4); }

/* ── INPUT FIELD ── */
.input-field {
  width: 100%; padding: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: 'Cairo', sans-serif; font-size: 14px;
  outline: none; transition: var(--transition);
}
.input-field:focus { border-color: rgba(242,202,80,0.4); }

/* ── COFFEE CUP SVG ── */
.cup-container {
  display: flex; justify-content: center; align-items: center;
  padding: 8px 0;
}
.cup-svg { transition: all 0.4s ease; }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 20px rgba(242,202,80,0.3); }
  50%       { box-shadow: 0 0 35px rgba(242,202,80,0.6); }
}
@keyframes steamRise {
  0%   { opacity: 0.6; transform: translateY(0) scaleX(1); }
  50%  { opacity: 0.3; transform: translateY(-8px) scaleX(1.2); }
  100% { opacity: 0;   transform: translateY(-16px) scaleX(0.8); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(0.3); }
  50%  { transform: scale(1.05); }
  70%  { transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

.anim-fade-up   { animation: fadeInUp 0.5s ease forwards; }
.anim-scale     { animation: fadeInScale 0.5s ease forwards; }
.anim-slide-r   { animation: slideInRight 0.35s ease forwards; }
.anim-slide-l   { animation: slideInLeft 0.35s ease forwards; }
.anim-bounce    { animation: bounceIn 0.5s cubic-bezier(0.36,0.07,0.19,0.97) forwards; }
.pulse-gold     { animation: pulseGold 2s ease-in-out infinite; }

.steam-path { animation: steamRise 2s ease-in-out infinite; }
.steam-path:nth-child(2) { animation-delay: 0.4s; }
.steam-path:nth-child(3) { animation-delay: 0.8s; }

/* ── SPLASH PAGE ── */
#page-splash {
  position: relative; min-height: 100vh;
  flex-direction: column;
  overflow: hidden; background: var(--bg);
  padding-bottom: 0 !important;
}
#page-splash.active {
  display: flex;
}
.splash-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.splash-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.splash-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(18,20,20,0.3) 0%, rgba(18,20,20,0.1) 30%, rgba(18,20,20,0.7) 70%, rgba(18,20,20,1) 100%);
}
.splash-content {
  position: relative; z-index: 10;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  min-height: 100vh; padding: 48px 24px 32px;
}
.splash-logo {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: fadeInUp 0.8s ease forwards;
}
.splash-logo-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(242,202,80,0.1);
  border: 1px solid rgba(242,202,80,0.4);
  display: flex; align-items: center; justify-content: center;
}
.splash-logo-icon .material-symbols-outlined { font-size: 32px; color: var(--gold); font-variation-settings: 'FILL' 1; }
.splash-tagline { font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(242,202,80,0.6); font-family: 'Cairo', sans-serif; }

.splash-headline {
  text-align: center;
  animation: fadeInScale 0.9s ease 0.3s both;
}
.splash-headline h1 {
  font-size: 72px; font-weight: 900; color: var(--gold);
  text-shadow: 0 0 40px rgba(242,202,80,0.3);
  line-height: 1;
}
.splash-headline h2 { font-size: 28px; font-weight: 600; color: var(--text); margin-top: 4px; }
.splash-divider { width: 64px; height: 1px; background: linear-gradient(to right, transparent, var(--gold-deep), transparent); margin: 16px auto; }
.splash-headline p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.splash-headline .sub-en { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(242,202,80,0.5); margin-top: 4px; }

.splash-ctas {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; max-width: 320px;
  animation: fadeInUp 0.8s ease 0.6s both;
}
.splash-barista-strip {
  width: 100%; height: 80px; border-radius: var(--radius-lg);
  overflow: hidden; position: relative; cursor: pointer;
  transition: var(--transition);
}
.splash-barista-strip:active { transform: scale(0.97); }
.splash-barista-strip img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.splash-barista-strip .strip-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(18,20,20,0.5);
  font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 14px; color: var(--gold);
}
.splash-barista-strip .strip-label .material-symbols-outlined { font-size: 18px; font-variation-settings: 'FILL' 1; }

/* ── MOOD PAGE ── */
.mood-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── BUILDER STEPS ── */
.builder-step { display: none; }
.builder-step.active { display: block; animation: slideInRight 0.3s ease forwards; }
.builder-step.exit-left { animation: slideInLeft 0.3s ease forwards; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

/* ── ORDER PAGE ── */
.order-service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.order-table-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.order-time-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.time-custom-input {
  display: flex; align-items: center; gap: 8px;
  padding: 12px; border-radius: var(--radius);
  background: var(--bg3); border: 1px solid rgba(242,202,80,0.3);
  margin-top: 10px;
}
.time-custom-input input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--gold); font-family: 'Cairo', sans-serif;
  font-weight: 700; font-size: 14px; direction: ltr;
}

/* ── CONFIRMATION ── */
.confirmation-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(242,202,80,0.08), rgba(212,175,55,0.04));
  border: 1px solid rgba(242,202,80,0.3);
  border-radius: 24px; padding: 28px 20px;
}
.confirmation-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: flex; align-items: center; justify-content: center;
  animation: bounceIn 0.5s ease forwards;
}
.confirmation-icon .material-symbols-outlined { font-size: 28px; color: #1a1500; font-variation-settings: 'FILL' 1; }

/* ── ADMIN PAGE ── */
.admin-login {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px;
  background: var(--bg);
}
.admin-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: var(--bg2); border-radius: var(--radius); margin-bottom: 16px;
}
.admin-tab {
  flex: 1; padding: 10px 8px; border-radius: 10px;
  border: none; background: transparent; cursor: pointer;
  font-family: 'Cairo', sans-serif; font-size: 12px; font-weight: 700;
  color: var(--text-dim); transition: var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.admin-tab.active { background: var(--bg3); color: var(--gold); }
.admin-tab .material-symbols-outlined { font-size: 18px; font-variation-settings: 'FILL' 1; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

.stat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; text-align: center;
}
.stat-value { font-family: 'Cairo', sans-serif; font-weight: 900; font-size: 28px; color: var(--gold); }
.stat-label { font-size: 12px; color: var(--text-dim); margin-top: 4px; font-family: 'Cairo', sans-serif; }

.order-row {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
}
.order-row-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.order-row-name { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 14px; color: var(--text); }
.order-row-price { font-family: 'Cairo', sans-serif; font-weight: 900; font-size: 14px; color: var(--gold); }
.order-row-meta { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.order-row-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.order-status-btn {
  padding: 6px 12px; border-radius: 999px;
  border: none; cursor: pointer;
  font-family: 'Cairo', sans-serif; font-size: 11px; font-weight: 700;
  transition: var(--transition);
}

.menu-edit-row {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.menu-edit-img {
  width: 48px; height: 48px; border-radius: 8px; overflow: hidden;
  flex-shrink: 0; background: var(--gold-dim);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  position: relative;
}
.menu-edit-img img { width: 100%; height: 100%; object-fit: cover; }
.menu-edit-img .material-symbols-outlined { font-size: 20px; color: var(--gold); font-variation-settings: 'FILL' 1; }
.menu-edit-img input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.menu-edit-info { flex: 1; }
.menu-edit-name { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 13px; color: var(--text); }
.menu-edit-price { font-family: 'Cairo', sans-serif; font-size: 12px; color: var(--gold); }
.menu-edit-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px; border: none;
  background: var(--bg3); color: var(--text-dim); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.icon-btn:hover { color: var(--gold); }
.icon-btn .material-symbols-outlined { font-size: 16px; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-sheet {
  width: 100%; max-width: 480px;
  background: var(--bg2); border-radius: 24px 24px 0 0;
  padding: 20px 20px 40px;
  transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-handle { width: 40px; height: 4px; border-radius: 99px; background: var(--border); margin: 0 auto 16px; }
.modal-title { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 16px; color: var(--gold); margin-bottom: 16px; }

/* ── TOAST ── */
.toast-container {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  z-index: 1000; display: flex; flex-direction: column; gap: 8px;
  width: 90%; max-width: 400px; pointer-events: none;
}
.toast {
  background: var(--bg2); border: 1px solid rgba(242,202,80,0.3);
  border-radius: var(--radius); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  animation: fadeInUp 0.3s ease forwards;
  pointer-events: all;
}
.toast.success { border-color: rgba(74,222,128,0.4); }
.toast.error   { border-color: rgba(248,113,113,0.4); }
.toast-icon { font-size: 18px; font-variation-settings: 'FILL' 1; }
.toast.success .toast-icon { color: #4ade80; }
.toast.error   .toast-icon { color: #f87171; }
.toast-default .toast-icon { color: var(--gold); }
.toast-text { font-family: 'Cairo', sans-serif; font-size: 13px; font-weight: 700; color: var(--text); }
.toast-sub  { font-size: 11px; color: var(--text-dim); }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center; padding: 64px 20px;
}
.empty-icon {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px;
  background: rgba(242,202,80,0.06);
  border: 1px solid rgba(242,202,80,0.15);
  display: flex; align-items: center; justify-content: center;
}
.empty-icon .material-symbols-outlined { font-size: 36px; color: rgba(242,202,80,0.3); font-variation-settings: 'FILL' 1; }
.empty-title { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 15px; color: var(--text-muted); margin-bottom: 8px; }
.empty-sub   { font-size: 13px; color: var(--text-dim); }

/* ── UTILITY ── */
.mt-2  { margin-top: 8px; }
.mt-3  { margin-top: 12px; }
.mt-4  { margin-top: 16px; }
.mt-5  { margin-top: 20px; }
.mb-2  { margin-bottom: 8px; }
.mb-3  { margin-bottom: 12px; }
.mb-4  { margin-bottom: 16px; }
.mb-5  { margin-bottom: 20px; }
.mb-6  { margin-bottom: 24px; }
.px-4  { padding-left: 16px; padding-right: 16px; }
.pt-4  { padding-top: 16px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-gold  { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-dim   { color: var(--text-dim); }
.font-bold  { font-weight: 700; }
.font-black { font-weight: 900; }
.text-xs    { font-size: 12px; }
.text-sm    { font-size: 14px; }
.text-base  { font-size: 16px; }
.text-lg    { font-size: 18px; }
.text-xl    { font-size: 20px; }
.text-2xl   { font-size: 24px; }
.w-full     { width: 100%; }
.hidden     { display: none !important; }
.flex-wrap  { flex-wrap: wrap; }
.overflow-x-auto { overflow-x: auto; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.label-sm {
  font-family: 'Cairo', sans-serif; font-size: 12px; font-weight: 700;
  color: var(--text-muted); margin-bottom: 8px; display: block;
}
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; }

/* ── TRACKING STEPPER ── */
.tracking-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 20px 0;
}
.tracking-stepper::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.1);
  z-index: 1;
}
.track-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.track-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid rgba(255,255,255,0.2);
  margin-bottom: 8px;
  transition: all 0.3s;
}
.track-label {
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 700;
}
.track-step.active .track-dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--gold-dim);
}
.track-step.active .track-label {
  color: var(--gold);
}
.tracking-stepper .track-step.active::after {
  content: '';
  position: absolute;
  top: 10px;
  left: -50%;
  right: 50%;
  height: 2px;
  background: var(--gold);
  z-index: -1;
}
.tracking-stepper .track-step:first-child::after { display: none; }

.anim-spin {
  animation: spin 1.5s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.anim-scale {
  animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
