@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;1,14..32,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Pristine High-Tech Light Mode */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;

  /* Crisp Ink */
  --ink: #0F172A;
  --ink-soft: #475569;
  --ink-muted: #94A3B8;

  /* Sapphire & Electric Blue */
  --teal: #0284C7;
  --teal-mid: #2563EB;
  --teal-glow: #3B82F6;
  --teal-dark: #1E3A8A;

  /* Sky Accent */
  --gold: #0284C7;
  --gold-light: #38BDF8;
  --gold-glow: rgba(2, 132, 199, 0.12);

  /* Accent Warm */
  --amber: #D97706;
  --amber-light: #FEF3C7;

  /* Surfaces & Lines */
  --mint: #F0F9FF;
  --line: #E2E8F0;
  --line-soft: rgba(37, 99, 235, 0.08);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.86);
  --glass-border: rgba(37, 99, 235, 0.14);

  /* Light Shadows */
  --shadow-sm: 0 1px 4px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 18px rgba(15, 23, 42, 0.08), 0 12px 32px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 36px rgba(15, 23, 42, 0.12), 0 24px 56px rgba(15, 23, 42, 0.08);
  --shadow-teal: 0 4px 24px rgba(37, 99, 235, 0.2);
  --shadow-gold: 0 4px 20px rgba(2, 132, 199, 0.2);

  /* Radius */
  --card-radius: 20px;
  --pill-radius: 999px;

  /* Fonts */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1140px;

  /* Glow Tokens */
  --glow-primary: 0 0 40px rgba(37, 99, 235, 0.12);
  --glow-gold: 0 0 35px rgba(2, 132, 199, 0.15);
  --border-elegant: 1px solid rgba(37, 99, 235, 0.12);
  --transition-elegant: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

body.dark-mode {
  /* High-Tech Dark Obsidian Backgrounds */
  --bg: #050811;
  --surface: #0A0F1D;
  --surface-2: #111827;

  /* Crisp Tech Ink */
  --ink: #F8FAFC;
  --ink-soft: #94A3B8;
  --ink-muted: #64748B;

  /* Neon Sapphire & Electric Cyan */
  --teal: #00F0FF;
  --teal-mid: #3B82F6;
  --teal-glow: #60A5FA;
  --teal-dark: #1E3A8A;

  /* Electric Sky Accent */
  --gold: #38BDF8;
  --gold-light: #7DD3FC;
  --gold-glow: rgba(56, 189, 248, 0.2);

  /* Accent Warm */
  --amber: #F59E0B;
  --amber-light: rgba(245, 158, 11, 0.12);

  /* Surfaces & Lines */
  --mint: #0F172A;
  --line: rgba(0, 240, 255, 0.18);
  --line-soft: rgba(59, 130, 246, 0.12);

  /* Glassmorphism */
  --glass-bg: rgba(10, 15, 29, 0.88);
  --glass-border: rgba(0, 240, 255, 0.22);

  /* High-Tech Glow Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.15);
  --shadow-lg: 0 16px 50px rgba(0, 0, 0, 0.8), 0 0 45px rgba(0, 240, 255, 0.25);
  --shadow-teal: 0 0 30px rgba(0, 240, 255, 0.3);
  --shadow-gold: 0 0 30px rgba(59, 130, 246, 0.3);

  --glow-primary: 0 0 50px rgba(0, 240, 255, 0.22);
  --glow-gold: 0 0 45px rgba(59, 130, 246, 0.25);

  color-scheme: dark;
}

body.dark-mode input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8) sepia(1) saturate(5) hue-rotate(130deg);
  cursor: pointer;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
  isolation: isolate;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  text-rendering: optimizeLegibility;
}

/* Luxury text selection */
::selection {
  background: rgba(34, 86, 216, 0.15);
  color: var(--teal-dark);
}

/* Elegant scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--teal-mid), var(--teal-dark));
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

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

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}

img,
video,
svg,
iframe {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.08;
  font-weight: 600;
  font-feature-settings: 'liga' 1, 'dlig' 1, 'kern' 1;
}

h1 { font-weight: 700; letter-spacing: -0.035em; }
h2 { letter-spacing: -0.025em; font-weight: 600; }
h3 { letter-spacing: -0.015em; }

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(var(--max-width), calc(100% - 32px));
  margin-inline: auto;
  padding: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-weight: 500;
  opacity: 0.9;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 var(--glass-border), var(--shadow-sm);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  font-style: italic;
}

.brand .mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--teal-mid);
  box-shadow: var(--shadow-teal);
  transition: box-shadow 0.3s ease;
}

.brand .mark:hover {
  box-shadow: 0 0 0 4px var(--line-soft), var(--shadow-teal);
}

.brand-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

nav.links {
  display: flex;
  gap: 36px;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav.links a {
  color: var(--ink-soft);
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 3px;
}

nav.links a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--teal-mid));
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.links a:hover,
nav.links a:focus-visible {
  color: var(--teal);
}

nav.links a:hover::after,
nav.links a:focus-visible::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
}

.theme-toggle:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  transform: scale(1.1) rotate(12deg);
  box-shadow: var(--shadow-teal);
}

.theme-toggle svg {
  color: inherit;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--ink);
}

.theme-toggle .sun-icon {
  display: none;
}

body.dark-mode .theme-toggle .moon-icon {
  display: none;
}

body.dark-mode .theme-toggle .sun-icon {
  display: block;
}

.call-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: var(--pill-radius);
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.04em;
}

.call-btn:hover,
.call-btn:focus-visible {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-teal);
  transform: translateY(-1px);
}

.call-btn-mobile {
  display: none;
}

/* Hamburger button Ã¢â‚¬â€ hidden on desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 76px;
  border-bottom: 1px solid var(--line-soft);
}

/* Elegant ambient gradient behind hero content */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 65% at 75% -5%, rgba(37, 99, 235, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at -5% 85%, rgba(59, 130, 246, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(30, 64, 175, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body.dark-mode .hero::before {
  background:
    radial-gradient(ellipse 70% 65% at 75% -5%, rgba(59, 130, 246, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at -5% 85%, rgba(96, 165, 250, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(37, 99, 235, 0.06) 0%, transparent 60%);
}


/* CursorGrid — fixed full-page overlay canvas, behind all content */
/* blend mode (multiply/screen) is applied by JS based on theme    */
body>canvas:last-child {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(59, 130, 246, 0.05) 40%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
  animation: pulseGlow 14s infinite alternate ease-in-out;
}

body.dark-mode .hero-bg-glow {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(96, 165, 250, 0.06) 40%, transparent 70%);
}

@keyframes pulseGlow {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.18) translate(-6%, 6%);
    opacity: 1;
  }
}

.hero-grid-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.arch-decor {
  position: absolute;
  right: -60px;
  top: 40px;
  width: 460px;
  opacity: 0.35;
  color: var(--teal);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-style: normal;
  font-family: var(--font-display);
}

.hero .accent {
  font-style: normal;
  background: linear-gradient(135deg, #00F0FF 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.hero p.lede {
  margin-top: 24px;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 480px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* =========================================================
   MILLION-DOLLAR GRAIN TEXTURE + GLOBAL MESH ORBS
   ========================================================= */

/* Fixed grain overlay — every luxury site has this */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

/* Animated ambient gradient orbs behind everything */
.hero-bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.16) 0%, rgba(59, 126, 246, 0.08) 40%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(90px);
  animation: orbFloat1 18s infinite alternate ease-in-out;
}

/* Second orb — high-tech cyan accent */
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(80px);
  animation: orbFloat2 22s infinite alternate ease-in-out;
  z-index: 0;
}

@keyframes orbFloat1 {
  0%   { transform: scale(1) translate(0, 0); opacity: 0.8; }
  50%  { transform: scale(1.1) translate(-4%, 3%); opacity: 1; }
  100% { transform: scale(1.2) translate(-8%, 6%); opacity: 0.7; }
}
@keyframes orbFloat2 {
  0%   { transform: scale(1) translate(0, 0); opacity: 0.5; }
  100% { transform: scale(1.3) translate(6%, -4%); opacity: 0.9; }
}

/* =========================================================
   HERO CTAs
   ========================================================= */
.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  align-items: center;
}

/* =========================================================
   BUTTONS — SHIMMER SWEEP
   ========================================================= */
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 14px 30px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    opacity 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep effect on all buttons */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn:hover::before { left: 160%; }

.btn-primary {
  background: linear-gradient(135deg, #00F0FF 0%, #3B82F6 100%);
  color: #050811;
  font-weight: 700;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.2) 0%, transparent 55%);
  pointer-events: none;
  border-radius: inherit;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #38BDF8 0%, #00F0FF 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.55), inset 0 1px 0 rgba(255,255,255,0.4);
}

.btn-ghost {
  background: rgba(10, 15, 29, 0.7);
  color: var(--ink);
  border: 1px solid rgba(0, 240, 255, 0.25);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: #00F0FF;
  color: #00F0FF;
  background: rgba(0, 240, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
}

/* =========================================================
   HERO STATS — PREMIUM INDIVIDUAL CARDS
   ========================================================= */
.hero-stats {
  display: flex;
  gap: 12px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.stat {
  padding: 18px 26px;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
}

.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--glow-gold);
  border-color: var(--gold);
}

