/* ==========================================================================
   BLOSSOM DREAMS — HAUTE BEAUTÉ LUXURY DESIGN SYSTEM & MOTION
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Haute Palette — bubblegum pink campaign photography:
     soft bubblegum + warm copper / rose-gold over a cream porcelain ground. */
  --color-porcelain: #FBEDE6;
  --color-cream: #FFF7F0;
  --color-blush-50: #FDEDE8;
  --color-blush-100: #F6D9D0;
  --color-blush-200: #EDBBAE;
  --color-blush-300: #E08F88;
  --color-rose-500: #F7A1B3;
  --color-rose-600: #EE6A95;
  --color-rose-700: #D04480;
  --color-wine-800: #C7578F;
  --color-wine-950: #8E3A62;
  --color-velvet: #8E3A62;
  --color-crimson: #EE6A95;
  --color-copper-400: #D06848;
  --color-copper-500: #C36B4F;
  --color-copper-600: #A2492D;

  --color-gold-300: #F3CE7D;
  --color-gold-400: #E2B54E;
  --color-gold-500: #D4AF37;
  --color-gold-600: #B8860B;

  --color-charcoal: #8E3A62;
  --color-muted: #6E7A86;

  --shadow-subtle: 0 4px 20px -2px rgba(247, 161, 179, 0.06);
  --shadow-card: 0 10px 30px -4px rgba(247, 161, 179, 0.10), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 22px 45px -6px rgba(247, 161, 179, 0.28), 0 10px 18px -4px rgba(0, 0, 0, 0.08);
  --shadow-gold: 0 6px 20px -2px rgba(212, 175, 55, 0.4);
}

/* Base Body Styling */
body {
  font-family: var(--font-sans);
  background-color: var(--color-porcelain);
  color: var(--color-charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif {
  font-family: var(--font-serif);
  letter-spacing: -0.015em;
}

.font-display {
  font-family: var(--font-display);
}

/* Custom Silk Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--color-blush-50);
}
::-webkit-scrollbar-thumb {
  background: #E08F88;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-rose-600);
}


@keyframes heroSlideUp {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.92) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

/* Homepage Welcome Message - static and centered */
.announcement-marquee {
  width: 100%;
  position: relative;
}

.announcement-marquee-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.announcement-marquee-item {
  white-space: nowrap;
  text-align: center;
}

.hero-animate-badge {
  animation: heroSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-animate-title {
  animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero-animate-subtitle {
  animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-animate-cta {
  animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.hero-animate-stats {
  animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.hero-animate-artwork {
  animation: heroScaleIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* Borderless opening image — gentle entrance with a slow editorial drift */
@keyframes heroImageEntrance {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.982);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroBackgroundDrift {
  0%, 100% {
    background-position: 50% 24%;
  }
  50% {
    background-position: 47.5% 22.8%;
  }
}

.hero-main-image {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: none;
  border: none;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  will-change: opacity, transform;
  animation: heroImageEntrance 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .hero-velvet {
    animation: none;
  }
}

/* ==========================================================================
   ELEGANT SCROLL ENTRANCE REVEALS
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.delay-100 { transition-delay: 120ms; }
.delay-200 { transition-delay: 220ms; }
.delay-300 { transition-delay: 320ms; }
.delay-400 { transition-delay: 420ms; }

/* ==========================================================================
   FLOATING AMBIENT BLOSSOM PETALS & GLOW ORBS
   ========================================================================== */

@keyframes floatPetal1 {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0.7; }
  50% { transform: translate(25px, -45px) rotate(18deg); opacity: 0.9; }
  100% { transform: translate(0, 0) rotate(0deg); opacity: 0.7; }
}

@keyframes floatPetal2 {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0.6; }
  50% { transform: translate(-30px, -55px) rotate(-22deg); opacity: 0.85; }
  100% { transform: translate(0, 0) rotate(0deg); opacity: 0.6; }
}

.floating-blossom-petal-1 {
  animation: floatPetal1 6.5s ease-in-out infinite;
}

.floating-blossom-petal-2 {
  animation: floatPetal2 8s ease-in-out infinite;
}

/* Floating Badges Motion */
@keyframes gentle-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1.2deg);
  }
}

.animate-float {
  animation: gentle-float 4.2s ease-in-out infinite;
}

.animate-float-delayed {
  animation: gentle-float 4.8s ease-in-out 2s infinite;
}

/* ==========================================================================
   LUXURY CARDS & HOVER ELEVATIONS
   ========================================================================== */

.luxury-card {
  background: #FFFFFF;
  border-radius: 1.5rem;
  border: 1px solid var(--color-blush-100);
  box-shadow: var(--shadow-card);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Prevent titles from breaking into individual letters on very narrow screens */
.luxury-card h4 {
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
}

/* Ensure the textual content area inside a luxury card (services) gets full width
   so the <h4> cannot be squashed to a near‑zero inline size. */
.luxury-card .flex-1 > div:first-child {
  width: 100%;
  min-width: 0;   /* allows the flex item to shrink only to its content, not below */
}

.luxury-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--color-blush-300);
  box-shadow: var(--shadow-hover);
}

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

.luxury-card img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Arched Editorial Framing */
.arch-frame {
  border-radius: 9999px 9999px 1.75rem 1.75rem;
  overflow: hidden;
  box-shadow: 0 24px 60px -12px rgba(247, 161, 179, 0.35);
  border: 6px solid #FFFFFF;
  position: relative;
}

.arch-frame img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-frame:hover img {
  transform: scale(1.08);
}

/* Oval Editorial Framing — clearly an ellipse, not a circle */
.oval-frame {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 21rem;
  margin-inline: auto;
  border: 6px solid #FFF7F0;
  box-shadow:
    inset 0 0 0 2px rgba(212, 175, 55, 0.55),
    0 24px 60px -12px rgba(247, 161, 179, 0.35);
}

.oval-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.oval-frame:hover img {
  transform: scale(1.08);
}

/* Gold Corner Bracket Motifs */
.gold-corner-box {
  position: relative;
}
.gold-corner-box::before,
.gold-corner-box::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--color-gold-500);
  pointer-events: none;
  z-index: 15;
}
.gold-corner-box::before {
  top: 14px;
  left: 14px;
  border-top: 2.5px solid var(--color-gold-500);
  border-left: 2.5px solid var(--color-gold-500);
}
.gold-corner-box::after {
  bottom: 14px;
  right: 14px;
  border-bottom: 2.5px solid var(--color-gold-500);
  border-right: 2.5px solid var(--color-gold-500);
}

