/* ==========================================================================
   LANDSIDE & HALIDE — CINEMATIC COFFEE TERMINAL & CONVEYOR STYLESHEET
   Aesthetics: Airport Baggage Claim meets Luxury Kyoto Coffee Atelier
   Features: Real Studio Photography for Drinks & Anatomy Showcase
   ========================================================================== */

:root {
  --bg-dark: #070708;
  --bg-surface: #0e0d0f;
  --bg-card: rgba(18, 16, 20, 0.78);
  --bg-card-hover: rgba(28, 24, 30, 0.92);
  
  --gold: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --amber: #e6a74b;
  --copper: #c27a4e;
  --crema: #fbf5eb;
  --crema-muted: #dcd4c7;
  --text-muted: #8b8379;
  
  --hazard-yellow: #f59e0b;
  --terminal-green: #10b981;
  --terminal-amber: #f59e0b;
  
  --border-subtle: rgba(212, 175, 55, 0.16);
  --border-focus: rgba(212, 175, 55, 0.55);
  
  --font-serif: 'Playfair Display', 'Amiri', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Tajawal', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--bg-dark);
  color: var(--crema);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 15%, rgba(28, 22, 18, 0.55) 0%, rgba(7, 7, 8, 1) 70%);
}

/* ==========================================================================
   PREMIUM ARABIC TYPOGRAPHY SYSTEM (Alexandria & Cairo)
   Ultra-sharp, high-contrast, modern luxury Middle-Eastern aesthetic
   ========================================================================== */
body.lang-ar {
  direction: rtl;
  font-family: 'Alexandria', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.75;
  color: #fdfbf7;
}

/* 1. CRITICAL: Remove letter-spacing that breaks cursive Arabic connections */
body.lang-ar,
body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar h4,
body.lang-ar p,
body.lang-ar span,
body.lang-ar button,
body.lang-ar a,
body.lang-ar .brand-name,
body.lang-ar .brand-sub,
body.lang-ar .terminal-badge,
body.lang-ar .hero-main-title,
body.lang-ar .hero-tagline,
body.lang-ar .drag-instruction-pill,
body.lang-ar .pill-name,
body.lang-ar .pill-price,
body.lang-ar .tag-drink-name,
body.lang-ar .tag-flight,
body.lang-ar .tag-gate,
body.lang-ar .tag-claim-action,
body.lang-ar .flap-title-text,
body.lang-ar .flap-columns-head div,
body.lang-ar .flap-row div,
body.lang-ar .flap-filter-btn,
body.lang-ar .sheet-title,
body.lang-ar .sheet-desc,
body.lang-ar .spec-title,
body.lang-ar .spec-info,
body.lang-ar .sheet-flavor-tag,
body.lang-ar .claim-submit-btn,
body.lang-ar .toast-notice {
  letter-spacing: 0 !important;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* 2. Bold, authoritative Arabic Headings */
body.lang-ar .hero-main-title {
  font-family: 'Alexandria', 'Cairo', sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  line-height: 1.35;
  background: linear-gradient(180deg, #FFFFFF 15%, #FDE4BA 60%, #E5A93C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8));
}

body.lang-ar .hero-arabic-tagline {
  font-family: 'Alexandria', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #f7d78a;
  line-height: 1.7;
  text-shadow: 0 0 25px rgba(247, 215, 138, 0.4);
}

body.lang-ar .hero-tagline {
  font-family: 'Alexandria', sans-serif;
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.8;
  color: #e5ded5;
}

body.lang-ar .brand-name {
  font-family: 'Alexandria', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.55rem;
}

body.lang-ar .brand-sub {
  font-family: 'Alexandria', sans-serif !important;
  font-weight: 700;
  font-size: 0.72rem;
}

/* 3. Terminal Badges & Buttons */
body.lang-ar .terminal-badge,
body.lang-ar .drag-instruction-pill,
body.lang-ar .view-switch-btn,
body.lang-ar .audio-btn,
body.lang-ar .lang-btn {
  font-family: 'Alexandria', sans-serif !important;
  font-weight: 700;
}

body.lang-ar .terminal-badge {
  font-size: 0.82rem;
  color: #ffb830;
  border-color: rgba(255, 184, 48, 0.4);
}

body.lang-ar .drag-instruction-pill {
  font-size: 0.78rem;
  color: #f3ede2;
}

/* 4. Luggage Baggage Tag in Arabic */
body.lang-ar .luggage-tag {
  width: 120px;
}

body.lang-ar .tag-drink-name {
  font-family: 'Alexandria', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #0b090e;
}

body.lang-ar .tag-flight,
body.lang-ar .tag-gate {
  font-family: 'Alexandria', sans-serif;
  font-weight: 700;
}

body.lang-ar .tag-claim-action {
  font-family: 'Alexandria', sans-serif;
  font-weight: 800;
  font-size: 0.68rem;
  color: #b85d19;
}

/* 5. Quick Pills under Tray */
body.lang-ar .tray-quick-pill {
  font-family: 'Alexandria', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
}

/* 6. Mechanical Split-Flap Board in Arabic */
body.lang-ar .flap-terminal-title {
  font-family: 'Alexandria', sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
}

body.lang-ar .flap-filter-btn {
  font-family: 'Alexandria', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
}

body.lang-ar .flap-columns-head {
  font-family: 'Alexandria', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
}

body.lang-ar .flap-row {
  font-family: 'Alexandria', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

body.lang-ar .flap-name {
  font-weight: 800;
  color: #ffffff;
}

body.lang-ar .status-badge {
  font-family: 'Alexandria', sans-serif;
  font-weight: 700;
}

/* 7. Modal Drink Anatomy Scanner */
body.lang-ar .sheet-title {
  font-family: 'Alexandria', 'Cairo', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.35;
  color: #ffffff;
}

body.lang-ar .sheet-origin {
  font-family: 'Alexandria', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: #d1c8b8;
}

body.lang-ar .sheet-desc {
  font-family: 'Alexandria', sans-serif;
  font-size: 1.08rem;
  line-height: 1.9;
  color: #eae3d7;
}

body.lang-ar .spec-title {
  font-family: 'Alexandria', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  color: #9c9388;
}

body.lang-ar .spec-info {
  font-family: 'Alexandria', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f7d78a;
}

body.lang-ar .sheet-flavor-title {
  font-family: 'Alexandria', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
}

body.lang-ar .sheet-flavor-tag {
  font-family: 'Alexandria', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
}

body.lang-ar .claim-submit-btn {
  font-family: 'Alexandria', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
}

body.lang-ar .sheet-badge-overlay {
  font-family: 'Alexandria', sans-serif;
  font-weight: 700;
  right: 1rem;
  left: auto;
}

body.lang-ar .close-modal-btn {
  left: 1.75rem;
  right: auto;
}

/* Fixed WebGL Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

/* Film Grain Overlay */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.content-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   SITE HEADER & TERMINAL TICKER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 1.1rem 2rem;
  background: rgba(7, 7, 8, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-badge {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--crema);
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--hazard-yellow);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
}

/* Terminal Ticker Pill */
.terminal-ticker-pill {
  display: none;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--crema-muted);
  background: rgba(18, 15, 20, 0.7);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

@media (min-width: 960px) {
  .terminal-ticker-pill {
    display: inline-flex;
  }
}

.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terminal-green);
  box-shadow: 0 0 10px var(--terminal-green);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Audio Button */
.audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(20, 18, 22, 0.75);
  border: 1px solid var(--border-subtle);
  color: var(--crema-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  transition: var(--transition-smooth);
}

.audio-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.audio-bar {
  width: 2px;
  height: 3px;
  background: var(--gold);
  border-radius: 1px;
}

/* View Mode Switcher (Belt vs Arrivals Board) */
.view-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--hazard-yellow);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.view-switch-btn:hover {
  background: var(--hazard-yellow);
  color: #070708;
}

