/*
 * Lakshmi Mahal Redesign - Design System & Modern UI/UX Architecture
 * Strict Palette: #b42218 (Crimson), #c90101 (Bright Red), #8c160e (Dark Red), #ffa33c (Amber), #f4aa00 (Gold), #c9c600 (Yellow)
 * Dark Themes: #121315, #16181b, #1c1e22, #222222
 * Light Themes: #faf7f2, #ffffff, #f4eee3
 */

:root {
  --lm-crimson: #b42218;
  --lm-bright-red: #c90101;
  --lm-dark-red: #8c160e;
  --lm-amber: #ffa33c;
  --lm-gold: #f4aa00;
  --lm-yellow: #c9c600;

  --bg-main: #121315;
  --bg-surface: #16181b;
  --bg-card: #1c1e22;
  --bg-elevated: #23272d;
  --border-card: rgba(255, 163, 60, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --font-heebo: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html.light {
  --bg-main: #faf7f2;
  --bg-surface: #f4eee3;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --border-card: rgba(180, 34, 24, 0.2);
  --border-subtle: rgba(0, 0, 0, 0.08);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
}

body {
  font-family: var(--font-heebo);
  overflow-x: hidden;
}

/* 3D Perspective Context */
.perspective-container {
  perspective: 1200px;
  perspective-origin: center center;
}

/* Glassmorphism 3D Surface Cards */
.glass-3d-card {
  background: rgba(28, 30, 34, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 163, 60, 0.25);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

html.light .glass-3d-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(180, 34, 24, 0.2);
  box-shadow: 0 10px 30px rgba(180, 34, 24, 0.08);
}

.glass-3d-card:hover {
  border-color: rgba(255, 163, 60, 0.6);
  box-shadow: 0 15px 35px -5px rgba(180, 34, 24, 0.35), 0 0 20px rgba(255, 163, 60, 0.2);
}

html.light .glass-3d-card:hover {
  border-color: rgba(180, 34, 24, 0.4);
  box-shadow: 0 15px 35px -5px rgba(180, 34, 24, 0.15);
}

/* 3D Floating Animations */
@keyframes float3D {
  0%, 100% {
    transform: translateY(0px) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: translateY(-12px) rotateX(4deg) rotateY(-4deg);
  }
}

@keyframes float3DDelayed {
  0%, 100% {
    transform: translateY(0px) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: translateY(-14px) rotateX(-4deg) rotateY(4deg);
  }
}

.animate-float-3d {
  animation: float3D 6s ease-in-out infinite;
}

.animate-float-3d-delayed {
  animation: float3DDelayed 7s ease-in-out infinite 1s;
}

@keyframes subtleZoom {
  0%, 100% { transform: scale(1.03); }
  50% { transform: scale(1.08); }
}

.animate-subtle-zoom {
  animation: subtleZoom 20s ease-in-out infinite alternate;
}

/* Audio Player Synthesizer Equalizer Bars */
.audio-bar {
  width: 2.5px;
  height: 10px;
  background-color: #ffa33c;
  border-radius: 1px;
  display: inline-block;
  animation: audioWave 1.2s ease-in-out infinite;
}

.audio-bar:nth-child(2) { animation-delay: 0.2s; }
.audio-bar:nth-child(3) { animation-delay: 0.4s; }
.audio-bar:nth-child(4) { animation-delay: 0.6s; }

@keyframes audioWave {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

.audio-paused .audio-bar {
  animation: none;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.4);
}

/* Navigation Scroll Spy Active Links */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link.active {
  color: #ffa33c !important;
  font-weight: 700;
}

html.light .nav-link.active {
  color: #b42218 !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #ffa33c, #b42218);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 163, 60, 0.6);
}

/* Brand Logo Typography & Alignment */
.lm-logo-text {
  letter-spacing: 0.12em;
  font-family: var(--font-heebo);
  line-height: 1.1;
}

.lm-logo-text .logo-highlight {
  color: #b42218 !important;
  font-weight: 900 !important;
  text-shadow: 0 0 12px rgba(180, 34, 24, 0.4);
}

.lm-logo-text span:not(.logo-highlight) {
  font-weight: 300;
  letter-spacing: 0.06em;
}

.lm-sublogo {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffa33c;
  font-weight: 600;
  display: block;
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
}

html.light .lm-sublogo {
  color: #b42218;
  font-weight: 700;
}

/* Buttons with 3D Tactile Hover */
.btn-lm-primary {
  background: linear-gradient(135deg, #c90101 0%, #b42218 100%);
  color: #ffffff !important;
  border: 1px solid #ffa33c;
  box-shadow: 0 4px 15px rgba(180, 34, 24, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.btn-lm-primary:hover {
  background: linear-gradient(135deg, #e00101 0%, #c90101 100%);
  border-color: #ffffff;
  box-shadow: 0 8px 25px rgba(201, 1, 1, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px) translateZ(10px);
}

.btn-lm-secondary {
  background-color: rgba(255, 163, 60, 0.12);
  color: #ffa33c;
  border: 1.5px solid #ffa33c;
  font-weight: 600;
  transition: all 0.25s ease;
  transform-style: preserve-3d;
}

html.light .btn-lm-secondary {
  background-color: rgba(180, 34, 24, 0.08);
  color: #b42218;
  border-color: #b42218;
}

.btn-lm-secondary:hover {
  background-color: #ffa33c;
  color: #111111;
  box-shadow: 0 8px 20px rgba(255, 163, 60, 0.4);
  transform: translateY(-2px) translateZ(10px);
}

html.light .btn-lm-secondary:hover {
  background-color: #b42218;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(180, 34, 24, 0.4);
}

/* Category Tab Buttons */
.category-tab-btn {
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.category-tab-btn:hover {
  background: var(--bg-elevated);
  color: #ffa33c;
  border-color: #ffa33c;
}

html.light .category-tab-btn:hover {
  color: #b42218;
  border-color: #b42218;
}

.category-tab-btn.active {
  background: #b42218;
  color: #ffffff;
  font-weight: 700;
  border-color: #ffa33c;
  box-shadow: 0 6px 18px rgba(180, 34, 24, 0.45);
}

/* Dietary Filter Chips & Category Tabs */
.diet-filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #121315;
  color: #94a3b8;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.diet-filter-btn:hover {
  border-color: #ffa33c;
  color: #ffffff;
  background: rgba(255, 163, 60, 0.12);
}

html.light .diet-filter-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

html.light .diet-filter-btn:hover {
  border-color: #b42218;
  color: #b42218;
  background: rgba(180, 34, 24, 0.08);
}

.diet-filter-btn.active {
  background: #b42218 !important;
  border-color: #ffa33c !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(180, 34, 24, 0.45);
}

html.light .diet-filter-btn.active {
  background: #b42218 !important;
  border-color: #ffa33c !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(180, 34, 24, 0.3);
}

.category-tab-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-tab-btn:hover {
  transform: translateY(-1px);
}

.category-tab-btn.active {
  box-shadow: 0 4px 14px rgba(180, 34, 24, 0.4);
}

/* Dish Card Presentation */
.dish-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.dish-card:hover {
  border-color: rgba(255, 163, 60, 0.6);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(180, 34, 24, 0.25);
}

html.light .dish-card {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

html.light .dish-card:hover {
  box-shadow: 0 16px 36px -8px rgba(180, 34, 24, 0.15);
  border-color: #b42218;
}

.dish-img-container {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background-color: #1a1c20;
}

.dish-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dish-card:hover .dish-img-container img {
  transform: scale(1.08);
}

/* Order Mode Toggle */
.order-mode-btn {
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.order-mode-btn.active {
  background: #b42218;
  color: #ffffff;
  border: 1px solid #ffa33c;
  box-shadow: 0 4px 12px rgba(180, 34, 24, 0.4);
}

/* Section Headlines */
.section-headline {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
}

.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

/* Interactive Thali Platter Simulation Engine */
.thali-platter-disc {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a2d34 0%, #16181b 75%, #0d0e10 100%);
  border: 6px solid #ffa33c;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), inset 0 0 25px rgba(255, 163, 60, 0.2), 0 0 25px rgba(255, 163, 60, 0.25);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

html.light .thali-platter-disc {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #f4eee3 75%, #e6decb 100%);
  border-color: #b42218;
  box-shadow: 0 15px 40px rgba(180, 34, 24, 0.15), inset 0 0 25px rgba(180, 34, 24, 0.1);
}

.thali-katori-slot {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #1c1e22;
  border: 2px dashed rgba(255, 163, 60, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

html.light .thali-katori-slot {
  background: #ffffff;
  border-color: rgba(180, 34, 24, 0.4);
}

.thali-katori-slot:hover {
  border-color: #ffa33c;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 163, 60, 0.6);
}

.thali-opt-btn {
  background: var(--bg-surface);
  border-color: var(--border-card);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.thali-opt-btn:hover {
  border-color: #ffa33c;
}

.thali-opt-btn.active {
  border-color: #ffa33c !important;
  background-color: #b42218 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(180, 34, 24, 0.4);
}

/* Aroma Compass Active Card Glow */
.aroma-card.active {
  border-color: #ffa33c !important;
  box-shadow: 0 0 25px rgba(255, 163, 60, 0.4), inset 0 0 15px rgba(180, 34, 24, 0.2) !important;
  transform: translateY(-4px) scale(1.02);
}

/* Scratch Card Canvas */
#scratchCanvas {
  cursor: crosshair;
  touch-action: none;
  border-radius: 1.5rem;
}

/* FAQ Accordion Luxury Micro-Interactions */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.open .faq-content {
  max-height: 500px;
  opacity: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: #ffa33c;
}

.faq-item.open {
  border-color: rgba(255, 163, 60, 0.45) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 15px rgba(255, 163, 60, 0.1) !important;
}

/* Back to Top Floating Button (Bottom-Right) */
#backToTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 45;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1c1e22;
  border: 1.5px solid #ffa33c;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6), 0 0 15px rgba(255,163,60,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================================================
 * FLOATING TOOLS MANAGEMENT DOCK (EQUAL DISTANT, ZERO OVERLAP)
 * =================================================== */
.floating-tools-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.floating-tools-dock > * {
  pointer-events: auto;
}

.floating-tool-pill {
  height: 46px;
  padding: 0 18px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #b42218 0%, #8c160e 100%);
  border: 1.5px solid rgba(255, 163, 60, 0.7);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 163, 60, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}

.floating-tool-pill:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #ffa33c;
  box-shadow: 0 14px 30px rgba(180, 34, 24, 0.45), 0 0 22px rgba(255, 163, 60, 0.4);
}

.floating-tool-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1c1e22;
  border: 1.5px solid rgba(255, 163, 60, 0.6);
  color: #ffa33c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.floating-tool-circle.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-tool-circle:hover {
  transform: translateY(-3px) scale(1.08);
  background: #b42218;
  color: #ffffff;
  border-color: #ffa33c;
}

html.light .floating-tool-circle {
  background: #ffffff;
  color: #b42218;
  border-color: rgba(180, 34, 24, 0.4);
  box-shadow: 0 10px 25px rgba(180, 34, 24, 0.15);
}

html.light .floating-tool-circle:hover {
  background: #b42218;
  color: #ffffff;
}

/* Toast Progress Bar & Safe Floating Positioning */
#toastProgressBar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: #ffa33c;
  width: 100%;
  transition: width 3s linear;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: #3f444e;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffa33c;
}

html.light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

html.light ::-webkit-scrollbar-thumb:hover {
  background: #b42218;
}

/* ===================================================
 * LUXURY VISUAL ELEVATION & MICRO-INTERACTIONS
 * =================================================== */

/* Golden Border Glow on Focus / Hover */
.glow-gold {
  box-shadow: 0 0 20px rgba(255, 163, 60, 0.4), inset 0 0 10px rgba(255, 163, 60, 0.15);
}

.glow-crimson {
  box-shadow: 0 0 20px rgba(180, 34, 24, 0.4), inset 0 0 10px rgba(180, 34, 24, 0.15);
}

/* Pulsing Badge Indicator */
@keyframes goldPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 163, 60, 0.6);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 163, 60, 0);
  }
}

.pulse-gold {
  animation: goldPulse 2.5s infinite;
}

/* Live Order Tracker Step Animation */
@keyframes trackerPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.9;
  }
}

.tracker-active {
  animation: trackerPulse 1.8s ease-in-out infinite;
}

/* Luxury Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.luxury-shimmer {
  background: linear-gradient(90deg, rgba(255,163,60,0) 0%, rgba(255,163,60,0.2) 50%, rgba(255,163,60,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 4s infinite;
}

/* Smooth Interactive Input Transitions */
input, select, textarea {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: #ffa33c !important;
  box-shadow: 0 0 12px rgba(255, 163, 60, 0.35) !important;
}

/* Button Ripple & Active State */
button:active {
  transform: scale(0.98);
}

/* Responsive Touch Target Constraints */
@media (max-width: 640px) {
  .thali-opt-btn {
    min-height: 44px;
  }
  .diet-filter-btn {
    min-height: 40px;
  }
  .category-tab-btn {
    min-height: 42px;
  }
}

/* ==========================================
 * HIGH-CONTRAST LIGHT & DARK THEME ENGINE
 * ========================================== */

/* --- 1. DARK THEME STANDARDS (DEFAULT & html.dark) --- */
html.dark body,
body:not(.light) {
  background-color: #121315;
  color: #f8fafc;
}

html.dark .section-headline,
html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark h5 {
  color: #ffffff;
}

html.dark p, html.dark span.section-subtext {
  color: #cbd5e1;
}

html.dark input,
html.dark select,
html.dark textarea {
  background-color: #121315 !important;
  color: #ffffff !important;
  border-color: rgba(255, 163, 60, 0.3) !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #64748b !important;
}

html.dark footer,
html.dark #mainFooter {
  background-color: #16181b !important;
  color: #cbd5e1 !important;
  border-top-color: rgba(255, 163, 60, 0.3) !important;
}

html.dark footer h4,
html.dark #mainFooter h4 {
  color: #ffa33c !important;
}

