/* ==========================================
   SALONECT WEB APP — Premium Styles
   Palette: vivid multi-hue (cyan • violet •
   magenta • amber • emerald) on near-black.
   emerald reserved for availability/success,
   sky reserved for AI features.
   ========================================== */

:root {
  --sc-dark: #0a0f1a;
  --sc-darker: #070b14;
  --sc-card: rgba(20, 24, 38, 0.72);
  --sc-card-solid: #14182a;
  --sc-border: rgba(139, 92, 246, 0.14);
  --sc-primary: #60a5fa;       /* blue-400 — brand interactive */
  --sc-primary-bright: #3b82f6;/* blue-500 — brand bright */
  --sc-accent: #06b6d4;        /* cyan-500 — owner / B2B */
  --sc-accent-light: #22d3ee;  /* cyan-400 */
  --sc-warm: #0ea5e9;          /* sky-500 — highlights */
  --sc-success: #10b981;       /* emerald-500 — availability only */
  --sc-ai: #38bdf8;            /* sky-400 — AI features */
  --sc-muted: #94a3b8;         /* slate-400 */
  --sc-text: #e2e8f0;          /* slate-200 */
  --sc-gold: #d4a574;
  --sc-platinum: #c0c0d0;
  /* New vivid accents for variety */
  --sc-violet: #8b5cf6;        /* violet-500 */
  --sc-violet-light: #a78bfa;  /* violet-400 */
  --sc-magenta: #ec4899;       /* pink-500 */
  --sc-magenta-light: #f472b6; /* pink-400 */
  --sc-amber: #f59e0b;         /* amber-500 */
  --sc-amber-light: #fbbf24;   /* amber-400 */
  --sc-coral: #fb7185;         /* rose-400 */
  --sc-teal: #14b8a6;          /* teal-500 */
  --sc-lime: #84cc16;          /* lime-500 */
}

body {
  position: relative;
  isolation: isolate;
}

#globalAmbientBg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-aurora {
  position: absolute;
  border-radius: 9999px;
  filter: blur(92px);
  opacity: 0.2;
  mix-blend-mode: screen;
  animation: ambientFloat 18s ease-in-out infinite;
}

.ambient-aurora-one {
  width: 42rem;
  height: 42rem;
  top: -10rem;
  left: -6rem;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.28) 0%, rgba(34, 211, 238, 0) 72%);
}

.ambient-aurora-two {
  width: 38rem;
  height: 38rem;
  top: 18%;
  right: -8rem;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.22) 0%, rgba(96, 165, 250, 0) 74%);
  animation-duration: 24s;
  animation-delay: -7s;
}

.ambient-aurora-three {
  width: 34rem;
  height: 34rem;
  bottom: -10rem;
  left: 26%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0) 74%);
  animation-duration: 20s;
  animation-delay: -11s;
}

.ambient-strands {
  position: absolute;
  inset: -18%;
  opacity: 0.75;
  background:
    linear-gradient(118deg, transparent 18%, rgba(96, 165, 250, 0.08) 28%, transparent 38%),
    linear-gradient(102deg, transparent 26%, rgba(34, 211, 238, 0.07) 36%, transparent 46%),
    linear-gradient(126deg, transparent 44%, rgba(139, 92, 246, 0.07) 54%, transparent 64%);
  transform: translate3d(0, 0, 0) scale(1.2);
  animation: ambientStrandsDrift 24s ease-in-out infinite alternate;
}

.ambient-grid-plane {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -14%;
  height: 58%;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(to top, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.2;
  transform-origin: center bottom;
  transform: perspective(1300px) rotateX(78deg) scale(1.35);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent 92%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent 92%);
  animation: ambientGridDrift 28s linear infinite;
}

.ambient-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, transparent 0%, rgba(5, 11, 22, 0.08) 42%, rgba(5, 11, 22, 0.74) 100%);
}

@keyframes ambientFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3%, -4%, 0) scale(1.08); }
}

