/* ==========================================================================
   MAISON FRITE • LUXURY ATELIER DE LA FRITE BELGE
   Mobile-First Web App & Desktop QR Gate Stylesheet
   ========================================================================== */

:root {
  --mf-burgundy-900: #140204;
  --mf-burgundy-800: #260508;
  --mf-burgundy-700: #42080D;
  --mf-burgundy-600: #5C0B11;
  --mf-burgundy-500: #7A0F17;
  --mf-burgundy-400: #9B1621;
  
  --mf-gold-100: #FBF6E9;
  --mf-gold-200: #F5E8C7;
  --mf-gold-300: #ECD494;
  --mf-gold-400: #DFBD63;
  --mf-gold-500: #D4AF37;
  --mf-gold-600: #B89224;
  --mf-gold-700: #8C6C12;
  
  --mf-cream-50: #FAF7F2;
  --mf-cream-100: #F3ECE1;
  --mf-cream-200: #E7DCcb;
  --mf-cream-300: #D8C7B0;
  
  --mf-charcoal: #121010;
  --mf-card-bg: rgba(38, 5, 8, 0.82);
  --mf-card-border: rgba(212, 175, 55, 0.28);
  --mf-card-glow: rgba(212, 175, 55, 0.15);
  
  --mf-font-serif: 'Cinzel', 'Playfair Display', 'Didot', 'Bodoni MT', 'Georgia', serif;
  --mf-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  --mf-radius-sm: 8px;
  --mf-radius-md: 14px;
  --mf-radius-lg: 22px;
  --mf-radius-xl: 30px;
  --mf-radius-full: 9999px;
  
  --mf-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --mf-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --mf-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
  --mf-shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.25);
  
  --mf-trans-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --mf-trans-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --mf-trans-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--mf-burgundy-900);
  color: var(--mf-cream-50);
  font-family: var(--mf-font-sans);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Background Atmosphere */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 0%, rgba(122, 15, 23, 0.45) 0%, transparent 65%),
    radial-gradient(circle at 50% 100%, rgba(38, 5, 8, 0.9) 0%, transparent 70%),
    repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.015) 0px, rgba(212, 175, 55, 0.015) 2px, transparent 2px, transparent 8px);
  pointer-events: none;
  z-index: 0;
}

/* Ambient subtle floating particles */
.ambient-glow {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: translateX(-50%) scale(0.9); opacity: 0.5; }
  100% { transform: translateX(-50%) scale(1.15); opacity: 0.9; }
}

/* ==========================================================================
   DESKTOP GATE SCREEN (Shown on desktop viewports)
   ========================================================================== */
#desktop-gate {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: radial-gradient(circle at center, #2e060a 0%, #100103 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  overflow-y: auto;
}

.desktop-gate-card {
  max-width: 520px;
  width: 100%;
  background: rgba(30, 4, 7, 0.88);
  border: 1px solid var(--mf-card-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.12);
  border-radius: var(--mf-radius-xl);
  padding: 40px 32px;
  position: relative;
  backdrop-filter: blur(16px);
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--mf-radius-full);
  color: var(--mf-gold-400);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.gate-mascot {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--mf-gold-500);
  box-shadow: var(--mf-shadow-gold);
  margin: 0 auto 16px;
  object-fit: cover;
  display: block;
}

.gate-title {
  font-family: var(--mf-font-serif);
  font-size: 30px;
  letter-spacing: 3px;
  color: var(--mf-gold-200);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.gate-subtitle {
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--mf-gold-400);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}

.gate-info-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: var(--mf-gold-300);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--mf-radius-full);
  padding: 6px 14px;
  margin-bottom: 20px;
}

.pill-dot {
  opacity: 0.5;
}

.gate-desc {
  font-size: 14px;
  color: var(--mf-cream-200);
  line-height: 1.6;
  margin-bottom: 28px;
}

.gate-qr-box {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--mf-radius-lg);
  display: inline-block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  position: relative;
  margin-bottom: 20px;
  border: 3px solid var(--mf-gold-500);
}

.gate-qr-box canvas, .gate-qr-box img {
  display: block;
  max-width: 100%;
  height: auto;
}

.gate-qr-caption {
  font-size: 12px;
  color: var(--mf-gold-300);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.gate-btn-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--mf-cream-100);
  border-radius: var(--mf-radius-md);
  font-size: 13px;
  cursor: pointer;
  transition: var(--mf-trans-fast);
}

.gate-btn-copy:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--mf-gold-500);
  color: var(--mf-gold-200);
}

