:root {
  /* Default Clean Medical Blue & Crisp White Theme */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-alt: #f0f7ff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-dark-section: #0a192f;
  
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-heading: #07172c;
  --text-inverse: #ffffff;

  --primary-blue: #0056d2;
  --primary-blue-hover: #0043a8;
  --primary-navy: #0a192f;
  --accent-cyan: #0284c7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.25);
  --accent-ice: #e0f2fe;
  --accent-gold: #d97706;
  --accent-teal: #0d9488;
  
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-blue: rgba(0, 86, 210, 0.16);
  --border-glow: rgba(2, 132, 199, 0.35);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 4px 12px rgba(10, 25, 47, 0.04);
  --shadow-md: 0 10px 30px rgba(10, 25, 47, 0.07);
  --shadow-lg: 0 20px 45px rgba(10, 25, 47, 0.1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-primary: #070d18;
  --bg-secondary: #0b1526;
  --bg-card: #0f1c33;
  --bg-card-alt: #13233f;
  --bg-card-hover: #162a4d;
  --bg-glass: rgba(11, 21, 38, 0.9);
  --bg-dark-section: #050a12;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-heading: #ffffff;
  --text-inverse: #070d18;

  --primary-blue: #38bdf8;
  --primary-blue-hover: #0284c7;
  --primary-navy: #070d18;
  --accent-cyan: #38bdf8;
  --accent-ice: rgba(56, 189, 248, 0.1);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-blue: rgba(56, 189, 248, 0.25);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.font-light {
  font-weight: 300;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 86, 210, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* Containers & Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.section-padding {
  padding: 85px 0;
}

.page-header-banner {
  padding: 130px 0 60px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #edf5ff 100%);
  text-align: center;
}

[data-theme="dark"] .page-header-banner {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #081426 100%);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: var(--accent-ice);
  color: var(--primary-blue);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  border: 1px solid var(--border-blue);
}

[data-theme="dark"] .section-tag {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.75;
  font-weight: 300;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.text-blue-gradient {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Header Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.top-announcement-bar {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 0.45rem 0;
  font-size: 0.82rem;
  font-weight: 400;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-items {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #cbd5e1;
}

.top-bar-item strong {
  color: #ffffff;
  font-weight: 500;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #003e9c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 86, 210, 0.25);
  letter-spacing: -0.04em;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-blue);
}

/* 4 Simple Navigation Links: Home, About, Services, Contact */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: var(--accent-ice);
  color: var(--primary-blue);
  border-color: var(--border-blue);
}

/* Modern Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 86, 210, 0.3);
}

.btn-primary:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 86, 210, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-heading);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: var(--accent-ice);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.02rem;
}

/* Cards */
.hospital-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.hospital-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-blue);
}

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--accent-ice);
  color: var(--primary-blue);
}

/* Quick Booking Strip */
.quick-booking-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 2rem;
  margin-top: -45px;
  position: relative;
  z-index: 10;
}

.booking-bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.bar-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bar-field-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.bar-select, .bar-input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  background: var(--bg-primary);
  color: var(--text-heading);
  outline: none;
  transition: all var(--transition-fast);
}

.bar-select:focus, .bar-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.15);
}

/* Metrics strip */
.metrics-strip {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 3rem 0;
  border-radius: var(--radius-xl);
  margin-top: 4rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.metric-number {
  font-size: 2.65rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.metric-text {
  font-size: 0.92rem;
  color: #94a3b8;
  font-weight: 300;
}
/* Hero Section */
.hero-section {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #edf5ff 100%);
  overflow: hidden;
}

[data-theme="dark"] .hero-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #071324 100%);
}

.hero-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

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

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  color: var(--text-heading);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 580px;
  font-weight: 300;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-trust-pills {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.trust-icon {
  color: var(--primary-blue);
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-card);
  height: 520px;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-stat-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-ice);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* About N Square Dentistry Section */
.about-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.about-image-collage {
  position: relative;
}

.about-main-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 440px;
}

.about-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge-card {
  position: absolute;
  bottom: -25px;
  left: -25px;
  background: var(--primary-blue);
  color: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.badge-card-number {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.badge-card-text {
  font-size: 0.88rem;
  font-weight: 600;
}

/* Facility Showcase Grid */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.facility-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.facility-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-blue);
}

.facility-img-wrap {
  height: 220px;
  overflow: hidden;
}

.facility-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.facility-card:hover .facility-img-wrap img {
  transform: scale(1.06);
}

.facility-content {
  padding: 1.75rem;
}

.facility-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}

.facility-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Doctor Profiles */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.doctor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
}

.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-blue);
}

.doctor-img-frame {
  height: 100%;
  min-height: 340px;
}

.doctor-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.doctor-name {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--text-heading);
}

.doctor-specialty {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}

