/* ============================================================
   Roma Pizzaria & Grillbar — Italian Restaurant Experience
   LIGHT theme with Roma red (#C41E1E) brand accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens — Roma Pizzaria brand: Roma red #C41E1E ── */
:root {
  --gold: #C41E1E;
  --gold-hover: #A51B28;
  --gold-dim: rgba(196, 30, 30, 0.10);
  --gold-glow: rgba(196, 30, 30, 0.12);
  --bg: #F4E9D8;                    /* warm cream / pizza crust */
  --bg-soft: #FCEFDF;               /* lighter cream for gradient stop */
  --bg-card: #FFFFFF;               /* pure white cards pop on cream */
  --bg-card-hover: #FFF9F5;
  --bg-input: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --text-dim: #999999;
  --border: rgba(196, 30, 30, 0.18);
  --border-soft: #E8DDCC;
  --border-gold: rgba(196, 30, 30, 0.35);
  --shadow: 0 6px 22px rgba(140, 70, 30, 0.14);
  --shadow-strong: 0 10px 32px rgba(120, 60, 30, 0.22);
  --shadow-gold: 0 0 24px rgba(196, 30, 30, 0.14);
  --shadow-lg: 0 16px 48px rgba(120, 60, 30, 0.28);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-pill: 999px;
  --glass-bg: #FFFFFF;
  --glass-border: #E8DDCC;
  --glass-blur: blur(0px);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --green: #4CAF50;
  --green-dim: rgba(76, 175, 80, 0.10);
  --red: #EF5350;
  --red-dim: rgba(239, 83, 80, 0.10);
  --blue: #42A5F5;
  --blue-dim: rgba(66, 165, 245, 0.10);
  --warm: #E8A035;
  --warm-dim: rgba(232, 160, 53, 0.10);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.3s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  height: 100%;
  font-family: var(--font-body);
  color: var(--text);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  /* Warmer, more visible cream — like real pizza dough */
  background:
    radial-gradient(circle at 12% 8%, rgba(196, 30, 30, 0.10) 0%, transparent 38%),
    radial-gradient(circle at 88% 92%, rgba(232, 160, 53, 0.16) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(232, 180, 90, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #F5D9A8 0%, #F0CE95 50%, #E8C082 100%);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Pizza-themed watermark — BIGGER + MORE visible */
body::before {
  content: '🍕    🍕    🍕    🍕\A  🍕    🍕    🍕    🍕\A🍕    🍕    🍕    🍕\A  🍕    🍕    🍕    🍕\A🍕    🍕    🍕    🍕\A  🍕    🍕    🍕    🍕\A🍕    🍕    🍕    🍕';
  white-space: pre;
  position: fixed;
  inset: 0;
  font-size: 4rem;
  line-height: 4.8rem;
  letter-spacing: 2.5rem;
  color: rgba(196, 30, 30, 0.12);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  padding: 40px 20px;
  transform: rotate(-8deg) translate(-40px, -40px);
  transform-origin: top left;
  filter: saturate(0.85) blur(0.5px);
}

/* Secondary warm glow overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 22% 22%, rgba(232, 160, 53, 0.22) 0%, transparent 16%),
    radial-gradient(circle at 78% 72%, rgba(196, 30, 30, 0.12) 0%, transparent 18%),
    radial-gradient(circle at 50% 45%, rgba(232, 180, 90, 0.14) 0%, transparent 24%),
    radial-gradient(circle at 15% 85%, rgba(196, 30, 30, 0.08) 0%, transparent 22%);
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

/* Hide scrollbars on mobile */
::-webkit-scrollbar { width: 0; height: 0; }
* { scrollbar-width: none; }

/* Disable text selection on interactive elements */
button, .btn, .menu-option, .game-pick-card, .cat-btn, .qty-btn, .add-btn,
.chat-send-btn, .spin-btn, .topping-option, .order-method-card {
  -webkit-user-select: none;
  user-select: none;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }


/* ============================================================
   BACKGROUND PARTICLES — very subtle on white
   ============================================================ */
.bg-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.06;
  animation: particleFloat linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 18s; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-duration: 22s; animation-delay: -4s; }
.particle:nth-child(3) { left: 40%; animation-duration: 16s; animation-delay: -8s; }
.particle:nth-child(4) { left: 55%; animation-duration: 24s; animation-delay: -2s; }
.particle:nth-child(5) { left: 70%; animation-duration: 20s; animation-delay: -6s; }
.particle:nth-child(6) { left: 85%; animation-duration: 19s; animation-delay: -10s; }
.particle:nth-child(7) { left: 15%; animation-duration: 23s; animation-delay: -12s; width: 2px; height: 2px; }
.particle:nth-child(8) { left: 60%; animation-duration: 17s; animation-delay: -14s; width: 2px; height: 2px; }
.particle:nth-child(9) { left: 80%; animation-duration: 21s; animation-delay: -3s; width: 4px; height: 4px; opacity: 0.04; }
.particle:nth-child(10) { left: 35%; animation-duration: 25s; animation-delay: -7s; width: 2px; height: 2px; }


/* ============================================================
   APP CONTAINER
   ============================================================ */
#app {
  max-width: 440px;
  margin: 0 auto;
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
  /* No min-height: let content dictate. Short screens no longer leave empty scroll area */
}

/* Desktop: proper wide layout, not a phone in the middle */
@media (min-width: 900px) {
  #app {
    max-width: 1100px;
    padding: 0 40px 48px;
  }
  /* Menu items: 3 columns on desktop (was 2) */
  .menu-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 18px !important;
  }
  /* Chat menu cards: 3 columns on desktop */
  .chat-menu-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }
  /* Main hub menu options: 2x2 grid */
  .main-menu {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
  /* Order method cards already 3-col, stretch nicely */
  .order-methods {
    max-width: 900px;
    margin: 12px auto 0 !important;
  }
  /* Events grid wider */
  .events-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  /* Cart drawer on desktop: full app width */
  .cart-drawer {
    max-width: 1100px !important;
  }
  /* Chat container uses full width */
  .chat-container {
    max-width: none !important;
  }
}