.stat .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  font-style: normal;
  background: linear-gradient(135deg, #00F0FF 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat .label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* =========================================================
   HERO INTERACTIVE CARD — ANIMATED GOLD BORDER
   ========================================================= */
.hero-interactive-card-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Rotating gradient border trick */
.hero-interactive-card-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: conic-gradient(
    from 0deg,
    #00F0FF 0deg,
    #3B82F6 120deg,
    transparent 200deg,
    #00F0FF 360deg
  );
  animation: rotateBorder 6s linear infinite;
  opacity: 0.8;
  z-index: 0;
  filter: blur(2px);
}

@keyframes rotateBorder {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-interactive-card {
  background: var(--glass-bg);
  border: 1px solid transparent;
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border-radius: 28px;
  padding: 36px;
  max-width: 320px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg), var(--glow-primary), var(--glow-gold);
  animation: floatCard 7s infinite ease-in-out;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.hero-interactive-card:hover {
  transform: scale(1.04) translateY(-10px) !important;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(181,137,42,0.2), 0 0 40px rgba(34,86,216,0.15);
}

@keyframes floatCard {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}

.hero-interactive-card .pulse-indicator {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 10px;
  height: 10px;
  background-color: var(--teal);
  border-radius: 50%;
}

.hero-interactive-card .pulse-indicator::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--teal);
  border-radius: 50%;
  animation: pulseRing 1.5s infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.hero-interactive-card .card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: inline-block;
}

.hero-interactive-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.hero-interactive-card p.sub {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-interactive-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-interactive-card .card-tags .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--line-soft);
  border: 1px solid var(--glass-border);
  color: var(--teal);
  padding: 4px 12px;
  border-radius: 30px;
  font-weight: 500;
}

/* ---------- Section shell ---------- */
section {
  padding: 80px 0;
}

section.tinted {
  background: var(--mint);
  position: relative;
}

section.tinted::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(37,99,235,0.025) 50%, transparent 100%);
  pointer-events: none;
  opacity: 0.6;
}

.section-head {
  max-width: 620px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-style: normal;
  font-family: var(--font-display);
  color: var(--ink);
}

.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

/* ---------- About doctor ---------- */
.doctor-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.doctor-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--glow-primary);
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  object-fit: cover;
}

.doctor-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.doctor-card .role {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--teal-dark);
  margin-top: 6px;
  display: block;
}

.doctor-card .exp {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.doctor-card .exp strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--amber);
  font-weight: 700;
}

.doctor-bio p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.doctor-bio p:last-child {
  margin-bottom: 0;
}

/* ---------- Case file / credentials timeline (signature element) ---------- */
.case-file {
  margin-top: 32px;
}

.case-file .file-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(181, 137, 42, 0.2);
  padding-bottom: 12px;
  margin-bottom: 12px;
  font-weight: 500;
}

.timeline {
  position: relative;
  padding-left: 4px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line-soft);
  transition: transform 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(6px);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.tab {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
  padding-top: 2px;
}

.timeline-item .years {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.timeline-item h4 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.timeline-item .school {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 4px;
  font-weight: 300;
}

.timeline-item .ongoing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid rgba(181, 137, 42, 0.25);
  padding: 4px 14px;
  border-radius: 100px;
}

/* ---------- Services (3D Container Scroll Reveal) ---------- */
.services-container-scroll-section {
  padding: 60px 0 80px;
  position: relative;
}

.scroll-header-stage {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  transition: transform 0.15s ease-out;
}

/* 3D Perspective Stage */
.services-3d-scroll-stage {
  perspective: 1200px;
  position: relative;
  width: 100%;
  padding: 10px 0;
}

.services-3d-card-wrapper {
  transform-style: preserve-3d;
  transform: rotateX(16deg) scale(0.97) translateY(10px);
  transition: transform 0.15s ease-out, box-shadow 0.4s ease;
  background: linear-gradient(145deg, #0d1527 0%, #060a14 100%);
  border: 1px solid rgba(181, 137, 42, 0.25);
  border-radius: 32px;
  padding: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), var(--glow-gold);
}

body.dark-mode .services-3d-card-wrapper {
  background: linear-gradient(145deg, #090e1a 0%, #03050a 100%);
  border-color: rgba(181, 137, 42, 0.3);
}

.showcase-glow-orb {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 137, 42, 0.2), transparent 70%);
  pointer-events: none;
}

.services-3d-showcase-content {
  position: relative;
  padding: 44px 36px;
  background: var(--surface);
  border-radius: 26px;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

body.dark-mode .services-3d-showcase-content {
  background: #0b0f1c;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--gold-glow);
  color: var(--gold);
  border: 1px solid rgba(181, 137, 42, 0.25);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 20px;
}

.showcase-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 14px;
}

.showcase-sub {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 28px auto;
  line-height: 1.7;
  font-weight: 300;
}

.showcase-pills {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.showcase-pills .pill {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.showcase-pills .pill:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ---------- Aceternity UI Animated Tabs ---------- */
.aceternity-tabs-container {
  margin-top: 40px;
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  perspective: 1000px;
}

.aceternity-tab-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  position: relative;
  overflow-x: auto;
  padding: 6px;
  margin-bottom: 28px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.aceternity-tab-nav::-webkit-scrollbar {
  display: none;
}

.aceternity-tab-btn {
  position: relative;
  padding: 10px 22px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease;
  transform-style: preserve-3d;
  flex-shrink: 0;
  outline: none;
}

.aceternity-tab-btn:hover {
  color: var(--ink);
}

.aceternity-tab-btn .active-pill-bg {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid rgba(181, 137, 42, 0.3);
  box-shadow: 0 4px 20px rgba(181, 137, 42, 0.15), var(--shadow-sm);
  z-index: 1;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode .aceternity-tab-btn .active-pill-bg {
  background: var(--surface-2);
  border-color: rgba(181, 137, 42, 0.4);
}

.aceternity-tab-btn.active .active-pill-bg {
  opacity: 1;
  transform: scale(1);
}

.aceternity-tab-btn.active {
  color: var(--gold);
}

body.dark-mode .aceternity-tab-btn.active {
  color: var(--gold-light);
}

.aceternity-tab-btn .tab-btn-text {
  position: relative;
  z-index: 2;
}

/* Aceternity 3D Stacked Cards Container Stage */
.aceternity-tabs-content-stage {
  position: relative;
  width: 100%;
  min-height: 420px;
  perspective: 1000px;
  margin-bottom: 24px;
}

.aceternity-tab-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    top 0.4s ease, z-index 0.1s ease;
  transform-origin: center top;
  will-change: transform, opacity, top;
  cursor: pointer;
}

.tab-card-inner {
  width: 100%;
  min-height: 410px;
  background: linear-gradient(135deg, #0284C7 0%, #1E3A8A 100%);
  color: #ffffff;
  border-radius: 28px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  border: 1px solid rgba(2, 132, 199, 0.2);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  position: relative;
  overflow: hidden;
}

body.dark-mode .tab-card-inner {
  background: linear-gradient(135deg, #060912 0%, #0c1424 50%, #04060c 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
}

.tab-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

.tab-card-header h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #ffffff;
  margin-top: 8px;
}

.tab-card-desc {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  margin: 14px 0 22px 0;
}

.tab-card-inner .stacked-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.tab-card-inner .stacked-details-grid {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-radius: 16px;
  padding: 16px 20px;
}

.tab-card-inner .stacked-details-grid .detail-box .lbl {
  color: rgba(255, 255, 255, 0.72);
}

.tab-card-inner .stacked-details-grid .detail-box .val {
  color: #ffffff;
}

.tab-card-banner {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  overflow: hidden;
}

.banner-icon-bg {
  font-size: 6.5rem;
  opacity: 0.9;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
  margin-bottom: 12px;
  transition: transform 0.4s ease;
}

.aceternity-tab-card:hover .banner-icon-bg {
  transform: scale(1.1) rotate(6deg);
}

.banner-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
}

/* Location Specific Aceternity Tabs Styling */
.location-tabs-stage {
  position: relative;
  width: 100%;
  min-height: 520px;
  transition: min-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-card-inner {
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, #090e1a 0%, #121c33 50%, #060912 100%);
  border: 1px solid rgba(181, 137, 42, 0.25);
  box-shadow: 0 30px 70px rgba(6, 9, 18, 0.4), var(--glow-gold);
}

.dual-overview-inner {
  display: block !important;
  grid-template-columns: 1fr !important;
  min-height: auto !important;
  padding: 40px !important;
}

@media (max-width: 991px) {
  .location-card-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px;
  }
}

.location-card-body.full-width {
  width: 100%;
}

.addr-detail {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 10px 0 20px 0;
  line-height: 1.6;
  font-weight: 300;
}

.location-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 16px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.info-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.info-box strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.info-box p {
  font-size: 0.88rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
}

.phone-link {
  color: var(--gold-light);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.phone-link:hover {
  color: #ffffff;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
}

.location-map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(181, 137, 42, 0.25);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.dual-maps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}

@media (max-width: 768px) {
  .dual-maps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.dual-map-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(181, 137, 42, 0.2);
  border-radius: 20px;
  padding: 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.dual-map-item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.dual-map-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 6px;
}

.dual-map-item .text-sm {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
  line-height: 1.5;
}

.mini-map-frame {
  margin-top: 14px;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}



@media (max-width: 860px) {
  .tab-card-inner {
    grid-template-columns: 1fr;
    padding: 24px;
    min-height: auto;
  }

  .tab-card-banner {
    display: none;
  }

  .aceternity-tabs-content-stage {
    min-height: 480px;
  }
}

.service-note {
  margin-top: 28px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--teal);
  padding-left: 16px;
}

/* ---------- Locations ---------- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.location-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--glow-primary);
  border-color: var(--teal-mid);
}

.location-card .eyebrow {
  margin-bottom: 8px;
}

.location-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.location-card .addr {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.hours-table {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.hours-table td {
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.hours-table td:first-child {
  color: var(--ink-soft);
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 500;
}

.map-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-link:hover {
  text-decoration: underline;
}

/* ---------- Contact / appointment ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info .item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.contact-info .item:first-child {
  border-top: none;
}

.contact-info .item .ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info .item .val {
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.contact-info .item .lbl {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.whatsapp-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 40px rgba(37, 211, 102, 0.15);
}

.whatsapp-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.whatsapp-card p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 300;
}

.whatsapp-btn {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, #25D366 0%, #1DA851 100%);
}

.whatsapp-btn:hover,
.whatsapp-btn:focus-visible {
  background: linear-gradient(135deg, #28E16D 0%, #1FA452 100%);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
}

/* =========================================================
   FOOTER — LUXURY TREATMENT
   ========================================================= */
footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(34,86,216,0.04) 0%, transparent 50%, rgba(181,137,42,0.04) 100%),
    var(--surface);
  padding: 52px 0 40px;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--teal-mid) 30%, var(--gold) 70%, transparent 100%);
  opacity: 0.5;
}