.doctor-bio {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.doctor-action-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}
/* Services Section */
.services-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.services-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.service-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--accent-ice);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-heading);
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.service-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-blue);
}

/* 3D Visualizer Sub-Section */
.services-3d-lab {
  background: var(--primary-navy);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 4rem;
  margin-bottom: 5rem;
  box-shadow: var(--shadow-lg);
}

.lab-header {
  text-align: center;
  margin-bottom: 3rem;
}

.treatment-nav-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.treatment-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.treatment-tab-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.treatment-tab-btn.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 86, 210, 0.5);
}

.treatment-workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.treatment-3d-stage {
  height: 480px;
  background: radial-gradient(circle, rgba(15, 28, 51, 0.8) 0%, rgba(7, 13, 24, 0.95) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.treatment-canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}

.treatment-details-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.treatment-title {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.treatment-tagline {
  color: #94a3b8;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.treatment-desc {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.treatment-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.spec-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.spec-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  display: block;
}

.spec-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.treatment-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.invest-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #38bdf8;
}
/* Before & After Section */
.before-after-section {
  padding: 100px 0;
  position: relative;
}

.ba-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.ba-slider-stage {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  user-select: none;
  cursor: ew-resize;
}

.ba-image-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
  pointer-events: none;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #ffffff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.8);
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050e18;
}