/* ==========================================================================
   BUTTON SHIMMER & HOVER MICRO-INTERACTIONS
   ========================================================================== */

.btn-primary {
  position: relative;
  background: linear-gradient(135deg, #F7A1B3 0%, #EE6A95 55%, #C7578F 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 8px 24px -4px rgba(247, 161, 179, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Automatic Periodic Light Sweep */
@keyframes periodicShine {
  0%, 75% { left: -70%; }
  100% { left: 140%; }
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: periodicShine 4s infinite ease-in-out;
  pointer-events: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #EE6A95 0%, #D04480 55%, #8E3A62 100%);
  transform: translateY(-2.5px);
  box-shadow: 0 14px 34px -4px rgba(247, 161, 179, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--color-rose-700);
  border: 1.5px solid var(--color-blush-300);
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  background: var(--color-blush-50);
  border-color: var(--color-rose-600);
  color: var(--color-rose-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(247, 161, 179, 0.15);
}

/* Floating WhatsApp Pulse */
@keyframes whatsapp-glow {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-pulse-btn {
  animation: whatsapp-glow 2.2s infinite;
}

/* Glowing Discount Badge */
@keyframes badgeBreathing {
  0%, 100% {
    box-shadow: 0 4px 10px rgba(247, 161, 179, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 18px rgba(247, 161, 179, 0.65);
    transform: scale(1.04);
  }
}

.badge-discount {
  background: linear-gradient(135deg, #F7A1B3 0%, #C7578F 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  animation: badgeBreathing 3s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-featured {
  background: linear-gradient(135deg, #F59E0B, #D4AF37);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  box-shadow: 0 3px 8px rgba(212, 175, 55, 0.35);
}

/* Live Countdown Pill */
.countdown-pill {
  background: rgba(24, 21, 18, 0.88);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 0.35rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Ambient Radial Aura Orbs — warm rose-velvet glow */
.hero-aura-pink {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(247, 161, 179, 0.55) 0%, rgba(142, 58, 98, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero-aura-gold {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(211, 122, 92, 0.45) 0%, rgba(142, 58, 98, 0) 70%);
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
}

/* Bubblegum Rose-Velvet Hero Canvas — bubblegum campaign photography tones */
.hero-velvet {
  position: relative;
  /* Preserve image aspect ratio (1284x723 ≈ 16:9) so the background image is fully visible without cropping */
  aspect-ratio: 1284 / 723;
  /* Base hero image */
  background: url('/images/BackgroundHero.jpg') center center / cover no-repeat;
  overflow: hidden;
}

/* Gradient overlay removed to show original hero image colors */

/* Second hero image — fades in/out above the base image, below gradients */
.hero-velvet::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/images/BackgroundHero_2.jpg') center center / cover no-repeat;
  opacity: 0;
  animation: heroCrossfade 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 1; /* above base image, below gradients */
}

@keyframes heroCrossfade {
  0%, 35% { opacity: 0; }
  45%, 85% { opacity: 1; }
  95%, 100% { opacity: 0; }
}

/* Mobile: adjust image sizing, disable drift animation for stability */
@media (max-width: 768px) {
  .hero-velvet {
    background-size: 110% auto;
    background-position: center center;
  }
  .hero-velvet::before {
    animation: none;
    background-position: center center, center center, center center, center center;
    background-size: cover, cover, cover, cover;
  }
  .hero-velvet::after {
    background-size: 110% auto;
    background-position: center center;
  }
}

/* iPhone 16 (393px) — fine-tune for this specific viewport */
@media (min-width: 390px) and (max-width: 400px) {
  .hero-velvet {
    background-size: 108% auto;
  }
  .hero-velvet::after {
    background-size: 108% auto;
  }
}

/* ==========================================================================
   5-STEP BOOKING WIZARD STYLING & ANIMATIONS
   ========================================================================== */

.booking-progress-track {
  position: relative;
  height: 4px;
  background: var(--color-blush-100);
  border-radius: 9999px;
  overflow: hidden;
}

.booking-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #EE6A95, #F7A1B3);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Step Entrance Slide */
.step-slide-in {
  animation: stepIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Date Selector Buttons */
.cal-date-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid #F3E8EC;
}
.cal-date-btn:hover:not(:disabled) {
  border-color: var(--color-rose-600);
  background-color: var(--color-blush-50);
  transform: translateY(-2px);
}
.cal-date-btn.selected {
  background: linear-gradient(135deg, #F7A1B3, #EE6A95) !important;
  color: #FFFFFF !important;
  border-color: var(--color-rose-600) !important;
  box-shadow: 0 6px 16px rgba(247, 161, 179, 0.4) !important;
  transform: translateY(-2px) scale(1.05);
}

/* Time Slot Chips */
.slot-btn {
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid #F3E8EC;
  background-color: #FFFFFF;
}
.slot-btn:hover:not(:disabled) {
  border-color: var(--color-rose-600);
  color: var(--color-rose-600);
  background-color: var(--color-blush-50);
  transform: translateY(-1.5px);
}
.slot-btn.selected {
  background: linear-gradient(135deg, #F7A1B3, #C7578F) !important;
  color: #FFFFFF !important;
  border-color: var(--color-rose-600) !important;
  box-shadow: 0 6px 16px rgba(247, 161, 179, 0.4);
  transform: scale(1.05);
}

/* Success Blossom Celebration Animation */
@keyframes blossomBurst {
  0% { transform: scale(0.2) rotate(-25deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(6deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.animate-blossom-success {
  animation: blossomBurst 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Perforated Luxury Receipt Ticket */
.ticket-receipt {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--color-blush-200);
  border-radius: 1.5rem;
}
.ticket-receipt::before,
.ticket-receipt::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background-color: var(--color-porcelain);
  border-radius: 9999px;
  top: 72px;
  border: 1px solid var(--color-blush-200);
  z-index: 5;
}
.ticket-receipt::before {
  left: -11px;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}
.ticket-receipt::after {
  right: -11px;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

/* Modal Smooth Spring Popup */
.modal-overlay {
  background: rgba(24, 21, 18, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease forwards;
}

.modal-content-anim {
  animation: modalSpring 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSpring {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Toast Notification */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast-msg {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 0.85rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Shimmer Skeleton Loader */
@keyframes shimmer-loading {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-box {
  background: linear-gradient(90deg, var(--color-blush-100) 25%, var(--color-blush-50) 50%, var(--color-blush-100) 75%);
  background-size: 200% 100%;
  animation: shimmer-loading 1.6s infinite ease-in-out;
  border-radius: 0.75rem;
}

/* Global loading overlay */
.global-loader {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
}
.global-loader .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-blush-200);
  border-top-color: var(--color-pink-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Button loader state */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: auto;
  border: 3px solid var(--color-blush-200);
  border-top-color: var(--color-pink-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Accessibility Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  .animate-float,
  .animate-float-delayed,
  .floating-blossom-petal-1,
  .floating-blossom-petal-2,
  .whatsapp-pulse-btn,
  .skeleton-box {
    animation: none !important;
  }
}

/* ==========================================================================
   BLOSSOM DREAMS — PREMIUM POLISH v6
   Responsive utility fallbacks, refined motion, elegance details & mobile UX
   ========================================================================== */

:root {
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: contain;
}

/* Tailwind Play CDN legacy utility fallbacks (non-standard spacing/shadows) */
.shadow-xs { box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.05), 0 1px 3px 0 rgba(15, 23, 42, 0.06); }
.shadow-2xs { box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.04); }
.w-13 { width: 3.25rem; }
.h-13 { height: 3.25rem; }
.w-15 { width: 3.75rem; }
.w-18 { width: 4.5rem; }
.h-18 { height: 4.5rem; }
.h-22 { height: 5.5rem; }
.h-88 { height: 22rem; }
.w-4\.5 { width: 1.125rem; }
.h-4\.5 { height: 1.125rem; }
.py-4\.5 { padding-top: 1.125rem; padding-bottom: 1.125rem; }

.admin-nav-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hide horizontal scrollbars on strip carousels (kept touch-scrollable) */
.scrollbar-none { scrollbar-width: none; -ms-overflow-style: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }

/* Silky touch scrolling */
#categories-pills-container,
#date-scroll-strip,
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

/* Luxury dot-flourish pattern overlay */
.luxury-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(247, 161, 179, 0.06) 1.2px, transparent 1.2px),
    radial-gradient(rgba(212, 175, 55, 0.12) 1.2px, transparent 1.2px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 13px 13px;
  pointer-events: none;
  z-index: 1;
}

/* Gold gradient display text */
.gold-gradient-text {
  background: linear-gradient(120deg, #B8860B 0%, #D4AF37 38%, #FDE68A 52%, #D4AF37 66%, #B8860B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Elegant hairline crown on luxury cards */
.luxury-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.75) 30%, rgba(247, 161, 179, 0.5) 70%, transparent);
  opacity: 0.85;
  z-index: 2;
}

.luxury-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 245, 247, 0));
  pointer-events: none;
  z-index: 1;
}

/* Section flourish divider */
.section-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: var(--color-gold-500);
}
.section-flourish::before,
.section-flourish::after {
  content: '';
  height: 1px;
  width: 3.25rem;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.85));
}
.section-flourish::after {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.85), transparent);
}

/* Focus visibility for keyboard users */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-open-booking:focus-visible {
  outline: 2px solid var(--color-gold-500);
  outline-offset: 3px;
}

/* Sticky header refinement on scroll */
.site-header { transition: background 0.35s var(--ease-lux), box-shadow 0.35s var(--ease-lux), backdrop-filter 0.35s var(--ease-lux); }
.site-header.scrolled {
  background: rgba(142, 58, 98, 0.96);
  box-shadow: 0 12px 32px -12px rgba(20, 4, 10, 0.5);
}

/* Responsive header — adapts height & padding for every screen */
.site-header .max-w-7xl {
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .site-header .max-w-7xl { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .site-header .max-w-7xl { padding-left: 1.75rem; padding-right: 1.75rem; }
}

/* Header height responsiveness */
@media (max-width: 639px) {
  .site-header > div { height: 3.5rem; }
}
@media (min-width: 640px) {
  .site-header > div { height: 4rem; }
}
@media (min-width: 1024px) {
  .site-header > div { height: 5rem; }
}

/* Brand text — responsive, single-line, no overflow */
.salon-brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 640px) {
  .salon-brand-name { font-size: 1.25rem; }
}
@media (min-width: 1024px) {
  .salon-brand-name { font-size: 1.5rem; }
}

/* Header inner container spacing */
.site-header .flex.items-center.justify-between > a {
  flex-shrink: 0;
}
.site-header .flex.items-center.justify-between > nav,
.site-header .flex.items-center.justify-between > div:last-child {
  flex-shrink: 0;
}

/* Desktop navigation — ensure breathing room from the brand block */
@media (min-width: 1024px) {
  .site-header nav {
    margin-left: 0.75rem;
    gap: 1.75rem;
  }
}
@media (max-width: 1023px) {
  .site-header nav {
    margin-left: 0;
  }
}

/* Location cards: clickable Google Maps shortcuts */
.location-card {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.location-card:active { transform: scale(0.985); }

/* Category pill & date strip snap + breathing micro-interaction */
#categories-pills-container { scroll-snap-type: x proximity; }
.category-pill-btn { scroll-snap-align: start; transition: transform 0.3s var(--ease-lux), box-shadow 0.3s var(--ease-lux), background 0.3s var(--ease-lux); }
.category-pill-btn:active { transform: scale(0.96); }

/* Nail subcategory pills - slightly smaller than main category tabs */
.nail-subcat-btn { scroll-snap-align: start; transition: transform 0.3s var(--ease-lux), box-shadow 0.3s var(--ease-lux), background 0.3s var(--ease-lux); }
.nail-subcat-btn:active { transform: scale(0.96); }

/* Scrollbar hiding for horizontal scroll containers */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }

#date-scroll-strip { scroll-snap-type: x proximity; padding-bottom: 0.75rem; }
.cal-date-btn { scroll-snap-align: center; touch-action: manipulation; }
.cal-date-btn.selected { animation: heroScaleIn 0.4s var(--ease-lux); }

/* Larger touch targets in the time selector */
.slot-btn { min-height: 42px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }

/* Booking modal: refined mobile bottom-sheet */
#booking-modal .booking-sheet {
  background: #FFFFFF;
  box-shadow: 0 -18px 50px -12px rgba(139, 42, 92, 0.28);
}
@media (max-width: 640px) {
  #booking-modal .booking-sheet { border-radius: 1.75rem 1.75rem 0 0; max-height: 94vh; }
  #booking-modal .booking-sheet::before {
    content: '';
    display: block;
    width: 44px;
    height: 5px;
    border-radius: 9999px;
    background: #F3E8EC;
    margin: -0.5rem auto 0.4rem;
    flex-shrink: 0;
  }
  #wizard-footer { gap: 0.6rem; padding-left: 1rem; padding-right: 1rem; }
  #wizard-footer button { flex: 1; }
  .step-indicator { font-size: 10px; letter-spacing: -0.02em; }
}

/* Safe-area padding for mobile chrome */
#booking-modal .wizard-footer-safe { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
nav[aria-label="Mobile Navigation"] { padding-bottom: max(0.625rem, env(safe-area-inset-bottom)); }
aside[aria-label="WhatsApp Contact"] { bottom: max(6rem, calc(env(safe-area-inset-bottom) + 5.5rem)); }
@media (min-width: 768px) {
  aside[aria-label="WhatsApp Contact"] { bottom: 1.75rem; }
}

/* Admin: Responsive tables - remove fixed min-width, use container scrolling instead */
#bookings-table-view,
#admin-services-table-container,
#admin-offers-table-container,
#today-agenda-container,
#reviews-table-container,
#admin-schedule-list {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

#bookings-table-view table,
#admin-services-table-container table,
#admin-offers-table-container table,
#today-agenda-container table,
#reviews-table table {
  min-width: 100%;
  white-space: nowrap;
}

/* Give the bookings table a larger minimum width so it can scroll horizontally
   instead of squeezing columns into the viewport on mobile. */
#bookings-table-view table {
  min-width: 900px;
}

/* Allow text wrapping in specific table cells */
#bookings-table-view td:nth-child(4),   /* Treatment */
#bookings-table-view td:nth-child(5),   /* Location */
#bookings-table-view td:nth-child(7),   /* Status */
#admin-services-table-container td:nth-child(1),  /* Service name + desc */
#admin-services-table-container td:nth-child(2),  /* Category */
#admin-services-table-container td:nth-child(3),  /* Nail Subcategory */
#admin-offers-table-container td:nth-child(1),    /* Offer title + desc */
#admin-offers-table-container td:nth-child(2),    /* Linked Service */
#admin-offers-table-container td:nth-child(5),    /* Validity Range */
#reviews-table td:nth-child(3) {        /* Comment */
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

/* Ensure the Status select dropdown has a usable minimum width on mobile */
#bookings-table-view td:nth-child(7) select {
  min-width: 140px;
  max-width: 100%;
}

/* Ensure the primary name columns have a usable minimum width on mobile */
#admin-services-table-container td:nth-child(1),
#admin-offers-table-container td:nth-child(1) {
  min-width: 200px;
}

/* Give the tables a larger minimum width so they can scroll horizontally
   instead of squeezing columns into the viewport. */
#admin-services-table-container table,
#admin-offers-table-container table {
  min-width: 900px;
}