footer::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(181,137,42,0.04) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  position: relative;
  z-index: 1;
}

/* =========================================================
   REVEAL — CINEMATIC SCROLL TRANSITION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES (MOBILE, TABLET, SMALL SCREENS)
   ========================================================= */

/* Tablet & Mobile (max-width: 860px) */
@media (max-width: 860px) {
  .hero-grid-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-content {
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(2rem, 6.5vw, 3.2rem);
  }

  .hero-interactive-card-wrapper {
    margin-top: 10px;
  }

  .hero-interactive-card {
    max-width: 100%;
    padding: 28px 22px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 36px;
  }

  .stat {
    padding: 14px 16px;
    text-align: center;
  }

  .stat .num {
    font-size: 1.6rem;
  }

  .stat .label {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .doctor-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .doctor-card {
    max-width: 100%;
    padding: 28px 20px;
  }

  .services-3d-card-wrapper {
    padding: 12px;
    border-radius: 24px;
  }

  .services-3d-showcase-content {
    padding: 28px 18px;
  }

  .showcase-title {
    font-size: 1.4rem;
  }

  .tab-card-inner {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    min-height: auto;
    gap: 20px;
  }

  .tab-card-banner {
    display: none;
  }

  .location-card-inner {
    grid-template-columns: 1fr;
    padding: 24px 18px;
    min-height: auto;
  }

  .location-map-wrapper {
    min-height: 250px;
    margin-top: 16px;
  }

  .dual-maps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .testimonials-slider {
    padding: 32px 20px;
  }

  .booking-widget {
    padding: 28px 18px;
  }

  .menu-toggle {
    display: flex;
  }

  nav.links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }

  nav.links.is-open {
    max-height: 420px;
    opacity: 1;
  }

  nav.links a {
    padding: 16px 24px;
    border-top: 1px solid var(--line-soft);
    font-size: 0.9rem;
  }

  nav.links a:first-child {
    border-top: none;
  }

  .nav {
    position: relative;
    padding: 14px 20px;
  }
}

/* Mobile Phones (max-width: 640px) */
@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  section {
    padding: 48px 0;
  }

  .hero {
    padding: 48px 0 36px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7.5vw, 2.4rem);
  }

  .hero p.lede {
    font-size: 0.96rem;
    margin-top: 18px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 28px;
  }

  .stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
  }

  .stat .num {
    font-size: 1.5rem;
  }

  .stat .label {
    margin-top: 0;
    font-size: 0.68rem;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .section-head h2 {
    font-size: 1.55rem;
  }

  .showcase-pills {
    flex-direction: column;
    align-items: stretch;
  }

  .showcase-pills .pill {
    text-align: center;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }

  .tab {
    display: none;
  }

  .location-info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .location-actions {
    flex-direction: column;
  }

  .location-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .testimonials-slider {
    padding: 24px 16px;
  }

  .testimonial-slide .quote {
    font-size: 1.1rem;
    line-height: 1.5;
  }

  .slider-controls {
    margin-top: 20px;
    padding-top: 16px;
  }

  .booking-widget {
    padding: 20px 14px;
  }

  .booking-form .form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 1rem;
  }

  .faq-answer p {
    padding: 0 18px 18px 18px;
    font-size: 0.9rem;
  }

  .footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
}

/* Small Phones (max-width: 380px) */
@media (max-width: 380px) {
  .brand {
    font-size: 1.15rem;
  }

  .brand .mark {
    width: 32px;
    height: 32px;
    font-size: 0.72rem;
  }

  .eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
  }

  .header-actions {
    gap: 8px;
    margin-right: 0;
  }

  .menu-toggle {
    width: 34px;
  }

  .lang-switcher {
    padding-left: 4px;
    padding-right: 4px;
  }

  .lang-switcher-btn {
    padding-left: 4px;
    padding-right: 4px;
  }
}


/* Very small phones */
@media (max-width: 380px) {
  .brand span:last-child {
    font-size: 0.95rem;
  }

  .brand .mark {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .eyebrow {
    font-size: 0.7rem;
  }
}

/* ---------- Service Detail Explorer ---------- */
.service-explorer {
  margin-top: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* ---------- Smooth Card & Explorer Component ---------- */
.service-explorer {
  margin-top: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card {
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.5s ease,
    border-color 0.5s ease;
  border-radius: var(--card-radius);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(14, 122, 120, 0.12), 0 0 20px rgba(0, 163, 255, 0.08);
  border-color: var(--teal);
}

.service-card.active {
  background: var(--mint);
  border-color: var(--teal);
  box-shadow: 0 18px 40px rgba(14, 122, 120, 0.16);
  transform: translateY(-6px) scale(1.015);
}

/* Location Card & Doctor Card Smooth Transitions */
.location-card,
.doctor-card,
.hero-interactive-card,
.whatsapp-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s ease;
}

.location-card:hover,
.doctor-card:hover,
.hero-interactive-card:hover,
.whatsapp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(14, 122, 120, 0.14);
}

/* ---------- Testimonials Section ---------- */
.testimonials-slider {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 52px;
  box-shadow: var(--shadow-md), var(--glow-primary);
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.testimonials-slider:hover {
  box-shadow: var(--shadow-lg), var(--glow-gold);
  border-color: var(--gold);
}

/* Luxury 5.5s Progress Bar Track */
.testimonial-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(181, 137, 42, 0.12);
  overflow: hidden;
}

.testimonial-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--teal-mid), var(--gold-light));
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 12px rgba(181, 137, 42, 0.6);
}

.testimonial-container {
  min-height: 180px;
  display: flex;
  position: relative;
  margin-top: 10px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(35px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.testimonial-slide .rating {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 18px;
  letter-spacing: 4px;
}

.testimonial-slide .quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 28px;
}

.testimonial-slide .author-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.testimonial-slide .author-info {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
}

.slider-btn {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-btn:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.1);
  box-shadow: var(--shadow-gold);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-dots .dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 12px;
  box-shadow: var(--shadow-gold);
}

/* ---------- FAQ Section ---------- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-item:hover,
.faq-item.active {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm), var(--glow-gold);
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  gap: 18px;
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
  padding: 0 28px 24px 28px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.7;
  font-weight: 300;
}

/* ---------- Step-by-Step Booking Widget ---------- */
.booking-widget {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow-md), var(--glow-primary);
  position: relative;
  overflow: hidden;
}

.booking-header {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 22px;
}

.booking-header h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  font-style: italic;
}

.booking-header p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 6px;
  font-weight: 300;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  margin-top: 24px;
}

.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: scale(1.15);
  box-shadow: var(--shadow-gold);
}

.step-dot.completed {
  background: var(--mint);
  border-color: var(--teal-mid);
  color: var(--teal-mid);
}

.step-line {
  flex-grow: 1;
  height: 2px;
  background: var(--line-soft);
  margin: 0 12px;
}

/* Form layouts */
.booking-form .form-step {
  display: none;
  animation: fadeInStep 0.35s ease;
}

.booking-form .form-step.active {
  display: block;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.form-group select:focus,
.form-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.booking-form .form-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
}

.booking-form .next-step {
  width: 100%;
  justify-content: center;
}

.booking-form .submit-booking {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.3);
}