/* Very wide: push to 1200-1300 so content breathes */
@media (min-width: 1400px) {
  #app {
    max-width: 1280px;
  }
}

/* Decorative side pizzas only on ultra-wide */
@media (min-width: 1500px) {
  html::before {
    content: '🍕';
    position: fixed;
    left: 3%;
    top: 20%;
    font-size: 7rem;
    opacity: 0.10;
    transform: rotate(-20deg);
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 8px 20px rgba(196, 30, 30, 0.18));
    animation: floatSide 14s ease-in-out infinite;
  }
  html::after {
    content: '🍝';
    position: fixed;
    right: 3%;
    bottom: 18%;
    font-size: 6.5rem;
    opacity: 0.10;
    transform: rotate(15deg);
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 8px 20px rgba(232, 160, 53, 0.18));
    animation: floatSide 16s ease-in-out infinite reverse;
  }
}
@keyframes floatSide {
  0%, 100% { transform: rotate(-20deg) translateY(0); }
  50% { transform: rotate(-14deg) translateY(-12px); }
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 0.04em;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }

.tagline {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
}


/* ============================================================
   GLASSMORPHISM CARD (reusable) — clean light card style
   ============================================================ */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  z-index: 1;
}

.glass-card:hover {
  border-color: rgba(196, 30, 30, 0.22);
  box-shadow: 0 8px 28px rgba(120, 60, 30, 0.18), 0 0 14px rgba(196, 30, 30, 0.06);
  transform: translateY(-1px);
}


/* ============================================================
   TOP BAR — white with red brand text
   ============================================================ */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
}

.top-bar .brand-mark {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-weight: 600;
  cursor: pointer;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar .lang-btn,
.top-bar .notif-bell {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 6px 10px;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
}

.top-bar .lang-btn:hover,
.top-bar .notif-bell:hover {
  border-color: var(--border);
  color: var(--text);
}

.phone-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 6px 10px 6px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 8px auto 0;
}

.phone-badge-btn {
  background: var(--gold);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s;
}

.phone-badge-btn:hover {
  background: var(--gold-hover);
}

.table-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-dim);
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 0.7rem;
  color: var(--green);
  font-weight: 600;
}


/* ============================================================
   SCREENS (general)
   ============================================================ */
.screen {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* When cart drawer is visible, these screens reserve space for the sticky bar */
body.cart-visible #screen-menu,
body.cart-visible #screen-chat,
body.cart-visible #screen-order-method {
  padding-bottom: 100px;
}

.screen.active {
  display: flex;
  animation: screenEnter 0.5s var(--ease-out) both;
}


/* ============================================================
   BACK BUTTON
   ============================================================ */
.back-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid rgba(196, 30, 30, 0.25);
  border-radius: var(--radius-pill);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  margin: 12px 0 14px;
  transition: all var(--transition);
  font-family: var(--font-body);
  box-shadow: 0 2px 8px rgba(196, 30, 30, 0.06);
}

.back-btn:hover {
  border-color: var(--gold);
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--gold) 0%, #9A1717 100%);
  box-shadow: 0 4px 14px rgba(196, 30, 30, 0.22);
  transform: translateX(-2px);
}

.back-btn:active { transform: translateX(0); }

/* Prominent "Back to menu" footer button for deep screens (loyalty, events, etc.) */
.back-home-footer {
  width: 100%;
  margin-top: 20px;
  display: flex;
  justify-content: center;
}
.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F5 100%);
  border: 1.5px solid rgba(196, 30, 30, 0.2);
  border-radius: var(--radius-pill);
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 14px 28px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.back-home-btn:hover {
  background: linear-gradient(135deg, var(--gold) 0%, #9A1717 100%);
  color: #FFFFFF;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 30, 0.28);
}
.back-home-btn .home-icon { font-size: 1.05rem; }


/* ============================================================
   HERO SECTION — background image with dark overlay for entry screen
   ============================================================ */
/* ── Full-screen landing page ── */
.landing-screen {
  padding-bottom: 0 !important;
}
.landing-hero {
  width: calc(100% + 32px);
  margin: 0 -16px;
  min-height: 100vh;
  min-height: 100dvh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.landing-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.85) 100%);
  z-index: 0;
}
.landing-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px 32px;
  width: 100%;
  max-width: 400px;
}
.landing-logo {
  max-width: 220px;
  height: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.landing-logo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}
.landing-address {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.landing-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}
.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.landing-card {
  width: 100%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 28px 24px 20px;
  text-align: center;
}
.landing-card h2 {
  font-family: var(--font-display);
  color: #FFFFFF;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.landing-card-sub {
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.landing-input-row {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 0 4px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.landing-input-row:focus-within {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.2);
}
.landing-prefix {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0 10px 0 14px;
  white-space: nowrap;
}
.landing-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1.05rem;
  font-family: var(--font-body);
  padding: 14px 14px 14px 4px;
  outline: none;
  width: 100%;
}
.landing-input::placeholder {
  color: rgba(255,255,255,0.4);
}
.landing-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #C41E1E;
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  padding: 15px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}
.landing-btn:hover {
  background: #A51B28;
  transform: translateY(-1px);
}
.landing-btn:active {
  transform: translateY(0);
}
.landing-privacy {
  color: rgba(255,255,255,0.45);
  font-size: 0.7rem;
  margin-top: 12px;
}