html.dark footer p,
html.dark footer span,
html.dark footer li a {
  color: #94a3b8 !important;
}

html.dark footer li a:hover {
  color: #ffa33c !important;
}

/* --- 2. WELCOME LOCATION GATEWAY OVERLAY (ALWAYS HIGH-CONTRAST IMMERSIVE DARK) --- */
#welcomeGatewayModal,
#welcomeGatewayModal * {
  box-sizing: border-box;
}

#welcomeGatewayModal {
  background-color: rgba(0, 0, 0, 0.85) !important;
  color: #ffffff !important;
}

#welcomeGatewayModal h1,
#welcomeGatewayModal h1 span:first-child {
  color: #ffffff !important;
}

#welcomeGatewayModal h1 span.text-\[\#ffa33c\] {
  color: #ffa33c !important;
}

#welcomeGatewayModal h2 {
  color: #ffa33c !important;
}

#welcomeGatewayModal h3 {
  color: #ffffff !important;
}

#welcomeGatewayModal div:hover > div > h3,
#welcomeGatewayModal div:hover h3 {
  color: #ffa33c !important;
}

#welcomeGatewayModal p {
  color: #cbd5e1 !important;
}

#welcomeGatewayModal .text-slate-300 {
  color: #cbd5e1 !important;
}