@keyframes ambientStrandsDrift {
  0% { transform: translate3d(-2%, 0, 0) scale(1.18); }
  100% { transform: translate3d(2%, 3%, 0) scale(1.28); }
}

@keyframes ambientGridDrift {
  0% { transform: perspective(1300px) rotateX(78deg) scale(1.35) translate3d(0, 0, 0); }
  100% { transform: perspective(1300px) rotateX(78deg) scale(1.35) translate3d(0, 42px, 0); }
}

.text-sc-violet { color: var(--sc-violet); }
.text-sc-magenta { color: var(--sc-magenta); }
.text-sc-amber { color: var(--sc-amber); }
.text-sc-coral { color: var(--sc-coral); }
.text-sc-teal { color: var(--sc-teal); }

/* Tailwind-friendly utility colors that read the tokens */
.text-sc-primary { color: var(--sc-primary); }
.text-sc-muted { color: var(--sc-muted); }
.text-sc-success { color: var(--sc-success); }
.text-sc-ai { color: var(--sc-ai); }
.text-sc-accent { color: var(--sc-accent); }
.bg-sc-card { background: var(--sc-card-solid); }
.bg-sc-darker { background: var(--sc-darker); }
.border-sc { border-color: var(--sc-border); }

/* ---- Premium Gradient Mesh Background (multi-hue) ---- */
.premium-mesh {
  background:
    radial-gradient(ellipse 70% 50% at 18% 30%, rgba(139, 92, 246, 0.18) 0%, transparent 60%),  /* violet */
    radial-gradient(ellipse 60% 45% at 82% 22%, rgba(236, 72, 153, 0.14) 0%, transparent 55%),  /* magenta */
    radial-gradient(ellipse 55% 40% at 50% 78%, rgba(6, 182, 212, 0.12) 0%, transparent 55%),   /* cyan */
    radial-gradient(ellipse 45% 35% at 88% 78%, rgba(245, 158, 11, 0.10) 0%, transparent 55%),  /* amber */
    radial-gradient(ellipse 40% 30% at 12% 82%, rgba(20, 184, 166, 0.10) 0%, transparent 55%);  /* teal */
  pointer-events: none;
}

.premium-mesh-vivid {
  background:
    radial-gradient(ellipse 60% 45% at 20% 25%, rgba(139, 92, 246, 0.32) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 80% 25%, rgba(236, 72, 153, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 80%, rgba(34, 211, 238, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 90% 75%, rgba(251, 191, 36, 0.18) 0%, transparent 55%);
  pointer-events: none;
}

.ai-feature-stage {
  isolation: isolate;
}

.ai-feature-stage::before {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 4.5rem;
  height: 15rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, rgba(59, 130, 246, 0.08) 35%, transparent 72%);
  filter: blur(62px);
  opacity: 0.72;
  pointer-events: none;
  animation: aiAuraPulse 10s ease-in-out infinite;
}

.ai-feature-stage::after {
  content: '';
  position: absolute;
  inset: 4rem 10% auto 10%;
  height: 20rem;
  background-image:
    linear-gradient(to right, rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.18;
  transform: perspective(1200px) rotateX(72deg);
  transform-origin: top center;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 90%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 90%);
  pointer-events: none;
  animation: aiGridFloat 24s linear infinite;
}

.ai-preview-shell,
.ai-tool-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.ai-preview-shell > *,
.ai-tool-card > * {
  position: relative;
  z-index: 1;
}

.ai-preview-shell::before {
  content: '';
  position: absolute;
  inset: -18% 18% 40% -12%;
  border-radius: 9999px;
  background: conic-gradient(from 110deg, transparent 0deg, rgba(34, 211, 238, 0.12) 70deg, transparent 150deg, rgba(59, 130, 246, 0.14) 225deg, transparent 310deg);
  filter: blur(16px);
  opacity: 0.9;
  animation: aiSweep 14s linear infinite;
}

.ai-preview-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(34, 211, 238, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.18;
  -webkit-mask-image: radial-gradient(circle at 55% 30%, rgba(0, 0, 0, 0.9), transparent 78%);
  mask-image: radial-gradient(circle at 55% 30%, rgba(0, 0, 0, 0.9), transparent 78%);
  animation: aiGridFloat 20s linear infinite;
}

.ai-tool-card::before {
  content: '';
  position: absolute;
  left: -18%;
  right: -18%;
  bottom: 12%;
  height: 8rem;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.18), rgba(139, 92, 246, 0.14), transparent);
  filter: blur(22px);
  opacity: 0.35;
  animation: aiCardSweep 6.6s ease-in-out infinite;
}