/* Old hero-section kept for compatibility but hidden if landing-hero present */
.hero-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 48px;
  padding-bottom: 24px;
  position: relative;
  background: url('https://d3qxpncwm2dii8.cloudfront.net/589322dc62535284772394/666cbd7de0b21f1f281e2f0f577ef740c4387544-1079x1548.jpg') center/cover no-repeat;
  border-radius: 0 0 var(--radius) var(--radius);
  margin: 0 -16px;
  width: calc(100% + 32px);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 0;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(196, 30, 30, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-logo-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
}

.hero-logo {
  font-size: 4rem;
  line-height: 1;
  animation: float 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.hero-logo-ring {
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(255, 255, 255, 0.30);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

.hero-logo-ring::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite 0.5s;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #FFFFFF;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.hero-address {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.80);
  white-space: nowrap;
}

.mini-badge .badge-icon {
  font-size: 0.72rem;
}


/* ============================================================
   PHONE CARD (login)
   ============================================================ */
.phone-card {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.phone-card-header {
  text-align: center;
  margin-bottom: 20px;
}

.phone-card-header h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.phone-card-header p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.phone-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
  margin-bottom: 14px;
}

.phone-input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 30, 30, 0.08);
}

.phone-prefix {
  padding: 0 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  border-right: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  height: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.02);
}

.phone-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  padding: 14px 16px;
  font-family: var(--font-body);
  width: 100%;
}

.phone-input-wrap input::placeholder {
  color: var(--text-dim);
}

.phone-privacy {
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.4;
}


/* ============================================================
   BUTTONS — burgundy red with white text
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--gold);
  color: #FFFFFF;
  padding: 14px 28px;
  box-shadow: 0 4px 16px rgba(196, 30, 30, 0.20);
}

.btn-primary:hover {
  background: var(--gold-hover);
  box-shadow: 0 6px 24px rgba(196, 30, 30, 0.30);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-glow {
  animation: glow 2.5s ease-in-out infinite;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 12px 24px;
}

.btn-ghost:hover {
  background: rgba(196, 30, 30, 0.05);
  border-color: var(--border-gold);
}

.btn-large {
  width: 100%;
  padding: 16px 28px;
  font-size: 1rem;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.78rem;
}

.btn-danger {
  background: var(--red);
  color: white;
  padding: 12px 24px;
}

.btn-danger:hover {
  background: #e53935;
  box-shadow: 0 4px 16px rgba(239, 83, 80, 0.25);
}

.btn-arrow {
  display: inline-flex;
  transition: transform var(--transition);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}


/* ============================================================
   LOADING SCREEN
   ============================================================ */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 24px;
}

.loading-logo {
  font-size: 4rem;
  animation: pulse 1.8s ease-in-out infinite;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(196, 30, 30, 0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-screen .brand-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-weight: 600;
}


/* ============================================================
   GAME PICK SCREEN
   ============================================================ */
.game-pick-screen {
  width: 100%;
  text-align: center;
  padding-top: 16px;
}

.game-pick-screen h2 {
  margin-bottom: 6px;
}

.game-pick-screen > p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.gp-prize-preview {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.prize-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(196, 30, 30, 0.06);
  border: 1px solid rgba(196, 30, 30, 0.12);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 500;
}

.gp-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  font-size: 1rem;
  opacity: 0.4;
  animation: float 3s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 10%; left: 8%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 20%; right: 10%; animation-delay: -1s; }
.sparkle:nth-child(3) { bottom: 15%; left: 15%; animation-delay: -2s; }
.sparkle:nth-child(4) { bottom: 25%; right: 12%; animation-delay: -0.5s; }
.sparkle:nth-child(5) { top: 50%; left: 5%; animation-delay: -1.5s; }

.game-pick-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.game-pick-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px 16px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
}

.game-pick-card:hover {
  border-color: rgba(196, 30, 30, 0.20);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.game-pick-card:active {
  transform: translateY(0) scale(0.97);
}

.gpc-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(196, 30, 30, 0.02) 45%,
    rgba(196, 30, 30, 0.04) 50%,
    rgba(196, 30, 30, 0.02) 55%,
    transparent 70%
  );
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

.gpc-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.gpc-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
  font-weight: 600;
}

.gpc-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.gpc-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(196, 30, 30, 0.08);
  color: var(--gold);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.game-pick-card:hover .gpc-arrow {
  background: rgba(196, 30, 30, 0.15);
  transform: translateX(2px);
}

.skip-link {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 8px 16px;
  transition: color var(--transition);
  font-family: var(--font-body);
}

.skip-link:hover {
  color: var(--text-muted);
}


/* ============================================================
   MAIN MENU
   ============================================================ */
.main-header {
  width: 100%;
  text-align: center;
  padding: 18px 0 24px;
  position: relative;
}

.main-header::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--gold) 0%, #9A1717 100%);
  border-radius: 2px;
}

.main-header .biz-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.main-greeting {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.main-menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.menu-option {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F5 100%);
  border: 1px solid rgba(196,30,30,0.1);
  border-radius: 20px;
  padding: 20px 22px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  width: 100%;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.menu-option::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold) 0%, #9A1717 100%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s;
}

.menu-option:hover {
  border-color: rgba(196, 30, 30, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(196,30,30,0.12);
  background: linear-gradient(135deg, #FFFFFF 0%, #FFEEE8 100%);
}

.menu-option:hover::before { transform: scaleY(1); }

.menu-option:active {
  transform: translateY(0) scale(0.99);
}

.menu-option.subtle {
  opacity: 0.7;
  border-color: transparent;
  background: #FAFAFA;
}

.menu-option.subtle:hover {
  opacity: 0.95;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F5 100%);
}

.menu-option-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(196,30,30,0.1) 0%, rgba(196,30,30,0.18) 100%);
  font-size: 1.9rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(196,30,30,0.1);
}