#welcomeGatewayModal .text-slate-400 {
  color: #94a3b8 !important;
}

#welcomeGatewayModal .text-emerald-400 {
  color: #34d399 !important;
}

#welcomeGatewayModal .bg-\[\#1c1e22\]\/95 {
  background-color: rgba(28, 30, 34, 0.95) !important;
  border-color: rgba(255, 163, 60, 0.35) !important;
  color: #ffffff !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
}

#welcomeGatewayModal .bg-\[\#1c1e22\]\/95:hover {
  border-color: #ffa33c !important;
}

#welcomeGatewayModal button {
  color: #ffffff !important;
}

#welcomeGatewayModal #gwLangDropdownMenu {
  background-color: #1c1e22 !important;
  border: 2px solid #ffa33c !important;
  color: #ffffff !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7) !important;
}

#welcomeGatewayModal #gwLangDropdownMenu button {
  color: #e2e8f0 !important;
}

#welcomeGatewayModal #gwLangDropdownMenu button:hover {
  background-color: #b42218 !important;
  color: #ffffff !important;
}

/* --- 3. LIGHT THEME STANDARDS (html.light) --- */
html.light body {
  background-color: #faf7f2 !important;
  color: #0f172a !important;
}

/* Scoped Headlines & Text in Light Mode (Does not touch Welcome Gateway) */
html.light header#mainHeader,
html.light #heroSection,
html.light #speisekarte,
html.light #thaliBuilder,
html.light #aromakompass,
html.light #spezialitaeten,
html.light #reservierung,
html.light #catering,
html.light #faq,
html.light #anfahrt,
html.light #mainFooter,
html.light .modal-dialog,
html.light #cartDrawer {
  color: #0f172a;
}