.ai-tool-card:nth-child(2)::before {
  animation-delay: -2.1s;
}

.ai-tool-card:nth-child(3)::before {
  animation-delay: -4.2s;
}

.ai-tool-visual {
  transform-origin: center center;
  animation: aiVisualFloat 7s ease-in-out infinite;
}

.ai-tool-card:nth-child(2n) .ai-tool-visual {
  animation-delay: -2s;
}

.ai-tilt-card {
  will-change: transform;
}

@keyframes aiAuraPulse {
  0%, 100% { transform: scale(0.98); opacity: 0.58; }
  50% { transform: scale(1.05); opacity: 0.84; }
}

@keyframes aiSweep {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(360deg) scale(1.06); }
}

@keyframes aiGridFloat {
  0% { transform: perspective(1200px) rotateX(72deg) translate3d(0, 0, 0); }
  100% { transform: perspective(1200px) rotateX(72deg) translate3d(0, 28px, 0); }
}

@keyframes aiCardSweep {
  0%, 100% { transform: translate3d(-8%, 0, 0) scale(0.98); opacity: 0.22; }
  50% { transform: translate3d(8%, -8%, 0) scale(1.06); opacity: 0.4; }
}

@keyframes aiVisualFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -8px, 0) scale(1.02); }
}

@media (max-width: 767px) {
  .ambient-grid-plane {
    height: 46%;
    background-size: 52px 52px;
  }

  .ai-feature-stage::after {
    inset: 5rem 6% auto 6%;
    height: 14rem;
    background-size: 48px 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-aurora,
  .ambient-strands,
  .ambient-grid-plane,
  .ai-feature-stage::before,
  .ai-feature-stage::after,
  .ai-preview-shell::before,
  .ai-preview-shell::after,
  .ai-tool-card::before,
  .ai-tool-visual {
    animation: none !important;
  }
}

/* ---- Noise texture overlay (decorative, never blocks content) ---- */
.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ---- Text Reveal Animation ---- */
@keyframes textReveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
.animate-text-reveal { animation: textReveal 0.8s cubic-bezier(0.65, 0, 0.35, 1) both; }

/* ---- Float animation ---- */
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.animate-float { animation: gentleFloat 6s ease-in-out infinite; }
.animate-float-slow { animation: gentleFloat 8s ease-in-out infinite; }
.animate-float-delay { animation: gentleFloat 6s ease-in-out 2s infinite; }

/* ---- Glow ring (violet/magenta) ---- */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.18), 0 0 60px rgba(236, 72, 153, 0.06); }
  50% { box-shadow: 0 0 30px rgba(139, 92, 246, 0.30), 0 0 80px rgba(236, 72, 153, 0.12); }
}
.glow-ring { animation: glowPulse 4s ease-in-out infinite; }

/* ---- Gradient border card ---- */
.gradient-border {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid var(--sc-border);
  background: var(--sc-card-solid);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.gradient-border:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.12), 0 0 30px rgba(236, 72, 153, 0.08);
}
.gradient-border:nth-child(2n):hover {
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.14), 0 0 30px rgba(251, 191, 36, 0.08);
}
.gradient-border:nth-child(3n):hover {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.14), 0 0 30px rgba(52, 211, 153, 0.08);
}

