/* ============================================================
   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; }
}


/* ============================================================
   MAZAG 2026 — Modern cafe refresh
   Layered enhancement: keeps existing component contracts intact.
   ============================================================ */
:root {
  --bg: #111310;
  --bg2: #191b17;
  --bg3: #22251f;
  --gold: #e8bd68;
  --gold-deep: #bd8741;
  --gold-dim: rgba(232,189,104,.14);
  --gold-glow: rgba(232,189,104,.22);
  --text: #f4f0e7;
  --text-muted: #d0c8b8;
  --text-dim: #a29b8e;
  --border: rgba(232,189,104,.14);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 30px;
  --transition: 260ms cubic-bezier(.2,.75,.25,1);
  --page-width: 1120px;
}
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(ellipse at 84% 8%, rgba(88,69,39,.13), transparent 34rem),
    radial-gradient(ellipse at 8% 72%, rgba(58,72,49,.08), transparent 30rem),
    var(--bg);
  letter-spacing: .005em;
}
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
::selection { background: rgba(232,189,104,.35); color: #fff9ed; }

/* Refined glass navigation */
.bottom-nav {
  width: min(92%, 510px); bottom: max(18px, env(safe-area-inset-bottom));
  padding: 9px; background: rgba(25,27,23,.82);
  border-color: rgba(245,223,177,.13); box-shadow: 0 18px 60px rgba(0,0,0,.46), inset 0 1px rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
  animation: nav-rise .65s .45s both cubic-bezier(.2,.8,.2,1);
}
.nav-item { border-radius: 18px; width: 72px; height: 52px; }
.nav-item.active { background: linear-gradient(145deg,#f0cf8d,#d7a955); box-shadow: 0 7px 24px rgba(223,177,96,.26), inset 0 1px rgba(255,255,255,.4); }
.nav-item .material-symbols-outlined { transition: transform .3s cubic-bezier(.2,.8,.2,1), color .2s; }
.nav-item.active .material-symbols-outlined { transform: translateY(-1px) scale(1.05); }
.nav-item span.nav-label { font-size: 10px; }

/* Desktop app canvas */
.page:not(#page-splash) { width: 100%; }
.page:not(#page-splash) > .container { max-width: var(--page-width); padding-inline: clamp(20px,5vw,64px); }
.app-header {
  height: 70px; padding-inline: max(22px, calc((100vw - var(--page-width)) / 2));
  background: rgba(17,19,16,.76); border-bottom-color: rgba(255,255,255,.055);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.app-header .header-title { font-size: 14px; letter-spacing: .12em; }
.header-btn { width: 42px; height: 42px; border: 1px solid transparent; }
.header-btn:hover { color: #fff0d0; background: rgba(255,255,255,.06); border-color: var(--border); }
.header-avatar { width: 40px; height: 40px; color: var(--gold); background: linear-gradient(145deg,rgba(232,189,104,.2),rgba(232,189,104,.04)); }
.container { max-width: var(--page-width); padding-inline: clamp(20px,5vw,64px); }

/* Hero: cinematic, warm and editorial */
#page-splash { isolation: isolate; min-height: min(100svh, 1100px); background: #12130f; }
#page-splash::before, #page-splash::after {
  content: ''; position: absolute; z-index: 2; pointer-events: none; border-radius: 50%;
}
#page-splash::before { width: min(40vw,520px); aspect-ratio: 1; right: -12vw; top: 18%; border: 1px solid rgba(238,204,144,.13); box-shadow: 0 0 0 30px rgba(238,204,144,.018), 0 0 0 70px rgba(238,204,144,.012); animation: halo-breathe 8s ease-in-out infinite; }
#page-splash::after { width: 8px; height: 8px; top: 23%; right: 15%; background: #f4d79e; box-shadow: 0 0 24px 7px rgba(232,189,104,.36); animation: mote-float 5s ease-in-out infinite; }
.splash-hero-bg { overflow: hidden; }
.splash-hero-bg img { opacity: .62; transform: scale(1.055); animation: hero-drift 24s ease-in-out infinite alternate; }
.splash-overlay { background: linear-gradient(270deg,rgba(13,15,12,.18) 0%,rgba(13,15,12,.46) 42%,rgba(13,15,12,.91) 100%), linear-gradient(0deg,rgba(13,15,12,.95),transparent 48%,rgba(13,15,12,.16)); }
.splash-content {
  width: min(100%, 1280px); min-height: min(100svh,1100px); margin-inline: auto;
  align-items: flex-start; justify-content: center; gap: clamp(32px,7vh,76px);
  padding: clamp(30px,6vh,72px) clamp(24px,9vw,130px);
}
.splash-logo { flex-direction: row; gap: 12px; animation: reveal-right .8s .1s both; }
.splash-logo-icon { width: 48px; height: 48px; border-color: rgba(238,204,144,.45); background: rgba(21,23,18,.42); box-shadow: inset 0 1px rgba(255,255,255,.12), 0 8px 36px rgba(0,0,0,.25); }
.splash-logo-icon .material-symbols-outlined { font-size: 25px; }
.splash-tagline { letter-spacing: .26em; color: rgba(245,220,176,.79); }
.splash-headline { text-align: right; max-width: 680px; animation: reveal-up .9s .2s both; }
.splash-headline h1 { font-size: clamp(76px,12vw,144px); line-height: .98; letter-spacing: -.055em; background: linear-gradient(120deg,#fff2d1 4%,#e9c77f 55%,#bd8741); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 28px rgba(206,157,80,.12)); }
.splash-headline h2 { font-size: clamp(26px,4vw,42px); color: rgba(255,250,239,.92); margin-top: 14px; letter-spacing: .02em; }
.splash-divider { width: 96px; height: 2px; margin: 24px 0 18px; background: linear-gradient(90deg,#e9c77f,rgba(232,189,104,0)); }
.splash-headline p { font-size: clamp(16px,2vw,20px); color: rgba(245,240,228,.88); }
.splash-headline .sub-en { font-size: 11px; letter-spacing: .24em; color: rgba(232,189,104,.75); }
.splash-ctas { max-width: 430px; width: min(100%,430px); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; animation: reveal-up .8s .38s both; }
.splash-ctas > .btn-gold, .splash-ctas > .btn-outline { flex: 1 1 180px; width: auto; min-height: 54px; }
.btn-gold { background: linear-gradient(120deg,#f1d59e 0%,#e4ba70 45%,#c68b43 100%); box-shadow: 0 12px 32px rgba(193,139,67,.19), inset 0 1px rgba(255,255,255,.4); transition: transform .25s, box-shadow .25s, filter .25s; }
.btn-gold:hover { transform: translateY(-3px); filter: saturate(1.12) brightness(1.04); box-shadow: 0 16px 38px rgba(193,139,67,.28), inset 0 1px rgba(255,255,255,.45); }
.btn-outline { border-color: rgba(240,214,165,.38); background: rgba(20,22,18,.22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .25s, background .25s, border-color .25s; }
.btn-outline:hover { transform: translateY(-2px); border-color: rgba(240,214,165,.7); background: rgba(232,189,104,.08); }
.splash-barista-strip { height: 88px; flex: 1 0 100%; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 16px 42px rgba(0,0,0,.2); }
.splash-barista-strip img { transition: transform .65s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.splash-barista-strip:hover img { transform: scale(1.06); opacity: .8; }
.splash-barista-strip .strip-label { background: linear-gradient(90deg,rgba(16,18,14,.28),rgba(16,18,14,.74)); }

/* Subtle page transitions and progressive reveals */
.page.active:not(#page-splash) { animation: page-enter .42s cubic-bezier(.2,.7,.2,1) both; }
.page.active .app-header { animation: header-settle .5s both; }
.container > .section-title, .container > .search-wrap, .container > .mood-grid, .container > #menu-list,
.container > #order-content, .container > #tracking-result { animation: reveal-up .55s both; }
.container > .section-title:nth-of-type(2), .container > .mood-grid { animation-delay: .08s; }
.card, .drink-card, .mood-card, .option-btn, .addon-chip, .stat-card, .order-row, .menu-edit-row, .pill-tab {
  transition: transform .26s cubic-bezier(.2,.75,.25,1), border-color .26s, background .26s, box-shadow .26s;
}
.drink-card:hover, .mood-card:hover, .option-btn:hover, .addon-chip:hover, .stat-card:hover, .order-row:hover, .menu-edit-row:hover { transform: translateY(-3px); border-color: rgba(232,189,104,.34); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.drink-card-img { border-radius: 14px; }
.drink-card-img img, .drink-featured-img img { transition: transform .5s; }
.drink-card:hover .drink-card-img img, .drink-featured-card:hover .drink-featured-img img { transform: scale(1.08); }
.card, .drink-card, .mood-card, .option-btn, .addon-chip, .stat-card, .order-row, .menu-edit-row { background-color: rgba(28,30,25,.85); border-color: rgba(255,255,255,.075); }
.section-title::before { width: 3px; background: linear-gradient(180deg,#f2d49b,#bd8741); box-shadow: 0 0 14px rgba(232,189,104,.4); }
.section-title h2 { color: #f0d39c; }
.pill-tab { border-radius: 18px; }
.pill-tab.active { background: linear-gradient(135deg,#f1d59e,#c88e47); color: #251b0c; box-shadow: 0 10px 24px rgba(199,145,74,.2); }
.search-input, .textarea-field, .input-field { background: rgba(29,31,26,.85); border-color: rgba(255,255,255,.09); }
.search-input:focus, .textarea-field:focus, .input-field:focus { border-color: rgba(232,189,104,.65); box-shadow: 0 0 0 4px rgba(232,189,104,.08); }
.step-dot.done { background: linear-gradient(135deg,#f1d59e,#c88e47); }
.step-dot.active { background: rgba(232,189,104,.12); border-color: #e8bd68; box-shadow: 0 0 20px rgba(232,189,104,.15); }

/* Smooth modals, notices and tap feedback */
.modal-overlay { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.modal-sheet { border: 1px solid rgba(255,255,255,.08); box-shadow: 0 -20px 80px rgba(0,0,0,.36); }
.toast { box-shadow: 0 16px 40px rgba(0,0,0,.28); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
button:active { transition-duration: 90ms; }

@keyframes page-enter { from { opacity: 0; transform: translateY(9px) scale(.995); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes header-settle { from { opacity: .55; } to { opacity: 1; } }
@keyframes reveal-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal-right { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes hero-drift { from { transform: scale(1.055) translate3d(0,0,0); } to { transform: scale(1.12) translate3d(-1.2%,.6%,0); } }
@keyframes halo-breathe { 0%,100% { transform: scale(.96); opacity: .55; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes mote-float { 0%,100% { transform: translate3d(0,0,0); opacity: .68; } 50% { transform: translate3d(-7px,-15px,0); opacity: 1; } }
@keyframes nav-rise { from { opacity: 0; transform: translate(-50%,18px); } to { opacity: 1; transform: translate(-50%,0); } }

@media (min-width: 760px) {
  .container { padding-top: 28px; }
  .mood-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
  .mood-card { padding: 22px; }
  .drink-card { padding: 16px; gap: 16px; }
  .drink-card-img { width: 68px; height: 68px; }
  .pill-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
  .pill-tab { min-height: 58px; padding: 12px 18px; flex-direction: row; border-radius: 999px; }
  .pill-tab .material-symbols-outlined { font-size: 20px; }
  .page:not(#page-splash) .cup-container { max-width: 640px; margin-inline: auto; }
  .admin-tabs { max-width: 820px; }
}
@media (max-width: 759px) {
  #page-splash { min-height: 100svh; }
  .splash-overlay { background: linear-gradient(180deg,rgba(13,15,12,.14) 0%,rgba(13,15,12,.42) 26%,rgba(13,15,12,.82) 55%,#111310 100%); }
  .splash-content { align-items: center; justify-content: space-between; gap: 22px; padding: max(28px,env(safe-area-inset-top)) 22px max(30px,env(safe-area-inset-bottom)); text-align: center; }
  .splash-logo { flex-direction: column; gap: 7px; }
  .splash-headline { text-align: center; margin-top: auto; }
  .splash-headline h1 { font-size: clamp(74px,22vw,112px); }
  .splash-headline h2 { margin-top: 8px; }
  .splash-divider { margin: 16px auto; }
  .splash-ctas { max-width: 400px; }
  .splash-ctas > .btn-gold, .splash-ctas > .btn-outline { min-height: 50px; }
  .splash-barista-strip { height: 72px; }
  .container { padding-inline: 20px; }
  .page:not(#page-splash) > .container { padding-inline: 20px; }
}
@media (max-width: 380px) {
  .nav-item { width: 58px; }
  .nav-item span.nav-label { font-size: 9px; }
  .splash-ctas { gap: 9px; }
  .splash-ctas > .btn-gold, .splash-ctas > .btn-outline { flex-basis: 145px; padding-inline: 10px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* MAZAG 3D hero centerpiece */
.splash-content { position: relative; }
.splash-3d-scene {
  position: absolute; z-index: -1; left: clamp(2%,8vw,13%); top: 50%;
  width: clamp(250px,34vw,430px); height: clamp(300px,42vw,500px);
  perspective: 950px; transform: translateY(-45%); pointer-events: none;
  animation: cup-float 6.5s ease-in-out infinite;
}
.scene-glow {
  position: absolute; inset: 18% 5% 3%; border-radius: 50%;
  background: radial-gradient(ellipse,rgba(212,153,73,.23),rgba(212,153,73,.05) 43%,transparent 70%);
  filter: blur(24px); transform: rotateX(68deg); animation: glow-breathe 5s ease-in-out infinite;
}
.cup-saucer {
  position: absolute; z-index: 2; width: 65%; height: 15%; left: 17%; bottom: 10%;
  border-radius: 50%; transform: rotateX(66deg) rotateZ(-8deg);
  background: linear-gradient(160deg,#f3e6cd 2%,#bfa77d 16%,#473a2a 23%,#e8d7b4 32%,#71593b 50%,#26231d 75%,#d2bc94 94%);
  box-shadow: 0 30px 40px rgba(0,0,0,.5), 0 0 38px rgba(223,170,89,.12);
}
.cup-handle {
  position: absolute; z-index: 2; width: 26%; height: 32%; left: 62%; top: 38%;
  border: clamp(14px,2vw,22px) solid #c6ad81; border-left-color: #756044;
  border-radius: 38% 56% 55% 38%; transform: rotateY(-18deg) rotateZ(6deg);
  box-shadow: inset -5px 4px 8px rgba(255,255,255,.42), 9px 12px 18px rgba(0,0,0,.28);
}
.cup-ceramic {
  position: absolute; z-index: 3; width: 48%; height: 54%; left: 24%; top: 26%;
  clip-path: polygon(5% 0,95% 0,82% 100%,18% 100%);
  border-radius: 12% 12% 24% 24%; transform: rotateY(-20deg) rotateX(4deg) rotateZ(-3deg);
  background: linear-gradient(96deg,#342a20 0%,#e9d7b2 10%,#f7e8c9 22%,#b49a70 35%,#f2e1bd 50%,#d5bd94 70%,#69553a 88%,#211e19 100%);
  box-shadow: inset 17px 1px 22px rgba(255,255,255,.5), inset -20px 0 26px rgba(20,16,11,.45), 15px 28px 36px rgba(0,0,0,.4);
}
.cup-ceramic::after {
  content: ''; position: absolute; inset: 12% 18% 15%;
  background: linear-gradient(100deg,transparent,rgba(255,255,255,.37) 48%,transparent 72%);
  transform: skewX(-12deg); opacity: .72;
}
.cup-emblem {
  position: absolute; z-index: 1; left: 38%; top: 38%; width: 25%; aspect-ratio: 1;
  display: grid; place-items: center; border: 1px solid rgba(126,87,43,.58); border-radius: 50%;
  color: #76552c; font-family: Cairo, sans-serif; font-size: clamp(22px,3vw,34px); font-weight: 900;
  box-shadow: 0 0 0 4px rgba(255,255,255,.16), inset 0 0 12px rgba(120,76,31,.12);
}
.cup-rim {
  position: absolute; z-index: 4; width: 49%; height: 14%; left: 23%; top: 20%;
  border-radius: 50%; transform: rotateX(58deg) rotateY(-16deg);
  background: linear-gradient(145deg,#f8ebd0,#9d8059 18%,#3c2b1e 27%,#d8be91 48%,#80603b 77%,#f3e2bd);
  box-shadow: 0 7px 12px rgba(0,0,0,.4), inset 0 2px 3px rgba(255,255,255,.5);
}
.cup-coffee {
  position: absolute; inset: 16%; border-radius: 50%;
  background: radial-gradient(ellipse at 42% 33%,#bd8850 0 9%,#5b3420 10% 21%,#b17b49 23% 25%,#392115 36% 73%,#140e0a 100%);
  box-shadow: inset 0 0 10px rgba(0,0,0,.8); animation: coffee-shimmer 5s ease-in-out infinite;
}
.coffee-steam {
  position: absolute; z-index: 4; top: 7%; width: 12%; height: 22%;
  border-left: 2px solid rgba(245,225,188,.55); border-radius: 50%; filter: blur(2px);
  transform: rotate(12deg); animation: steam-3d 3.2s ease-in-out infinite;
}
.steam-one { left: 34%; }
.steam-two { left: 45%; top: 2%; height: 27%; animation-delay: .7s; }
.steam-three { left: 56%; top: 8%; animation-delay: 1.3s; }
.coffee-bean {
  position: absolute; z-index: 5; width: 9%; height: 5%; border-radius: 50%;
  background: linear-gradient(130deg,#a96b31,#402214 60%,#20120b);
  box-shadow: 0 8px 14px rgba(0,0,0,.36), inset 2px 1px 3px rgba(255,220,170,.34);
}
.coffee-bean::after { content: ''; position: absolute; left: 48%; top: 10%; height: 80%; border-left: 1px solid rgba(224,170,109,.52); transform: rotate(14deg); }
.bean-one { left: 5%; top: 63%; transform: rotate(-32deg); animation: bean-drift 5.5s ease-in-out infinite; }
.bean-two { right: 8%; top: 28%; transform: rotate(28deg) scale(.72); animation: bean-drift 6.2s 1s ease-in-out infinite; }
@keyframes cup-float { 0%,100% { transform: translateY(-45%) rotateY(-7deg) rotateZ(-1deg); } 50% { transform: translateY(calc(-45% - 13px)) rotateY(5deg) rotateZ(1deg); } }
@keyframes steam-3d { 0% { opacity: 0; transform: translateY(20px) scale(.7) rotate(12deg); } 35% { opacity: .72; } 100% { opacity: 0; transform: translateY(-50px) scale(1.25) rotate(-8deg); } }
@keyframes coffee-shimmer { 0%,100% { filter: brightness(.92); } 50% { filter: brightness(1.17); } }
@keyframes glow-breathe { 0%,100% { opacity: .58; transform: rotateX(68deg) scale(.94); } 50% { opacity: 1; transform: rotateX(68deg) scale(1.08); } }
@keyframes bean-drift { 0%,100% { translate: 0 0; } 50% { translate: 5px -12px; } }

/* Layered depth interactions across menu and customizer */
@media (hover:hover) and (pointer:fine) {
  .drink-card, .mood-card, .option-btn, .addon-chip, .drink-featured-card, .card-gold {
    transform-style: preserve-3d; will-change: transform;
  }
  .drink-featured-card:hover { transform: perspective(700px) rotateX(3deg) rotateY(-4deg) translateY(-5px); box-shadow: 0 18px 36px rgba(0,0,0,.34); }
  .mood-card:hover { transform: perspective(700px) rotateX(2deg) rotateY(-2deg) translateY(-4px); }
}
@media (max-width: 759px) {
  .splash-3d-scene { opacity: .3; width: 240px; height: 300px; left: -52px; top: 36%; transform: translateY(-30%) scale(.78); }
}
@media (max-width: 420px) {
  .splash-3d-scene { opacity: .19; left: -92px; top: 33%; }
}
@media (prefers-reduced-motion: reduce) {
  .splash-3d-scene, .coffee-steam, .coffee-bean, .scene-glow, .cup-coffee { animation: none !important; }
}


/* Embedded admin (SPA) — aligned with the operations dashboard */
.admin-login { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 50% 32%,rgba(153,111,48,.16),transparent 58%),#111310; }
.admin-login::before, .admin-login::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; border: 1px solid rgba(232,189,104,.11); pointer-events:none; }
.admin-login::before { width: min(86vw,510px); aspect-ratio: 1; box-shadow: 0 0 0 28px rgba(232,189,104,.022),0 0 0 70px rgba(232,189,104,.014); animation: halo-breathe 8s ease-in-out infinite; }
.admin-login > div:first-child { width: min(100%,420px); padding: clamp(28px,6vw,48px); border: 1px solid rgba(232,189,104,.15); border-radius: 28px; background: linear-gradient(145deg,rgba(34,36,29,.94),rgba(21,23,19,.94)); box-shadow: 0 35px 90px rgba(0,0,0,.38),inset 0 1px rgba(255,255,255,.06); animation: reveal-up .65s both; }
.admin-tabs { position: sticky; top: 70px; z-index: 80; padding: 7px; border: 1px solid rgba(255,255,255,.07); background: rgba(23,25,21,.82); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.admin-tab { border-radius: 13px; }
.admin-tab.active { background: linear-gradient(135deg,rgba(232,189,104,.21),rgba(232,189,104,.07)); box-shadow: inset 0 0 0 1px rgba(232,189,104,.13); }
.admin-panel.active { animation: page-enter .36s both; }
#page-admin .stat-card { min-width:0; }
#page-admin .order-row, #page-admin .menu-edit-row { border-radius: 18px; box-shadow: 0 12px 30px rgba(0,0,0,.15); }
#page-admin .order-row:hover, #page-admin .menu-edit-row:hover { transform: translateY(-3px) rotateX(1deg); border-color: rgba(232,189,104,.27); }
#page-admin .admin-tabs { overflow-x:auto; scrollbar-width:none; }
#page-admin .admin-tabs::-webkit-scrollbar { display:none; }
@media (max-width:759px) {
  #page-admin .container { padding-inline: 14px; }
  #page-admin .admin-tabs { top: 70px; }
  #page-admin .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #page-admin .order-time-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #page-admin .admin-panel .section-title { margin-top: 12px; }
}
@media (prefers-reduced-motion:reduce) { .admin-login::before { animation:none; } }