/* Mobile: Stack table rows as cards for very narrow screens */
@media (max-width: 640px) {
  .admin-table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
  
  .admin-table-responsive table {
    min-width: 600px;
  }
}

/* Calendar Grid - responsive */
#admin-calendar-grid {
  min-width: 100%;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

@media (max-width: 640px) {
  #admin-calendar-grid {
    grid-template-columns: repeat(7, minmax(70px, 1fr));
  }
  
  .cal-day-cell {
    min-height: 80px !important;
    padding: 0.25rem !important;
  }
  
  .cal-day-cell > div:first-child {
    font-size: 0.625rem !important;
  }
  
  .cal-day-cell .text-\[9px\] {
    font-size: 0.5rem !important;
  }
  
  .cal-day-cell .text-\[8px\] {
    font-size: 0.45rem !important;
  }
}

/* Global focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--color-rose-600);
  outline-offset: 2px;
}

/* Consistent button disabled state */
button:disabled,
.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Salon brand tagline styling (footer) */
.site-footer-brand .salon-brand-tagline {
  font-size: 0.9375rem; /* ~15px, larger than text-xs */
  color: #D4AF37; /* high contrast on dark footer */
  line-height: 1.6;
  font-family: inherit;
}

/* Premium copyright highlight */
.copyright-highlight {
  display: inline-block;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(247,161,179,0.15));
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 9999px;
  padding: 0.375rem 1rem; /* py-1.5 px-4 */
  box-shadow: 0 4px 12px -2px rgba(212,175,55,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  color: #808080;
  font-weight: 500;
  font-size: 0.75rem; /* text-xs */
  line-height: 1.5;
}