/* ---- Marquee ---- */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee { animation: marquee 30s linear infinite; }

/* ---- Counter roll-up ---- */
@keyframes countUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-count { animation: countUp 0.6s ease-out both; }

/* ---- Parallax-ready ---- */
.parallax-layer { will-change: transform; transition: transform 0.1s linear; }

/* ---- Image card with overlay ---- */
.img-card { position: relative; overflow: hidden; border-radius: 1.25rem; }
.img-card img { display: block; transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1); width: 100%; height: 100%; object-fit: cover; }
.img-card:hover img { transform: scale(1.05); }
.img-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,10,18,0.85) 0%, transparent 60%); pointer-events: none; }

/* ---- Shine sweep ---- */
@keyframes shineSweep {
  0% { left: -100%; }
  100% { left: 200%; }
}
.shine-on-hover { position: relative; overflow: hidden; }
.shine-on-hover::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  pointer-events: none;
  z-index: 1;
}
.shine-on-hover:hover::after { animation: shineSweep 0.6s ease-out; }

/* ---- Premium btn (vibrant magenta → violet → cyan) ---- */
.btn-premium {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #06b6d4 100%);
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: white;
  font-weight: 600;
  transition: all 0.4s ease, background-position 0.6s ease;
  box-shadow: 0 4px 24px rgba(236, 72, 153, 0.28), 0 4px 24px rgba(139, 92, 246, 0.18), inset 0 1px 0 rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}
.btn-premium:hover {
  background-position: 100% 50%;
  box-shadow: 0 10px 36px rgba(236, 72, 153, 0.42), 0 10px 36px rgba(139, 92, 246, 0.30), inset 0 1px 0 rgba(255,255,255,0.18);
  transform: translateY(-2px);
}
.btn-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-premium:hover::before { opacity: 1; }