html.light #mainHeader .nav-link {
  color: #334155 !important;
}

html.light #mainHeader .nav-link:hover,
html.light #mainHeader .nav-link.active {
  color: #b42218 !important;
}

html.light #mainHeader {
  background-color: rgba(255, 255, 255, 0.97) !important;
  border-bottom-color: rgba(180, 34, 24, 0.2) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

html.light #heroSection h1,
html.light #speisekarte h2,
html.light #thaliBuilder h2,
html.light #aromakompass h2,
html.light #spezialitaeten h2,
html.light #reservierung h2,
html.light #catering h2,
html.light #faq h2,
html.light #anfahrt h2 {
  color: #0f172a !important;
}

html.light #heroSection p,
html.light #speisekarte p,
html.light #thaliBuilder p,
html.light #aromakompass p,
html.light #spezialitaeten p,
html.light #reservierung p,
html.light #catering p,
html.light #faq p,
html.light #anfahrt p {
  color: #334155;
}

/* Light Mode Cards */
html.light .glass-3d-card,
html.light .dish-card,
html.light .faq-item,
html.light .branch-card,
html.light .aroma-card,
html.light #reservierung > div > div,
html.light #thaliBuilder > div > div.grid > div {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
}

html.light .dish-card h4,
html.light .dish-card h3 {
  color: #0f172a !important;
}