.gate-btn-sim {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--mf-gold-600), var(--mf-gold-500), var(--mf-gold-400));
  color: var(--mf-burgundy-900);
  border: none;
  border-radius: var(--mf-radius-md);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  transition: var(--mf-trans-fast);
}

.gate-btn-sim:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.55);
}

/* ==========================================================================
   DESKTOP SIMULATOR WRAPPER (iPhone Frame mode on desktop)
   ========================================================================== */
#simulator-wrapper {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: radial-gradient(circle at center, #260508 0%, #0d0102 100%);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sim-exit-bar {
  position: absolute;
  top: 18px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 9600;
}

.sim-exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--mf-gold-500);
  color: var(--mf-gold-300);
  border-radius: var(--mf-radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--mf-trans-fast);
  backdrop-filter: blur(8px);
}

.sim-exit-btn:hover {
  background: var(--mf-gold-500);
  color: var(--mf-burgundy-900);
}

.iphone-frame {
  width: 420px;
  height: 870px;
  max-height: 94vh;
  background: #000000;
  border-radius: 54px;
  padding: 12px;
  box-shadow: 
    0 0 0 4px #2b2b2b,
    0 0 0 6px #1a1a1a,
    0 30px 80px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(212, 175, 55, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
}

.iphone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 124px;
  height: 28px;
  background: #000000;
  border-radius: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.iphone-camera {
  width: 10px;
  height: 10px;
  background: #111a2e;
  border-radius: 50%;
  border: 1px solid #1f2a40;
}

.iphone-sensor {
  width: 8px;
  height: 8px;
  background: #090e17;
  border-radius: 50%;
}

.iphone-screen {
  flex: 1;
  width: 100%;
  height: 100%;
  background: var(--mf-burgundy-900);
  border-radius: 44px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   MOBILE WEB APP CONTAINER
   ========================================================================== */
#mobile-app {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 120px;
  position: relative;
  z-index: 1;
  background: transparent;
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 3, 5, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--mf-gold-500);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
  object-fit: cover;
}

.brand-text h1 {
  font-family: var(--mf-font-serif);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: var(--mf-gold-200);
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-text p {
  font-size: 10.5px;
  letter-spacing: 1.2px;
  color: var(--mf-gold-400);
  text-transform: uppercase;
  font-weight: 600;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--mf-gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--mf-trans-fast);
}

.header-icon-btn:active {
  transform: scale(0.92);
}

.cart-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--mf-gold-500);
  color: var(--mf-burgundy-900);
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Service Mode Switcher (Delivery vs Local) */
.service-switcher-wrap {
  padding: 14px 16px 8px;
}

.service-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(30, 4, 7, 0.7);
  border: 1px solid var(--mf-card-border);
  border-radius: var(--mf-radius-full);
  padding: 4px;
  position: relative;
}

.service-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--mf-radius-full);
  border: none;
  background: transparent;
  color: var(--mf-cream-200);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--mf-trans-smooth);
}

.service-tab.active {
  background: linear-gradient(135deg, var(--mf-gold-600), var(--mf-gold-500));
  color: var(--mf-burgundy-900);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.service-status-pill {
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--mf-gold-300);
  opacity: 0.9;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #34d399;
}

/* ==========================================================================
   HERO BRAND & RESTAURANT INFO CARD
   ========================================================================== */