.booking-form .submit-booking:hover {
  background: linear-gradient(135deg, #28E16D 0%, #149D8E 100%);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.45);
}

/* Success screen */
.booking-success {
  display: none;
  text-align: center;
  padding: 20px 0;
  animation: fadeInStep 0.4s ease;
}

.booking-success.active {
  display: block;
}

.success-icon {
  width: 56px;
  height: 56px;
  background: var(--mint);
  color: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 20px;
  border: 2px solid var(--teal);
}

.booking-success h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.booking-success p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ---------- Responsive Updates ---------- */
@media (max-width: 860px) {
  .hero-grid-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-interactive-card-wrapper {
    order: -1;
  }

  .explorer-details {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonials-slider,
  .booking-widget {
    padding: 24px;
  }

  .header-actions {
    margin-right: 12px;
  }
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ==========================================================================
   Multilingual System (i18n), Language Switcher & Tamil Prompt Modal Styles
   ========================================================================== */

/* Tamil Font Stack & Visual Proportional Normalization */
html.lang-ta {
  --font-display: 'Noto Sans Tamil', 'Space Grotesk', sans-serif;
  --font-body: 'Noto Sans Tamil', 'Inter', sans-serif;
  font-size: 95.5%;
}

/* Adjust heading and component font sizes in Tamil mode for visual parity */
html.lang-ta h1 {
  font-size: 0.92em;
  line-height: 1.25;
}

html.lang-ta h2 {
  font-size: 0.93em;
  line-height: 1.3;
}

html.lang-ta h3 {
  font-size: 0.94em;
}

html.lang-ta nav.links {
  font-size: 0.91em;
}

html.lang-ta .hero .lede {
  font-size: 0.94em;
  line-height: 1.65;
}

html.lang-ta .btn {
  font-size: 0.93em;
}

html.lang-ta .service-card h3 {
  font-size: 0.94em;
}

html.lang-ta .location-card h3 {
  font-size: 0.94em;
}

html.lang-ta .faq-question {
  font-size: 0.93em;
}

html.lang-ta .eyebrow {
  font-size: 0.74em;
}


/* Page Transition Fade */
body.i18n-animating {
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.15s ease-in-out;
}

body {
  transition: opacity 0.15s ease-in-out;
}

/* Header Language Switcher Toggle */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(14, 122, 120, 0.08);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-right: 4px;
}

.lang-switcher-btn {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.lang-switcher-btn:hover {
  color: var(--teal);
}

.lang-switcher-btn.active {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(14, 122, 120, 0.25);
}

.lang-divider {
  color: var(--line);
  font-size: 0.75rem;
}

body.dark-mode .lang-switcher {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .lang-switcher-btn {
  color: #A0AEC0;
}

body.dark-mode .lang-switcher-btn.active {
  background: var(--teal);
  color: #ffffff;
}

/* First-Visit Language Detection Modal */
.lang-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.lang-modal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 28px 24px;
  max-width: 440px;
  width: 100%;
  transform: translateY(24px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--ink);
  text-align: left;
}

.lang-modal-overlay.is-visible .lang-modal-card {
  transform: translateY(0) scale(1);
}

.lang-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mint);
  color: var(--teal-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.lang-modal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 14px 0 8px 0;
  line-height: 1.35;
}

.lang-modal-subtitle {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 22px;
}

.lang-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lang-btn {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.lang-btn-primary {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(14, 122, 120, 0.28);
}

.lang-btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.lang-btn-secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.lang-btn-secondary:hover {
  background: var(--mint);
  color: var(--teal-dark);
  border-color: var(--teal);
}

/* Toast Switch Notification */
.i18n-toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  background: var(--ink);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.i18n-toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

body.dark-mode .i18n-toast-msg {
  background: var(--mint);
  color: var(--teal-dark);
}

/* ==========================================================================
   Premium Dental Clinic Loading Screen Styles
   ========================================================================== */

#app-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
  user-select: none;
}

body.dark-mode #app-loader {
  background: #0B0F19;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-stage {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tooth Vector Illustration */
.loader-tooth {
  width: 76px;
  height: 86px;
  color: #0E7A78;
  filter: drop-shadow(0 10px 20px rgba(14, 122, 120, 0.15));
  transition: filter 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform, filter;
}

/* Toothbrush Glide Animation */
.loader-toothbrush-wrapper {
  position: absolute;
  top: 24px;
  left: -24px;
  width: 90px;
  height: 38px;
  pointer-events: none;
  animation: toothbrushGlide 1.1s cubic-bezier(0.42, 0, 0.58, 1) infinite alternate;
  will-change: transform;
}

.loader-toothbrush-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 10px rgba(19, 34, 59, 0.12));
}

@keyframes toothbrushGlide {
  0% {
    transform: translate(0px, 0px) rotate(-14deg);
  }

  50% {
    transform: translate(42px, 8px) rotate(6deg);
  }

  100% {
    transform: translate(84px, -2px) rotate(-8deg);
  }
}

/* Foam Micro Bubbles */
.loader-bubbles {
  position: absolute;
  top: 36px;
  left: 28px;
  width: 70px;
  height: 24px;
  pointer-events: none;
  opacity: 0.85;
}

.bubble {
  position: absolute;
  background: rgba(14, 122, 120, 0.2);
  border: 1px solid rgba(14, 122, 120, 0.4);
  border-radius: 50%;
  animation: bubblePop 1.1s ease-in-out infinite;
}

.bubble:nth-child(1) {
  width: 8px;
  height: 8px;
  left: 10px;
  top: 4px;
  animation-delay: 0.1s;
}

.bubble:nth-child(2) {
  width: 11px;
  height: 11px;
  left: 30px;
  top: 12px;
  animation-delay: 0.3s;
}

.bubble:nth-child(3) {
  width: 7px;
  height: 7px;
  left: 52px;
  top: 6px;
  animation-delay: 0.5s;
}

@keyframes bubblePop {

  0%,
  100% {
    transform: scale(0.6) translateY(0);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.1) translateY(-4px);
    opacity: 0.9;
  }
}

/* Sparkle Flare */
.loader-sparkle {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 32px;
  height: 32px;
  color: #0E7A78;
  opacity: 0;
  transform: scale(0) rotate(0deg);
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.3), opacity 0.35s ease, filter 0.35s ease;
  pointer-events: none;
}

/* Clinic Brand Reveal */
.loader-brand {
  margin-top: 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.loader-brand h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

body.dark-mode .loader-brand h2 {
  color: #FFFFFF;
}

.loader-brand p {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-top: 4px;
}

/* Loader Completed State Trigger */
/* ==========================================
 * Sathya Dental Clinic Ã¢â‚¬â€ Premium 3D Loader Styles
 * ========================================== */

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--ink);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease;
  user-select: none;
  overflow: hidden;
}

.loader-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(0, 163, 255, 0.09) 0%, rgba(14, 122, 120, 0.04) 45%, transparent 75%);
  pointer-events: none;
}

body.dark-mode .loader-backdrop {
  background: radial-gradient(circle at 50% 45%, rgba(56, 189, 248, 0.14) 0%, rgba(13, 148, 136, 0.09) 50%, transparent 80%);
}

.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.loader-stage {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LoaderOne Component Styling */
.loader-one-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-one-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e7a78, #38bdf8, #10b981);
  opacity: 0.75;
  filter: blur(12px);
  animation: loaderOnePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.loader-one-outer-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #0e7a78 0%, #38bdf8 50%, #10b981 100%);
  animation: loaderOneSpin 1.2s linear infinite;
}

.loader-one-inner-bg {
  width: 100%;
  height: 100%;
  background: var(--bg, #ffffff);
  border-radius: 50%;
}

.loader-one-orbit-ring {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #38bdf8;
  border-bottom-color: #0e7a78;
  animation: loaderOneSpinReverse 1.8s linear infinite;
}

.loader-one-core {
  position: absolute;
  width: 32%;
  height: 32%;
  border-radius: 50%;
  background: #0e7a78;
  filter: blur(1px);
  animation: loaderOnePing 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes loaderOneSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes loaderOneSpinReverse {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes loaderOnePulse {

  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.08);
  }
}

@keyframes loaderOnePing {

  75%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Specular Light Sweep Overlay Across Tooth Crown */
.loader-shine-sweep {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.loader-shine-sweep::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 70%;
  height: 200%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 30%,
      rgba(255, 255, 255, 0.95) 50%,
      rgba(255, 255, 255, 0.4) 70%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(30deg);
  animation: shineStreakSweep 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes shineStreakSweep {

  0%,
  35% {
    left: -120%;
    opacity: 0;
  }

  45% {
    opacity: 1;
  }

  75% {
    left: 160%;
    opacity: 1;
  }

  85%,
  100% {
    left: 160%;
    opacity: 0;
  }
}

/* 3D Canvas Wrapper (Centered) */
.tooth-canvas-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.tooth-canvas-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  filter: drop-shadow(0 14px 32px rgba(14, 122, 120, 0.18));
}

/* Ergonomic Gliding Toothbrush */
.loader-toothbrush-track {
  position: absolute;
  width: 140px;
  height: 45px;
  z-index: 5;
  top: 90px;
  left: 0;
  pointer-events: none;
  animation: toothbrushGlide 2.2s cubic-bezier(0.35, 0, 0.25, 1) infinite;
}

@keyframes toothbrushGlide {
  0% {
    transform: translate(-140px, 35px) rotate(-18deg);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  50% {
    transform: translate(45px, -15deg) rotate(-6deg);
    opacity: 1;
  }

  75% {
    transform: translate(175px, -45px) rotate(4deg);
    opacity: 0.9;
  }

  90%,
  100% {
    transform: translate(240px, -65px) rotate(12deg);
    opacity: 0;
  }
}

.loader-toothbrush-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 14px rgba(14, 122, 120, 0.22));
}

/* Foaming Micro Bubbles */
.loader-bubbles {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.loader-bubbles .bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95), rgba(56, 189, 248, 0.6));
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
  animation: bubbleRise 2.2s ease-in-out infinite;
}