/* Language Toggle */
.lang-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--crema-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  transition: var(--transition-smooth);
}

.lang-btn:hover {
  border-color: var(--gold);
  color: var(--crema);
}

/* ==========================================================================
   LANDSIDE HERO: CONVEYOR BAGGAGE RECLAIM STAGE
   ========================================================================== */
.conveyor-hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7rem 2rem 2.5rem;
  overflow: hidden;
}

.conveyor-hero-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 10;
}

.terminal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--hazard-yellow);
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-main-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  text-transform: uppercase;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5E5C9 50%, #C27A4E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--crema-muted);
  font-weight: 300;
  max-width: 650px;
  margin: 0 auto 0.75rem;
  line-height: 1.5;
}

.hero-arabic-tagline {
  font-family: 'Amiri', serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

/* Conveyor Drag Instructions Cue */
.drag-instruction-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(14, 12, 16, 0.65);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
}

.drag-icon-anim {
  display: inline-block;
  animation: dragArrows 1.8s infinite ease-in-out;
}

@keyframes dragArrows {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* ==========================================================================
   THE 3D CONVEYOR BELT CONTAINER
   ========================================================================== */
.conveyor-viewport {
  position: relative;
  width: 100%;
  max-width: 1300px;
  height: 540px;
  margin: 0 auto;
  perspective: 1200px;
  user-select: none;
  cursor: grab;
}

.conveyor-viewport:active {
  cursor: grabbing;
}

/* Oval Track Background Ring */
.conveyor-track-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 290px;
  transform: translate(-50%, -35%) rotateX(68deg);
  border-radius: 50%;
  border: 14px solid #141216;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9),
              0 20px 60px rgba(0, 0, 0, 0.9),
              0 0 35px rgba(212, 175, 55, 0.12);
  pointer-events: none;
}