.hero-brand-info {
  margin: 6px 16px 14px;
  background: rgba(30, 4, 7, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: var(--mf-radius-lg);
  padding: 12px 14px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hero-tagline {
  font-family: var(--mf-font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--mf-gold-200);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hero-meta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--mf-cream-200);
}

@media (min-width: 400px) {
  .hero-meta-row {
    flex-direction: row;
    gap: 12px;
  }
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mf-cream-100);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-meta-item.location-link {
  color: var(--mf-gold-300);
  font-weight: 600;
}

.hero-meta-item.location-link:hover {
  color: var(--mf-gold-200);
  text-decoration: underline;
}

.closed-tag {
  color: var(--mf-gold-400);
  font-size: 10.5px;
  opacity: 0.85;
}

/* ==========================================================================
   CONE ATELIER • INTERACTIVE VISUAL HERO
   ========================================================================== */
.cone-atelier-hero {
  position: relative;
  padding: 10px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1200px;
}

.cone-stage-wrapper {
  position: relative;
  width: 280px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease-out;
  cursor: grab;
}

.cone-stage-wrapper:active {
  cursor: grabbing;
}

/* Base image layers */
.cone-image-empty, .cone-image-loaded {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cone-image-empty {
  z-index: 10;
  opacity: 0;
}

.cone-image-loaded {
  z-index: 10;
  opacity: 1;
}

/* Dynamic Toppings Canvas & Overlay */
#cone-toppings-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}

/* Realistic Sauce Dipping Pot */
.sauce-dipping-pot {
  position: absolute;
  bottom: 30px;
  right: 10px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0%, #ddd 20%, #888 85%, #444 100%);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  padding: 8px;
  z-index: 35;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sauce-pot-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(255, 255, 255, 0.2);
  transition: background-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.sauce-pot-swirl {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.5) 0%, transparent 60%);
}

.sauce-pot-label {
  position: absolute;
  bottom: -18px;
  font-size: 9px;
  font-weight: 700;
  color: var(--mf-gold-200);
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
}

/* Steam particles */
.steam-emitter {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 40px;
  pointer-events: none;
  z-index: 25;
}

.steam-cloud {
  position: absolute;
  bottom: 0;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  filter: blur(8px);
  animation: riseSteam 3.2s infinite ease-out;
}

.steam-cloud:nth-child(1) { left: 20%; animation-delay: 0s; }
.steam-cloud:nth-child(2) { left: 45%; animation-delay: 1.1s; animation-duration: 3.6s; }
.steam-cloud:nth-child(3) { left: 70%; animation-delay: 2.2s; animation-duration: 4s; }

@keyframes riseSteam {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  25% { opacity: 0.6; }
  100% { transform: translateY(-70px) scale(2.2); opacity: 0; }
}

/* Floating Topping Badges Tray */
.active-toppings-tray {
  width: 100%;
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.topping-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--mf-gold-500);
  color: var(--mf-gold-200);
  border-radius: var(--mf-radius-full);
  font-size: 11.5px;
  font-weight: 600;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.topping-chip-remove {
  background: rgba(255, 255, 255, 0.2);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: var(--mf-trans-fast);
}

.topping-chip-remove:hover {
  background: #ff4d4f;
  color: #fff;
}

.empty-tray-notice {
  font-size: 12px;
  color: var(--mf-gold-300);
  opacity: 0.7;
  font-style: italic;
}

/* Rotating Belgian Beef Tallow Seal */
.belgian-tallow-seal {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 11, 17, 0.9) 0%, rgba(38, 5, 8, 0.95) 100%);
  border: 1px dashed var(--mf-gold-400);
  box-shadow: var(--mf-shadow-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
  z-index: 30;
}

.seal-icon {
  font-size: 15px;
  margin-bottom: 2px;
}

.seal-text {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--mf-gold-300);
  text-transform: uppercase;
  line-height: 1.1;
}

/* Reset / Clear cone button */
.btn-clear-cone {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--mf-cream-200);
  padding: 6px 12px;
  border-radius: var(--mf-radius-full);
  font-size: 11px;
  cursor: pointer;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--mf-trans-fast);
}

.btn-clear-cone:active {
  transform: scale(0.94);
}

/* ==========================================================================
   MENU CUSTOMIZER SECTIONS
   ========================================================================== */
.builder-section {
  padding: 16px;
  margin-bottom: 8px;
}

.section-header {
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mf-gold-500);
  color: var(--mf-burgundy-900);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-title {
  font-family: var(--mf-font-serif);
  font-size: 17px;
  letter-spacing: 1.5px;
  color: var(--mf-gold-200);
  text-transform: uppercase;
}

.section-hint {
  font-size: 11.5px;
  color: var(--mf-gold-400);
  font-weight: 500;
}

/* Step 1: Cone Size Cards */
.size-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.size-card {
  background: rgba(38, 5, 8, 0.75);
  border: 1.5px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--mf-radius-lg);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--mf-trans-smooth);
  position: relative;
  overflow: hidden;
}

.size-card.selected {
  background: linear-gradient(180deg, rgba(92, 11, 17, 0.85) 0%, rgba(38, 5, 8, 0.95) 100%);
  border-color: var(--mf-gold-500);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
}

.size-badge-rec {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--mf-gold-500);
  color: var(--mf-burgundy-900);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 0;
}

.size-icon {
  font-size: 26px;
  margin-bottom: 6px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.size-name {
  font-family: var(--mf-font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--mf-cream-50);
  margin-bottom: 3px;
  letter-spacing: 0.5px;
}

.size-weight {
  font-size: 10.5px;
  color: var(--mf-gold-300);
  opacity: 0.85;
  margin-bottom: 6px;
}

.size-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--mf-gold-400);
}

/* Step 2: Salsas Horizontal / Grid */
.sauces-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.sauce-item-card {
  background: rgba(38, 5, 8, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--mf-radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--mf-trans-fast);
}