.menu-option-text {
  flex: 1;
}

.menu-option-text h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 2px;
}

.menu-option-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.menu-option-arrow {
  color: var(--text-dim);
  font-size: 1rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.menu-option:hover .menu-option-arrow {
  transform: translateX(3px);
  color: var(--gold);
}


/* ============================================================
   ORDER METHOD SCREEN
   ============================================================ */
.order-methods {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.order-method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px 12px 20px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.order-method-card:hover {
  border-color: rgba(196, 30, 30, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

.order-method-card:active {
  transform: scale(0.97);
}

.omc-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.voice-gradient {
  background: linear-gradient(135deg, rgba(196, 30, 30, 0.12), rgba(196, 30, 30, 0.06));
  border: 1px solid rgba(196, 30, 30, 0.12);
}

.chat-gradient {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.12), rgba(0, 150, 136, 0.08));
  border: 1px solid rgba(76, 175, 80, 0.12);
}

.menu-gradient {
  background: linear-gradient(135deg, rgba(66, 165, 245, 0.12), rgba(156, 39, 176, 0.06));
  border: 1px solid rgba(66, 165, 245, 0.12);
}

.order-method-card h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 700;
  margin: 0;
}

.order-method-card p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}


/* ============================================================
   MENU SCREEN
   ============================================================ */
.menu-header {
  width: 100%;
  text-align: center;
  padding: 8px 0 12px;
}

.menu-header h2 {
  margin-bottom: 4px;
}

.menu-wrap {
  width: 100%;
}

/* View toggle */
.view-toggle {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 3px;
  margin-bottom: 14px;
}

.view-toggle button {
  flex: 1;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.view-toggle button.active {
  background: var(--gold);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(196, 30, 30, 0.25);
}

/* ═══ GOOGLE REVIEW PROMPT (after order confirmation) ═══ */
.review-prompt {
  padding: 24px 20px;
  text-align: center;
  animation: slideUp 0.5s var(--ease-out) both;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF9F0 100%);
  border: 2px solid rgba(255, 180, 40, 0.3);
  box-shadow: 0 10px 30px rgba(232, 160, 53, 0.18);
}
.review-prompt .review-stars {
  font-size: 1.6rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 6px rgba(232, 160, 53, 0.4));
}
.review-prompt h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.review-prompt p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 16px;
  line-height: 1.4;
}
.review-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.review-actions .btn-primary {
  background: linear-gradient(135deg, #E8A035 0%, #D18815 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(232, 160, 53, 0.35);
}
.review-actions .btn-primary:hover {
  background: linear-gradient(135deg, #D18815 0%, #B57010 100%) !important;
  transform: translateY(-1px);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ REVIEW MODAL (after stamp = after paid = best moment to ask) ═══ */
.review-overlay {
  position: fixed;
  inset: 0;
  background: rgba(90, 40, 20, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease both;
}
.review-modal {
  max-width: 360px;
  width: 100%;
  padding: 28px 24px;
  text-align: center;
  background: #FFFFFF;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(120, 60, 30, 0.3);
  animation: slideUp 0.4s var(--ease-out) both;
}
.review-stars-big {
  font-size: 2rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 3px 8px rgba(232, 160, 53, 0.5));
}
.review-modal h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.review-modal p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 18px;
}
.review-go-btn {
  display: block;
  width: 100%;
  text-decoration: none;
  text-align: center;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #E8A035 0%, #D18815 100%) !important;
  box-shadow: 0 6px 18px rgba(232, 160, 53, 0.35) !important;
  font-size: 0.95rem !important;
  padding: 14px 20px !important;
}
.review-go-btn:hover {
  background: linear-gradient(135deg, #D18815 0%, #B57010 100%) !important;
}

/* Category pills — with visible scroll bar + fade edges */
.menu-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 4px 14px 4px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  /* Visible scrollbar so users know they can scroll */
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 30, 30, 0.45) transparent;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 24px), transparent 100%);
}
.menu-categories::-webkit-scrollbar {
  height: 6px;
  display: block;
}
.menu-categories::-webkit-scrollbar-track {
  background: rgba(120, 60, 30, 0.06);
  border-radius: 3px;
}
.menu-categories::-webkit-scrollbar-thumb {
  background: rgba(196, 30, 30, 0.5);
  border-radius: 3px;
}
.menu-categories::-webkit-scrollbar-thumb:hover {
  background: rgba(196, 30, 30, 0.75);
}

.cat-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: #FFFFFF;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  scroll-snap-align: start;
  font-family: var(--font-body);
}

.cat-btn.active,
.cat-btn:hover {
  background: var(--gold);
  color: #FFFFFF;
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(196, 30, 30, 0.20);
}

/* Menu grid */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.menu-item {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.menu-item:hover {
  border-color: rgba(196, 30, 30, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

.menu-item-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: var(--bg-card);
}

.menu-item-info {
  padding: 12px;
}

.menu-item-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}

.menu-item-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-item-price {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 8px;
}

/* Quantity controls */
.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gold);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.qty-btn:hover {
  background: rgba(196, 30, 30, 0.08);
}

.qty-val {
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 20px;
  text-align: center;
  color: var(--text);
}

.add-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: #FFFFFF;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.add-btn:hover {
  background: var(--gold-hover);
  box-shadow: 0 2px 8px rgba(196, 30, 30, 0.20);
}

/* List view header */
.menu-list-header {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold);
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.03em;
}


/* ============================================================
   VOICE ORDER SCREEN
   ============================================================ */
.voice-order-screen {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  text-align: center;
}

.voice-orb {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(196, 30, 30, 0.15);
  animation: orbPulse 3s ease-in-out infinite;
}

.orb-ring-1 {
  inset: 0;
  animation-delay: 0s;
}