/* ===== Offers Carousel ===== */
.offers-carousel {
  position: relative;
}
.offers-track {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.offers-track::-webkit-scrollbar {
  display: none;
}
.offers-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
/* Carousel items – base (mobile) */
.offers-track > .carousel-item {
  scroll-snap-align: center;
  flex-shrink: 0;
  width: 100%;
}

/* Tablet (≥640px) – 2 columns */
@media (min-width: 640px) {
  .offers-track > .carousel-item {
    width: calc(50% - 14px); /* gap-7 = 28px, one gap split between two items */
  }
}

/* Desktop (≥1024px) – 4 columns */
@media (min-width: 1024px) {
  .offers-track > .carousel-item {
    width: calc(25% - 21px) !important; /* three gaps total 84px, each item loses 21px */
  }
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-rose-700);
  border: 1px solid var(--color-blush-200);
  transition: all 0.2s ease;
}
.carousel-arrow:hover {
  background: var(--color-rose-700);
  color: #fff;
  border-color: var(--color-rose-700);
}
.carousel-prev { left: -1.5rem; }
.carousel-next { right: -1.5rem; }
@media (max-width: 1024px) {
  .carousel-prev { left: 0.5rem; }
  .carousel-next { right: 0.5rem; }
}
@media (max-width: 768px) {
  .carousel-arrow { display: none !important; }
}
.carousel-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--color-blush-200);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.carousel-dot.bg-pink-600 {
  background: var(--color-rose-600);
}
.carousel-dot.scale-125 {
  transform: scale(1.25);
}

/* ===== End Offers Carousel ===== */

/* Ensure modal content respects safe area */
#admin-modal-root .modal-content-anim {
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