/* ---- Stat counter card ---- */
.stat-card {
  text-align: center;
  padding: 2rem 1rem;
}
.stat-card .stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-card:nth-child(2n) .stat-num {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card:nth-child(3n) .stat-num {
  background: linear-gradient(135deg, #34d399 0%, #14b8a6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card .stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sc-muted);
  margin-top: 0.5rem;
}

/* ---- Testimonial ---- */
.testimonial-card {
  background: var(--sc-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--sc-border);
  border-radius: 1.25rem;
  padding: 2rem;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
  font-size: 4rem;
  line-height: 1;
  color: rgba(59, 130, 246,0.15);
  font-family: Georgia, serif;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--sc-darker); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ---- Glass Card ---- */
.glass {
  background: var(--sc-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--sc-border);
}

.glass-hover:hover {
  border-color: rgba(139, 92, 246, 0.40);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.10), 0 0 30px rgba(236, 72, 153, 0.06);
}

/* ---- Gradient Text — vivid multi-hue ---- */
.gradient-text {
  /* Hero/headline rainbow: cyan → violet → magenta */
  background: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 50%, #ec4899 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gradient-text-alt {
  /* AI accent gradient: cyan -> sky (kept distinct for AI tools) */
  background: linear-gradient(135deg, #22d3ee 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  /* Sunset: amber → coral → magenta */
  background: linear-gradient(135deg, #fbbf24 0%, #fb7185 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-rainbow {
  background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 25%, #06b6d4 50%, #34d399 75%, #fbbf24 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 6s linear infinite;
}

.gradient-text-sunset {
  background: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-tropical {
  background: linear-gradient(135deg, #34d399 0%, #06b6d4 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(59, 130, 246, 0.45);
  transform: translateY(-1px);
}

.btn-warm {
  /* Sunset: amber → coral */
  background: linear-gradient(135deg, #fbbf24 0%, #fb7185 100%);
  color: #1a0a0f;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(251, 113, 133, 0.32);
}
.btn-warm:hover {
  box-shadow: 0 6px 30px rgba(251, 113, 133, 0.5);
  transform: translateY(-1px);
}

.btn-violet {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.32);
}
.btn-violet:hover {
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}

.btn-magenta {
  background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.32);
}
.btn-magenta:hover {
  box-shadow: 0 6px 30px rgba(236, 72, 153, 0.5);
  transform: translateY(-1px);
}

.btn-ai {
  /* AI tools gradient: cyan -> sky */
  background: linear-gradient(135deg, #22d3ee 0%, #38bdf8 100%);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
}
.btn-ai:hover {
  box-shadow: 0 6px 30px rgba(34, 211, 238, 0.45);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}
.btn-success:hover {
  box-shadow: 0 6px 30px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.32);
}
.btn-accent:hover {
  box-shadow: 0 6px 30px rgba(236, 72, 153, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  background: transparent;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.5);
}

/* ---- Grid Background (subtle violet/cyan weave) ---- */
.grid-bg {
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ---- Animations ---- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes shimmerText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Hero entrance fade — keep a quick fallback so the fold never opens on a blank canvas */
.hero-fade { opacity: 0; transform: translateY(22px); animation: heroFadeFallback 0.45s ease-out 0.08s forwards; }
.hero-fade-1 { animation-delay: 0.14s; }
.hero-fade-2 { animation-delay: 0.2s; }
.hero-fade-3 { animation-delay: 0.26s; }
.hero-fade-4 { animation-delay: 0.32s; }
@keyframes heroFadeFallback { to { opacity: 1; transform: translateY(0); } }

.animate-fade-in { animation: fadeIn 0.4s ease-out both; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease-out both; }
.animate-slide-in { animation: slideInRight 0.4s ease-out both; }
.animate-slide-down { animation: slideDown 0.3s ease-out both; }

/* Stagger delays */
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }
.delay-6 { animation-delay: 0.3s; }

/* ---- Skeleton Loading ---- */
.skeleton {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ---- Star Rating ---- */
.star-rating .star { cursor: pointer; transition: color 0.15s; }
.star-rating .star.active { color: #06b6d4; }
.star-rating .star.inactive { color: #475569; }

/* ---- Salon Card ---- */
.salon-card {
  transition: all 0.3s ease;
}
.salon-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.salon-card .thumbnail {
  transition: transform 0.5s ease;
}
.salon-card:hover .thumbnail {
  transform: scale(1.05);
}

/* ---- Service Chip ---- */
.service-chip {
  transition: all 0.2s ease;
  cursor: pointer;
}
.service-chip:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
}
.service-chip.selected {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

/* ---- Time Slot Chip ---- */
.slot-chip {
  transition: all 0.2s ease;
  cursor: pointer;
}
.slot-chip.available:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}
.slot-chip.selected {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  border-color: #3b82f6;
  color: white;
}
.slot-chip.booked {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- Tab Navigation ---- */
.tab-btn {
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.tab-btn.active {
  border-color: #3b82f6;
  color: #60a5fa;
  cursor: default;
}
.tab-btn:hover:not(.active) {
  color: #e2e8f0;
}

/* ---- Toast ---- */
.toast-enter { animation: slideInRight 0.3s ease-out both; }
.toast-exit { animation: fadeIn 0.2s ease-in both reverse; }

/* ---- Mobile menu ---- */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

/* ---- Modal ---- */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.modal-content {
  animation: fadeInUp 0.3s ease-out both;
}

/* ---- Nav pill ---- */
.nav-pill {
  transition: all 0.3s ease;
}
.nav-pill:hover, .nav-pill.active {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

/* ---- Sidebar link ---- */
.sidebar-link {
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(59, 130, 246, 0.08);
  border-left-color: #3b82f6;
  color: #60a5fa;
}

/* ---- Input Fields ---- */
.input-field {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: white;
  transition: all 0.3s ease;
}
.input-field:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.input-field::placeholder {
  color: #64748b;
}

/* ---- Photo Gallery ---- */
.photo-thumb {
  cursor: pointer;
  transition: all 0.3s ease;
}
.photo-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ---- Badge ---- */
.badge-open {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-closed {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-upcoming {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.badge-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-completed {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ---- Review Card ---- */
.review-card {
  border-left: 3px solid rgba(59, 130, 246, 0.3);
}

/* ---- Progress Bar ---- */
.progress-bar {
  background: rgba(30, 41, 59, 0.8);
  border-radius: 8px;
  overflow: hidden;
}
.progress-bar .fill {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  height: 100%;
  border-radius: 8px;
  transition: width 0.6s ease;
}

/* ---- Responsive ---- */

/* Defensive: any ABSOLUTELY-POSITIONED decorative background overlay must NEVER
   intercept clicks/taps. We must NOT blanket-disable .grid-bg / .premium-mesh
   themselves because they are also used as page WRAPPERS (e.g. on /login),
   which would make the entire form unclickable. Only the absolute overlays
   and decorative orbs are non-interactive. */
[class*="absolute"][class*="inset-0"][class*="bg-gradient"],
[class*="absolute"][class*="inset-0"].premium-mesh,
[class*="absolute"][class*="inset-0"].grid-bg,
.orb {
  pointer-events: none;
}

@media (max-width: 767px) {
  .sidebar-desktop { display: none !important; }
  #sidebar { display: none !important; }
  #desktopNav { display: none !important; }
  #navUserArea { display: none !important; }
  #appContent { padding-bottom: 4rem; width: 100% !important; max-width: 100% !important; margin-left: 0 !important; }

  /* Reduce massive decorative orbs on small screens */
  .orb { filter: blur(60px); transform: scale(0.6); transform-origin: center; }

  /* Tighten hero top padding to remove ghost space at top */
  section.premium-mesh.pt-8 { padding-top: 0.5rem !important; padding-bottom: 2rem !important; }
  section.premium-mesh .py-10 { padding-top: 1rem !important; padding-bottom: 1rem !important; }

  /* Ensure all interactive elements meet 44x44 minimum tap target */
  button, a.btn-primary, a.btn-premium, a.btn-outline, .nav-pill {
    min-height: 44px;
  }

  /* Prevent any horizontal overflow */
  body, html { overflow-x: hidden !important; max-width: 100vw; }
  img, video, iframe { max-width: 100%; height: auto; }
}
@media (min-width: 768px) {
  .mobile-nav-toggle { display: none !important; }
  #mobileBottomNav { display: none !important; }
  button[onclick*="openMobileMenu"] { display: none !important; }
}

/* Ensure appContent never overflows viewport */
#appContent { max-width: 100%; box-sizing: border-box; overflow-x: hidden; }

/* ---- Safe area for iPhone notch ---- */
.safe-area-bottom { padding-bottom: env(safe-area-inset-bottom, 0); }

/* ---- Mobile bottom nav link ---- */
.mob-bottom-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  padding: 6px 0;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 500;
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
  position: relative;
}
.mob-bottom-link:hover { color: #60a5fa; }
.mob-bottom-link.active {
  color: #60a5fa;
  transform: translateY(-1px);
}
/* Active pill indicator above icon */
.mob-bottom-link.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.45);
}
.mob-bottom-link i { font-size: 16px; transition: transform 0.2s; }
.mob-bottom-link.active i { transform: scale(1.08); }

/* ---- Sidebar slide-in (desktop) ---- */
@keyframes sidebarSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
#sidebar:not(.hidden) #sidebarLinks > * {
  animation: sidebarSlideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ---- Modal: full-bleed on small screens, centered on desktop ---- */
@media (max-width: 640px) {
  #modalContainer .modal-content {
    max-width: 100% !important;
    max-height: 92vh;
    border-radius: 1.25rem 1.25rem 0 0;
    margin-top: auto;
    margin-bottom: 0;
    align-self: flex-end;
    width: 100%;
  }
  #modalContainer > .flex {
    align-items: flex-end !important;
    padding: 0 !important;
  }
}

/* ---- Section bands (warm tinted backgrounds) ---- */
.section-band { position: relative; }
.section-band.tinted-blue   { background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(59,130,246,0.05) 0%, transparent 70%); }
.section-band.tinted-cyan  { background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(6,182,212,0.05) 0%, transparent 70%); }
.section-band.tinted-cyan   { background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(34,211,238,0.04) 0%, transparent 70%); }

/* ---- Section bands (warm tinted backgrounds) ---- */
.section-band { position: relative; }
.section-band.tinted-blue   { background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(59,130,246,0.05) 0%, transparent 70%); }
.section-band.tinted-cyan  { background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(6,182,212,0.05) 0%, transparent 70%); }
.section-band.tinted-cyan   { background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(34,211,238,0.04) 0%, transparent 70%); }

/* ---- Booking Timeline ---- */
.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3b82f6;
  position: relative;
}
.timeline-dot::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 5px;
  width: 2px;
  height: calc(100% + 20px);
  background: rgba(59, 130, 246, 0.2);
}
.timeline-dot.last::before { display: none; }

/* ---- Orb Decorations ---- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb-indigo, .orb-blue-warm {
  /* legacy alias kept; uses rose tint */
  background: rgba(59, 130, 246, 0.08);
}
.orb-blue {
  background: rgba(59, 130, 246, 0.06);
}
.orb-cyan {
  background: rgba(6, 182, 212, 0.06);
}