.orb-ring-2 {
  inset: -16px;
  border-color: rgba(196, 30, 30, 0.08);
  animation-delay: -1s;
}

.orb-ring-3 {
  inset: -32px;
  border-color: rgba(196, 30, 30, 0.04);
  animation-delay: -2s;
}

.voice-orb.active .orb-ring {
  animation-duration: 1.2s;
  border-color: rgba(196, 30, 30, 0.30);
}

.voice-orb.active .orb-ring-1 {
  box-shadow: 0 0 40px rgba(196, 30, 30, 0.12);
}

.orb-core {
  font-size: 3.5rem;
  position: relative;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.voice-status {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.voice-status.connecting { color: var(--gold); }
.voice-status.connected { color: var(--green); }
.voice-status.speaking { color: var(--gold); }
.voice-status.listening { color: var(--blue); }
.voice-status.error { color: var(--red); }

.voice-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Voice wave bars */
.voice-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  margin-bottom: 28px;
}

.voice-wave span {
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: waveBar 1.2s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { animation-delay: 0s; }
.voice-wave span:nth-child(2) { animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { animation-delay: 0.2s; }
.voice-wave span:nth-child(6) { animation-delay: 0.1s; }
.voice-wave span:nth-child(7) { animation-delay: 0s; }

/* Hint chips */
.voice-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 320px;
}

.hint-chip {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all var(--transition);
}

.hint-chip:hover {
  border-color: var(--border);
  color: var(--text);
}


/* ============================================================
   CHAT SCREEN
   ============================================================ */
.chat-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  height: calc(100dvh - 120px);
  min-height: 400px;
  background:
    radial-gradient(circle at 10% 5%, rgba(196,30,30,0.04) 0%, transparent 35%),
    radial-gradient(circle at 90% 95%, rgba(196,30,30,0.05) 0%, transparent 35%),
    linear-gradient(180deg, #FFF9F9 0%, #FFFFFF 100%);
  border-radius: 20px;
  padding: 8px 12px;
  position: relative;
}

.chat-container::before {
  content: '🍕';
  position: absolute;
  font-size: 8rem;
  opacity: 0.04;
  right: 10px;
  top: 20px;
  pointer-events: none;
  transform: rotate(-20deg);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* Nav actions (Browse more + Confirm order buttons after items) */
/* ═══ STICKY CATEGORY BAR at top of chat ═══ */
.chat-sticky-cats {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: -8px -12px 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(196,30,30,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}
.chat-sticky-cats-inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(196,30,30,0.45) transparent;
  padding-bottom: 6px;
  max-width: 100%;
}
/* On desktop, sticky cat bar wraps instead of scrolling so nothing gets cut off */
@media (min-width: 900px) {
  .chat-sticky-cats-inner {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 2px;
  }
}
.chat-sticky-cats-inner::-webkit-scrollbar { height: 4px; }
.chat-sticky-cats-inner::-webkit-scrollbar-thumb { background: rgba(196,30,30,0.35); border-radius: 2px; }

.sticky-cat-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1.5px solid rgba(196,30,30,0.18);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s;
  font-family: var(--font-body);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.sticky-cat-btn:hover {
  background: linear-gradient(135deg, #C41E1E, #9A1717);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196,30,30,0.25);
}
.sticky-cat-btn.active {
  background: linear-gradient(135deg, #C41E1E, #9A1717);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(196,30,30,0.30);
}
.sticky-cat-btn:active { transform: translateY(0); }

/* ═══ CHAT SECTION HEADER (above menu grid) ═══ */
.chat-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 2px 4px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F0 100%);
  border: 1px solid rgba(196,30,30,0.15);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(120,60,30,0.06);
  animation: fadeIn 0.4s ease both;
}
.csh-emoji {
  font-size: 1.6rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(196,30,30,0.15));
}
.csh-title {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.csh-count {
  background: rgba(196,30,30,0.08);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ═══ CHAT MENU GRID (new rich cards, vertical flow) ═══ */
.chat-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 6px 0 10px;
  animation: fadeIn 0.45s ease both;
}
@media (max-width: 400px) {
  .chat-menu-grid { grid-template-columns: 1fr; }
}

.chat-menu-card {
  background: #FFFFFF;
  border: 1px solid rgba(196,30,30,0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(120,60,30,0.08);
  transition: all 0.25s var(--ease-out);
  position: relative;
}
.chat-menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(196,30,30,0.15);
  border-color: rgba(196,30,30,0.25);
}

.cmc-media {
  position: relative;
  width: 100%;
  height: 110px;
  background: linear-gradient(135deg, #FFF5F0 0%, #FFE8DE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cmc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cmc-img-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.6rem;
  opacity: 0.6;
  z-index: 0;
}
.cmc-media:has(.cmc-img) .cmc-img-fallback { display: none; }
.cmc-media.no-img .cmc-img-fallback { display: block; }

.cmc-price-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, #9A1717 100%);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(196,30,30,0.35);
  letter-spacing: 0.01em;
  z-index: 1;
}

.cmc-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.cmc-name {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.cmc-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cmc-add-btn {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #FFE8DE 0%, #FFD6C8 100%);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}
.cmc-add-btn:hover {
  background: linear-gradient(135deg, var(--gold) 0%, #9A1717 100%);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196,30,30,0.28);
}
.cmc-add-btn:active { transform: translateY(0); }
.cmc-add-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(196,30,30,0.14);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  transition: all 0.2s;
}
.cmc-add-btn:hover .cmc-add-plus {
  background: rgba(255,255,255,0.25);
  color: #FFFFFF;
}

.chat-nav-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}
.chat-nav-btn {
  flex: 1;
  min-width: 140px;
  padding: 12px 18px;
  border: 1px solid rgba(196,30,30,0.25);
  background: #FFFFFF;
  color: var(--gold);
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.chat-nav-btn:hover {
  background: rgba(196,30,30,0.04);
  border-color: var(--gold);
  transform: translateY(-1px);
}
.chat-nav-btn.primary {
  background: linear-gradient(135deg, var(--gold) 0%, #9A1717 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(196,30,30,0.25);
}
.chat-nav-btn.primary:hover {
  box-shadow: 0 6px 18px rgba(196,30,30,0.35);
}

.chat-msg {
  display: flex;
  gap: 8px;
  max-width: 88%;
  animation: fadeIn 0.3s ease both;
}

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 100%;
  word-wrap: break-word;
}

.chat-bubble.bot {
  background: #FFFFFF;
  border: 1px solid rgba(196,30,30,0.08);
  color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(120,60,30,0.06);
}

.chat-bubble.user {
  background: linear-gradient(135deg, var(--gold) 0%, #9A1717 100%);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
  font-weight: 500;
  box-shadow: 0 3px 10px rgba(196,30,30,0.22);
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}

/* Chat input area */
.chat-input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border-soft);
  margin-top: auto;
}

.chat-input-area input,
.chat-input-area textarea {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  resize: none;
}

.chat-input-area input:focus,
.chat-input-area textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 30, 30, 0.06);
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: var(--gold-hover);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(196, 30, 30, 0.25);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

.chat-send-btn svg {
  width: 18px;
  height: 18px;
  fill: #FFFFFF;
}

/* Chat card carousel */
.chat-cards-wrapper {
  width: 100%;
  margin: 10px 0;
  position: relative;
}

.chat-cards-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 4px 14px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: 4px;
  /* Visible thin scrollbar so users know they can slide */
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 30, 30, 0.35) transparent;
}

.chat-cards-row::-webkit-scrollbar {
  height: 6px;
  display: block;
}

.chat-cards-row::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 3px;
}