html.light .dish-card p {
  color: #475569 !important;
}

html.light .faq-item button {
  color: #0f172a !important;
}

html.light .faq-content {
  background-color: #faf7f2 !important;
  color: #334155 !important;
}

html.light #langDropdownMenu {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #0f172a !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

html.light #langDropdownMenu button {
  color: #334155 !important;
}

html.light #langDropdownMenu button:hover {
  background-color: #f1f5f9 !important;
  color: #b42218 !important;
}

html.light #langDropdownBtn,
html.light #themeToggleBtn {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

html.light #navActiveBranchBadge {
  color: #0f172a !important;
}

html.light button[onclick*="openWelcomeGateway"] {
  background-color: #ffffff !important;
  border-color: rgba(180, 34, 24, 0.35) !important;
  color: #b42218 !important;
}

/* Reservation Controls in Light Mode */
html.light .res-guest-btn,
html.light .res-area-btn,
html.light .time-slot-btn {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

html.light .res-guest-btn:hover,
html.light .res-area-btn:hover,
html.light .time-slot-btn:hover {
  border-color: #b42218 !important;
  color: #b42218 !important;
}

html.light .res-guest-btn.active,
html.light .res-area-btn.active,
html.light .time-slot-btn.active {
  background-color: #b42218 !important;
  border-color: #ffa33c !important;
  color: #ffffff !important;
}

html.light #inlineResBranchBtn_bochum,
html.light #inlineResBranchBtn_essen,
html.light #inlineResBranchBtn_dusseldorf {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

html.light .order-mode-btn {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
}

html.light .order-mode-btn.active {
  background-color: #b42218 !important;
  color: #ffffff !important;
}

/* Thali Controls in Light Mode */
html.light .thali-opt-btn {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

html.light .thali-opt-btn:hover {
  border-color: #b42218 !important;
  color: #b42218 !important;
}

html.light .thali-opt-btn.active {
  background-color: #b42218 !important;
  border-color: #ffa33c !important;
  color: #ffffff !important;
}

/* Aroma Compass in Light Mode */
html.light .aroma-card {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
}

html.light .aroma-card.active {
  border-color: #b42218 !important;
  box-shadow: 0 0 20px rgba(180, 34, 24, 0.25) !important;
}

/* Modals & Cart Drawer in Light Mode */
html.light #dishDetailModal > div,
html.light #reservationModal > div,
html.light #whatsappOrderModal > div,
html.light #orderTrackerModal > div,
html.light #cartDrawer,
html.light #allergenGuideModal > div,
html.light #legalModal > div,
html.light #scratchModal > div {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(180, 34, 24, 0.3) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
}

html.light input,
html.light select,
html.light textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html.light input:focus,
html.light select:focus,
html.light textarea:focus {
  border-color: #b42218 !important;
  box-shadow: 0 0 10px rgba(180, 34, 24, 0.2) !important;
  outline: none !important;
}

html.light input::placeholder,
html.light textarea::placeholder {
  color: #94a3b8 !important;
}

/* Footer in Light Mode */
html.light footer,
html.light #mainFooter {
  background-color: #f4eee3 !important;
  color: #334155 !important;
  border-top-color: rgba(180, 34, 24, 0.25) !important;
}