@media (max-width: 640px) {
  .site-footer-grid {
    gap: 1.5rem;
  }

  .site-footer-brand .salon-brand-tagline {
    max-width: 22rem;
    line-height: 1.5;
    font-size: 0.875rem; /* slightly smaller on very small screens */
  }

  .site-footer-links {
    padding-top: 0.25rem;
  }

  .site-footer-bottom {
    text-align: center;
  }
}

#admin-dashboard-view main,
#admin-dashboard-view .admin-bookings-card {
  min-width: 0;
}

#admin-modal-root .modal-content-anim {
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

@media (max-width: 640px) {
  #admin-dashboard-view main {
    padding: 0.75rem;
    overflow-x: hidden;
  }

  #admin-dashboard-view header {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  #admin-page-title {
    max-width: 8.5rem;
    font-size: 0.95rem;
    line-height: 1.2;
  }

  #btn-quick-new-booking {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    font-size: 0.65rem;
    white-space: nowrap;
  }

  .admin-bookings-card {
    padding: 1rem;
  }

  .admin-booking-filters,
  .admin-booking-tools {
    align-items: stretch;
  }

  .admin-booking-filters > div,
  .admin-booking-tools {
    width: 100%;
  }

  /* Allow the Date / Status filter wrappers to shrink below their content size */
  .admin-booking-filters > div > div {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    box-sizing: border-box;
  }

  /* Ensure the native date & select inputs never exceed their container */
  #filter-booking-date,
  #filter-booking-status {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .admin-booking-tools {
    flex-direction: column;
    gap: 0.6rem;
  }

  .admin-booking-tools input {
    width: 100%;
  }

  .admin-booking-tools > div {
    width: 100%;
    justify-content: center;
  }

  #bookings-table-view,
  #today-agenda-container,
  #admin-services-table-container,
  #admin-offers-table-container {
    margin-right: -0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #admin-calendar-grid {
    min-width: 600px;
  }

  #admin-schedule-list > div {
    align-items: stretch;
  }

  #admin-schedule-list > div > div:nth-child(2) {
    width: 100%;
    flex-wrap: wrap;
  }

  #admin-schedule-list > div > div:nth-child(2) input,
  #admin-schedule-list > div > div:nth-child(2) select {
    flex: 1 1 7rem;
    min-width: 0;
  }

  #admin-schedule-list > div > button {
    width: 100%;
  }

  #admin-modal-root .modal-content-anim {
    padding: 1rem;
    border-radius: 1.25rem;
  }
}
/* Normalize currency rendering: keep $ and numbers on the same baseline */
span[class*="font-serif"] {
  vertical-align: baseline;
  font-variant-position: normal;
  font-feature-settings: normal;
}

/* Hide WhatsApp link in top header only */
header .salon-whatsapp-link {
  display: none !important;
}

/* Safe-area handling for iOS PWA */
html {
  height: 100%;
}
body {
  padding-bottom: max(0px, env(safe-area-inset-bottom));
  min-height: 100%;
}
#app, main {
  min-height: 100%;
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .site-header.sticky {
    top: env(safe-area-inset-top);
  }
}
/* ==========================================================================
   ADMIN DASHBOARD – Visual Refresh (Blossom Dreams brand)
   ========================================================================== */
:root {
  /* Warm neutral palette for admin */
  --admin-bg: #F5F0EB;            /* soft warm gray/cream page background */
  --admin-bg-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 30c0-11.046 8.954-20 20-20s20 8.954 20 20-8.954 20-20 20-20-8.954-20-20zm0 2c9.941 0 18-8.059 18-18s-8.059-18-18-18-18 8.059-18 18 8.059 18 18 18z' fill='none' stroke='%23E8DDD4' stroke-width='0.5'/%3E%3C/svg%3E");
  --admin-card-bg: #FFFFFF;       /* card / panel background */
  --admin-border: #E8DDD4;        /* subtle border */
  --admin-sidebar-bg: #FAF6F3;    /* sidebar background */
  --admin-header-bg: #FFFFFF;     /* top bar background */
  --admin-text: #3A3A3A;          /* primary text */
  --admin-muted: #6E7A86;         /* muted text */
  --admin-primary: #EE6A95;       /* brand pink */
  --admin-primary-hover: #D04480; /* brand pink darker */
  --admin-primary-light: #FCEEF3; /* brand pink very light */
  --admin-accent-gold: #D4AF37;   /* gold accent */
  --admin-accent-gold-light: #FEF7E8; /* gold very light */
  --admin-success: #2E7D32;       /* success green */
  --admin-success-light: #E8F5E9;
  --admin-error: #C62828;         /* error red */
  --admin-error-light: #FDEDEC;
  --admin-warning: #E68A00;       /* warning amber */
  --admin-warning-light: #FFF3E0;
  --admin-info: #1565C0;          /* info blue */
  --admin-info-light: #E3F2FD;
  --admin-radius-sm: 0.5rem;      /* 8px */
  --admin-radius-md: 0.75rem;     /* 12px */
  --admin-radius-lg: 1rem;        /* 16px */
  --admin-radius-xl: 1.5rem;      /* 24px */
  --admin-shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --admin-shadow-md: 0 4px 12px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.02);
  --admin-shadow-lg: 0 12px 28px rgba(0,0,0,0.06), 0 4px 8px rgba(0,0,0,0.03);
  --admin-shadow-xl: 0 20px 40px rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.04);
  --admin-transition-fast: 150ms ease;
  --admin-transition-normal: 250ms ease;
}

/* Page background – only inside the dashboard view */
#admin-dashboard-view {
  background-color: var(--admin-bg);
  background-image: var(--admin-bg-pattern);
  background-repeat: repeat;
  background-attachment: fixed;
  color: var(--admin-text);
  min-height: 100vh;
}

/* Subtle gradient overlay on main content for depth */
#admin-dashboard-view main {
  position: relative;
}
#admin-dashboard-view main::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(238,106,149,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
#admin-dashboard-view main > * {
  position: relative;
  z-index: 1;
}

/* Sidebar */
#admin-sidebar {
  background-color: var(--admin-sidebar-bg) !important;
  border-right-color: var(--admin-border) !important;
  box-shadow: var(--admin-shadow-md);
}
#admin-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(238,106,149,0.02) 0%, transparent 50%);
  pointer-events: none;
}

/* Sidebar brand header */
#admin-sidebar > div:first-child {
  position: relative;
  z-index: 1;
}
#admin-sidebar .font-serif {
  background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sidebar navigation */