.chat-cards-row::-webkit-scrollbar-thumb {
  background: rgba(196, 30, 30, 0.35);
  border-radius: 3px;
}

.chat-cards-row::-webkit-scrollbar-thumb:hover {
  background: rgba(196, 30, 30, 0.55);
}

.chat-card {
  flex-shrink: 0;
  width: 160px;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  scroll-snap-align: start;
  box-shadow: var(--shadow);
}

.chat-card:first-child { margin-left: 0; }
.chat-card:last-child { margin-right: 8px; }

.chat-card:hover {
  border-color: rgba(196, 30, 30, 0.15);
  transform: translateY(-2px);
}

.category-card {
  width: 135px;
  text-align: center;
  padding: 18px 12px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F5 100%);
  border: 1px solid rgba(196,30,30,0.12);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.category-card .chat-card-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 6px;
}

.category-card > span:not(.chat-card-emoji) {
  font-weight: 600;
  color: var(--text);
  font-size: 0.85rem;
}

.category-card:hover {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFE5E5 100%);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(196,30,30,0.15);
}

.menu-card {
  width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.menu-card:hover {
  box-shadow: 0 8px 20px rgba(196,30,30,0.12);
}

.topping-card {
  width: 140px;
  padding: 10px;
  text-align: center;
}

/* Hint arrow for scroll */
.chat-cards-wrapper::after {
  content: '→';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  opacity: 0.5;
  font-size: 1.2rem;
  pointer-events: none;
  animation: slide-hint 1.5s ease-in-out infinite;
}

@keyframes slide-hint {
  0%, 100% { transform: translateY(-50%) translateX(0); opacity: 0.3; }
  50% { transform: translateY(-50%) translateX(4px); opacity: 0.7; }
}

.chat-card-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  background: var(--bg-card);
}

.chat-card-body {
  padding: 10px;
}

.chat-card-name {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 3px;
}

.chat-card-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-bottom: 6px;
}

.chat-card-price {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.chat-card-add {
  width: 100%;
  padding: 7px;
  border-radius: var(--radius-pill);
  background: rgba(196, 30, 30, 0.08);
  border: 1px solid rgba(196, 30, 30, 0.12);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.chat-card-add:hover {
  background: rgba(196, 30, 30, 0.15);
}

/* Chat cart status */
.chat-cart-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  margin: 8px 0;
  font-size: 0.8rem;
}

.chat-cart-actions {
  display: flex;
  gap: 8px;
}

.chat-cart-actions button {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
}


/* ============================================================
   CART DRAWER — white with subtle top shadow
   ============================================================ */
.cart-drawer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  z-index: 200;
  padding: 0 12px 12px;
}

.cart-drawer .cart-inner {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  animation: slideUp 0.4s var(--ease-out) both;
}

.cart-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.cart-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cart-info {
  display: flex;
  flex-direction: column;
}

.cart-info #cart-summary-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cart-info .cart-total {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}

.cart-drawer .btn-primary {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 0.85rem;
}


/* ============================================================
   MODALS — white background, subtle overlay
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(90, 40, 20, 0.25);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.25s ease both;
}
/* On desktop, center the modal instead of bottom-sheet */
@media (min-width: 900px) {
  .modal-overlay {
    align-items: center;
  }
}

.modal-content {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px 20px 32px;
  animation: slideUp 0.4s var(--ease-out) both;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
}

.modal-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #D0D0D0;
  margin: 0 auto 16px;
}

.modal-content h2 {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions .btn {
  flex: 1;
}

/* Toppings */
.toppings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.topping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.topping-option:hover {
  border-color: #D0D0D0;
}

.topping-option.selected {
  border-color: var(--gold);
  background: rgba(196, 30, 30, 0.04);
  box-shadow: 0 0 0 2px rgba(196, 30, 30, 0.08);
}

.topping-option .topping-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.topping-option .topping-price {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
}
.topping-option .topping-price.included {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0.03em;
}

/* Order summary in modal */
.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.order-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.85rem;
}