html.light footer h4,
html.light #mainFooter h4 {
  color: #b42218 !important;
}

html.light footer p,
html.light footer span,
html.light footer li a {
  color: #475569 !important;
}

html.light footer li a:hover {
  color: #b42218 !important;
}

html.light footer .border-zinc-500\/20,
html.light footer .border-white\/10 {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

html.light footer a.w-9 {
  background-color: #ffffff !important;
  color: #b42218 !important;
  border-color: rgba(180, 34, 24, 0.3) !important;
}

html.light footer a.w-9:hover {
  background-color: #b42218 !important;
  color: #ffffff !important;
}

html.light .btn-lm-secondary {
  background-color: rgba(180, 34, 24, 0.08) !important;
  color: #b42218 !important;
  border-color: #b42218 !important;
}

html.light .btn-lm-secondary:hover {
  background-color: #b42218 !important;
  color: #ffffff !important;
}

html.light .btn-lm-secondary:hover span,
html.light .btn-lm-secondary:hover i {
  color: #ffffff !important;
}

html.light #backToTopBtn {
  background-color: #ffffff;
  border-color: #b42218;
  box-shadow: 0 8px 25px rgba(180, 34, 24, 0.2);
}

html.light #backToTopBtn:hover {
  background-color: #b42218;
}

html.light #backToTopBtn:hover i,
html.light #backToTopBtn:hover svg {
  color: #ffffff !important;
}