/* Rubber Conveyor Slat Surface */
.conveyor-belt-surface {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88%;
  height: 270px;
  transform: translate(-50%, -35%) rotateX(68deg);
  border-radius: 50%;
  border: 2px dashed rgba(245, 158, 11, 0.35);
  background: repeating-linear-gradient(
    90deg,
    #18151a 0px,
    #18151a 18px,
    #0d0b0f 18px,
    #0d0b0f 22px
  );
  pointer-events: none;
}

/* Drink Tray Item */
.conveyor-drink-tray {
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  height: 270px;
  transform-origin: center bottom;
  cursor: pointer;
  transition: filter 0.3s ease;
}

.tray-platform {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

/* Metal Tray Plate */
.tray-plate {
  position: absolute;
  bottom: 25px;
  width: 145px;
  height: 40px;
  background: linear-gradient(180deg, #322d36 0%, #16141a 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
  z-index: 1;
}

.tray-plate-groove {
  position: absolute;
  top: 4px;
  left: 10px;
  right: 10px;
  bottom: 4px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.6);
}

.tray-led-ring {
  position: absolute;
  bottom: -2px;
  left: 20%;
  width: 60%;
  height: 5px;
  border-radius: 50%;
  filter: blur(5px);
  opacity: 0.6;
}

/* ==========================================================================
   REAL PHOTOGRAPHIC DRINK SHOWCASE
   ========================================================================== */
.drink-visual-photo-wrap {
  position: relative;
  z-index: 3;
  margin-bottom: 20px;
  width: 100px;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.conveyor-drink-tray:hover .drink-visual-photo-wrap {
  transform: translateY(-8px) scale(1.08);
}

.drink-real-img {
  width: 95px;
  height: 120px;
  object-fit: cover;
  border-radius: 18px 18px 24px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.8),
              0 0 20px var(--drink-accent, rgba(212, 175, 55, 0.25));
  filter: contrast(1.05) saturate(1.1);
  background-color: #121014;
}

.drink-photo-ring {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 16px;
  border-radius: 50%;
  background: var(--drink-accent, #d4af37);
  filter: blur(10px);
  opacity: 0.35;
  pointer-events: none;
}

.drink-steam-glow {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

/* ==========================================================================
   SWINGING LUGGAGE BAGGAGE CLAIM TAG
   ========================================================================== */
.luggage-tag-wrapper {
  position: absolute;
  top: 15px;
  right: 12px;
  z-index: 10;
  transform-origin: top center;
  pointer-events: auto;
}

.tag-string {
  width: 1.5px;
  height: 28px;
  background: rgba(212, 175, 55, 0.6);
  margin: 0 auto;
}

.luggage-tag {
  width: 105px;
  background: #fdfaf3;
  color: #121014;
  border-radius: 5px;
  padding: 0.5rem 0.45rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(0, 0, 0, 0.1);
  transform-origin: top center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
}

.luggage-tag:hover {
  transform: scale(1.1) rotate(-4deg) !important;
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.4);
}

.tag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed #d1c8b8;
  padding-bottom: 0.25rem;
  margin-bottom: 0.3rem;
}

.tag-flight {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #c27a4e;
}

.tag-gate {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  background: #121014;
  color: #fdfaf3;
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
}

.tag-body {
  margin-bottom: 0.35rem;
}

.tag-drink-name {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  color: #121014;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-temp {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #8b8379;
}

.tag-barcode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: -0.5px;
  border-top: 1px solid #e2dad0;
  padding-top: 0.25rem;
}

.tag-claim-action {
  font-weight: 800;
  color: #c27a4e;
  letter-spacing: 0.05em;
}

/* Tray Bottom Quick Pill */
.tray-quick-pill {
  position: absolute;
  bottom: -5px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(18, 15, 20, 0.9);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  white-space: nowrap;
}

.pill-name {
  color: var(--crema);
  font-weight: 600;
}

.pill-price {
  color: var(--gold);
  font-weight: 700;
}

/* Highlighting center focus item */
.conveyor-drink-tray.is-center-focus .tray-plate {
  border-color: var(--gold);
}

.conveyor-drink-tray.is-center-focus .tray-led-ring {
  opacity: 1;
  filter: blur(8px);
}

/* ==========================================================================
   MECHANICAL SPLIT-FLAP ARRIVALS & DEPARTURES BOARD
   ========================================================================== */
.splitflap-terminal {
  max-width: 1240px;
  margin: 3rem auto 6rem;
  background: #0b090e;
  border: 2px solid #201c26;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.95);
  position: relative;
  overflow: hidden;
}