#admin-sidebar nav {
  position: relative;
  z-index: 1;
}
#admin-sidebar .admin-tab-btn {
  border-radius: var(--admin-radius-md) !important;
  margin-bottom: 0.25rem;
  transition: all var(--admin-transition-fast);
}
#admin-sidebar .admin-tab-btn.active {
  background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-hover) 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(238,106,149,0.3);
  border-color: transparent !important;
}
#admin-sidebar .admin-tab-btn:not(.active):hover {
  background-color: var(--admin-primary-light) !important;
  color: var(--admin-primary) !important;
  border-color: var(--admin-primary) !important;
  transform: translateX(4px);
}

/* Top header bar */
#admin-dashboard-view header {
  background-color: var(--admin-header-bg) !important;
  border-bottom-color: var(--admin-border) !important;
  box-shadow: var(--admin-shadow-sm);
  backdrop-filter: blur(8px);
  background-color: rgba(255,255,255,0.95) !important;
}
#admin-dashboard-view header .btn-primary {
  box-shadow: 0 4px 12px rgba(238,106,149,0.25);
}
#admin-dashboard-view header .btn-primary:hover {
  box-shadow: 0 6px 16px rgba(238,106,149,0.35);
  transform: translateY(-1px);
}

/* Generic card / panel used throughout admin */
#admin-dashboard-view .bg-white.rounded-2xl.border.border-slate-200.shadow-sm,
#admin-dashboard-view .admin-bookings-card,
#admin-dashboard-view .admin-card {
  background-color: var(--admin-card-bg) !important;
  border-color: var(--admin-border) !important;
  box-shadow: var(--admin-shadow-md) !important;
  border-radius: var(--admin-radius-xl) !important;
  transition: box-shadow var(--admin-transition-normal), transform var(--admin-transition-fast);
}
#admin-dashboard-view .bg-white.rounded-2xl.border.border-slate-200.shadow-sm:hover,
#admin-dashboard-view .admin-bookings-card:hover,
#admin-dashboard-view .admin-card:hover {
  box-shadow: var(--admin-shadow-lg) !important;
}

/* KPI cards on overview */
#admin-dashboard-view .grid > .bg-white.rounded-2xl.border.border-slate-200\/90.shadow-sm {
  background-color: var(--admin-card-bg) !important;
  border-color: var(--admin-border) !important;
  box-shadow: var(--admin-shadow-md) !important;
  border-radius: var(--admin-radius-xl) !important;
  transition: transform var(--admin-transition-fast), box-shadow var(--admin-transition-normal);
}
#admin-dashboard-view .grid > .bg-white.rounded-2xl.border.border-slate-200\/90.shadow-sm:hover {
  transform: translateY(-2px);
  box-shadow: var(--admin-shadow-lg) !important;
}

/* Section cards in settings and other tabs */
#admin-dashboard-view .admin-section-card {
  background-color: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-xl);
  box-shadow: var(--admin-shadow-sm);
  transition: box-shadow var(--admin-transition-normal), border-color var(--admin-transition-fast);
}
#admin-dashboard-view .admin-section-card:hover {
  box-shadow: var(--admin-shadow-md);
  border-color: var(--admin-primary-light);
}

/* Card header styling */
#admin-dashboard-view .admin-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--admin-border);
}
#admin-dashboard-view .admin-card-header h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--admin-text);
}
#admin-dashboard-view .admin-card-header p {
  font-size: 0.75rem;
  color: var(--admin-muted);
  margin-top: 0.25rem;
}

/* Tables */
#admin-dashboard-view table {
  width: 100%;
  border-collapse: collapse;
}
#admin-dashboard-view th,
#admin-dashboard-view td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--admin-border);
  font-size: 0.8125rem; /* 13px */
  color: var(--admin-text);
}
#admin-dashboard-view th {
  background-color: var(--admin-sidebar-bg);
  font-weight: 600;
  text-align: left;
  color: var(--admin-text);
}
#admin-dashboard-view tbody tr:hover td {
  background-color: var(--admin-bg);
}

/* Forms – inputs, selects, textareas */
#admin-dashboard-view input,
#admin-dashboard-view select,
#admin-dashboard-view textarea {
  background-color: #fff !important;
  border-color: var(--admin-border) !important;
  color: var(--admin-text) !important;
  border-radius: var(--admin-radius-md) !important;
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  transition: border-color var(--admin-transition-fast), box-shadow var(--admin-transition-fast), background-color var(--admin-transition-fast);
  width: 100%;
}
#admin-dashboard-view input:focus,
#admin-dashboard-view select:focus,
#admin-dashboard-view textarea:focus {
  outline: none;
  border-color: var(--admin-primary) !important;
  box-shadow: 0 0 0 3px var(--admin-primary-light) !important;
  background-color: #fff !important;
}
#admin-dashboard-view input::placeholder,
#admin-dashboard-view textarea::placeholder {
  color: var(--admin-muted);
  opacity: 0.6;
}
#admin-dashboard-view label {
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--admin-text) !important;
  margin-bottom: 0.5rem !important;
  display: block;
}
#admin-dashboard-view fieldset {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
#admin-dashboard-view legend {
  font-family: var(--font-serif) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  color: var(--admin-text) !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid var(--admin-border) !important;
  width: 100%;
}

/* Form field wrapper */
#admin-dashboard-view .admin-field {
  margin-bottom: 1rem;
}
#admin-dashboard-view .admin-field:last-child {
  margin-bottom: 0;
}

/* File upload styling */
#admin-dashboard-view input[type="file"] {
  padding: 0.5rem;
  background-color: var(--admin-primary-light) !important;
  border: 2px dashed var(--admin-primary) !important;
  border-radius: var(--admin-radius-md) !important;
  cursor: pointer;
  transition: all var(--admin-transition-fast);
}
#admin-dashboard-view input[type="file"]:hover {
  /* ==========================================================================
   ADMIN BUTTON OVERRIDES
   ========================================================================== */
#admin-dashboard-view .btn-primary {
  background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-hover) 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(238,106,149,0.35) !important;
  border-radius: var(--admin-radius-md) !important;
  font-weight: 700 !important;
  transition: all var(--admin-transition-normal) !important;
}
#admin-dashboard-view .btn-primary:hover {
  background: linear-gradient(135deg, var(--admin-primary-hover) 0%, var(--admin-primary) 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(238,106,149,0.45) !important;
}
#admin-dashboard-view .btn-primary:active {
  transform: translateY(0) !important;
}
#admin-dashboard-view .btn-primary:disabled {
  opacity: 0.6;
  transform: none !important;
  box-shadow: 0 2px 6px rgba(238,106,149,0.2) !important;
}

