@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --pink-50: #fff5f7;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-300: #f9a8d4;
  --pink-400: #fb7185;
  --pink-500: #f43f5e;
  --pink-600: #e11d48;
  --pink-700: #be185d;
  --pink-800: #9d174d;
  --pink-900: #831843;
  --gold-300: #fde047;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --chocolate-800: #451a03;
}

/* ============================================================
   1. DEFINITIVE SCROLL FIX FOR ALL BROWSERS & MOBILE (iOS/ANDROID)
   ============================================================ */
html {
  width: 100% !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--pink-50);
  color: #1e293b;
  width: 100% !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  -webkit-overflow-scrolling: touch;
  position: relative;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-heading, .font-brand {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.025em;
}

/* Background Atmosphere Layer */
.bg-hearts-pattern {
  position: relative;
  background-color: #fdf2f8;
  min-height: 100vh;
  width: 100%;
}

/* Floating White Hearts Layer */
.hearts-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  overflow: hidden !important;
  z-index: 0 !important;
}

.floating-heart {
  position: absolute;
  filter: drop-shadow(0 2px 5px rgba(225, 29, 72, 0.12));
  animation: floatUp 14s infinite linear;
  user-select: none;
}

@keyframes floatUp {
  0% {
    transform: translateY(110vh) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(-20vh) scale(1.1) rotate(45deg);
    opacity: 0;
  }
}

/* Gentle float animation for real truffle photos */
.animate-float {
  animation: floatGentle 5s ease-in-out infinite;
}

@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0px) rotate(8deg);
  }
  50% {
    transform: translateY(-12px) rotate(13deg);
  }
}

/* Elite Luxury Loyalty Card (Apple Wallet VIP Aesthetic) */
.loyalty-card {
  background: #ffffff;
  border: 1px solid rgba(244, 114, 182, 0.3);
  box-shadow: 
    0 20px 40px -15px rgba(225, 29, 72, 0.12),
    0 4px 12px -4px rgba(0, 0, 0, 0.03);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}

/* Stamp Slots - 3D Embossed Luxury Enamel Finish */
.stamp-slot {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px dashed rgba(244, 114, 182, 0.45);
  box-shadow: inset 0 2px 4px rgba(244, 114, 182, 0.08);
}

.stamp-slot.stamped {
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  box-shadow: 0 4px 12px -2px rgba(245, 158, 11, 0.22);
  transform: scale(1.02);
  animation: stampPop 0.4s ease-out;
}

@keyframes stampPop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.12); }
  100% { transform: scale(1.02); opacity: 1; }
}

.stamp-slot:hover {
  transform: translateY(-2px);
}

.stamp-slot.stamped:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 18px -2px rgba(245, 158, 11, 0.3);
}

/* Reward Slot Pulse Animation */
.stamp-slot.reward-slot:not(.stamped) {
  border: 1.5px solid #f43f5e;
  background: #fff1f5;
  animation: pulseReward 2.2s infinite ease-in-out;
}

@keyframes pulseReward {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.35);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(244, 63, 94, 0);
  }
}

/* WhatsApp Button */
.btn-whatsapp {
  background-color: #25D366;
  color: white;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 20px -2px rgba(37, 211, 102, 0.38);
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -2px rgba(37, 211, 102, 0.48);
}

/* Primary Rose Button */
.btn-pink {
  background-color: #db2777;
  color: white;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px -4px rgba(219, 39, 119, 0.35);
}

.btn-pink:hover {
  background-color: #be185d;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(190, 24, 93, 0.45);
}

/* Secondary Frosted Button */
.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 207, 232, 0.9);
  color: #831843;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px -2px rgba(225, 29, 72, 0.08);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: #f43f5e;
  color: #e11d48;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -2px rgba(225, 29, 72, 0.16);
}

/* Bento Card Design (Linear & Stripe inspired) */
.glass-panel, .bento-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  outline: 1px solid rgba(251, 207, 232, 0.65);
  box-shadow: 
    0 10px 30px -10px rgba(225, 29, 72, 0.06), 
    0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 20px 40px -12px rgba(225, 29, 72, 0.12), 
    0 2px 6px rgba(0, 0, 0, 0.04);
  outline-color: rgba(244, 114, 182, 0.9);
}

/* All Modals: Responsive Scroll on Mobile & Desktop */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.modal-card {
  max-height: 90vh;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

/* Highly Visible Custom Scrollbar for Desktop & Mobile */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
::-webkit-scrollbar-track {
  background: #fdf2f8;
  border-left: 1px solid #fbcfe8;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb {
  background-color: #db2777;
  border-radius: 9999px;
  border: 2px solid #fdf2f8;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:hover {
  background-color: #be185d;
}

/* Firefox scrollbar support */
html, body, * {
  scrollbar-width: thin;
  scrollbar-color: #f472b6 #fdf2f8;
}

/* Schedule Row Hover Effect */
.schedule-day-row {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.schedule-day-row:hover {
  transform: translateY(-1px);
}

/* Print Styles for QR Code Posters */
@media print {
  body {
    background: white !important;
  }
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .print-card {
    border: 2px solid #f472b6 !important;
    page-break-inside: avoid;
    box-shadow: none !important;
  }
}

/* Mobile Responsive Optimizations for Loyalty Card & Header */
@media (max-width: 639px) {
  #headerClientIndicator {
    display: none !important;
  }
  .pwa-install-btn {
    display: none !important;
  }
  .loyalty-card {
    padding: 1.25rem 1rem !important;
    border-radius: 24px !important;
  }
  .stamp-slot {
    border-radius: 14px !important;
  }
  .stamp-slot img {
    max-width: 82% !important;
    max-height: 82% !important;
  }
}