/* Constant White Text Elements */
.btn-lm-primary,
.bg-\[\#b42218\],
.bg-\[\#8c160e\],
.bg-\[\#c90101\],
#topAnnouncementBar,
#toastNotification {
  color: #ffffff !important;
}

.btn-lm-primary {
  background: linear-gradient(135deg, #c90101 0%, #b42218 100%) !important;
}

.btn-lm-primary span,
.btn-lm-primary i,
.btn-lm-primary svg {
  color: #ffffff !important;
}

/* ==========================================
 * GOOGLE TRANSLATE STYLING & CLEAN INTEGRATION
 * ========================================== */
body {
  top: 0px !important;
  position: static !important;
}

.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

#google_translate_element {
  display: inline-block;
  vertical-align: middle;
}

.goog-te-gadget {
  font-family: inherit !important;
  color: transparent !important;
  font-size: 0px !important;
}

.goog-te-gadget .goog-te-combo {
  background: rgba(18, 19, 21, 0.85) !important;
  color: #ffa33c !important;
  border: 1px solid rgba(255, 163, 60, 0.4) !important;
  border-radius: 10px !important;
  padding: 5px 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

html.light .goog-te-gadget .goog-te-combo {
  background: #ffffff !important;
  color: #b42218 !important;
  border: 1px solid rgba(180, 34, 24, 0.3) !important;
}

.goog-te-gadget .goog-te-combo:hover {
  border-color: #ffa33c !important;
  box-shadow: 0 0 12px rgba(255, 163, 60, 0.35) !important;
}

.goog-te-gadget span {
  display: none !important;
}

.goog-logo-link {
  display: none !important;
}

.goog-te-gadget > span > a {
  display: none !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

/* ==========================================================================
 * RESPONSIVE PERFECTION ACROSS ALL VIEWPORTS & RESOLUTIONS
 * (Mobile: 320-480px, Tablet: 481-1024px, Laptop: 1025-1440px, Desktop: 1441px+)
 * ========================================================================== */

/* Prevent any accidental horizontal scrollbar across all devices */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Fluid typography & viewport scaling */
@media (max-width: 480px) {
  /* Extra Small Mobile (iPhone SE, Galaxy Fold) */
  .section-headline {
    font-size: 1.625rem !important; /* 26px */
    line-height: 1.25 !important;
  }

  .lm-logo-title {
    font-size: 1rem !important;
    letter-spacing: 0.05em !important;
  }

  .lm-sublogo {
    font-size: 8px !important;
    letter-spacing: 0.1em !important;
  }

  /* Compact button paddings for 320px-375px screens */
  .btn-lm-primary,
  .btn-lm-secondary {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    font-size: 0.8125rem !important;
  }

  /* Modal max heights and scroll safety */
  .modal-inner,
  #galleryModal,
  #waOrderModal,
  #legalModal {
    padding: 0.75rem !important;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  /* Standard Mobile to Small Tablet (iPhone Pro Max, Pixel 7) */
  .section-headline {
    font-size: 2rem !important; /* 32px */
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet Portrait & Landscape (iPad, Galaxy Tab) */
  .section-headline {
    font-size: 2.25rem !important; /* 36px */
  }
}

@media (min-width: 1025px) and (max-width: 1440px) {
  /* Standard Laptop & Compact Desktop (MacBook Air/Pro 13"/14", Surface) */
  .section-headline {
    font-size: 2.5rem !important; /* 40px */
  }
}

@media (min-width: 1441px) {
  /* Full HD & Ultra-wide 4K Monitors (1920px+) */
  .section-headline {
    font-size: 2.875rem !important; /* 46px */
  }

  .max-w-7xl {
    max-width: 1400px !important;
  }
}

/* Form fields touch-friendliness across touch screens */
@media (hover: none) and (pointer: coarse) {
  input, select, textarea, button {
    touch-action: manipulation;
  }
  
  .diet-filter-btn,
  .category-tab-btn {
    min-height: 42px;
  }
}

/* Modal backdrop blur & responsive fit */
.modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* ==========================================
 * LIGHT MODE POLISH & RESERVATION VISIBILITY
 * ========================================== */

html.light .lm-logo-text {
  color: #18181b !important;
}

html.light .lm-logo-text span {
  color: #27272a !important;
}

html.light .lm-sublogo {
  color: #b42218 !important;
}

/* Fix cart button & badge in light and dark mode */
#openCartBtn {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

#cartCountBadge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 5px !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #b42218 !important;
  color: #ffffff !important;
  border: 1.5px solid #ffa33c !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
  transform: none !important;
}

/* Light mode reservation buttons */
html.light .res-guest-btn {
  background-color: #f8fafc !important;
  color: #1e293b !important;
  border: 1.5px solid #cbd5e1 !important;
}

html.light .res-guest-btn:hover {
  border-color: #b42218 !important;
  color: #b42218 !important;
}

html.light .res-guest-btn.active {
  background-color: #b42218 !important;
  color: #ffffff !important;
  border-color: #ffa33c !important;
}

html.light .res-time-btn {
  background-color: #f8fafc !important;
  color: #1e293b !important;
  border: 1.5px solid #cbd5e1 !important;
}

html.light .res-time-btn:hover {
  border-color: #b42218 !important;
  color: #b42218 !important;
}

html.light .res-time-btn.active {
  background-color: #b42218 !important;
  color: #ffffff !important;
  border-color: #ffa33c !important;
}

html.light .res-area-btn {
  background-color: #f8fafc !important;
  color: #1e293b !important;
  border: 1.5px solid #cbd5e1 !important;
}

html.light .res-area-btn:hover {
  border-color: #b42218 !important;
  color: #b42218 !important;
}

html.light .res-area-btn.active {
  background-color: #b42218 !important;
  color: #ffffff !important;
  border-color: #ffa33c !important;
}

html.light #resBranchBtn_bochum,
html.light #resBranchBtn_essen,
html.light #resBranchBtn_dusseldorf {
  color: #1e293b;
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

html.light #resBranchBtn_bochum.bg-\[\#b42218\],
html.light #resBranchBtn_essen.bg-\[\#b42218\],
html.light #resBranchBtn_dusseldorf.bg-\[\#b42218\] {
  color: #ffffff !important;
  background-color: #b42218 !important;
  border-color: #ffa33c !important;
}

html.light #inlineReservationForm input,
html.light #inlineReservationForm textarea,
html.light #inlineReservationForm select {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html.light #inlineReservationForm input:focus,
html.light #inlineReservationForm textarea:focus {
  border-color: #b42218 !important;
  box-shadow: 0 0 0 2px rgba(180, 34, 24, 0.2) !important;
}

/* ===================================================
 * COMPREHENSIVE RESPONSIVE SPACING & ADAPTIVE LAYOUT
 * Supports: Mobile (320px-640px), Tablet (768px-1024px),
 * Laptop (1280px-1536px), Ultra-Wide (1920px+)
 * =================================================== */

/* Mobile Fluid Ergonomics (<= 640px) */
@media (max-width: 640px) {
  #welcomeGateway {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .dish-img-container {
    height: 180px;
  }
  .hero-headline {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  .section-headline {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }
  .nav-link {
    font-size: 0.85rem;
  }
  .glass-3d-card, .tilt-card {
    border-radius: 1.25rem !important;
  }
}

/* Tablet Layout Optimization (641px to 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  #welcomeGateway {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }
  .dish-img-container {
    height: 200px;
  }
  .hero-headline {
    font-size: 2.75rem !important;
  }
}

/* Desktop & Laptop Optimal Standard (1025px to 1536px) */
@media (min-width: 1025px) and (max-width: 1536px) {
  .max-w-7xl {
    max-width: 80rem;
  }
  .dish-img-container {
    height: 220px;
  }
}

/* Ultra-Wide & 4K Optimization (>= 1537px) */
@media (min-width: 1537px) {
  .max-w-7xl {
    max-width: 92rem;
  }
  .max-w-6xl {
    max-width: 82rem;
  }
  .dish-img-container {
    height: 240px;
  }
  .hero-headline {
    font-size: 4rem !important;
  }
}

/* Global Touch & Tap target accessibility */
button, a {
  touch-action: manipulation;
}