.loader-bubbles .b1 {
  width: 10px;
  height: 10px;
  left: 45px;
  top: 110px;
  animation-delay: 0.3s;
}

.loader-bubbles .b2 {
  width: 7px;
  height: 7px;
  left: 85px;
  top: 95px;
  animation-delay: 0.5s;
}

.loader-bubbles .b3 {
  width: 12px;
  height: 12px;
  left: 125px;
  top: 80px;
  animation-delay: 0.7s;
}

.loader-bubbles .b4 {
  width: 8px;
  height: 8px;
  left: 155px;
  top: 65px;
  animation-delay: 0.9s;
}

@keyframes bubbleRise {

  0%,
  20% {
    opacity: 0;
    transform: scale(0.3) translateY(10px);
  }

  45% {
    opacity: 0.9;
    transform: scale(1.1) translateY(-10px);
  }

  70% {
    opacity: 0.6;
    transform: scale(1.3) translateY(-25px);
  }

  90%,
  100% {
    opacity: 0;
    transform: scale(0.2) translateY(-40px);
  }
}

/* Radiant Diamond Sparkle Shine Lens Flare */
.loader-sparkle {
  position: absolute;
  top: 48px;
  right: 50px;
  width: 38px;
  height: 38px;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transform: scale(0) rotate(0deg);
  filter: drop-shadow(0 0 14px #00D4B2) drop-shadow(0 0 24px #FFFFFF);
  animation: sparkleFlash 2.2s ease-in-out infinite;
}

@keyframes sparkleFlash {

  0%,
  48% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }

  58% {
    opacity: 1;
    transform: scale(1.45) rotate(90deg);
    filter: drop-shadow(0 0 20px #00D4B2) drop-shadow(0 0 30px #FFFFFF) brightness(1.4);
  }

  72% {
    opacity: 0.85;
    transform: scale(1.0) rotate(180deg);
  }

  88%,
  100% {
    opacity: 0;
    transform: scale(0.2) rotate(270deg);
  }
}

/* Subtle Circular Progress Ring */
.loader-progress-ring {
  position: absolute;
  inset: 0;
  width: 240px;
  height: 240px;
  z-index: 3;
  pointer-events: none;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(14, 122, 120, 0.1);
  stroke-width: 5;
}

body.dark-mode .ring-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.ring-fill {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 5;
  stroke-linecap: round;
  filter: url(#ringGlow);
  transition: stroke-dashoffset 0.12s ease-out;
}

/* Micro Sparkle Orbiting Particles */
.loader-particles {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  animation: orbitRotate 12s linear infinite;
}

@keyframes orbitRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.loader-particles .particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00D4B2;
  box-shadow: 0 0 10px #00D4B2;
}

.loader-particles .p1 {
  top: 12px;
  left: 50%;
  animation: particlePulse 2s ease-in-out infinite alternate;
}

.loader-particles .p2 {
  top: 38px;
  right: 26px;
  width: 4px;
  height: 4px;
  background: #00A3FF;
}

.loader-particles .p3 {
  bottom: 44px;
  right: 20px;
  width: 5px;
  height: 5px;
}

.loader-particles .p4 {
  bottom: 12px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #00A3FF;
}

.loader-particles .p5 {
  bottom: 44px;
  left: 24px;
  width: 6px;
  height: 6px;
}

.loader-particles .p6 {
  top: 40px;
  left: 26px;
  width: 4px;
  height: 4px;
  background: #00D4B2;
}

@keyframes particlePulse {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.4);
    opacity: 1;
  }
}

/* Brand Typography & Percentage */
.loader-brand-container {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-percentage {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.02em;
  line-height: 1;
}

.loader-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 8px;
  letter-spacing: -0.01em;
}

.loader-subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
}

/* Complete State & Fade Out Transition */
#app-loader.loader-complete .loader-glow-aura {
  transform: scale(1.35);
  opacity: 1;
  background: radial-gradient(circle, rgba(0, 212, 178, 0.5) 0%, rgba(14, 122, 120, 0.22) 60%, transparent 80%);
}

#app-loader.loader-fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.03);
}

/* Main Body Unblur Fade In */
body {
  transition: filter 0.4s ease-out;
}

body:not(.app-loaded) header,
body:not(.app-loaded) main,
body:not(.app-loaded) section,
body:not(.app-loaded) footer {
  opacity: 0.98;
}

body.app-loaded header,
body.app-loaded main,
body.app-loaded section,
body.app-loaded footer {
  animation: pageFadeIn 0.5s ease-out forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0.9;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

  .loader-glow-aura,
  .loader-particles,
  .loader-particles .particle,
  .loader-toothbrush-track,
  .loader-bubbles .bubble,
  .loader-sparkle,
  .loader-shine-sweep::after {
    animation: none !important;
  }

  .app-loader {
    transition: opacity 0.25s linear;
  }
}

/* ==========================================================================
   Smart Date/Time Validation Assistant & Expired Alert Modal
   ========================================================================== */

/* --- Smart Assistance Banner in Booking Form --- */
.smart-assistant-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-top: 10px;
  margin-bottom: 6px;
  background: rgba(14, 122, 120, 0.08);
  border: 1px solid rgba(14, 122, 120, 0.25);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--teal-dark);
  line-height: 1.45;
  animation: assistantSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.dark-mode .smart-assistant-box {
  background: rgba(0, 212, 178, 0.12);
  border-color: rgba(0, 212, 178, 0.3);
  color: #7ef2e0;
}

.smart-assistant-box.warning-state {
  background: rgba(224, 122, 95, 0.1);
  border-color: rgba(224, 122, 95, 0.35);
  color: #c04928;
}

body.dark-mode .smart-assistant-box.warning-state {
  background: rgba(224, 122, 95, 0.18);
  border-color: rgba(224, 122, 95, 0.45);
  color: #ff9b82;
}

.smart-assistant-box .assistant-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
}

@keyframes assistantSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Expired Date/Time Alert Modal Overlay --- */
.validation-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.validation-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Modal Card */
.validation-modal-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(14, 122, 120, 0.2);
  border-radius: 18px;
  width: 100%;
  max-width: 440px;
  padding: 28px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25), 0 4px 12px rgba(14, 122, 120, 0.12);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode .validation-modal-card {
  background: rgba(22, 33, 46, 0.95);
  border-color: rgba(0, 212, 178, 0.25);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 212, 178, 0.15);
}

.validation-modal-overlay.is-visible .validation-modal-card {
  transform: scale(1) translateY(0);
}

.validation-modal-header {
  margin-bottom: 16px;
}

.validation-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(224, 122, 95, 0.12);
  border: 1px solid rgba(224, 122, 95, 0.25);
  border-radius: 20px;
  color: #d14926;
  font-weight: 600;
  font-size: 0.95rem;
}

body.dark-mode .validation-modal-badge {
  background: rgba(224, 122, 95, 0.2);
  border-color: rgba(224, 122, 95, 0.4);
  color: #ffa58e;
}

.validation-modal-badge .badge-icon {
  font-size: 1.15rem;
}

.validation-modal-body {
  margin-bottom: 24px;
}

.validation-modal-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.validation-modal-actions {
  display: flex;
  justify-content: flex-end;
}

.validation-modal-btn {
  min-width: 110px;
  padding: 10px 22px;
  font-size: 0.95rem;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 122, 120, 0.25);
}

/* ---------- Header Nav Appointment CTA ---------- */
.nav-book-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .nav-book-btn {
    display: none;
  }

  .call-btn-desktop {
    display: none;
  }
}

/* ---------- Treatment Chips Selection Grid ---------- */
.treatment-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.chip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
}

.chip-item:hover {
  border-color: var(--teal);
  background: var(--mint);
  transform: translateY(-2px);
}

.chip-item.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(14, 122, 120, 0.3);
}

.chip-item .chip-icon {
  font-size: 1.1rem;
}

/* ---------- Location Chips Grid ---------- */
.location-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 540px) {
  .location-chips-grid {
    grid-template-columns: 1fr;
  }
}

.loc-card-chip {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
}

.loc-card-chip:hover {
  border-color: var(--teal);
  background: var(--mint);
  transform: translateY(-2px);
}

.loc-card-chip.active {
  border-color: var(--teal);
  background: var(--mint);
  box-shadow: 0 4px 14px rgba(14, 122, 120, 0.2);
}

.loc-chip-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.loc-chip-header strong {
  color: var(--ink);
}

.loc-chip-sub {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* ---------- Time Slot Chips ---------- */
.time-chips-wrapper {
  margin-bottom: 12px;
}

.slot-group-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

.time-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.time-chip {
  padding: 9px 10px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
}

.time-chip:hover:not(:disabled) {
  border-color: var(--teal);
  background: var(--mint);
  transform: translateY(-1px);
}

.time-chip.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(14, 122, 120, 0.3);
}

.time-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--bg);
  border-color: var(--line);
  text-decoration: line-through;
}

/* ---------- Booking Summary Card (Step 3) ---------- */
.booking-summary-card {
  background: var(--mint);
  border: 1px solid var(--teal);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

body.dark-mode .booking-summary-card {
  background: rgba(14, 122, 120, 0.15);
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(14, 122, 120, 0.3);
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
}

.summary-row .lbl {
  color: var(--ink-soft);
}

.summary-row .val {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Modern Apple Glassmorphism 3D Robot Assistant Guide Bot ---------- */
.floating-assistant-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif);
}