.order-item-row:last-child {
  border-bottom: none;
}

.order-totals {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.85rem;
}

.order-total-row:last-child {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  margin-top: 4px;
}


/* ============================================================
   LOYALTY CARD — white card with red accents
   ============================================================ */
.loyalty-card {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.loyalty-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.loyalty-header .loyalty-icon {
  font-size: 1.5rem;
}

.loyalty-header h3 {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.stamps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.stamp {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(196, 30, 30, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  background: rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.stamp.filled {
  background-image: url('https://d3qxpncwm2dii8.cloudfront.net/589322dc62535284772394/f546bdc6c2bf761352ce6baf0c14ccabfe020a83-300x300.jpg');
  background-size: cover;
  background-position: center;
  background-color: #FFFFFF;
  border: 3px solid var(--gold);
  border-style: solid;
  color: transparent;
  box-shadow: 0 4px 12px rgba(196, 30, 30, 0.28), inset 0 0 0 2px rgba(255,255,255,0.6);
  animation: stampPop 0.45s var(--ease-bounce) both;
}
@keyframes stampPop {
  0% { transform: scale(0.3) rotate(-18deg); opacity: 0; }
  60% { transform: scale(1.12) rotate(6deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.stamp.reward {
  background: rgba(76, 175, 80, 0.10);
  border-color: var(--green);
}

/* ═══ BONUS TASKS (Follow for extra stamps) ═══ */
.bonus-tasks {
  width: 100%;
  background: linear-gradient(135deg, rgba(196,30,30,0.04) 0%, rgba(255,255,255,1) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 14px;
  box-shadow: var(--shadow);
}
.bonus-tasks-title {
  font-family: var(--font-display);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.bonus-tasks-sub {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 14px;
}
.task-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font-family: var(--font-body);
}
.task-btn:hover {
  border-color: rgba(196,30,30,0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.task-btn.claimed {
  background: rgba(76,175,80,0.06);
  border-color: rgba(76,175,80,0.3);
  cursor: default;
  opacity: 0.85;
}
.task-btn.claimed:hover { transform: none; }
.task-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196,30,30,0.08);
  border-radius: 50%;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.task-btn.claimed .task-icon {
  background: rgba(76,175,80,0.12);
}
.task-body { flex: 1; min-width: 0; }
.task-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 2px;
}
.task-reward {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 500;
}
.task-btn.claimed .task-reward {
  color: var(--green);
}
.task-arrow {
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 700;
}
.task-btn.claimed .task-arrow {
  color: var(--green);
}

/* ═══ PENDING REWARDS ═══ */
.pending-rewards {
  width: 100%;
  background: linear-gradient(135deg, rgba(76,175,80,0.06) 0%, rgba(255,255,255,1) 100%);
  border: 1px solid rgba(76,175,80,0.2);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 14px;
  box-shadow: var(--shadow);
}
.pending-rewards-title {
  font-family: var(--font-display);
  color: var(--green);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.pending-reward-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(76,175,80,0.25);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.pending-reward-emoji { font-size: 1.5rem; }
.pending-reward-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.pending-rewards-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
  font-style: italic;
}

/* ═══ REWARD SAVED BOX (after winning scratch/slot) ═══ */
.win-card {
  position: relative;
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 60%, #F0FFF4 100%);
  border: 2px solid rgba(196,30,30,0.15);
  box-shadow: 0 12px 40px rgba(196,30,30,0.12);
  padding: 28px 24px 24px;
  text-align: center;
  animation: win-bounce 0.6s var(--ease-bounce) both;
}

@keyframes win-bounce {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

.win-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  background: linear-gradient(135deg, #C41E1E 0%, #9A1717 100%);
  color: #fff;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(196,30,30,0.35);
  animation: badge-spin 1s ease-out;
}

@keyframes badge-spin {
  0% { transform: translateX(-50%) scale(0) rotate(-180deg); }
  100% { transform: translateX(-50%) scale(1) rotate(0); }
}

.result-emoji.big {
  font-size: 4.5rem;
  margin: 16px 0 8px;
  line-height: 1;
  animation: float-in 0.5s ease-out 0.2s both;
}

@keyframes float-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.you-won-title {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
}

.result-prize-name {
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 20px;
}

.reward-saved-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(76,175,80,0.1) 0%, rgba(76,175,80,0.04) 100%);
  border: 1px solid rgba(76,175,80,0.3);
  border-radius: 16px;
  padding: 16px 18px;
  text-align: left;
  margin-top: 12px;
}

.reward-check {
  background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(76,175,80,0.35);
  animation: check-pop 0.5s ease-out 0.3s both;
}

@keyframes check-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.reward-text { flex: 1; min-width: 0; }

.reward-saved-label {
  font-family: var(--font-display);
  color: #2E7D32;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.reward-saved-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ═══ Subtle pizza pattern on loyalty screen ═══ */
#screen-loyalty::before,
#screen-main::before,
#screen-order-method::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(196,30,30,0.04) 0%, transparent 25%),
    radial-gradient(circle at 90% 80%, rgba(196,30,30,0.05) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(196,30,30,0.02) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* Decorative food emojis floating in background, very subtle */
#screen-main::after,
#screen-loyalty::after {
  content: '🍕';
  position: fixed;
  font-size: 15rem;
  opacity: 0.04;
  right: -40px;
  bottom: -30px;
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: -1;
}


/* ============================================================
   ORDER DONE SCREEN
   ============================================================ */
.order-done-screen {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 48px;
}

.done-check-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
}

.done-check {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  animation: checkScale 0.5s var(--ease-bounce) both;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 30px rgba(76, 175, 80, 0.25);
}

.done-check-ring {
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(76, 175, 80, 0.25);
  border-radius: 50%;
  animation: ringExpand 1s ease-out both;
  animation-delay: 0.3s;
}

.done-check-ring::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(76, 175, 80, 0.12);
  border-radius: 50%;
  animation: ringExpand 1s ease-out both;
  animation-delay: 0.5s;
}

.order-done-screen h2 {
  margin-bottom: 8px;
  color: var(--green);
}

.order-done-screen p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.done-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-dim);
  border: 1px solid rgba(76, 175, 80, 0.15);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  margin: 16px 0;
}

.done-details {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px;
  text-align: left;
  margin-top: 16px;
}

.done-details h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0;
}


/* ============================================================
   SCRATCH CARD — on light background
   ============================================================ */
.scratch-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}

.scratch-container {
  position: relative;
  width: 300px;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 2px solid var(--border-soft);
}

.scratch-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: none;
}

.scratch-prize {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
  text-align: center;
  padding: 16px;
  z-index: 0;
}

.scratch-prize .prize-emoji {
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 10px;
  animation: prize-bounce 0.6s var(--ease-bounce) both;
}

.scratch-prize .prize-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(196, 30, 30, 0.12);
}