/* ---- Scrollbar hide (for horizontal overflow navs) ---- */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ---- Cart badge pulse ---- */
@keyframes cartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
#navCartBadge:not(.hidden) { animation: cartPulse 0.3s ease-out; }

/* ---- Spinner (loading indicator) ---- */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-sm {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ---- Page transition ---- */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
#appContent > *:first-child {
  animation: pageEnter 0.3s ease-out both;
}

/* ---- Focus-visible for accessibility ---- */
:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* ---- Improved toast positioning (avoid mobile bottom nav overlap) ---- */
@media (max-width: 768px) {
  #toastContainer {
    top: auto;
    bottom: 5rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

/* ---- Smooth page transitions for all interactive elements ---- */
button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

/* ---- Better loading overlay spinner ---- */
#loadingOverlay .animate-spin,
#loadingOverlay [class*="border-"] {
  border-width: 3px;
}

/* ---- Back-to-top fix ---- */
#backToTop {
  display: none;
}
#backToTop.visible {
  display: flex;
}

/* ---- Improved mobile bottom nav ---- */
@media (max-width: 768px) {
  #mobileBottomNav {
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 4px);
  }
  .mob-bottom-link {
    padding: 8px 0;
    min-width: 0;
  }
  .mob-bottom-link span {
    font-size: 9px;
    line-height: 1.2;
  }
}