.sauce-item-card.selected {
  border-color: var(--mf-gold-500);
  background: rgba(92, 11, 17, 0.65);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.sauce-color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.sauce-info {
  flex: 1;
  min-width: 0;
}

.sauce-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--mf-cream-100);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sauce-tag {
  font-size: 9.5px;
  color: var(--mf-gold-300);
  opacity: 0.8;
}

.sauce-check {
  font-size: 13px;
  color: var(--mf-gold-400);
  opacity: 0;
  transition: var(--mf-trans-fast);
}

.sauce-item-card.selected .sauce-check {
  opacity: 1;
}

/* Step 3: Toppings Simples ($40) */
.toppings-simples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.topping-card {
  background: rgba(38, 5, 8, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--mf-radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--mf-trans-smooth);
  position: relative;
  min-height: 96px;
}

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

.topping-card.active {
  background: linear-gradient(135deg, rgba(92, 11, 17, 0.75), rgba(42, 6, 9, 0.95));
  border-color: var(--mf-gold-500);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

.topping-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.topping-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: var(--mf-radius-md);
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.topping-status-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--mf-gold-400);
  transition: var(--mf-trans-fast);
}

.topping-card.active .topping-status-btn {
  background: var(--mf-gold-500);
  border-color: var(--mf-gold-500);
  color: var(--mf-burgundy-900);
}

.topping-bottom {
  margin-top: 10px;
}

.topping-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--mf-cream-50);
  line-height: 1.2;
  margin-bottom: 2px;
}

.topping-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--mf-gold-400);
}

/* Step 4: Toppings Especiales */
.specials-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.special-card {
  background: rgba(38, 5, 8, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--mf-radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: var(--mf-trans-fast);
}

.special-card.active {
  background: linear-gradient(135deg, rgba(92, 11, 17, 0.8), rgba(42, 6, 9, 0.95));
  border-color: var(--mf-gold-500);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

.special-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--mf-radius-md);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.special-info {
  flex: 1;
}

.special-title {
  font-family: var(--mf-font-serif);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--mf-cream-50);
  margin-bottom: 2px;
}

.special-desc {
  font-size: 11px;
  color: var(--mf-gold-300);
  opacity: 0.85;
}

.special-price-wrap {
  text-align: right;
  flex-shrink: 0;
}

.special-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--mf-gold-400);
  margin-bottom: 4px;
}

.special-toggle {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--mf-radius-full);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--mf-gold-300);
}

.special-card.active .special-toggle {
  background: var(--mf-gold-500);
  color: var(--mf-burgundy-900);
  border-color: var(--mf-gold-500);
  font-weight: 700;
}

/* Step 5: Bebidas */
.drinks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.drink-card {
  background: rgba(38, 5, 8, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--mf-radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.drink-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--mf-cream-100);
  margin-bottom: 2px;
}

.drink-price {
  font-size: 12px;
  color: var(--mf-gold-400);
  font-weight: 700;
}

.counter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-counter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--mf-cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: var(--mf-trans-fast);
}

.btn-counter:active {
  transform: scale(0.9);
}

.drink-qty {
  font-size: 13px;
  font-weight: 700;
  color: var(--mf-gold-200);
  min-width: 14px;
  text-align: center;
}

/* ==========================================================================
   MINIMALIST FULL-WIDTH BOTTOM ORDER BAR
   ========================================================================== */
.sticky-order-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 500;
  background: rgba(16, 2, 4, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom, 12px));
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

#mobile-app .sticky-order-bar {
  max-width: 480px;
  left: 50%;
  transform: translateX(-50%);
}

.iphone-screen .sticky-order-bar {
  position: sticky;
  left: 0;
  transform: none;
  max-width: 100%;
}

.sticky-order-bar:active {
  background: rgba(28, 4, 7, 0.99);
  border-top-color: var(--mf-gold-500);
}

.order-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.order-bar-summary {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.summary-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mf-gold-400);
  font-weight: 700;
  opacity: 0.9;
}

.summary-total {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
  letter-spacing: -0.3px;
}

.currency-tag {
  font-size: 11px;
  color: var(--mf-gold-400);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.order-bar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--mf-gold-500);
  color: #160204;
  padding: 11px 22px;
  border-radius: var(--mf-radius-full);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.sticky-order-bar:active .order-bar-cta {
  transform: scale(0.96);
  background: var(--mf-gold-400);
}

.cta-arrow {
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.sticky-order-bar:hover .cta-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   CHECKOUT & ORDER MODAL (Slide Up Drawer)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.checkout-drawer {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  background: linear-gradient(180deg, #240407 0%, #150204 100%);
  border-radius: 28px 28px 0 0;
  border: 1px solid var(--mf-gold-500);
  border-bottom: none;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.9);
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 20px));
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-drag-pill {
  width: 44px;
  height: 4px;
  background: rgba(212, 175, 55, 0.4);
  border-radius: var(--mf-radius-full);
  margin: 0 auto 16px;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 12px;
}