@keyframes prize-bounce {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.scratch-container canvas {
  z-index: 1;
}

.scratch-instruction {
  font-size: 0.78rem;
  color: var(--text-muted);
}


/* ============================================================
   SLOT MACHINE — red-themed on light background
   ============================================================ */
.slot-machine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.slot-reels {
  display: flex;
  gap: 8px;
  background: #FFFFFF;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.slot-reel {
  width: 100px;
  height: 120px;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}

.reel-strip {
  display: flex;
  flex-direction: column;
  transition: transform 0.1s linear;
}

.reel-symbol {
  width: 100px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}

.slot-reels.spinning .slot-reel {
  filter: blur(1px);
}

.slot-reels.winner {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(196, 30, 30, 0.15);
  animation: glow 1.5s ease-in-out 3;
}

.slot-reels.winner .slot-reel {
  border-color: rgba(196, 30, 30, 0.25);
}

.spin-btn {
  padding: 16px 48px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #FFFFFF;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  letter-spacing: 0.03em;
  box-shadow: 0 4px 20px rgba(196, 30, 30, 0.25);
}

.spin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(196, 30, 30, 0.35);
  background: var(--gold-hover);
}

.spin-btn:active {
  transform: translateY(0) scale(0.97);
}

.spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}


/* ============================================================
   CONFETTI CANVAS
   ============================================================ */
.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}


/* ============================================================
   FORMS (general)
   ============================================================ */
.form-group {
  width: 100%;
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 30, 30, 0.06);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  width: 100%;
  text-align: center;
  padding: 24px 0 16px;
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: auto;
}

.footer a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--gold);
}


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.7; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 12px rgba(196, 30, 30, 0.10); }
  50% { box-shadow: 0 0 28px rgba(196, 30, 30, 0.25); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes screenEnter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.06; }
  90% { opacity: 0.06; }
  100% { transform: translateY(-10vh) rotate(180deg); opacity: 0; }
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes waveBar {
  0%, 100% { height: 8px; opacity: 0.4; }
  50% { height: 28px; opacity: 1; }
}

@keyframes checkScale {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes ringExpand {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes reelSpin {
  from { transform: translateY(0); }
  to { transform: translateY(-100%); }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 380px) {
  #app {
    padding: 0 12px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }

  .game-pick-cards {
    gap: 10px;
  }

  .game-pick-card {
    padding: 18px 12px;
  }

  .gpc-icon {
    font-size: 2rem;
  }

  .menu-grid {
    gap: 8px;
  }

  .menu-item-img {
    height: 100px;
  }

  .menu-item-info {
    padding: 8px 10px 10px;
  }

  .menu-item-name {
    font-size: 0.78rem;
  }

  .menu-item-desc {
    font-size: 0.68rem;
    -webkit-line-clamp: 2;
  }

  .add-btn {
    padding: 8px 12px;
    font-size: 0.72rem;
  }

  .omc-icon-wrap {
    width: 50px;
    height: 50px;
  }

  .order-methods {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }

  .order-method-card {
    padding: 16px 8px 14px;
    gap: 8px;
  }

  .order-method-card h3 {
    font-size: 0.78rem;
  }

  .order-method-card p {
    font-size: 0.65rem;
  }

  .phone-card {
    padding: 22px 18px;
  }

  .slot-reel {
    width: 80px;
    height: 100px;
  }

  .reel-symbol {
    width: 80px;
    height: 100px;
    font-size: 2.4rem;
  }

  .scratch-container {
    width: 260px;
    height: 175px;
  }

  .voice-orb {
    width: 150px;
    height: 150px;
  }

  .modal-content {
    padding: 16px 16px 28px;
  }

  .btn-primary {
    padding: 12px 24px;
  }

  .btn-large {
    padding: 14px 24px;
    font-size: 0.9rem;
  }

  .mini-badge {
    font-size: 0.62rem;
    padding: 3px 8px;
  }
}

/* Ensure touch targets are large enough */
@media (pointer: coarse) {
  .qty-btn {
    width: 36px;
    height: 36px;
  }

  .cat-btn {
    padding: 10px 20px;
  }

  .back-btn {
    padding: 10px 18px;
  }

  .hint-chip {
    padding: 8px 16px;
  }
}

/* Tall phones get extra hero padding */
@media (min-height: 700px) {
  .hero-section {
    padding-top: 56px;
  }
}

/* Very tall phones */
@media (min-height: 850px) {
  .hero-section {
    padding-top: 72px;
  }
}
/* light-deploy-1775914994 */