.splitflap-terminal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--hazard-yellow) 0px,
    var(--hazard-yellow) 20px,
    #0b090e 20px,
    #0b090e 40px
  );
}

.flap-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #201c26;
  margin-bottom: 1.5rem;
}

.flap-terminal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--hazard-yellow);
}

.flap-terminal-clock {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--terminal-green);
  letter-spacing: 0.12em;
  background: #14111a;
  border: 1px solid #282432;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
}

/* Flap Filter Bar */
.flap-filter-bar {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.flap-filter-btn {
  background: #14111a;
  border: 1px solid #25212e;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.flap-filter-btn:hover, .flap-filter-btn.active {
  background: var(--hazard-yellow);
  color: #0b090e;
  border-color: var(--hazard-yellow);
}

/* Flap Table Columns */
.flap-columns-head {
  display: grid;
  grid-template-columns: 110px 2fr 2fr 100px 150px 110px;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #6d655d;
  letter-spacing: 0.18em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #25212e;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .flap-columns-head {
    grid-template-columns: 80px 1.5fr 1fr 100px;
  }
  .col-origin, .col-action {
    display: none;
  }
}

.flap-row {
  display: grid;
  grid-template-columns: 110px 2fr 2fr 100px 150px 110px;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

@media (max-width: 900px) {
  .flap-row {
    grid-template-columns: 80px 1.5fr 1fr 100px;
  }
}

.flap-row:hover {
  background: rgba(245, 158, 11, 0.08);
}

.flap-flight {
  color: var(--hazard-yellow);
  font-weight: 700;
}

.flap-name {
  color: var(--crema);
  font-weight: 700;
}

.flap-temp {
  color: var(--copper);
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.status-green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--terminal-green);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--terminal-amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.flap-claim-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: var(--transition-smooth);
}

.flap-claim-btn:hover {
  background: var(--gold);
  color: #0b090e;
}

.is-flipping {
  display: inline-block;
  animation: flipTile 0.18s linear;
}

@keyframes flipTile {
  0% { transform: rotateX(0deg); opacity: 1; }
  50% { transform: rotateX(90deg); opacity: 0.4; }
  100% { transform: rotateX(0deg); opacity: 1; }
}

/* ==========================================================================
   DRINK ANATOMY SCANNER MODAL (WITH REAL PHOTOGRAPHY)
   ========================================================================== */
.anatomy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  background: rgba(4, 4, 5, 0.88);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.anatomy-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.anatomy-sheet {
  max-width: 960px;
  width: 100%;
  background: #110e14;
  border: 1.5px solid var(--border-focus);
  border-radius: 1.5rem;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.95);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.anatomy-modal.active .anatomy-sheet {
  transform: translateY(0) scale(1);
}

.close-modal-btn {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--crema);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  z-index: 5;
}

.close-modal-btn:hover {
  background: var(--gold);
  color: #070708;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #231f2b;
}

.sheet-flight-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--hazard-yellow);
  letter-spacing: 0.2em;
  margin-bottom: 0.4rem;
}

.sheet-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--crema);
}

.sheet-origin {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sheet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .sheet-grid {
    grid-template-columns: 320px 1fr;
  }
}

/* Real Photo Column in Modal */
.sheet-photo-column {
  display: flex;
  flex-direction: column;
}

.sheet-photo-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.modal-real-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: contrast(1.08) saturate(1.1);
}

.sheet-photo-wrapper:hover .modal-real-photo {
  transform: scale(1.05);
}

.sheet-badge-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  background: rgba(7, 7, 8, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.sheet-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--crema-muted);
  margin-bottom: 1.75rem;
}

.sheet-specs-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: #17141b;
  border: 1px solid #282432;
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.sheet-spec-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spec-info {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--crema);
  font-weight: 600;
}

/* Sensory Flavor Radar Pills */
.sheet-flavor-box {
  margin-bottom: 1.75rem;
}

.sheet-flavor-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.sheet-flavor-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sheet-flavor-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

/* Claim Order Box */
.claim-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(194, 122, 78, 0.15));
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}

.claim-price-tag {
  display: flex;
  flex-direction: column;
}

.price-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.price-big {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
}

.claim-submit-btn {
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: #070708;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.claim-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

/* Toast Notice */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 150;
  background: #14111a;
  border: 1px solid var(--hazard-yellow);
  border-radius: 0.75rem;
  padding: 1.1rem 1.6rem;
  color: var(--crema);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transform: translateY(140%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Site Footer */
.site-footer {
  position: relative;
  z-index: 5;
  border-top: 1px solid #201c26;
  padding: 5rem 2rem 3rem;
  background: #08070a;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  max-width: 1240px;
  margin: 0 auto 4rem;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--crema);
  margin-bottom: 1.25rem;
}

.footer-col p, .footer-col a {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  text-decoration: none;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}