/* ---- Sidebar scroll improvements ---- */
#sidebar {
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
  overscroll-behavior: contain;
}
#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-thumb { background: #334155; border-radius: 2px; }
#sidebar::-webkit-scrollbar-track { background: transparent; }

/* ---- Card hover micro-interaction ---- */
.glass-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-hover:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}

/* ---- Input focus ring enhancement ---- */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ---- Disabled button state ---- */
button:disabled, button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ---- Smooth image loading ---- */
img {
  transition: opacity 0.3s ease;
}
img[loading="lazy"] {
  opacity: 0;
}
img[loading="lazy"].loaded, img:not([loading="lazy"]) {
  opacity: 1;
}

/* ---- Booking slot grid mobile fix ---- */
@media (max-width: 400px) {
  .slot-chip {
    padding: 6px 8px;
    font-size: 12px;
  }
}

/* ---- Hero section responsive fixes ---- */
@media (max-width: 768px) {
  .premium-mesh {
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
}

/* ---- Selection color ---- */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: white;
}

/* ---- Tooltip style ---- */
[title] {
  position: relative;
}

/* ---- Print hidden ---- */
@media print {
  #topNav, #sidebar, #mobileBottomNav, #mobileMenu, #backToTop, #toastContainer { display: none !important; }
  #appContent { margin: 0 !important; width: 100% !important; padding: 0 !important; }
}