.drawer-title {
  font-family: var(--mf-font-serif);
  font-size: 20px;
  letter-spacing: 1.5px;
  color: var(--mf-gold-200);
  text-transform: uppercase;
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--mf-cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}

/* Order items recap card */
.order-recap-box {
  background: rgba(38, 5, 8, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--mf-radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.recap-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.recap-item-title {
  font-weight: 700;
  color: var(--mf-cream-50);
  font-size: 14px;
}

.recap-item-price {
  font-weight: 800;
  color: var(--mf-gold-400);
}

.recap-subdetails {
  font-size: 12px;
  color: var(--mf-gold-300);
  line-height: 1.4;
  padding-left: 8px;
  border-left: 2px solid var(--mf-gold-500);
  margin-bottom: 12px;
}

.recap-divider {
  height: 1px;
  background: rgba(212, 175, 55, 0.2);
  margin: 12px 0;
}

.recap-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--mf-gold-200);
}

/* Form Groups */
.form-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--mf-gold-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.input-label {
  font-size: 11.5px;
  color: var(--mf-cream-200);
  font-weight: 600;
}

.input-field {
  background: rgba(18, 2, 4, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--mf-radius-md);
  padding: 12px 14px;
  color: var(--mf-cream-50);
  font-family: var(--mf-font-sans);
  font-size: 13.5px;
  transition: var(--mf-trans-fast);
}

.input-field:focus {
  outline: none;
  border-color: var(--mf-gold-500);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.input-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Payment Selector */
.payment-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.payment-pill {
  background: rgba(38, 5, 8, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--mf-radius-md);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--mf-trans-fast);
}

.payment-pill.active {
  background: rgba(92, 11, 17, 0.7);
  border-color: var(--mf-gold-500);
  color: var(--mf-gold-200);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.payment-pill-icon {
  font-size: 18px;
  display: block;
  margin-bottom: 3px;
}

.payment-pill-text {
  font-size: 11px;
  font-weight: 700;
}

/* Order Submit Actions */
.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-whatsapp-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  background: #25D366;
  color: #0b2e15;
  border: none;
  border-radius: var(--mf-radius-full);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: var(--mf-trans-fast);
}

.btn-whatsapp-submit:hover {
  background: #20BA5A;
}

.btn-local-ticket {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--mf-gold-600), var(--mf-gold-500));
  color: var(--mf-burgundy-900);
  border: none;
  border-radius: var(--mf-radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--mf-trans-fast);
}

/* ==========================================================================
   DIGITAL GOURMET RECEIPT MODAL (Success confirmation)
   ========================================================================== */
#receipt-modal .checkout-drawer {
  background: #fdfaf4;
  color: #1a1614;
  border: 2px dashed var(--mf-gold-600);
}

.receipt-card {
  text-align: center;
  padding: 10px 0;
}

.receipt-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 10px;
}

.receipt-title {
  font-family: var(--mf-font-serif);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--mf-burgundy-700);
  margin-bottom: 2px;
}

.receipt-order-id {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #8c6c12;
  margin-bottom: 14px;
}

.receipt-status-banner {
  background: #eef8ee;
  border: 1px solid #c2e2c2;
  color: #1e7025;
  padding: 8px 14px;
  border-radius: var(--mf-radius-md);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.receipt-items-list {
  text-align: left;
  border-top: 1px dashed #d1c7bd;
  border-bottom: 1px dashed #d1c7bd;
  padding: 14px 0;
  margin: 14px 0;
  font-size: 13px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 800;
  color: var(--mf-burgundy-700);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #d1c7bd;
}

.receipt-meta-box {
  background: #f4ede2;
  border-radius: var(--mf-radius-md);
  padding: 10px 14px;
  font-size: 12px;
  text-align: left;
  margin-bottom: 18px;
  color: #594d42;
}

/* ==========================================================================
   ANIMATIONS & PARTICLES
   ========================================================================== */
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}

/* Flying Topping Particle */
.topping-flying-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 22px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
}

/* Toast Notification */
.mf-toast {
  position: fixed;
  top: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(38, 5, 8, 0.95);
  border: 1px solid var(--mf-gold-500);
  color: var(--mf-gold-200);
  padding: 10px 20px;
  border-radius: var(--mf-radius-full);
  font-size: 13px;
  font-weight: 600;
  z-index: 4000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mf-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