#admin-dashboard-view .btn-secondary {
  background-color: #fff !important;
  border: 1.5px solid var(--admin-border) !important;
  color: var(--admin-text) !important;
  font-weight: 700 !important;
  border-radius: var(--admin-radius-md) !important;
  transition: all var(--admin-transition-normal) !important;
}
#admin-dashboard-view .btn-secondary:hover {
  background-color: var(--admin-primary-light) !important;
  border-color: var(--admin-primary) !important;
  color: var(--admin-primary) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(238,106,149,0.15) !important;
}

/* Tab buttons (in content area) */
#admin-dashboard-view .admin-tab-btn {
  border-radius: var(--admin-radius-md) !important;
  transition: all var(--admin-transition-fast) !important;
}
#admin-dashboard-view .admin-tab-btn.active {
  background-color: var(--admin-primary) !important;
  color: #fff !important;
  border-color: var(--admin-primary) !important;
  box-shadow: 0 2px 8px rgba(238,106,149,0.25);
}
#admin-dashboard-view .admin-tab-btn:not(.active):hover {
  background-color: var(--admin-primary-light) !important;
  color: var(--admin-primary) !important;
  border-color: var(--admin-primary) !important;
}

/* Tab buttons */
#admin-dashboard-view .admin-tab-btn {
  border-radius: 0.75rem;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
#admin-dashboard-view .admin-tab-btn.active {
  background-color: var(--admin-primary) !important;
  color: #fff !important;
  border-color: var(--admin-primary) !important;
}
#admin-dashboard-view .admin-tab-btn:not(.active):hover {
  background-color: var(--admin-bg) !important;
  color: var(--admin-primary) !important;
}

/* Filter / toolbar area */
#admin-dashboard-view .admin-booking-filters,
#admin-dashboard-view .admin-booking-tools {
  border-bottom-color: var(--admin-border) !important;
}

/* Status badges (used in bookings table) */
#admin-dashboard-view .status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem; /* 11px */
  font-weight: 600;
  border-radius: 9999px;
  text-transform: capitalize;
}
#admin-dashboard-view .status-badge.pending { background:#FFF3E0; color:#E68A00; }
#admin-dashboard-view .status-badge.confirmed { background:#E8F5E9; color:#2E7D32; }
#admin-dashboard-view .status-badge.cancelled { background:#FDEDEC; color:#C62828; }
#admin-dashboard-view .status-badge.completed { background:#E3F2FD; color:#1565C0; }
#admin-dashboard-view .status-badge.no_show { background:#F3E5F5; color:#7B1FA2; }

/* Modals */
#admin-modal-root .modal-content-anim {
  background-color: var(--admin-card-bg) !important;
  border: 1px solid var(--admin-border) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
  border-radius: 1.5rem; /* rounded-2xl */
}

/* Alerts / toast container (if any) */
#admin-dashboard-view .toast,
#admin-dashboard-view .alert {
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  border: 1px solid var(--admin-border);
}
#admin-dashboard-view .toast-success,
#admin-dashboard-view .alert-success {
  background:#E8F5E9; border-color:#A5D6A7; color:#2E7D32;
}
#admin-dashboard-view .toast-error,
#admin-dashboard-view .alert-error {
  background:#FDEDEC; border-color:#F5B7B1; color:#C62828;
}
#admin-dashboard-view .toast-info,
#admin-dashboard-view .alert-info {
  background:#E3F2FD; border-color:#90CAF9; color:#1565C0;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  #admin-dashboard-view main { padding: 1rem; }
  #admin-dashboard-view .grid.grid-cols-2.lg\\:grid-cols-4 { grid-template-columns: repeat(2,1fr); }
  #admin-dashboard-view .lg\\:col-span-8 { grid-column: span 12; }
  #admin-dashboard-view .lg\\:col-span-4 { grid-column: span 12; }
}
@media (max-width: 640px) {
  #admin-dashboard-view .grid.grid-cols-2.lg\\:grid-cols-4 { grid-template-columns: 1fr; }
  #admin-dashboard-view .admin-booking-filters { flex-direction: column; align-items: stretch; }
  #admin-dashboard-view .admin-booking-tools { flex-direction: column; align-items: stretch; }
  #admin-dashboard-view .admin-card-header { flex-direction: column; gap: 0.75rem; }
  #admin-dashboard-view .admin-field { margin-bottom: 0.75rem; }
  #admin-dashboard-view .admin-section-card { padding: 1.25rem; }
}

/* Mobile sidebar improvements */
@media (max-width: 768px) {
  #admin-sidebar {
    transform: translateX(-100%);
    transition: transform var(--admin-transition-normal) ease-out;
  }
  #admin-sidebar.open {
    transform: translateX(0);
  }
  #admin-mobile-backdrop {
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--admin-transition-normal), visibility var(--admin-transition-normal);
  }
  #admin-mobile-backdrop.open {
    opacity: 1;
    visibility: visible;
  }
}

/* Scrollbar for sidebar */
#admin-sidebar::-webkit-scrollbar {
  width: 5px;
}
#admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
#admin-sidebar::-webkit-scrollbar-thumb {
  background: var(--admin-border);
  border-radius: 9999px;
}
#admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--admin-muted);
}

/* Focus visible for accessibility */
#admin-dashboard-view *:focus-visible {
  outline: 2px solid var(--admin-primary);
  outline-offset: 2px;
}

/* Loading state for buttons */
#admin-dashboard-view button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Table improvements */
#admin-dashboard-view table {
  width: 100%;
  border-collapse: collapse;
}
#admin-dashboard-view th {
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--admin-muted);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--admin-border);
  background-color: var(--admin-bg);
}
#admin-dashboard-view td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--admin-border);
  font-size: 0.8125rem;
  color: var(--admin-text);
}
#admin-dashboard-view tbody tr:last-child td {
  border-bottom: none;
}
#admin-dashboard-view tbody tr:hover td {
  background-color: var(--admin-bg);
}