.ba-pill-badge {
  position: absolute;
  top: 20px;
  z-index: 5;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ba-badge-before { left: 20px; }
.ba-badge-after { right: 20px; }

/* Shade Picker Panel */
.shade-selector-panel {
  display: flex;
  flex-direction: column;
}

.shade-palette-group {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.shade-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.shade-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: var(--shadow-sm);
}

.swatch-bl1 { background-color: #ffffff; box-shadow: 0 0 10px rgba(255,255,255,0.6); }
.swatch-bl2 { background-color: #f6f8fb; }
.swatch-a1 { background-color: #f1ebd9; }
.swatch-a2 { background-color: #ede2c5; }
.swatch-a3 { background-color: #e5d4ab; }
.swatch-a4 { background-color: #dac294; }

.shade-code {
  font-size: 0.85rem;
  font-weight: 700;
}

.shade-btn:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.shade-btn.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.shade-info-display-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1rem;
}
/* Smile Makeover Cost Estimator */
.estimator-section {
  padding: 100px 0;
  position: relative;
}

.estimator-box {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem;
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.estimator-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.estimator-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.estimator-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
  box-shadow: var(--shadow-glow);
  transition: width var(--transition-smooth);
}

.estimator-step {
  display: none;
}

.estimator-step.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-question-title {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}

.step-question-desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.quiz-options-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.quiz-option-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.quiz-option-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.quiz-option-card.selected {
  border-color: var(--accent-cyan);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(45, 212, 191, 0.06));
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.quiz-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
}

.quiz-card-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.quiz-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* Results Display */
.estimator-results-box {
  display: none;
  text-align: center;
  padding: 1rem 0;
}

.result-celebrate-badge {
  display: inline-flex;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent-teal);
  border: 1px solid var(--accent-teal);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.calc-price-display {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.calc-monthly-sub {
  font-size: 1.15rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.calc-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.calc-summary-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.contact-item-group {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2.5rem 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-ice);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-lbl {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.4;
}

.contact-val-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.hospital-hours-banner {
  background: var(--accent-ice);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}

.hours-title {
  font-weight: 700;
  color: var(--primary-blue);
  font-size: 0.95rem;
}

.hours-time {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.9rem;
}
/* VIP Booking Modal */
.booking-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.booking-modal-container {
  width: 100%;
  max-width: 760px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), var(--shadow-glow);
  padding: 2.5rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.booking-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.booking-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-heading);
}

.booking-steps-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.booking-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.booking-step-indicator.active .step-circle {
  background: var(--accent-cyan);
  color: #050e18;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.booking-step-indicator.completed .step-circle {
  background: var(--accent-teal);
  color: #050e18;
  border-color: var(--accent-teal);
}

.booking-step-pane {
  display: none;
}

.booking-step-pane.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

/* Service Options */
.service-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.booking-service-option, .booking-doctor-option {
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.booking-service-option:hover, .booking-doctor-option:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.booking-service-option.selected, .booking-doctor-option.selected {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

/* Time slots */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.time-slot-btn {
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.time-slot-btn:hover {
  border-color: var(--accent-cyan);
}

.time-slot-btn.selected {
  background: var(--accent-cyan);
  color: #050e18;
  border-color: var(--accent-cyan);
}

/* Form Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-heading);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-heading);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
  background: rgba(255, 255, 255, 0.07);
}

/* Confirmation Pane */
.confirmation-pane {
  text-align: center;
  padding: 1rem 0;
}

.confirm-check-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  color: #050e18;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  box-shadow: var(--shadow-glow);
}

.booking-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}
/* AI Virtual Concierge */
.concierge-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
}

.concierge-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.concierge-toggle-btn:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--accent-cyan);
}

.concierge-avatar-pulse {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #050e18;
}

.concierge-chat-window {
  position: absolute;
  bottom: 4.5rem;
  right: 0;
  width: 380px;
  height: 520px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(25px);
}

.concierge-chat-window.active {
  display: flex;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-header {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble {
  display: flex;
  gap: 0.6rem;
  max-width: 85%;
}

.user-bubble {
  align-self: flex-end;
}

.user-bubble .bubble-content {
  background: var(--accent-cyan);
  color: #050d18;
  border-radius: 16px 16px 2px 16px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.bot-bubble {
  align-self: flex-start;
}

.bot-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.bot-bubble .bubble-content {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 16px 16px 16px 2px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.chat-action-btn {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--accent-cyan);
  color: #050d18;
  font-weight: 700;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  transition: all var(--transition-fast);
}

.chat-action-btn:hover {
  transform: scale(1.04);
}

.concierge-chips-wrap {
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  border-top: 1px solid var(--border-subtle);
}

.concierge-chip {
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.concierge-chip:hover {
  border-color: var(--accent-cyan);
  color: var(--text-heading);
}

.chat-input-row {
  padding: 0.85rem 1rem;
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.chat-input-field {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem;
  color: var(--text-heading);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #050d18;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* Treatment Explorer Section */
.treatment-section {
  padding: 100px 0;
  position: relative;
}

.treatment-nav-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.treatment-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.treatment-tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-heading);
}

.treatment-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(45, 212, 191, 0.15) 100%);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

.treatment-workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.treatment-3d-stage {
  position: relative;
  height: 520px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.8) 0%, rgba(7, 10, 16, 0.95) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.treatment-canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}

.treatment-canvas:active {
  cursor: grabbing;
}

.treatment-details-card {
  padding: 2.5rem;
}

.treatment-card-header {
  margin-bottom: 1.75rem;
}

.treatment-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid var(--border-glow);
  margin-bottom: 0.75rem;
}

.treatment-title {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.treatment-tagline {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.treatment-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.treatment-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.spec-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.spec-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
}

.treatment-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.highlight-bullet {
  color: var(--accent-cyan);
  font-size: 0.9rem;
}

.treatment-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.treatment-investment-box {
  display: flex;
  flex-direction: column;
}

.invest-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.invest-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-cyan);
}
/* 3D Anatomical Jaw Chart */
.jaw-section {
  padding: 100px 0;
  position: relative;
}

.jaw-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.jaw-viewport-card {
  position: relative;
  height: 580px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.9) 0%, rgba(7, 10, 16, 0.98) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.jaw-canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}

.jaw-canvas:active {
  cursor: grabbing;
}

.quadrant-filter-bar {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.quadrant-tab {
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.quadrant-tab:hover {
  color: var(--text-heading);
}

.quadrant-tab.active {
  background: var(--accent-cyan);
  color: #050e18;
}

.jaw-hint-badge {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.5);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

/* Teeth Quick Selector Grid */
.teeth-selector-wrap {
  margin-top: 1.5rem;
}

.teeth-quick-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.45rem;
}

.tooth-chip {
  padding: 0.5rem 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-fast);
}

.tooth-chip:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  transform: translateY(-2px);
}

.tooth-chip.active {
  background: linear-gradient(135deg, #f6d365, #fda085);
  border-color: #f6d365;
  color: #1f1402;
  box-shadow: var(--shadow-gold-glow);
}

.chip-num {
  font-size: 0.82rem;
  font-weight: 700;
}

.chip-type {
  font-size: 0.62rem;
  opacity: 0.75;
}

/* Tooth Details Diagnostic Card */
.tooth-card-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tooth-id-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(246, 211, 101, 0.15);
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
}

.tooth-card-name {
  font-size: 1.85rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.tooth-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.tooth-meta-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.tooth-meta-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.tooth-meta-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
}

.rec-box {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
}

.rec-lbl {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.rec-val {
  font-size: 1.15rem;
  font-weight: 600;
}
/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-grid, .treatment-workspace-grid, .jaw-layout-grid, .ba-layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-main-title {
    font-size: 3rem;
  }

  .hero-3d-wrapper {
    height: 480px;
  }

  .treatment-3d-stage, .jaw-viewport-card {
    height: 440px;
  }

  .teeth-quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero-main-title {
    font-size: 2.35rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-controls-dock {
    width: 92%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .ba-slider-stage {
    height: 320px;
  }

  .quiz-options-group {
    grid-template-columns: 1fr;
  }

  .estimator-box {
    padding: 1.5rem;
  }

  .booking-modal-container {
    padding: 1.5rem;
  }

  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .concierge-chat-window {
    width: calc(100vw - 2.5rem);
    right: -1rem;
    height: 480px;
  }
}