/* ============================================
   HOMEPAGE REDESIGN UTILITIES (Apr 2026)
   ============================================ */

/* Warm decorative orbs */
.orb-warm { position: absolute; border-radius: 9999px; filter: blur(80px); pointer-events: none; }
.orb-warm.cyan   { background: radial-gradient(circle, rgba(6,182,212,0.18) 0%, transparent 70%); }
.orb-warm.blue    { background: radial-gradient(circle, rgba(59,130,246,0.16)  0%, transparent 70%); }
.orb-warm.cyan    { background: radial-gradient(circle, rgba(34,211,238,0.12) 0%, transparent 70%); }
.orb-warm.emerald { background: radial-gradient(circle, rgba(16,185,129,0.14) 0%, transparent 70%); }

/* Warm hero mesh */
.warm-mesh {
  background:
    radial-gradient(ellipse 70% 40% at 15% 30%, rgba(6,182,212,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 25%, rgba(59,130,246,0.08)  0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 50% 90%, rgba(34,211,238,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Section band: full-width tinted block, hairline divider */
.section-band { border-top: 1px solid rgba(255,255,255,0.05); }
.section-band.tinted-blue  { background: linear-gradient(180deg, rgba(59,130,246,0.04), transparent 60%); }
.section-band.tinted-cyan  { background: linear-gradient(180deg, rgba(34,211,238,0.04), transparent 60%); }
.section-band.tinted-cyan { background: linear-gradient(180deg, rgba(6,182,212,0.06), transparent 70%); }

/* Section eyebrow / kicker */
.kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; }
.kicker-blue    { color: var(--sc-primary); }
.kicker-cyan   { color: var(--sc-accent); }
.kicker-cyan    { color: var(--sc-ai); }
.kicker-emerald { color: var(--sc-success); }

/* Soft category circle */
.cat-circle {
  width: 4.5rem; height: 4.5rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.25s ease;
}
.cat-circle:hover { border-color: rgba(59,130,246,0.35); transform: translateY(-2px); }

/* Live availability pill (used on hero) */
.live-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.85rem; border-radius: 9999px;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.30);
  color: #34d399; font-size: 0.75rem; font-weight: 600;
}
.live-pill .live-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 9999px;
  background: #10b981; animation: pulse-dot 1.5s ease-in-out infinite;
}

/* Pillar chip card (Discover / AI / Shop / Owners) */
.pillar-card {
  background: var(--sc-card-solid);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.25s ease;
}
.pillar-card:hover         { border-color: rgba(59,130,246,0.30);  transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0,0,0,0.35); }
.pillar-card.ai:hover      { border-color: rgba(34,211,238,0.40); box-shadow: 0 12px 36px rgba(34,211,238,0.10); }
.pillar-card.amber:hover   { border-color: rgba(6,182,212,0.40); box-shadow: 0 12px 36px rgba(6,182,212,0.10); }
.pillar-card.emerald:hover { border-color: rgba(16,185,129,0.40); box-shadow: 0 12px 36px rgba(16,185,129,0.10); }

/* Quick action chip */
.qa-chip {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1rem; border-radius: 0.85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-weight: 600; font-size: 0.85rem;
  transition: all 0.2s ease;
}
.qa-chip:hover { background: rgba(59,130,246,0.10); border-color: rgba(59,130,246,0.35); color: #60a5fa; transform: translateY(-1px); }

/* Owner band gradient (full-width amber tint) */
.owner-band {
  background:
    radial-gradient(ellipse 60% 80% at 0%   50%, rgba(6,182,212,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(59,130,246,0.14)  0%, transparent 55%),
    var(--sc-darker);
}

/* Trust strip dot separator */
.trust-strip > * + *::before { content: '·'; margin: 0 0.6rem; opacity: 0.4; }