/* Modal improvements */
#admin-modal-root .modal-content-anim {
  background-color: var(--admin-card-bg) !important;
  border: 1px solid var(--admin-border) !important;
  box-shadow: var(--admin-shadow-xl) !important;
  border-radius: var(--admin-radius-xl);
  animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
#admin-modal-root .modal-overlay {
  animation: fadeIn 0.2s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Toast container positioning - ensure it's above modals */
#toast-container {
  z-index: 10000 !important;
}

/* Enhanced status badges */
#admin-dashboard-view .status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}
#admin-dashboard-view .status-badge.pending { background: var(--admin-warning-light); color: var(--admin-warning); }
#admin-dashboard-view .status-badge.confirmed { background: var(--admin-success-light); color: var(--admin-success); }
#admin-dashboard-view .status-badge.cancelled { background: var(--admin-error-light); color: var(--admin-error); }
#admin-dashboard-view .status-badge.completed { background: var(--admin-info-light); color: var(--admin-info); }
#admin-dashboard-view .status-badge.no_show { background: #F3E5F5; color: #7B1FA2; }

/* Empty state styling */
#admin-dashboard-view .admin-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--admin-muted);
}
#admin-dashboard-view .admin-empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.5;
}
#admin-dashboard-view .admin-empty-state h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--admin-text);
  margin-bottom: 0.5rem;
}
#admin-dashboard-view .admin-empty-state p {
  font-size: 0.8125rem;
}

/* Avatar styling */
#admin-dashboard-view .admin-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--admin-border);
}

/* Divider */
#admin-dashboard-view .admin-divider {
  height: 1px;
  background-color: var(--admin-border);
  margin: 1rem 0;
}

/* Section spacing */
#admin-dashboard-view section.admin-tab-pane {
  animation: tabFadeIn 0.25s ease forwards;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Print styles */
@media print {
  #admin-sidebar,
  #admin-dashboard-view header,
  #admin-dashboard-view .btn-primary,
  #admin-dashboard-view .btn-secondary,
  #admin-dashboard-view .admin-tab-btn {
    display: none !important;
  }
  #admin-dashboard-view main {
    padding: 0 !important;
  }
  #admin-dashboard-view .admin-section-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

footer.bg-brand-blush\/50 > div {
  color: var(--color-charcoal);                  /* higher contrast for copyright */
}

footer.bg-brand-blush\/50 a {
  color: var(--color-rose-700);                  /* elegant link colour */
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer.bg-brand-blush\/50 a:hover {
  color: var(--color-rose-600);
}

/* Responsive tweaks */
@media (max-width: 640px) {
  footer.bg-brand-blush\/50 {
    padding: 1.5rem 1rem;
  }
}

/* Mobile: Bookings & Calendar filters responsiveness */
@media (max-width: 640px) {
  #filter-booking-status,
  #filter-booking-date {
    width: 100%;
    min-width: 0;
  }
  /* Ensure the Date/Status group stacks vertically */
  .admin-booking-filters > div:first-child {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .admin-booking-filters > div:first-child > div {
    width: 100%;
  }
  .admin-booking-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .admin-booking-tools > div {
    width: 100%;
  }
  .admin-booking-tools > div > button {
    width: 100%;
  }
}

/* Mobile: Salon Settings field visibility */
@media (max-width: 640px) {
  #admin-dashboard-view .admin-field input,
  #admin-dashboard-view .admin-field select,
  #admin-dashboard-view .admin-field textarea {
    border-width: 1.5px;
    border-color: var(--admin-border);
    background-color: #fff;
  }
  #admin-dashboard-view .admin-field textarea {
    min-height: 100px;
    resize: vertical;
  }
  #admin-dashboard-view .admin-field input:focus,
  #admin-dashboard-view .admin-field select:focus,
  #admin-dashboard-view .admin-field textarea:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px var(--admin-primary-light);
  }
}

/* Salon Settings – improve field visibility on all screens */
#tab-settings .admin-field input,
#tab-settings .admin-field select,
#tab-settings .admin-field textarea {
  border: 1.5px solid #D1C4B5; /* stronger border */
  background-color: #FAF8F6;   /* subtle off‑white background */
  color: #1F2937;              /* dark text for readability */
}
#tab-settings .admin-field input::placeholder,
#tab-settings .admin-field textarea::placeholder {
  color: #9CA3AF;
  opacity: 1;
}
#tab-settings .admin-field input:focus,
#tab-settings .admin-field select:focus,
#tab-settings .admin-field textarea:focus {
  border-color: #EE6A95;                /* primary pink */
  box-shadow: 0 0 0 3px rgba(238,106,149,0.2);
  background-color: #fff;
}
#tab-settings .admin-field textarea {
  min-height: 100px;
  resize: vertical;
}

/* ============================================================================
   ADMIN DASHBOARD - COMPREHENSIVE RESPONSIVE STYLES
   ============================================================================ */

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1024px) {
  #admin-gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  #subcategories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  #tab-overview .grid.grid-cols-2.lg\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #overview-reviews-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #tab-overview .grid.grid-cols-1.lg\:grid-cols-12 {
    grid-template-columns: 1fr;
  }
  
  #tab-settings .lg\:col-span-8,
  #tab-settings .lg\:col-span-4 {
    grid-column: span 12 !important;
  }
  
  #admin-modal-root .max-w-lg {
    max-width: 90vw !important;
  }
  
  #admin-modal-root .max-w-md {
    max-width: 85vw !important;
  }
}

/* Ensure all admin form inputs respect container width */
#admin-dashboard-view input,
#admin-dashboard-view select,
#admin-dashboard-view textarea {
  max-width: 100%;
  box-sizing: border-box;
}

/* Fix for long text in table cells */
#admin-dashboard-view td {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* Ensure modals don't overflow viewport */
#admin-modal-root .modal-overlay {
  padding: 0.5rem;
  align-items: flex-start;
  padding-top: 2rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

#admin-modal-root .modal-content-anim {
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

/* Admin sidebar - ensure it doesn't cause overflow */
@media (max-width: 768px) {
  #admin-sidebar {
    width: 100%;
    max-width: 280px;
  }
}

/* Prevent any element from causing horizontal overflow */
#admin-dashboard-view * {
  max-width: 100%;
  box-sizing: border-box;
}

/* Allow specific elements to overflow horizontally within their container */
#admin-dashboard-view .overflow-x-auto,
#admin-dashboard-view .overflow-auto {
  max-width: 100%;
}
}