/* Floating Chatbot-Style Trigger Button */
.assistant-trigger-btn.chatbot-trigger-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0E7A78 0%, #0D9488 50%, #00A3FF 100%);
  border: 3px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(14, 122, 120, 0.45), 0 0 0 0 rgba(14, 122, 120, 0.3);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  outline: none;
  animation: chatbotPulseRing 3s ease-in-out infinite;
}

@keyframes chatbotPulseRing {

  0%,
  100% {
    box-shadow: 0 8px 28px rgba(14, 122, 120, 0.45), 0 0 0 0 rgba(14, 122, 120, 0.3);
  }

  50% {
    box-shadow: 0 8px 28px rgba(14, 122, 120, 0.45), 0 0 0 10px rgba(14, 122, 120, 0);
  }
}

body.dark-mode .assistant-trigger-btn.chatbot-trigger-btn {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #0E7A78 100%);
  border-color: rgba(0, 212, 178, 0.5);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 178, 0.3);
}

.assistant-trigger-btn.chatbot-trigger-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 14px 36px rgba(14, 122, 120, 0.5), 0 0 30px rgba(0, 229, 255, 0.35);
  animation: none;
}

.assistant-trigger-btn:active {
  transform: scale(0.96);
}

.trigger-badge-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  background: #10B981;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
  z-index: 10;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Floating Speech Bubble "Hi!" popup */
.chatbot-speech-bubble {
  position: absolute;
  top: -10px;
  right: 72px;
  background: #ffffff;
  color: #0E7A78;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  animation: speechBubblePopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1.5s both,
    speechBubbleBob 3s ease-in-out 2s infinite;
  z-index: 5;
  pointer-events: none;
}

