/* Guru Kirpa Fast Food - Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary-gold: #F59E0B;
  --primary-amber: #D97706;
  --bg-dark: #0A0A0C;
  --card-dark: #141417;
  --border-dark: #27272A;
  --veg-green: #10B981;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: #F3F4F6;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #111;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #F59E0B;
}

/* Gold Gradient Glow */
.gold-gradient-text {
  background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 50%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-glow-btn {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  box-shadow: 0 4px 20px -2px rgba(245, 158, 11, 0.4);
  transition: all 0.25s ease;
}
.gold-glow-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px -2px rgba(245, 158, 11, 0.6);
}

/* Veg Badge Marker */
.veg-icon {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--veg-green);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(16, 185, 129, 0.08);
}
.veg-icon-dot {
  width: 8px;
  height: 8px;
  background-color: var(--veg-green);
  border-radius: 50%;
}

/* Pulse animation */
@keyframes softPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}
.animate-soft-pulse {
  animation: softPulse 2s infinite ease-in-out;
}

/* Super Cool Food Card Hover & Neon Accents */
.cool-food-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(180deg, #18181B 0%, #111113 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cool-food-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 12px 30px -5px rgba(245, 158, 11, 0.18), 0 0 15px rgba(245, 158, 11, 0.08);
}

/* Glassmorphism Card */
.glass-panel {
  background: rgba(20, 20, 23, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Shimmer animation for special badges */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.bestseller-badge {
  background: linear-gradient(90deg, #EF4444 0%, #F59E0B 50%, #EF4444 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
}

/* Star Rating Interactive Hover */
.star-btn:hover, .star-btn.active {
  color: #F59E0B !important;
  transform: scale(1.15);
}

/* Flyer Golden Ribbon Badge (Like the flyer category banners) */
.flyer-ribbon {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%);
  color: #000;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Portion Toggle Pill Switches (Half vs Full) */
.portion-toggle-container {
  display: flex;
  background: #18181B;
  border: 1px solid #27272A;
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
}
.portion-toggle-btn {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 9px;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #9CA3AF;
  border: 1px solid transparent;
}
.portion-toggle-btn:hover:not(.active) {
  color: #F3F4F6;
  background: #27272A;
}
.portion-toggle-btn.active {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #000000;
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
  border-color: #FBBF24;
}

/* Official 100% Pure Veg Stamp (Matching Flyer) */
.veg-stamp-flyer {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #10B981;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  padding: 4px;
  background: rgba(16, 185, 129, 0.06);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
  text-align: center;
}
.veg-stamp-flyer span {
  font-size: 8px;
  font-weight: 900;
  color: #10B981;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* Chalkboard Luxury Gold Card Styling */
.chalkboard-card {
  background: linear-gradient(180deg, #18181C 0%, #0F0F12 100%);
  border: 1px solid rgba(245, 158, 11, 0.15);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
  position: relative;
}
.chalkboard-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.chalkboard-card:hover::after {
  border-color: rgba(245, 158, 11, 0.45);
}

/* Thermal Printer & Standard Invoice Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-kot, #printable-kot * {
    visibility: visible;
  }
  #printable-kot {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm !important;
    max-width: 80mm !important;
    padding: 10px;
    font-family: 'Courier New', monospace !important;
    font-size: 13px !important;
    color: #000 !important;
    background: #fff !important;
    margin: 0;
  }
  .no-print {
    display: none !important;
  }
}

/* ==========================================================================
   APP MOTION & INTERACTION DYNAMICS (Modern Physics-Based Animations)
   ========================================================================== */

:root {
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* 1. Staggered Menu Card Entrance Motion */
@keyframes cardMotionIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.menu-card-motion {
  animation: cardMotionIn 0.5s var(--ease-spring) both;
  will-change: transform, opacity;
}

/* 2. Interactive Tactile Click Spring Feedback */
.btn-press,
.portion-toggle-btn,
.cat-pill,
button,
a.gold-glow-btn {
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-press:active,
.cat-pill:active,
.portion-toggle-btn:active {
  transform: scale(0.93) !important;
}

/* 3. Cart Badge & Count Pop Animation */
@keyframes badgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.4) rotate(-6deg); }
  75% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.badge-pop {
  animation: badgePop 0.4s var(--ease-spring) !important;
}

/* 4. Floating Action & Ambient Floating Glow */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.animate-floating {
  animation: floatGentle 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 10px 25px -4px rgba(245, 158, 11, 0.4), 0 0 12px rgba(245, 158, 11, 0.2);
  }
  50% {
    box-shadow: 0 16px 35px -2px rgba(245, 158, 11, 0.7), 0 0 25px rgba(245, 158, 11, 0.4);
  }
}

.floating-cart-glow {
  animation: pulseGlow 2.5s infinite ease-in-out;
}

/* 5. WhatsApp Floating Pulse Ring */
.whatsapp-pulse-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.4);
  animation: ringPulse 2s infinite cubic-bezier(0.24, 0, 0.38, 1);
  z-index: -1;
  pointer-events: none;
}

@keyframes ringPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  60% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* 6. Food Image Smooth Zoom Motion on Card Hover */
.cool-food-card .food-img {
  transition: transform 0.6s var(--ease-smooth);
}
.cool-food-card:hover .food-img {
  transform: scale(1.08) rotate(0.5deg);
}

/* 7. Modal Scale Zoom In Motion */
@keyframes modalZoomIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-content-motion {
  animation: modalZoomIn 0.35s var(--ease-spring) both;
}

/* 8. Toast Notification Motion */
@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast-motion {
  animation: toastSlideUp 0.35s var(--ease-spring) both;
}

/* 9. Glowing Animated Border on Bestseller items */
@keyframes borderGlowPulse {
  0%, 100% { border-color: rgba(245, 158, 11, 0.3); }
  50% { border-color: rgba(245, 158, 11, 0.85); box-shadow: 0 0 15px rgba(245, 158, 11, 0.25); }
}

.cool-food-card.bestseller-card {
  animation: borderGlowPulse 3s infinite ease-in-out;
}

/* ==========================================================================
   3D LUXURY INTERACTIVE MENU BOOK
   ========================================================================== */

.book-viewport {
  perspective: 1600px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
}

.book-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: clamp(380px, 54vh, 520px);
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* 3D stacked paper pages shadow effect on the right/bottom edge */
  box-shadow: 
    0 15px 35px -5px rgba(0, 0, 0, 0.9),
    2px 2px 0 #1c1c20,
    4px 4px 0 #18181c,
    6px 6px 0 #121215,
    8px 8px 15px rgba(0, 0, 0, 0.7);
  border-radius: 20px;
}

/* Individual Book Page Card */
.book-page-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease, visibility 0.3s;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Flipped state: turns 3D away and hides */
.book-page-card.flipped {
  transform: rotateY(-110deg) scale(0.92) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Active top visible page */
.book-page-card.active {
  transform: rotateY(0deg) scale(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 30 !important;
}

/* Behind waiting pages */
.book-page-card.incoming {
  transform: rotateY(0deg) scale(0.97) !important;
  opacity: 0.85 !important;
  visibility: visible !important;
  pointer-events: none !important;
  z-index: 15 !important;
}

/* Cool Luxury Dish Card inside 3D Book */
.book-dish-card {
  background: linear-gradient(135deg, rgba(28, 28, 35, 0.95) 0%, rgba(18, 18, 22, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.book-dish-card:hover {
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
  background: linear-gradient(135deg, rgba(35, 33, 40, 0.98) 0%, rgba(22, 20, 26, 0.98) 100%);
}

.book-dish-thumb {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}
.book-dish-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.book-dish-card:hover .book-dish-thumb img {
  transform: scale(1.12);
}

.book-price-tag {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #F59E0B;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: -0.2px;
}

.book-add-btn {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #000000;
  font-weight: 900;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  transition: all 0.15s ease;
}
.book-add-btn:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
}
.book-add-btn:active {
  transform: scale(0.95);
}

/* Luxury Obsidian Leather Hardcover */
.luxury-cover {
  background: radial-gradient(circle at 45% 25%, #2a2218 0%, #17130f 45%, #08080a 100%);
  border: 2px solid rgba(245, 158, 11, 0.6);
  box-shadow: 
    inset 0 0 0 5px #0d0d10,
    inset 0 0 0 7px rgba(245, 158, 11, 0.4),
    inset 0 0 35px rgba(245, 158, 11, 0.18),
    0 20px 40px rgba(0, 0, 0, 0.85);
}

/* Luxury Inside Pages */
.luxury-page {
  background: linear-gradient(135deg, #151519 0%, #0d0d10 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    inset 22px 0 30px -10px rgba(0, 0, 0, 0.65),
    inset -8px 0 20px rgba(0, 0, 0, 0.35);
}

/* Realistic left spine gutter shadow on pages */
.luxury-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 28px;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  pointer-events: none;
  z-index: 30;
}

/* Corner brass ornament details on cover */
.corner-bracket-tl {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 24px;
  height: 24px;
  border-top: 2px solid #F59E0B;
  border-left: 2px solid #F59E0B;
  pointer-events: none;
}
.corner-bracket-tr {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-top: 2px solid #F59E0B;
  border-right: 2px solid #F59E0B;
  pointer-events: none;
}
.corner-bracket-bl {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 24px;
  height: 24px;
  border-bottom: 2px solid #F59E0B;
  border-left: 2px solid #F59E0B;
  pointer-events: none;
}
.corner-bracket-br {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-bottom: 2px solid #F59E0B;
  border-right: 2px solid #F59E0B;
  pointer-events: none;
}

/* Page curl dog-ear hover effect */
.page-dogear {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 28px 28px;
  border-color: transparent transparent rgba(245, 158, 11, 0.4) transparent;
  transition: all 0.25s ease;
  pointer-events: none;
}
.book-wrapper:hover .page-dogear {
  border-width: 0 0 36px 36px;
  border-color: transparent transparent #F59E0B transparent;
  filter: drop-shadow(-2px -2px 5px rgba(0,0,0,0.5));
}

/* Responsive dimensions */
@media (min-width: 640px) {
  .book-wrapper {
    max-width: 440px;
    height: clamp(400px, 56vh, 520px);
  }
}

@media (max-width: 420px) {
  .book-wrapper {
    width: 96vw;
    height: clamp(360px, 52vh, 460px);
  }
  .luxury-page, .luxury-cover {
    padding: 10px !important;
  }
}

/* Advanced Dish Card Portion Pills */
.book-portion-pill {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid #333;
  background: #18181b;
  color: #a1a1aa;
  transition: all 0.2s ease;
  cursor: pointer;
}
.book-portion-pill.active {
  background: #f59e0b;
  color: #000;
  border-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

/* Scrubber Range Slider */
.book-scrubber {
  -webkit-appearance: none;
  background: #27272a;
  outline: none;
  border-radius: 9999px;
  height: 6px;
}
.book-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f59e0b;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
  border: 2px solid #000;
}

/* Modal Fullscreen Mode */
.book-modal-fullscreen {
  max-width: 100vw !important;
  max-height: 100vh !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
}
.book-modal-fullscreen .book-wrapper {
  height: 70vh !important;
  max-width: 520px !important;
}

/* Dish Inspector Fade Animation */
@keyframes dishModalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.dish-modal-pop {
  animation: dishModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}









/* ==========================================================================
   ULTRA-PREMIUM 3D MENU BOOK & MODAL LUXURY STYLING
   ========================================================================== */

/* Modal Container Glow & Glassmorphism */
.book-modal-luxury-frame {
  background: radial-gradient(circle at 50% -10%, #1f1b14 0%, #111116 50%, #09090c 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 
    0 0 45px -10px rgba(245, 158, 11, 0.25),
    0 30px 60px -15px rgba(0, 0, 0, 0.95);
}

/* Custom Gold Scrollbar for Pages */
.book-custom-scroll::-webkit-scrollbar {
  width: 5px;
}
.book-custom-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 9999px;
}
.book-custom-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #F59E0B 0%, #B45309 100%);
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.5);
}

/* Category Quick Jump Pills */
.book-cat-pill-base {
  background: rgba(24, 24, 27, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  font-weight: 700;
  font-size: 11px;
  padding: 6px 13px;
  border-radius: 12px;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.book-cat-pill-base:hover {
  color: #ffffff;
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(39, 39, 42, 0.9);
  transform: translateY(-1px);
}
.book-cat-pill-base.active {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  color: #000000 !important;
  font-weight: 900 !important;
  border-color: #F59E0B !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
  transform: translateY(-1px) scale(1.03);
}

/* Book Dish Cards */
.book-dish-card {
  background: linear-gradient(135deg, rgba(26, 26, 32, 0.96) 0%, rgba(16, 16, 20, 0.96) 100%);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 16px;
  padding: 10px 12px;
  margin: 7px 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.book-dish-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.book-dish-card:hover {
  border-color: rgba(245, 158, 11, 0.65);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
  background: linear-gradient(135deg, rgba(34, 32, 40, 0.98) 0%, rgba(20, 18, 25, 0.98) 100%);
}
.book-dish-card:hover::before {
  opacity: 1;
}

.book-dish-thumb {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  background: #09090b;
}
.book-dish-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.book-dish-card:hover .book-dish-thumb img {
  transform: scale(1.14);
}

.book-price-tag {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(217, 119, 6, 0.12) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
}

.book-add-btn {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #000000;
  font-weight: 900;
  font-size: 11px;
  padding: 7px 14px;
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.book-add-btn:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  transform: scale(1.06);
  box-shadow: 0 5px 16px rgba(245, 158, 11, 0.6);
}
.book-add-btn:active {
  transform: scale(0.94);
}

/* Page Top Header Ornament */
.book-page-header {
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  padding-bottom: 8px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* ==========================================================================
   CROSS-DEVICE RESPONSIVE AUTO-SIZE (Android, iOS Safari, Tablet, Laptop)
   ========================================================================== */

/* Modal Container Overlays */
#book-modal {
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  overscroll-behavior: contain;
}

.book-modal-luxury-frame {
  max-height: 94dvh;
  height: 94dvh;
}
@supports not (height: 94dvh) {
  .book-modal-luxury-frame {
    max-height: 94vh;
    height: 94vh;
  }
}

/* Fluid responsive .book-wrapper */
.book-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 100%;
  max-height: clamp(350px, 50dvh, 520px);
  min-height: 330px;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    0 12px 30px -5px rgba(0, 0, 0, 0.9),
    2px 2px 0 #1c1c20,
    4px 4px 0 #18181c,
    6px 6px 0 #121215,
    8px 8px 15px rgba(0, 0, 0, 0.7);
  border-radius: 18px;
}

/* 1. Smartphones (Android & iOS iPhones: width <= 480px) */
@media (max-width: 480px) {
  .book-modal-luxury-frame {
    height: 96dvh !important;
    max-height: 98dvh !important;
    padding: 8px 10px !important;
    border-radius: 20px !important;
  }
  
  .book-wrapper {
    max-width: 95vw !important;
    height: clamp(330px, 49dvh, 440px) !important;
    min-height: 320px !important;
    border-radius: 16px !important;
  }

  .luxury-page, .luxury-cover {
    padding: 10px 10px !important;
    border-radius: 16px !important;
  }

  .book-dish-card {
    padding: 7px 9px !important;
    margin: 4px 0 !important;
    border-radius: 12px !important;
  }

  .book-dish-thumb {
    width: 46px !important;
    height: 46px !important;
    border-radius: 10px !important;
  }

  .book-cat-pill-base {
    padding: 4px 9px !important;
    font-size: 10px !important;
    border-radius: 10px !important;
  }

  .book-price-tag {
    font-size: 10px !important;
    padding: 1px 5px !important;
  }

  .book-add-btn {
    padding: 5px 10px !important;
    font-size: 10px !important;
    border-radius: 8px !important;
  }
}

/* 2. Large Smartphones & Phablets (481px to 640px) */
@media (min-width: 481px) and (max-width: 640px) {
  .book-modal-luxury-frame {
    height: 94dvh;
    padding: 12px 14px;
  }
  .book-wrapper {
    max-width: 410px;
    height: clamp(360px, 52dvh, 480px);
  }
}

/* 3. Tablets / iPad / Android Tabs (641px to 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  .book-modal-luxury-frame {
    height: 88dvh;
    max-height: 850px;
    padding: 16px 20px;
  }
  .book-wrapper {
    max-width: 450px;
    height: clamp(400px, 54dvh, 520px);
  }
}

/* 4. Laptops & Large Desktops (>= 1025px) */
@media (min-width: 1025px) {
  .book-modal-luxury-frame {
    height: 86dvh;
    max-height: 860px;
    padding: 20px 24px;
  }
  .book-wrapper {
    max-width: 440px;
    height: clamp(420px, 55dvh, 530px);
  }
}

/* iOS Safari Smooth Scrolling & Overscroll Containment */
.book-custom-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Ambient Background Music Player & Live Equalizer Animations */
@keyframes eqBounce1 { 0%, 100% { height: 3px; } 50% { height: 13px; } }
@keyframes eqBounce2 { 0%, 100% { height: 9px; } 50% { height: 3px; } }
@keyframes eqBounce3 { 0%, 100% { height: 4px; } 50% { height: 14px; } }
@keyframes eqBounce4 { 0%, 100% { height: 11px; } 50% { height: 5px; } }

.bgm-playing .eq-bar-1 { animation: eqBounce1 0.65s infinite ease-in-out; }
.bgm-playing .eq-bar-2 { animation: eqBounce2 0.5s infinite ease-in-out; }
.bgm-playing .eq-bar-3 { animation: eqBounce3 0.75s infinite ease-in-out; }
.bgm-playing .eq-bar-4 { animation: eqBounce4 0.6s infinite ease-in-out; }

.bgm-playing #bgm-eq {
  opacity: 1 !important;
}

.bgm-widget-glow {
  box-shadow: 0 0 25px -2px rgba(245, 158, 11, 0.4), 0 10px 25px -5px rgba(0, 0, 0, 0.8) !important;
  border-color: rgba(245, 158, 11, 0.7) !important;
}

/* Enforce sleek navbar on small mobile screens */
@media (max-width: 767px) {
  #pwa-nav-btn {
    display: none !important;
  }
}