body.dark-mode .chatbot-speech-bubble {
  background: #1e293b;
  color: #00E5FF;
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.speech-bubble-tail {
  position: absolute;
  bottom: 6px;
  right: -6px;
  width: 0;
  height: 0;
  border-left: 8px solid #ffffff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

body.dark-mode .speech-bubble-tail {
  border-left-color: #1e293b;
}

@keyframes speechBubblePopIn {
  0% {
    opacity: 0;
    transform: scale(0.5) translateX(10px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

@keyframes speechBubbleBob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* Hide speech bubble when panel is open */
.assistant-trigger-btn.is-active .chatbot-speech-bubble {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s ease;
  animation: none;
}

/* Chatbot Face Avatar */
.chatbot-face-avatar {
  width: 44px;
  height: 44px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: chatbotBob 3.5s ease-in-out infinite;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes chatbotBob {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-2px) rotate(-1deg);
  }

  75% {
    transform: translateY(-2px) rotate(1deg);
  }
}

/* Chatbot Face Shell Ã¢â‚¬â€ rounded white/gradient face */
.chatbot-face-shell {
  width: 38px;
  height: 34px;
  background: radial-gradient(circle at 35% 25%, #ffffff 0%, #f8fafc 60%, #e2e8f0 100%);
  border-radius: 16px 16px 12px 12px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: relative;
  z-index: 2;
}

body.dark-mode .chatbot-face-shell {
  background: radial-gradient(circle at 35% 25%, #334155 0%, #1e293b 60%, #0f172a 100%);
}

/* Chatbot Visor (eyes container) */
.chatbot-visor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}

/* Animated Happy Eyes */
.chatbot-eye {
  width: 8px;
  height: 8px;
  background: #0E7A78;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 6px rgba(14, 122, 120, 0.6);
  animation: chatEyeBlink 4s infinite;
}

body.dark-mode .chatbot-eye {
  background: #00E5FF;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
}

/* Pupil shine */
.chatbot-eye::after {
  content: '';
  position: absolute;
  top: 1px;
  right: 1px;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

@keyframes chatEyeBlink {

  0%,
  92%,
  100% {
    transform: scaleY(1);
    border-radius: 50%;
  }

  95% {
    transform: scaleY(0.15);
    border-radius: 50% 50% 40% 40%;
  }
}

/* When chatbot is talking, eyes become happy arcs ^ ^ */
.assistant-trigger-btn.is-talking .chatbot-eye {
  height: 5px;
  border-radius: 5px 5px 0 0;
  background: transparent;
  border-top: 2.5px solid #0E7A78;
  box-shadow: 0 -2px 6px rgba(14, 122, 120, 0.6);
  animation: none;
}

body.dark-mode .assistant-trigger-btn.is-talking .chatbot-eye {
  border-top-color: #00E5FF;
  box-shadow: 0 -2px 6px rgba(0, 229, 255, 0.8);
}

/* Chatbot Mouth */
.chatbot-mouth-wrap {
  display: flex;
  justify-content: center;
}

.chatbot-mouth {
  width: 10px;
  height: 4px;
  background: #e74c6f;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 1px 3px rgba(231, 76, 111, 0.3);
  transition: all 0.15s ease;
}

/* Mouth animates when talking */
.assistant-trigger-btn.is-talking .chatbot-mouth {
  animation: chatMouthTalk 0.35s infinite alternate;
}

@keyframes chatMouthTalk {
  0% {
    width: 6px;
    height: 2px;
    border-radius: 0 0 4px 4px;
  }

  50% {
    width: 12px;
    height: 5px;
    border-radius: 0 0 8px 8px;
  }

  100% {
    width: 8px;
    height: 3px;
    border-radius: 0 0 5px 5px;
  }
}

/* Waving Hand Emoji */
.chatbot-wave-hand {
  position: absolute;
  bottom: -2px;
  right: -6px;
  font-size: 0.85rem;
  animation: waveHand 2.5s ease-in-out infinite;
  transform-origin: 70% 70%;
  z-index: 3;
}

@keyframes waveHand {

  0%,
  60%,
  100% {
    transform: rotate(0deg);
  }

  10% {
    transform: rotate(14deg);
  }

  20% {
    transform: rotate(-8deg);
  }

  30% {
    transform: rotate(14deg);
  }

  40% {
    transform: rotate(-4deg);
  }

  50% {
    transform: rotate(10deg);
  }
}

/* Hide chatbot face and show Close X icon when Panel is Open */
.trigger-icon-close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  color: #ffffff;
}

.assistant-trigger-btn.is-active .chatbot-face-avatar {
  opacity: 0;
  transform: scale(0.5);
}

.assistant-trigger-btn.is-active .trigger-icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Glassmorphism Chat Panel */
.assistant-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  max-width: calc(100vw - 32px);
  border-radius: 22px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Light mode glassmorphism default */
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14), 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Dark mode glassmorphism adaptation */
body.dark-mode .assistant-panel {
  background: rgba(18, 26, 36, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 212, 178, 0.14);
}

.assistant-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Assistant Header */
.assistant-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line, rgba(0, 0, 0, 0.08));
}

body.dark-mode .assistant-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.assistant-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mini Robot Avatar in Header */
.robot-avatar-mini {
  width: 38px;
  height: 38px;
  background: radial-gradient(circle at 35% 25%, #ffffff, #e2e8f0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
}

body.dark-mode .robot-avatar-mini {
  background: radial-gradient(circle at 35% 25%, #334155, #0f172a);
}

.robot-head-mini {
  width: 24px;
  height: 18px;
  background: #0f172a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.robot-eye-mini {
  width: 5px;
  height: 4px;
  border-top: 2px solid #00E5FF;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 4px #00E5FF;
}

.robot-avatar-mini .online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: #10B981;
  border: 2px solid var(--surface, #ffffff);
  border-radius: 50%;
}

.assistant-info {
  display: flex;
  flex-direction: column;
}

.assistant-info strong {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink, #1e293b);
}

body.dark-mode .assistant-info strong {
  color: #f8fafc;
}

.assistant-info .status-text {
  font-size: 0.75rem;
  color: var(--ink-soft, #64748b);
}

body.dark-mode .assistant-info .status-text {
  color: #94a3b8;
}

.assistant-close-btn {
  background: transparent;
  border: none;
  color: var(--ink-soft, #64748b);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.assistant-close-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink, #1e293b);
}

body.dark-mode .assistant-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Assistant Body */
.assistant-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Voice / Talking Indicator Bar */
.robot-talking-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--teal-dark, #0E7A78);
}

body.dark-mode .robot-talking-indicator {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.35);
  color: #38bdf8;
}

.talking-wave-bar {
  width: 3px;
  height: 10px;
  background: #00E5FF;
  border-radius: 2px;
  animation: waveBar 0.8s infinite ease-in-out alternate;
}

.talking-wave-bar:nth-child(2) {
  animation-delay: 0.25s;
}

.talking-wave-bar:nth-child(3) {
  animation-delay: 0.45s;
}

@keyframes waveBar {
  0% {
    height: 4px;
  }

  100% {
    height: 14px;
  }
}

.talking-state-label {
  font-weight: 600;
  letter-spacing: 0.3px;
}

.assistant-message-bubble {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, rgba(0, 0, 0, 0.06));
  border-radius: 16px 16px 16px 4px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.dark-mode .assistant-message-bubble {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.assistant-message-bubble p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink, #334155);
  margin: 0;
  min-height: 22px;
}

body.dark-mode .assistant-message-bubble p {
  color: #e2e8f0;
}

/* Typing cursor animation */
.typing-cursor::after {
  content: "Ã¢â€“â€¹";
  display: inline-block;
  color: var(--teal, #0E7A78);
  animation: blink 0.7s infinite;
  margin-left: 2px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Time-based Dynamic Guiding Options */
.assistant-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.assistant-opt-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  background: var(--surface, #ffffff);
  color: var(--ink, #1e293b);
  outline: none;
  text-align: left;
}

body.dark-mode .assistant-opt-btn {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.assistant-opt-btn:hover {
  transform: translateY(-2px);
  border-color: var(--teal, #0E7A78);
  background: var(--mint, rgba(14, 122, 120, 0.1));
  box-shadow: 0 4px 12px rgba(14, 122, 120, 0.15);
}

.assistant-opt-btn.primary {
  background: linear-gradient(135deg, var(--teal, #0E7A78), #00A3FF);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(14, 122, 120, 0.3);
}

.assistant-opt-btn.primary:hover {
  box-shadow: 0 6px 18px rgba(14, 122, 120, 0.45);
  transform: translateY(-2px) scale(1.01);
}

.assistant-opt-btn.call:hover {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.1);
}

.opt-icon {
  font-size: 1.05rem;
}

@media (max-width: 480px) {
  .floating-assistant-container {
    bottom: 18px;
    right: 18px;
  }

  .assistant-panel {
    right: 0;
    width: calc(100vw - 36px);
  }
}

/* =========================================================
   3D PARALLAX DEPTH LAYERS
   ========================================================= */
.3d-tilt-card,
.hero-interactive-card,
.doctor-card,
.tab-card-inner,
.services-3d-card-wrapper,
.location-card,
.testimonials-slider,
.booking-widget {
  transform-style: preserve-3d;
  will-change: transform;
}

[data-parallax-depth] {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ==========================================
 * Aceternity UI Style Ã¢â‚¬â€  Card Spotlight Effect
 * ========================================== */

.card-spotlight,
.service-card,
.location-card,
.doctor-card,
.hero-interactive-card,
.explorer-card,
.booking-widget,
.testimonial-slide {
  position: relative !important;
  overflow: hidden !important;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(34, 86, 216, 0.12);
  --spotlight-border: rgba(181, 137, 42, 0.4);
  --dot-color: rgba(34, 86, 216, 0.06);
}

body.dark-mode .card-spotlight,
body.dark-mode .service-card,
body.dark-mode .location-card,
body.dark-mode .doctor-card,
body.dark-mode .hero-interactive-card,
body.dark-mode .explorer-card,
body.dark-mode .booking-widget,
body.dark-mode .testimonial-slide {
  --spotlight-color: rgba(59, 126, 246, 0.18);
  --spotlight-border: rgba(201, 162, 74, 0.6);
  --dot-color: rgba(255, 255, 255, 0.05);
}

/* Background Micro Dot Grid Pattern (Aceternity UI CardSpotlight backdrop) */
.card-spotlight::before,
.service-card::before,
.location-card::before,
.doctor-card::before,
.hero-interactive-card::before,
.explorer-card::before,
.booking-widget::before,
.testimonial-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(var(--dot-color) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  pointer-events: none;
  opacity: 0.65;
  z-index: 1;
  transition: opacity 0.4s ease;
}

/* Spotlight Glow Overlay */
.card-spotlight .spotlight-glow,
.service-card .spotlight-glow,
.location-card .spotlight-glow,
.doctor-card .spotlight-glow,
.hero-interactive-card .spotlight-glow,
.explorer-card .spotlight-glow,
.booking-widget .spotlight-glow,
.testimonial-slide .spotlight-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(450px circle at var(--mouse-x) var(--mouse-y),
      var(--spotlight-color),
      transparent 80%);
}

/* Border Spotlight Highlight */
.card-spotlight .spotlight-border,
.service-card .spotlight-border,
.location-card .spotlight-border,
.doctor-card .spotlight-border,
.hero-interactive-card .spotlight-border,
.explorer-card .spotlight-border,
.booking-widget .spotlight-border,
.testimonial-slide .spotlight-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: 1.5px;
  background: radial-gradient(300px circle at var(--mouse-x) var(--mouse-y),
      var(--spotlight-border),
      transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.card-spotlight:hover .spotlight-glow,
.service-card:hover .spotlight-glow,
.location-card:hover .spotlight-glow,
.doctor-card:hover .spotlight-glow,
.hero-interactive-card:hover .spotlight-glow,
.explorer-card:hover .spotlight-glow,
.booking-widget:hover .spotlight-glow,
.testimonial-slide:hover .spotlight-glow,
.card-spotlight:hover .spotlight-border,
.service-card:hover .spotlight-border,
.location-card:hover .spotlight-border,
.doctor-card:hover .spotlight-border,
.hero-interactive-card:hover .spotlight-border,
.explorer-card:hover .spotlight-border,
.booking-widget:hover .spotlight-border,
.testimonial-slide:hover .spotlight-border {
  opacity: 1;
}

/* Ensure inner card content stays above the spotlight layers */
.service-card>*,
.location-card>*,
.doctor-card>*,
.hero-interactive-card>*,
.explorer-card>*,
.booking-widget>*,
.testimonial-slide>* {
  position: relative;
  z-index: 3;
}

/* ==========================================================================
   Aceternity UI Placeholders & Vanish Input Component Styles
   ========================================================================== */
.vanish-input-wrapper {
  position: relative;
  width: 100%;
  height: 48px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  display: flex;
  align-items: center;
}

.vanish-input-wrapper:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 122, 120, 0.15), var(--shadow-sm);
}

.vanish-input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink);
  position: relative;
  z-index: 10;
  outline: none;
}

.vanish-input.vanish-animating {
  color: transparent !important;
}

/* Canvas Particle Layer */
.vanish-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.vanish-canvas.is-visible {
  opacity: 1;
}

/* Animated Rotating Placeholder Overlay */
.vanish-placeholder-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 16px;
  padding-right: 16px;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.vanish-placeholder-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-soft);
  opacity: 0.65;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  will-change: transform, opacity;
}

body.dark-mode .vanish-placeholder-text {
  color: #9CA3AF;
  opacity: 0.55;
}

/* ==========================================================================
   Comprehensive Responsive System (320px – 1440px+)
   ========================================================================== */

/* --- Tamil & Language Typography Enhancements --- */
html[lang="ta"] {
  font-family: 'Noto Sans Tamil', var(--font-body);
}

html[lang="ta"] .btn,
html[lang="ta"] .chip-item,
html[lang="ta"] .time-chip,
html[lang="ta"] .loc-card-chip,
html[lang="ta"] nav.links a,
html[lang="ta"] .aceternity-tab-btn {
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

/* Prevent iOS Safari auto-zoom on form inputs */
@media (max-width: 768px) {
  input,
  select,
  textarea,
  .vanish-input {
    font-size: 16px !important;
  }
}

/* Scroll lock when mobile drawer menu is open */
body.nav-open {
  overflow: hidden !important;
  touch-action: none;
}

/* --- Responsive Viewport Adaptations --- */

/* Large Desktop & Laptop (up to 1280px) */
@media (max-width: 1280px) {
  .wrap {
    width: min(1140px, calc(100% - 48px));
  }
}

/* Tablet Landscape & Medium Screens (up to 1024px) */
@media (max-width: 1024px) {
  .wrap {
    width: min(100%, calc(100% - 40px));
  }

  .hero {
    padding: 50px 0 40px;
  }

  .hero-grid-container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero p.lede {
    max-width: 100%;
  }

  .arch-decor {
    display: none;
  }

  .location-card-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
    min-height: auto;
  }

  .location-tabs-stage {
    min-height: auto;
  }

  .location-map-wrapper {
    height: 280px;
    min-height: 240px;
  }

  .tab-card-inner {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
    min-height: auto;
  }

  .tab-card-banner {
    display: none;
  }

  .booking-widget-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Mobile & Tablet Drawer Navigation (up to 991px) */
@media (max-width: 991px) {
  .menu-toggle {
    display: flex;
  }

  header .nav {
    padding: 14px 20px;
  }

  header .nav-book-btn {
    display: none;
  }

  header .call-btn-desktop {
    display: none;
  }

  nav.links {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 68px);
    background: var(--surface);
    backdrop-filter: blur(28px) saturate(1.8);
    -webkit-backdrop-filter: blur(28px) saturate(1.8);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 28px 24px;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    z-index: 999;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }

  body.dark-mode nav.links {
    background: rgba(10, 15, 29, 0.97);
  }

  nav.links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  nav.links a {
    font-size: 1.05rem;
    padding: 14px 16px;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .call-btn-mobile {
    display: inline-flex;
    margin-top: 12px;
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .section-head h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
  }

  .doctor-grid-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-grid-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Treatment / Location / Time Chip Grids Fluid Breakpoint */
  .treatment-chips-grid,
  .location-chips-grid,
  .time-chips-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    width: 100%;
  }
}

/* Mobile Devices (up to 768px) */
@media (max-width: 768px) {
  .wrap {
    width: min(100%, calc(100% - 32px));
  }

  .hero {
    padding: 36px 0 32px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 5.5vw, 2.75rem);
  }

  .hero p.lede {
    font-size: 0.96rem;
    margin-top: 14px;
  }

  .hero-ctas {
    margin-top: 24px;
    gap: 10px;
    width: 100%;
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 28px;
    width: 100%;
  }

  .stat {
    padding: 14px 12px;
    text-align: center;
  }

  .stat .num {
    font-size: 1.5rem;
  }

  .stat .label {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }

  .section-head {
    margin-bottom: 24px;
  }

  /* Aceternity Tab Navigation Bars */
  .aceternity-tab-nav,
  .location-tab-nav {
    gap: 6px;
    padding: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    border-radius: 16px;
    width: 100%;
  }

  .aceternity-tab-btn {
    padding: 10px 16px;
    font-size: 0.84rem;
    flex-shrink: 0;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .location-tabs-stage {
    min-height: auto;
  }

  .location-card-inner {
    padding: 18px;
    border-radius: 18px;
  }

  .showcase-title {
    font-size: 1.25rem;
  }

  .location-info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .info-box {
    padding: 12px 14px;
  }

  .location-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .location-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .location-map-wrapper {
    height: 240px;
    min-height: 200px;
    border-radius: 16px;
  }

  .dual-maps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mini-map-frame iframe {
    height: 180px;
  }

  .aceternity-tabs-content-stage {
    min-height: auto;
  }

  .tab-card-inner {
    padding: 18px;
    min-height: auto;
    border-radius: 18px;
  }

  .stacked-details-grid {
    padding: 12px;
    gap: 10px;
  }

  .stacked-card-actions {
    margin-top: 16px;
  }

  .stacked-card-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .testimonial-slide {
    padding: 20px 16px;
  }

  .testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .slider-nav-btns {
    display: none;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 0.94rem;
  }

  .faq-answer {
    padding: 0 18px 16px;
    font-size: 0.88rem;
  }

  .booking-widget {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .step-indicator {
    gap: 6px;
    margin-bottom: 20px;
  }

  .step-dot {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  .form-navigation {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .form-navigation .btn {
    width: 100%;
    justify-content: center;
  }

  /* Floating UI Offsets on Mobile (Avoiding Dock Overlap) */
  .dock-wrap {
    bottom: max(16px, env(safe-area-inset-bottom));
  }

  .floating-assistant-container {
    bottom: max(84px, calc(74px + env(safe-area-inset-bottom)));
    right: 14px;
    z-index: 95;
  }

  .assistant-panel {
    width: min(380px, calc(100vw - 28px));
    max-height: min(480px, calc(80vh - 60px));
    right: 0;
    overflow-y: auto;
    border-radius: 20px;
  }
}

/* Small Mobile Devices (up to 480px) */
@media (max-width: 480px) {
  .wrap {
    width: min(100%, calc(100% - 24px));
  }

  header .nav {
    padding: 12px 14px;
  }

  .brand {
    font-size: 1.05rem;
    gap: 8px;
    max-width: 60%;
  }

  .brand > span:not(.mark) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand .mark {
    width: 32px;
    height: 32px;
  }

  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.18;
  }

  .hero .lede {
    font-size: 0.9rem;
  }

  .treatment-chips-grid,
  .location-chips-grid,
  .time-chips-grid {
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
    gap: 8px;
  }

  .chip-item,
  .loc-card-chip,
  .time-chip {
    padding: 10px 12px;
    font-size: 0.82rem;
    border-radius: 12px;
  }

  .assistant-header {
    padding: 12px 14px;
  }

  .assistant-body {
    padding: 14px;
  }
}

/* Ultra Small Mobile Devices (up to 360px) */
@media (max-width: 360px) {
  .wrap {
    width: min(100%, calc(100% - 16px));
  }

  .hero h1 {
    font-size: 1.45rem;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.78rem;
  }

  .chip-item,
  .loc-card-chip,
  .time-chip {
    font-size: 0.78rem;
    padding: 8px 10px;
  }

  .floating-assistant-container {
    bottom: max(78px, calc(68px + env(safe-area-inset-bottom)));
    right: 8px;
  }

  .assistant-panel {
    width: calc(100vw - 16px);
  }

  .chatbot-speech-bubble {
    display: none;
  }
}


/* ==========================================================================
   Apple Liquid Glass Floating Dock Navigation (iOS 18 / macOS Sequoia Glass)
   ========================================================================== */

.dock-wrap {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 99;
  pointer-events: none;
}
.dock-wrap > * { 
  pointer-events: auto; 
}

/* Apple Liquid Glass Desktop Dock Bar */
.dock {
  display: none;
  align-items: flex-end;
  gap: 10px;
  height: 66px;
  padding: 0 16px;
  border-radius: 999px;
  /* Ultra-smooth Apple Liquid Glass Fill */
  background: linear-gradient(
    135deg, 
    rgba(255, 255, 255, 0.55) 0%, 
    rgba(255, 255, 255, 0.22) 40%, 
    rgba(255, 255, 255, 0.42) 100%
  );
  backdrop-filter: blur(28px) saturate(210%) contrast(105%);
  -webkit-backdrop-filter: blur(28px) saturate(210%) contrast(105%);
  /* Apple Prismatic Glint & Rim Light Shading */
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1.5px 2px 0 rgba(0, 0, 0, 0.08),
    0 20px 40px -10px rgba(0, 0, 0, 0.22),
    0 0 25px rgba(14, 122, 120, 0.12);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

body.dark-mode .dock {
  background: linear-gradient(
    135deg, 
    rgba(255, 255, 255, 0.14) 0%, 
    rgba(255, 255, 255, 0.04) 45%, 
    rgba(255, 255, 255, 0.09) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1.5px 2px 0 rgba(0, 0, 0, 0.5),
    0 20px 50px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(20, 184, 166, 0.18);
}

@media (min-width: 820px) { 
  .dock { display: flex; } 
}

/* Liquid Glass Dock Icon Buttons */
.dock-item {
  position: relative;
  width: 42px;
  height: 42px;
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%);
  color: var(--teal-dark, #0e7a78);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.7),
    0 4px 12px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: width, height, transform;
}

body.dark-mode .dock-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: #5eead4;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

.dock-item:hover,
.dock-item.is-active {
  background: linear-gradient(135deg, #0e7a78 0%, #14b8a6 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 
    inset 0 1.5px 1px rgba(255, 255, 255, 0.6),
    0 8px 20px rgba(14, 122, 120, 0.4);
  transform: translateY(-2px);
}

body.dark-mode .dock-item:hover,
body.dark-mode .dock-item.is-active {
  background: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%);
  color: #0f172a;
  border-color: #5eead4;
  box-shadow: 
    inset 0 1.5px 1px rgba(255, 255, 255, 0.8),
    0 8px 24px rgba(45, 212, 191, 0.5);
}

.dock-item svg {
  width: 46%;
  height: 46%;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.dock-item:hover svg {
  transform: scale(1.1);
}

/* Tooltip Pill Label */
.dock-item .dock-label {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.75) 100%);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 10px 25px rgba(0, 0, 0, 0.15);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  pointer-events: none;
}

body.dark-mode .dock-item .dock-label {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.5);
}

.dock-item:hover .dock-label {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* Liquid Separator Line */
.dock-sep {
  width: 1.5px;
  height: 28px;
  margin: 0 4px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(0, 0, 0, 0.1) 100%);
  border-radius: 1px;
}

body.dark-mode .dock-sep {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 100%);
}

/* CTA Button in Dock */
.dock-item.dock-cta {
  background: linear-gradient(135deg, #0e7a78 0%, #06b6d4 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 
    inset 0 1.5px 1px rgba(255, 255, 255, 0.6),
    0 6px 18px rgba(6, 182, 212, 0.35);
}

.dock-item.dock-cta:hover {
  background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
  box-shadow: 
    inset 0 1.5px 1px rgba(255, 255, 255, 0.8),
    0 10px 25px rgba(6, 182, 212, 0.5);
}

/* Mobile Apple Liquid Glass Dock */
.dock-mobile { 
  display: block; 
}
@media (min-width: 820px) { 
  .dock-mobile { display: none; } 
}

.dock-mobile-toggle {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(135deg, #0e7a78 0%, #06b6d4 100%);
  color: #ffffff;
  box-shadow: 
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.7),
    0 12px 30px rgba(14, 122, 120, 0.4);
  backdrop-filter: blur(20px);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-mobile-toggle:active {
  transform: scale(0.92);
}

.dock-mobile-toggle svg { 
  width: 24px; 
  height: 24px; 
}

.dock-mobile-list {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
}

.dock-mobile-list[hidden] { 
  display: none; 
}

.dock-mobile-list .dock-item {
  margin: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    0 8px 20px rgba(0, 0, 0, 0.15);
  animation: dock-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

body.dark-mode .dock-mobile-list .dock-item {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    0 8px 25px rgba(0, 0, 0, 0.5);
}

.dock-mobile-list .dock-item .dock-label {
  bottom: 50%;
  left: auto;
  right: calc(100% + 12px);
  transform: translateY(50%);
  opacity: 1;
  visibility: visible;
}

@keyframes dock-pop { 
  from { 
    opacity: 0; 
    transform: translateY(14px) scale(0.8); 
  } 
}

/* Header nav links hide on desktop as dock is primary */
@media (min-width: 820px) {
  header .nav .links { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .dock-item { transition: none; }
  .dock-mobile-list .dock-item { animation: none; }
}