/* ==========================================================================
   Tooth Care Dental & Implants — Ultra-Modern Luxury Design System
   Full-Size Clinic Hero, 5 Premier Treatments, Rich Dynamic Animations
   Color Palette: Deep Chocolate Brown (#43211e, #321614), Warm Cream (#fbf9f7),
   Warm Gold (#c88d58), and WhatsApp Emerald (#25D366)
   ========================================================================== */

:root {
  --primary: #43211e;
  --primary-dark: #26110f;
  --primary-light: #5d2e2a;
  --primary-soft: #793e38;

  --accent-gold: #c88d58;
  --accent-gold-light: #f5e7db;
  --accent-gold-hover: #b57a46;

  --wa-green: #25d366;
  --wa-green-dark: #1da851;
  --wa-green-soft: #eaf9ef;

  --bg-body: #fbf9f7;
  --bg-card: #ffffff;
  --bg-warm: #f6efe9;
  --bg-cream: #efe5dc;

  --border-subtle: rgba(67, 33, 30, 0.12);
  --border-medium: rgba(67, 33, 30, 0.22);

  --text-primary: #190d0b;
  --text-secondary: #382421;
  --text-muted: #573e3b;
  --text-white: #ffffff;

  --shadow-sm: 0 4px 14px rgba(67, 33, 30, 0.08);
  --shadow-md: 0 10px 30px rgba(67, 33, 30, 0.12);
  --shadow-lg: 0 20px 48px rgba(67, 33, 30, 0.16);
  --shadow-hover: 0 25px 60px rgba(67, 33, 30, 0.22);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 64px;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. SCROLL PROGRESS INDICATOR
   ========================================================================== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold), #ffd3ad, var(--wa-green));
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   2. TOP ANNOUNCEMENT BAR (Disabled / Hidden as requested)
   ========================================================================== */
.top-bar {
  display: none !important;
}

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

.top-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #edd9cc;
  font-weight: 500;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 8px #25d366;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.top-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-link {
  color: #ffffff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-link:hover {
  color: var(--accent-gold);
}

.top-btn-modal {
  background: rgba(200, 141, 88, 0.25);
  color: var(--accent-gold-light);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-full);
  padding: 2px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.top-btn-modal:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
}

/* ==========================================================================
   3. NAVBAR (Floating Glass Style)
   ========================================================================== */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.navbar-wrapper.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-medium);
  padding: 4px;
  transition: var(--transition);
}

.logo-brand:hover .logo-mark {
  transform: rotate(-4deg) scale(1.06);
  box-shadow: 0 0 14px rgba(200, 141, 88, 0.4);
}

.logo-svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: var(--accent-gold);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

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

.nav-item:hover,
.nav-item.active {
  color: var(--primary-dark);
}

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

.nav-cta-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-pill-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(67, 33, 30, 0.2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-pill-nav:hover {
  background: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(67, 33, 30, 0.3);
}

.btn-pill-nav i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.btn-pill-nav:hover i {
  transform: translateX(3px);
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-btn span {
  width: 100%;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  display: block;
  animation: slide-down 0.3s ease-out;
}

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

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
}

.mobile-item i {
  color: var(--primary);
  width: 20px;
}

.mobile-drawer-contact {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.btn-mobile-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ==========================================================================
   4. FULL-SIZE HERO SECTION WITH CLINIC PHOTO
   ========================================================================== */
.hero-fullscreen-section {
  position: relative;
  width: 100%;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* Ken Burns Slow Cinematic Zoom Animation */
.hero-kenburns-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: kenBurnsZoom 24s ease-in-out infinite alternate;
}

@keyframes kenBurnsZoom {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(-1%, -1%); }
  100% { transform: scale(1.03) translate(1%, 0.5%); }
}

.hero-cinematic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    100deg,
    rgba(35, 16, 14, 0.96) 0%,
    rgba(48, 22, 19, 0.91) 45%,
    rgba(60, 28, 25, 0.65) 78%,
    rgba(43, 19, 17, 0.35) 100%
  );
  z-index: 2;
}

.hero-ambient-glow {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 141, 88, 0.15) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 2;
}

.hero-inner-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 24px;
}

.hero-text-wrapper {
  max-width: 720px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 141, 88, 0.24);
  border: 1px solid var(--accent-gold);
  color: #faede2;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}

.animate-badge-pulse {
  animation: badge-glow 3s infinite alternate;
}

@keyframes badge-glow {
  0% { border-color: rgba(200, 141, 88, 0.5); box-shadow: 0 0 10px rgba(200, 141, 88, 0.2); }
  100% { border-color: rgba(200, 141, 88, 1); box-shadow: 0 0 20px rgba(200, 141, 88, 0.45); }
}

.hero-headline {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.serif-gradient {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(90deg, #fce9da 0%, #e2a875 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead-text {
  font-size: 1.15rem;
  color: #f7e8de;
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 620px;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.btn-hero-wa {
  background: linear-gradient(135deg, var(--wa-green) 0%, var(--wa-green-dark) 100%);
  color: #ffffff;
  padding: 15px 32px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-hero-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(37, 211, 102, 0.55);
  color: #ffffff;
}

.btn-hero-wa i {
  font-size: 1.35rem;
}

.btn-hero-phone {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 15px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-hero-phone:hover {
  background: #ffffff;
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.hero-stats-ribbon {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
}

.stat-digit {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.stat-text {
  font-size: 0.8rem;
  color: #ecd5c4;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-line-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
}

/* Floating Glass Badges Stack in Hero */
.hero-floating-badges-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.floating-badge-glass {
  background: rgba(43, 20, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  min-width: 250px;
}

.f-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.f-badge-icon.gold-bg {
  background: var(--accent-gold);
  color: var(--primary-dark);
}

.f-badge-icon.brown-bg {
  background: rgba(255, 255, 255, 0.15);
  color: #faede2;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.floating-badge-glass strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.floating-badge-glass small {
  font-size: 0.78rem;
  color: #ebd3c2;
}

/* Float Animations */
.animate-float-slow {
  animation: float-badge 4s ease-in-out infinite;
}

.animate-float-delay {
  animation: float-badge 4.5s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes float-badge {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* ==========================================================================
   5. CONTINUOUS INFINITE TRUST MARQUEE
   ========================================================================== */
.trust-marquee-wrapper {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 14px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 36px;
  animation: marqueeScroll 28s linear infinite;
}

.trust-marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f7e6d9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.marquee-item i {
  color: var(--accent-gold);
  font-size: 0.85rem;
}

/* ==========================================================================
   6. 5 CORE PREMIER TREATMENTS (DARK LUXURY PAGE & SLOW INFINITE VERTICAL STREAM)
   ========================================================================== */
.treatments-section.dark-treatments-section {
  background: #0d0807 !important;
  position: relative;
  overflow: hidden;
  padding: 85px 0 95px 0;
}

.dark-treatments-bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(ellipse 70% 35% at 50% 8%, rgba(200, 141, 88, 0.16) 0%, transparent 70%),
    radial-gradient(circle 400px at 10% 75%, rgba(67, 33, 30, 0.35) 0%, transparent 60%),
    radial-gradient(circle 350px at 90% 45%, rgba(200, 141, 88, 0.12) 0%, transparent 55%);
}

.dark-treatments-section .container {
  position: relative;
  z-index: 1;
}

.dark-pill {
  background: rgba(200, 141, 88, 0.16) !important;
  color: #e5ab75 !important;
  border: 1px solid rgba(200, 141, 88, 0.35) !important;
  box-shadow: 0 0 15px rgba(200, 141, 88, 0.15);
}

.dark-title {
  color: #ffffff !important;
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

.dark-subtitle {
  color: #c9bfb5 !important;
  max-width: 620px;
  margin: 0 auto;
}

/* Control Bar */
.vertical-scroll-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 920px;
  margin: 24px auto 14px auto;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
  gap: 10px;
}

.v-scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e5ab75;
}

.v-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: vPulseSlow 2s infinite ease-in-out;
}

@keyframes vPulseSlow {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.v-scroll-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-v-ctrl {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-v-ctrl:hover {
  background: var(--accent-gold);
  color: #150c0a;
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

/* Vertical Treatments Viewport with Top & Bottom Fade Masks */
.vertical-treatments-viewport {
  height: 720px;
  max-width: 940px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  padding: 12px 10px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.vertical-treatments-track {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: vTreatmentsInfiniteSlow 50s linear infinite;
  will-change: transform;
}

.vertical-treatments-track:hover {
  animation-play-state: paused !important;
}

@keyframes vTreatmentsInfiniteSlow {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Individual Vertical Treatment Card with Large Full-Size Media */
.treatment-vertical-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 26px;
  align-items: center;
  background: linear-gradient(135deg, rgba(28, 19, 17, 0.95) 0%, rgba(18, 12, 11, 0.95) 100%);
  border: 1.5px solid rgba(200, 141, 88, 0.28);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.treatment-vertical-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 22px 55px rgba(200, 141, 88, 0.24), 0 0 0 1px rgba(200, 141, 88, 0.4);
  transform: translateY(-4px) scale(1.01);
}

/* Big Full-Size Media Column */
.treatment-card-media-col {
  width: 100%;
}

.treatment-large-media-box {
  width: 100%;
  height: 250px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
  background: #18110f;
}

.treatment-fullsize-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.treatment-vertical-card:hover .treatment-fullsize-img {
  transform: scale(1.08);
}

.treatment-media-overlay-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  background: linear-gradient(to top, rgba(13, 8, 7, 0.85) 0%, transparent 100%);
  pointer-events: none;
}

.media-feature-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(13, 8, 7, 0.88);
  color: #f5ebe0;
  border: 1px solid rgba(200, 141, 88, 0.4);
  backdrop-filter: blur(8px);
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.media-feature-tag i {
  color: var(--accent-gold);
}

/* Card Content Column */
.treatment-card-content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.treatment-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
  flex-wrap: wrap;
  gap: 6px;
}

.dark-badge {
  color: var(--accent-gold) !important;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.treatment-sitting-tag {
  font-size: 0.72rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dark-card-title {
  font-size: 1.35rem !important;
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.3;
  margin: 0 !important;
}

.dark-card-desc {
  font-size: 0.88rem !important;
  color: #d1c7bc !important;
  line-height: 1.55;
  margin: 0 !important;
  min-height: auto !important;
}

.dark-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 10px 0;
  padding: 0;
}

.dark-perks li {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f5ede4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dark-perks li i {
  color: #22c55e !important;
  font-size: 0.85rem;
}

.treatment-card-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.treatment-card-footer .btn-treatment-wa {
  width: auto;
  min-width: 190px;
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  color: #ffffff;
  border: 1px solid rgba(74, 222, 128, 0.35);
  box-shadow: 0 4px 14px rgba(27, 94, 32, 0.35);
}

.treatment-card-footer .btn-treatment-wa:hover {
  background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
  border-color: #4ade80;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

.treatment-footer-hint {
  font-size: 0.76rem;
  color: #d5cec7;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 820px) {
  .vertical-treatments-viewport {
    height: 640px;
  }
  .treatment-vertical-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  .treatment-large-media-box {
    height: 220px;
  }
  .treatment-card-footer .btn-treatment-wa {
    width: 100%;
  }
}

.btn-treatment-wa {
  width: 100%;
  background: var(--bg-warm);
  color: var(--primary);
  border: 1px solid var(--border-medium);
  padding: 11px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-treatment-wa:hover {
  background: var(--wa-green);
  color: #ffffff;
  border-color: var(--wa-green);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   7. WHY PATIENTS CHOOSE US
   ========================================================================== */
.why-choose-section {
  background: var(--bg-warm);
}

.why-choose-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-features-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.why-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.why-card:hover {
  transform: translateX(6px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.why-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-warm);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid var(--border-medium);
  transition: var(--transition);
}

.why-card:hover .why-icon-box {
  background: var(--primary);
  color: #ffffff;
}

.why-card-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

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

/* Right Collage */
.visual-collage-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.collage-main-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.collage-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.collage-main-card:hover .collage-img-main {
  transform: scale(1.04);
}

.collage-overlay-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(50, 22, 20, 0.88);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.collage-overlay-tag i {
  color: var(--accent-gold);
}

.collage-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.collage-sub-card {
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.collage-img-sub {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.collage-sub-card:hover .collage-img-sub {
  transform: scale(1.05);
}

/* ==========================================================================
   8. PATIENT JOURNEY (Your Visit, Made Simple)
   ========================================================================== */
.journey-section {
  background: #ffffff;
}

.journey-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.step-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--accent-gold-light);
  color: var(--primary-dark);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--bg-warm);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
  border: 1px solid var(--border-medium);
  transition: var(--transition);
}

.step-card:hover .step-icon {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

.step-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   9. DOCTORS / SPECIALISTS
   ========================================================================== */
.doctors-section {
  background: var(--bg-body);
}

.doctors-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 36px;
  max-width: 980px;
  margin: 0 auto;
}

.doctor-profile-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.doctor-profile-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-hover);
}

.doc-photo-frame {
  position: relative;
  width: 100%;
  height: 330px;
  overflow: hidden;
  background: var(--bg-warm);
}

.doc-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.doctor-profile-card:hover .doc-photo-img {
  transform: scale(1.04);
}

.doc-badge-pill {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(43, 23, 21, 0.88);
  color: #f7e6d9;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.doc-content-info {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.doc-title-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.doc-qualification {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.doc-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}

.doc-action-buttons {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.btn-doc-phone {
  flex: 1;
  background: var(--primary);
  color: #ffffff;
  padding: 11px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-doc-phone:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

.btn-doc-whatsapp {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
}

.btn-doc-whatsapp:hover {
  background: var(--wa-green-dark);
  transform: scale(1.08);
}

/* ==========================================================================
   10. INTERACTIVE APPOINTMENT SECTION
   ========================================================================== */
.appointment-modern-section {
  background: var(--bg-warm);
}

.appointment-card-wrapper {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
}

.appointment-form-side {
  padding: 44px 40px;
}

.form-header-box {
  margin-bottom: 24px;
}

.form-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wa-green-dark);
  background: var(--wa-green-soft);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.form-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: 6px;
}

.form-subtext {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.modern-booking-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-field-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.input-field-group input,
.input-field-group select,
.input-field-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-primary);
  background: #ffffff;
  outline: none;
  transition: var(--transition);
}

.input-field-group input:focus,
.input-field-group select:focus,
.input-field-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 33, 30, 0.1);
}

.btn-confirm-wa {
  width: 100%;
  background: linear-gradient(135deg, var(--wa-green) 0%, var(--wa-green-dark) 100%);
  color: #ffffff;
  padding: 15px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
  margin-top: 6px;
  position: relative;
  overflow: hidden;
}

.btn-confirm-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

.btn-confirm-wa i {
  font-size: 1.35rem;
}

/* Visual Side */
.appointment-visual-side {
  background: var(--primary-dark);
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.visual-img-container {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.consult-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consult-side-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(50, 22, 20, 0.2) 0%, rgba(50, 22, 20, 0.95) 100%);
}

.consult-info-panel {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.consult-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.consult-info-item i {
  color: var(--accent-gold);
  font-size: 1.15rem;
  margin-top: 3px;
  width: 20px;
  text-align: center;
}

.consult-info-item strong {
  font-size: 0.92rem;
  color: #ffffff;
  display: block;
}

.consult-info-item p {
  font-size: 0.85rem;
  color: #d8c2bd;
}

.consult-info-item a {
  color: var(--accent-gold-light);
  font-weight: 600;
}

.consult-info-item a:hover {
  color: var(--accent-gold);
}

.sunday-tag {
  color: var(--accent-gold);
  font-weight: 700;
}

/* ==========================================================================
   11. MODERN FOOTER
   ========================================================================== */
.modern-footer {
  background: var(--primary-dark);
  color: #ffffff;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo-svg {
  width: 40px;
  height: 40px;
}

.footer-brand-logo h3 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.footer-brand-logo span {
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--accent-gold-light);
  font-weight: 700;
}

.footer-summary {
  font-size: 0.86rem;
  color: #cfb7b2;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-social-icons {
  display: flex;
  gap: 10px;
}

.footer-social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
}

.footer-social-icons a:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.footer-column h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 6px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-column ul a {
  font-size: 0.88rem;
  color: #cfb7b2;
}

.footer-column ul a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-contact-text {
  font-size: 0.86rem;
  color: #cfb7b2;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-text i {
  color: var(--accent-gold);
}

.footer-bottom-bar {
  padding: 20px 0;
  font-size: 0.82rem;
  color: #9e8783;
}

.footer-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   12. FLOATING ACTION BUTTONS & MOBILE BOTTOM BAR
   ========================================================================== */
.floating-whatsapp-action {
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: 998;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
}

.floating-whatsapp-action:hover {
  transform: scale(1.1);
  background: var(--wa-green-dark);
}

.floating-tip {
  position: absolute;
  right: 68px;
  white-space: nowrap;
  background: var(--primary-dark);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.floating-whatsapp-action:hover .floating-tip {
  opacity: 1;
  right: 74px;
}

/* Mobile Sticky Action Bar */
.mobile-sticky-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid var(--border-medium);
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
}

.mobile-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.mobile-bar-btn i {
  font-size: 1.15rem;
}

.mobile-bar-btn.btn-pill-book {
  background: var(--wa-green);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.mobile-bar-btn.btn-pill-book i {
  font-size: 1.25rem;
}

/* ==========================================================================
   13. QR CODE / MOBILE LINK MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 23, 21, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow-hover);
  position: relative;
  animation: modal-pop 0.3s ease;
}

@keyframes modal-pop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--bg-warm);
  border: none;
  font-size: 1.4rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.modal-icon-badge {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.modal-top h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.modal-top p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.modal-qr-area {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-warm);
  padding: 16px;
  border-radius: var(--radius-md);
  margin: 16px 0;
}

.qr-code-img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
}

.link-copy-group {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.link-copy-group input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-warm);
  color: var(--primary-dark);
}

.btn-copy-action {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

.copy-alert {
  display: block;
  font-size: 0.8rem;
  color: var(--wa-green-dark);
  font-weight: 700;
  margin-top: 6px;
  min-height: 18px;
}

/* ==========================================================================
   14. DYNAMIC ANIMATIONS & EFFECTS
   ========================================================================== */
/* Shimmer light sweep on buttons */
.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: shimmerSweep 4s infinite;
}

@keyframes shimmerSweep {
  0% { left: -60%; }
  35% { left: 140%; }
  100% { left: 140%; }
}

/* Pulse WA Button */
.pulse-wa-anim {
  animation: pulse-button-anim 2.5s infinite ease-in-out;
}

@keyframes pulse-button-anim {
  0% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 12px 34px rgba(37, 211, 102, 0.65); transform: translateY(-1px); }
  100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35); }
}

/* Scroll reveal classes */
.reveal-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.revealed {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* Ripple click effect */
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: rippleAnimation 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Subtle bounce */
.animate-bounce-subtle {
  animation: bounce-subtle 4s ease-in-out infinite;
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ==========================================================================
   15. RESPONSIVE MEDIA QUERIES (Phone, Tablet, Laptop)
   ========================================================================== */
@media (max-width: 991px) {
  .nav-links {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .hero-inner-content {
    flex-direction: column;
    padding: 60px 20px;
    text-align: left;
  }

  .hero-headline {
    font-size: 2.9rem;
  }

  .hero-floating-badges-stack {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .floating-badge-glass {
    flex: 1;
    min-width: 200px;
  }

  .why-choose-layout {
    grid-template-columns: 1fr;
  }

  .appointment-card-wrapper {
    grid-template-columns: 1fr;
  }

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

  .mobile-sticky-action-bar {
    display: flex;
  }

  .floating-whatsapp-action {
    bottom: 74px;
    right: 18px;
    width: 52px;
    height: 52px;
    font-size: 1.7rem;
  }
}

@media (max-width: 767px) {
  .top-bar .insta-top {
    display: none;
  }

  .hero-headline {
    font-size: 2.3rem;
  }

  .hero-lead-text {
    font-size: 1rem;
  }

  .hero-stats-ribbon {
    gap: 16px;
  }

  .stat-digit {
    font-size: 1.35rem;
  }

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

  .doctors-modern-grid {
    grid-template-columns: 1fr;
  }

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

  .appointment-form-side {
    padding: 30px 20px;
  }

  .section {
    padding: 60px 0;
  }
}

/* ==========================================================================
   16. STAFF & DOCTOR PORTAL STYLING (OTP & Clinical Dashboard)
   ========================================================================== */

/* Navbar Staff Login Button */
.btn-staff-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(200, 141, 88, 0.12);
  color: var(--primary-dark);
  border: 1.5px solid var(--accent-gold);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-staff-pill:hover {
  background: var(--accent-gold);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(200, 141, 88, 0.35);
}

.btn-staff-pill i {
  color: var(--accent-gold);
  font-size: 0.85rem;
  transition: var(--transition);
}

.btn-staff-pill:hover i {
  color: #ffffff;
}

.mobile-staff-link {
  color: var(--accent-gold) !important;
  font-weight: 700 !important;
  border-top: 1px solid var(--border-subtle);
  margin-top: 6px;
  padding-top: 12px;
}

/* Modal Backdrops & Cards */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(41, 24, 22, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  visibility: hidden;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(200, 141, 88, 0.3);
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 92vh;
  overflow-y: auto;
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-close,
.modal-close-dash {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--bg-warm);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover,
.modal-close-dash:hover {
  background: var(--primary);
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-top {
  margin-bottom: 22px;
}

.modal-icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 14px;
}

.badge-gold-glow {
  background: rgba(200, 141, 88, 0.15);
  color: var(--accent-gold);
  border: 1.5px solid var(--accent-gold);
}

.badge-green-glow {
  background: rgba(37, 211, 102, 0.15);
  color: var(--wa-green);
  border: 1.5px solid var(--wa-green);
}

.modal-card h3 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
  font-weight: 800;
}

.modal-subtext {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Auth Form Elements */
.staff-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.phone-input-prefix-box {
  display: flex;
  align-items: center;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  transition: var(--transition);
}

.phone-input-prefix-box:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(200, 141, 88, 0.2);
}

.phone-prefix {
  padding: 12px 14px;
  background: var(--bg-warm);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
  border-right: 1px solid var(--border-medium);
}

.auth-input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
  outline: none;
}

.btn-auth-primary {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 4px 16px rgba(67, 33, 30, 0.25);
  transition: var(--transition);
}

.btn-auth-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(67, 33, 30, 0.35);
}

.auth-security-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.4;
  margin-top: 4px;
}

.auth-security-note i {
  color: var(--accent-gold);
  margin-top: 2px;
}

.auth-alert-box {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
}

.auth-alert-box.error {
  background: #fdf0ee;
  color: #b3261e;
  border: 1px solid #f2b8b5;
}

.auth-alert-box.success {
  background: #edf7ed;
  color: #1e4620;
  border: 1px solid #b7dfb9;
}

/* OTP 6-Digit Grid */
.otp-simulation-pill {
  background: rgba(37, 211, 102, 0.12);
  border: 1px dashed var(--wa-green);
  color: #176535;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.otp-simulation-pill:hover {
  background: rgba(37, 211, 102, 0.22);
  transform: scale(1.02);
}

.otp-inputs-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}

.otp-digit-input {
  width: 46px;
  height: 52px;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
  color: var(--primary-dark);
  outline: none;
  transition: var(--transition);
}

.otp-digit-input:focus {
  border-color: var(--accent-gold);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(200, 141, 88, 0.25);
  transform: translateY(-2px);
}

.otp-timer-box {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn-link-resend {
  background: none;
  border: none;
  color: var(--accent-gold);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.86rem;
  text-decoration: underline;
}

.btn-change-number {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  font-weight: 600;
}

.btn-change-number:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ==========================================================================
   17. CLINICAL DASHBOARD MODAL
   ========================================================================== */
.modal-card-dashboard {
  max-width: 1140px;
  width: 95%;
  padding: 24px;
  border-radius: var(--radius-xl);
  max-height: 94vh;
  overflow-y: auto;
}

.dashboard-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.dash-brand-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-avatar-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.dash-brand-info h3 {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.dash-session-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-live-tag {
  font-size: 0.78rem;
  color: #176535;
  background: #eaf9ef;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pulse-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wa-green);
  box-shadow: 0 0 6px var(--wa-green);
}

.user-role-tag {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

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

.btn-dash-logout {
  background: #fdf0ee;
  color: #b3261e;
  border: 1px solid #f2b8b5;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-dash-logout:hover {
  background: #b3261e;
  color: #ffffff;
}

.modal-close-dash {
  position: static;
}

/* Dashboard Stats Grid */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.dash-stat-box {
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-subtle);
}

.dash-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.dash-stat-icon.gold { background: rgba(200, 141, 88, 0.2); color: var(--accent-gold); }
.dash-stat-icon.green { background: rgba(37, 211, 102, 0.2); color: var(--wa-green); }
.dash-stat-icon.brown { background: rgba(67, 33, 30, 0.15); color: var(--primary); }
.dash-stat-icon.blue { background: rgba(33, 150, 243, 0.18); color: #1976d2; }

.dash-stat-number {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

.dash-stat-label {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Dashboard Main Layout */
.dash-body-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

@media (max-width: 991px) {
  .dash-body-layout {
    grid-template-columns: 1fr;
  }
}

.dash-panel-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.dash-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.dash-panel-header h4 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-panel-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dash-search-filter input {
  padding: 6px 14px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  outline: none;
}

.dash-search-filter input:focus {
  border-color: var(--accent-gold);
}

/* Appointments Table */
.table-responsive-wrapper {
  overflow-x: auto;
}

.dash-appointments-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.dash-appointments-table th {
  background: var(--bg-warm);
  color: var(--primary-dark);
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border-medium);
  white-space: nowrap;
}

.dash-appointments-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.dash-appointments-table tr:hover {
  background: rgba(246, 239, 233, 0.4);
}

.patient-name-cell strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.patient-name-cell small {
  color: var(--text-muted);
}

.table-status-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.table-status-pill.confirmed { background: #eaf9ef; color: #176535; }
.table-status-pill.online { background: #fff4e5; color: #b76e00; }
.table-status-pill.completed { background: #e8eaf6; color: #283593; }

.table-actions-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.action-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.action-wa { background: #eaf9ef; color: var(--wa-green); }
.action-wa:hover { background: var(--wa-green); color: #ffffff; }

.action-call { background: var(--bg-warm); color: var(--primary); }
.action-call:hover { background: var(--primary); color: #ffffff; }

.action-done { background: #e8eaf6; color: #3f51b5; }
.action-done:hover { background: #3f51b5; color: #ffffff; }

/* Quick Walk-in Form */
.quick-add-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-add-form input,
.quick-add-form select {
  padding: 9px 12px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  background: var(--bg-warm);
}

.quick-add-form input:focus,
.quick-add-form select:focus {
  border-color: var(--accent-gold);
  background: #ffffff;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-add-patient {
  background: var(--accent-gold);
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-add-patient:hover {
  background: var(--accent-gold-hover);
}

/* Doctor Duty Card */
.doctor-duty-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doctor-duty-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.doc-avatar-small {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.doc-duty-details strong {
  display: block;
  font-size: 0.88rem;
  color: var(--primary-dark);
}

.doc-duty-details small {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.badge-status-on {
  font-size: 0.72rem;
  color: #176535;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wa-green);
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
  .btn-staff-pill span {
    display: none;
  }
  .btn-staff-pill {
    padding: 8px 10px;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    justify-content: center;
  }
  .btn-pill-nav {
    padding: 8px 14px;
    font-size: 0.78rem;
  }
  .otp-digit-input {
    width: 38px;
    height: 46px;
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   18. TOOTH CARE DENTAL CLINIC MANAGEMENT SOFTWARE (PMS)
   ========================================================================== */

/* Password Input with Show/Hide Eye Toggle */
.password-input-group {
  display: flex;
  align-items: center;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  transition: var(--transition);
}

.password-input-group:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(200, 141, 88, 0.2);
}

.btn-toggle-pwd {
  background: transparent;
  border: none;
  padding: 12px 14px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-toggle-pwd:hover {
  color: var(--primary-dark);
}

.auth-switch-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 10px 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.auth-switch-divider::before,
.auth-switch-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-medium);
}

.auth-switch-divider span {
  padding: 0 10px;
}

.btn-auth-wa-switch {
  background: rgba(37, 211, 102, 0.12);
  color: #176535;
  border: 1.5px solid var(--wa-green);
  padding: 11px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-auth-wa-switch:hover {
  background: var(--wa-green);
  color: #ffffff;
}

/* Fullscreen Enterprise Dental Clinic Practice Management Software (PMS OS) */
#staffDashboardModal.open {
  padding: 0 !important;
  background: rgba(30, 14, 12, 0.85) !important;
}

.modal-card-pms {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  padding: 0;
  margin: 0;
  background: #fbf9f7;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: none;
  box-shadow: none;
  transform: none !important;
  z-index: 100000;
}

/* PMS Top Luxury Dark Chocolate & Gold Header Bar */
.pms-header-bar {
  background: #43211e;
  color: #ffffff;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
  border-bottom: 2.5px solid #c88d58;
  box-shadow: 0 4px 20px rgba(35, 14, 12, 0.4);
  z-index: 20;
}

.pms-brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pms-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid #c88d58;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.pms-svg {
  width: 100%;
  height: 100%;
}

.pms-brand-group h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.pms-sub-tag {
  font-size: 0.76rem;
  color: #e5ab75;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pms-header-status-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.pms-live-indicator {
  font-size: 0.78rem;
  color: #25d366;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.35);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.pms-pass-badge {
  font-size: 0.76rem;
  color: #f7d9be;
  background: rgba(200, 141, 88, 0.2);
  border: 1px solid rgba(200, 141, 88, 0.45);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.btn-pms-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-pms-icon:hover {
  background: #c88d58;
  border-color: #c88d58;
  color: #ffffff;
}

.btn-pms-newcase {
  background: #c88d58;
  color: #ffffff;
  border: none;
  padding: 7px 15px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(200, 141, 88, 0.4);
}

.btn-pms-newcase:hover {
  background: #b57a46;
  transform: translateY(-1px);
}

.btn-pms-logout {
  background: rgba(229, 57, 53, 0.15);
  color: #ff8a80;
  border: 1px solid rgba(229, 57, 53, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-pms-logout:hover {
  background: #d32f2f;
  color: #ffffff;
  border-color: #d32f2f;
}

/* Fullscreen Scrollable Body Viewport */
.pms-main-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 22px 26px;
  background: #fbf9f7;
  -webkit-overflow-scrolling: touch;
}

/* PMS Navigation Tabs Bar */
.pms-nav-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--border-medium);
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pms-tab-btn {
  background: rgba(67, 33, 30, 0.04);
  border: 1px solid var(--border-subtle);
  border-bottom: 3px solid transparent;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px 10px 0 0;
  transition: var(--transition);
  white-space: nowrap;
}

.pms-tab-btn:hover {
  color: var(--primary-dark);
  background: rgba(200, 141, 88, 0.12);
  border-color: var(--accent-gold);
}

.pms-tab-btn.active {
  color: #ffffff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  border-bottom: 3px solid var(--accent-gold);
  box-shadow: 0 4px 12px rgba(67, 33, 30, 0.15);
}

.pms-tab-btn i {
  color: var(--accent-gold);
  font-size: 1.05rem;
}

.pms-tab-btn.active i {
  color: #f7d2a8;
}

.pms-tab-badge {
  background: var(--accent-gold);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-weight: 800;
}

/* Tab Panes */
.pms-tab-pane {
  display: none;
}

.pms-tab-pane.active {
  display: block;
  animation: fadeInPane 0.3s ease;
}

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

/* Metrics Row */
.pms-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.pms-metric-card {
  background: var(--bg-warm);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.pms-metric-card.highlight-gold {
  background: rgba(200, 141, 88, 0.12);
  border-color: var(--accent-gold);
}

.pms-metric-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

.pms-metric-lbl {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 4px;
}

/* PMS Dual Layout (Main + Side) */
.pms-dual-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 20px;
}

@media (max-width: 1320px) {
  .pms-dual-grid {
    grid-template-columns: 1fr;
  }
}

.pms-panel-box {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.pms-panel-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.pms-panel-title-bar h4 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pms-panel-title-bar p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pms-filter-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pms-filter-tools input,
.pms-filter-tools select {
  padding: 7px 14px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  outline: none;
  background: var(--bg-warm);
}

.pms-filter-tools input:focus,
.pms-filter-tools select:focus {
  border-color: var(--accent-gold);
  background: #ffffff;
}

/* Professional PMS Table */
.pms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.pms-table th {
  background: var(--bg-warm);
  color: var(--primary-dark);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--border-medium);
  white-space: nowrap;
}

.pms-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.pms-table tr:hover {
  background: rgba(200, 141, 88, 0.05);
}

.table-online-badge {
  display: inline-block;
  background: #fff3e0;
  color: #b76e00;
  border: 1px solid #ffe0b2;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-top: 2px;
}

/* Quick Walk-in Form */
.pms-compact-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.pms-compact-form input,
.pms-compact-form select,
.pms-compact-form textarea {
  padding: 9px 12px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  outline: none;
  background: var(--bg-warm);
}

.pms-compact-form input:focus,
.pms-compact-form select:focus,
.pms-compact-form textarea:focus {
  border-color: var(--accent-gold);
  background: #ffffff;
}

.btn-pms-primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(67, 33, 30, 0.25);
  transition: var(--transition);
}

.btn-pms-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   19. INTERACTIVE 32-TEETH ODONTOGRAM (ADULT DENTAL TOOTH CHART)
   ========================================================================== */
.pms-patient-selector-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pms-patient-selector-box select {
  padding: 6px 12px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.odontogram-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.status-healthy { background: #25d366; }
.status-decay { background: #e53935; }
.status-rct { background: #fbc02d; }
.status-implant { background: #1e88e5; }
.status-crown { background: #8e24aa; }
.status-missing { background: #9e9e9e; }

.dental-arch-container {
  background: var(--bg-warm);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
}

.arch-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 12px;
}

.teeth-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tooth-item {
  width: 54px;
  height: 74px;
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 3px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.tooth-item:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: var(--accent-gold);
}

.tooth-num {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.tooth-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.tooth-status-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 4px;
  border-radius: 4px;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tooth-item.cond-healthy .tooth-icon { color: #25d366; }
.tooth-item.cond-healthy .tooth-status-tag { background: #eaf9ef; color: #176535; }

.tooth-item.cond-decay .tooth-icon { color: #e53935; }
.tooth-item.cond-decay .tooth-status-tag { background: #ffebee; color: #b71c1c; }

.tooth-item.cond-rct .tooth-icon { color: #fbc02d; }
.tooth-item.cond-rct .tooth-status-tag { background: #fffde7; color: #f57f17; }

.tooth-item.cond-implant .tooth-icon { color: #1e88e5; }
.tooth-item.cond-implant .tooth-status-tag { background: #e3f2fd; color: #0d47a1; }

.tooth-item.cond-crown .tooth-icon { color: #8e24aa; }
.tooth-item.cond-crown .tooth-status-tag { background: #f3e5f5; color: #4a148c; }

.tooth-item.cond-missing .tooth-icon { color: #9e9e9e; }
.tooth-item.cond-missing .tooth-status-tag { background: #eeeeee; color: #616161; }

.pms-ehr-notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .pms-ehr-notes-grid {
    grid-template-columns: 1fr;
  }
}

.ehr-notes-box label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.ehr-notes-box textarea {
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  background: var(--bg-warm);
}

.ehr-notes-box textarea:focus {
  border-color: var(--accent-gold);
  background: #ffffff;
}

/* ==========================================================================
   20. DIGITAL PRESCRIPTION (Rx) & BILLING INVOICE LETTERHEADS
   ========================================================================== */
.rx-quick-presets {
  margin-top: 12px;
}

.rx-quick-presets label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: block;
  margin-bottom: 6px;
}

.preset-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-btn {
  background: var(--bg-warm);
  border: 1px solid var(--border-medium);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  transition: var(--transition);
}

.preset-btn:hover {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
}

.rx-action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-wa-send {
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-wa-send:hover {
  background: #1da851;
}

.btn-pdf-action {
  background: #b91c1c;
  color: #ffffff;
  border: 1px solid #991b1b;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-pdf-action:hover:not(:disabled) {
  background: #991b1b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}

.btn-pdf-action:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-print-action {
  background: var(--bg-warm);
  color: var(--primary-dark);
  border: 1.5px solid var(--border-medium);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-print-action:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Letterhead Paper Styling */
.rx-preview-paper {
  background: #ffffff;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  font-family: 'Times New Roman', Georgia, serif;
  color: #1a1a1a;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.rx-header {
  text-align: center;
  border-bottom: 2px solid #43211e;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.rx-clinic-title {
  font-size: 1.35rem;
  font-weight: bold;
  color: #43211e;
  letter-spacing: 0.5px;
}

.rx-clinic-sub {
  font-size: 0.8rem;
  color: #555;
  margin-top: 2px;
}

.rx-doc-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: bold;
  color: #333;
  margin-top: 8px;
}

.rx-patient-meta,
.bill-receipt-meta {
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px dashed #ccc;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.rx-symbol {
  font-size: 2.2rem;
  font-weight: bold;
  color: #43211e;
  font-family: serif;
  margin: 6px 0;
}

.rx-preview-content {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.6;
}

.rx-item-line {
  padding: 6px 0;
  border-bottom: 1px dotted #eee;
}

.rx-instructions-preview {
  font-size: 0.82rem;
  color: #444;
  margin-top: 14px;
  padding: 8px;
  background: #fbf9f7;
  border-radius: 4px;
  white-space: pre-line;
}

.rx-footer-sign {
  margin-top: 30px;
  text-align: right;
  border-top: 1px solid #ddd;
  padding-top: 8px;
  font-size: 0.82rem;
  color: #666;
}

/* Billing Table in Preview */
.bill-table-preview {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.88rem;
}

.bill-table-preview th {
  background: #f6efe9;
  padding: 8px;
  text-align: left;
  border-bottom: 2px solid #ccc;
}

.bill-table-preview td {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.bill-summary-preview {
  margin-top: 14px;
  padding: 10px;
  background: #fdfbf9;
  border: 1px solid #eedecf;
  border-radius: 6px;
  font-size: 0.88rem;
}

/* Doctors Schedule Grid */
.doctors-schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .doctors-schedule-grid {
    grid-template-columns: 1fr;
  }
}

.doc-card-pms {
  background: var(--bg-warm);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 16px;
}

.doc-pms-avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.doc-pms-body h4 {
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.doc-pms-deg {
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.doc-pms-timings {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.doc-pms-contact a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.doc-pms-status {
  margin-top: 10px;
}

/* ==========================================================================
   21. COMPREHENSIVE CLINICAL CASE SHEET & TREATMENT PLAN STYLING
   Captures: Problem Diagnosed, Procedures Planned, Duration/Sittings, Fees/Balance
   ========================================================================== */

.pms-case-layout {
  display: grid;
  grid-template-columns: 2.1fr 1.15fr;
  gap: 24px;
}

@media (max-width: 1100px) {
  .pms-case-layout {
    grid-template-columns: 1fr;
  }
}

.pms-case-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.pms-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.pms-card-header h4 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 9px;
}

.pms-badge-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.pms-card-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 768px) {
  .form-grid-3, .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.pms-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.pms-form-group label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pms-form-group label i {
  color: var(--accent-gold);
}

.pms-form-group input,
.pms-form-group select,
.pms-form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
  background: var(--bg-warm);
  color: var(--primary-dark);
  transition: var(--transition);
}

.pms-form-group input:focus,
.pms-form-group select:focus,
.pms-form-group textarea:focus {
  border-color: var(--accent-gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(200, 141, 88, 0.15);
}

/* Quick Symptom Cloud ("isko kya problame hai") */
.symptom-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.symptom-tag {
  background: #fff5ee;
  border: 1px solid rgba(200, 141, 88, 0.4);
  color: var(--primary-dark);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.symptom-tag:hover {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

/* Treatment Procedure Checklist Grid ("kya kya karna hai") */
.procedures-selection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 680px) {
  .procedures-selection-grid {
    grid-template-columns: 1fr;
  }
}

.proc-checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg-warm);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.proc-checkbox-card:hover {
  border-color: var(--accent-gold);
  background: rgba(200, 141, 88, 0.08);
}

.proc-checkbox-card.selected {
  background: rgba(200, 141, 88, 0.14);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 12px rgba(200, 141, 88, 0.15);
}

.proc-checkbox-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin-top: 2px;
  cursor: pointer;
}

.proc-card-content {
  flex: 1;
}

.proc-card-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.25;
}

.proc-card-rate {
  font-size: 0.78rem;
  color: var(--accent-gold);
  font-weight: 800;
}

/* Sittings & Timeline Chips ("kitne time ka tritment hai") */
.duration-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.duration-chip {
  background: var(--bg-warm);
  border: 1.5px solid var(--border-medium);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.duration-chip:hover,
.duration-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Financial Card & Outstanding Balance ("kitana pese lagenge") */
.financial-summary-box {
  background: #ffffff;
  border: 2px solid rgba(200, 141, 88, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 6px 20px rgba(67, 33, 30, 0.06);
}

.balance-alert-card {
  background: linear-gradient(135deg, #fff7f6 0%, #ffedea 100%);
  border: 2px dashed #e53935;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-top: 14px;
}

.balance-alert-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #c62828;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-alert-amount {
  font-size: 2rem;
  font-weight: 900;
  color: #b71c1c;
  line-height: 1.1;
  margin: 4px 0;
}

.balance-status-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: #ffebee;
  color: #b71c1c;
}

.balance-status-tag.cleared {
  background: #e8f5e9;
  color: #2e7d32;
}

/* Action Buttons for Case Sheet */
.case-actions-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.btn-case-wa {
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-case-wa:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.btn-case-save {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 13px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(67, 33, 30, 0.25);
}

.btn-case-save:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-case-print {
  background: var(--bg-warm);
  color: var(--primary-dark);
  border: 1.5px solid var(--border-medium);
  padding: 11px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-case-print:hover {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
}

/* Patient Full Case Sheet Modal */
.modal-card-casesheet {
  max-width: 900px;
  width: 95%;
  max-height: 92vh;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.casesheet-modal-header {
  background: #43211e;
  color: #ffffff;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #c88d58;
  flex-shrink: 0;
}

.casesheet-modal-header h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin: 0;
}

.casesheet-modal-body {
  padding: 20px 24px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.casesheet-paper {
  background: #ffffff;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  font-family: var(--font-main);
}

.casesheet-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 14px;
  background: #fdfbf9;
  border: 1px solid #eedecf;
  border-radius: 8px;
  margin: 14px 0;
}

@media (max-width: 768px) {
  .casesheet-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.casesheet-section {
  margin-top: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #ddd;
}

.casesheet-section h5 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #43211e;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.casesheet-section p {
  font-size: 0.88rem;
  color: #333;
  line-height: 1.5;
}

.casesheet-actions-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  background: #f8f6f3;
  border-top: 1px solid var(--border-medium);
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Patient Appointments Table Pill Enhancements (No Text Truncation) */
.table-problem-pill {
  display: inline-block;
  background: #fff3e0;
  color: #8f4c00;
  border: 1px solid #fed7aa;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  line-height: 1.35;
  white-space: normal;
  max-width: 260px;
}

.table-duration-pill {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  display: block;
  margin-top: 3px;
}

/* Dedicated Balance Due Column Badges */
.badge-due-urgent {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1.5px solid #f87171;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.12);
  white-space: nowrap;
}

.badge-due-cleared {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0fdf4;
  color: #15803d;
  border: 1.5px solid #86efac;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
}

.table-amount-breakdown {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.table-amount-breakdown strong {
  color: var(--text-primary);
}

/* Enhanced 36px Action Buttons */
.action-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1.5px solid transparent !important;
  cursor: pointer !important;
  font-size: 0.95rem !important;
  transition: var(--transition) !important;
  position: relative;
}

.action-btn:hover {
  transform: translateY(-2px) scale(1.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.action-wa { background: #eaf9ef !important; color: #15803d !important; border-color: #86efac !important; }
.action-wa:hover { background: #16a34a !important; color: #ffffff !important; }

.action-call { background: #fef3c7 !important; color: #92400e !important; border-color: #fde68a !important; }
.action-call:hover { background: #d97706 !important; color: #ffffff !important; }

.action-done { background: #ede9fe !important; color: #6d28d9 !important; border-color: #ddd6fe !important; }
.action-done:hover { background: #7c3aed !important; color: #ffffff !important; }

.action-view { background: #fff5ee !important; color: #c88d58 !important; border-color: #fed7aa !important; }
.action-view:hover { background: #c88d58 !important; color: #ffffff !important; }

.action-final-bill { background: #e8f5e9 !important; color: #1b5e20 !important; border-color: #a5d6a7 !important; }
.action-final-bill:hover { background: #1b5e20 !important; color: #ffffff !important; }

/* ==========================================================================
   ENHANCED PMS PATIENT SEARCH & FILTER BAR
   ========================================================================== */
.pms-patient-search-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-medium);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  flex-wrap: wrap;
}

.pms-search-input-group {
  flex: 1;
  min-width: 280px;
  position: relative;
  display: flex;
  align-items: center;
}

.pms-search-icon {
  position: absolute;
  left: 14px;
  color: var(--primary);
  font-size: 0.95rem;
  pointer-events: none;
}

.pms-search-input-group input {
  width: 100%;
  padding: 10px 38px 10px 38px;
  background: var(--bg-warm);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition);
  color: var(--text-primary);
}

.pms-search-input-group input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 37, 34, 0.12);
}

.pms-search-input-group input::placeholder {
  color: #8c827a;
  font-weight: 400;
}

.pms-search-clear {
  position: absolute;
  right: 12px;
  background: #e2e8f0;
  color: #475569;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.72rem;
  transition: var(--transition);
}

.pms-search-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.pms-filter-dropdowns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pms-filter-dropdowns select {
  padding: 9px 14px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-warm);
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.pms-filter-dropdowns select:focus {
  border-color: var(--accent-gold);
  background: #ffffff;
}

/* Simplified Categorized Filter Chips Bar */
.queue-filter-chips-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #fcfbf9;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-medium);
}

.filter-chips-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chips-divider {
  width: 1.5px;
  height: 24px;
  background: var(--border-medium);
  margin: 0 4px;
}

@media (max-width: 900px) {
  .filter-chips-divider {
    display: none;
  }
}

.queue-filter-chip {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 6px 13px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.queue-filter-chip:hover {
  border-color: var(--accent-gold);
  color: var(--primary);
  background: rgba(200, 141, 88, 0.08);
  transform: translateY(-1px);
}

.queue-filter-chip.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 8px rgba(74, 37, 34, 0.25);
}

/* Distinct Website Bookings Chip */
.queue-filter-chip.chip-online {
  border-color: #7dd3fc;
  color: #0369a1;
  background: #f0f9ff;
  font-weight: 800;
}

.queue-filter-chip.chip-online:hover {
  background: #e0f2fe;
  border-color: #0284c7;
}

.queue-filter-chip.chip-online.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

/* Distinct Walk-in Chip */
.queue-filter-chip.chip-walkin {
  border-color: var(--border-medium);
  color: var(--text-secondary);
  background: #ffffff;
}

.queue-filter-chip.chip-walkin:hover {
  border-color: #94a3b8;
  color: #1e293b;
}

.queue-filter-chip.chip-walkin.active {
  background: #475569 !important;
  color: #ffffff !important;
  border-color: #475569 !important;
  box-shadow: 0 2px 8px rgba(71, 85, 105, 0.3);
}

/* Distinct Due Balance Chip */
.queue-filter-chip.chip-due {
  border-color: #fca5a5;
  color: #b91c1c;
  background: #fef2f2;
}

.queue-filter-chip.chip-due:hover {
  background: #fee2e2;
  border-color: #ef4444;
}

.queue-filter-chip.chip-due.active {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Website Booking Row Distinct Highlight in Table */
.row-website-booking {
  background: rgba(2, 132, 199, 0.04) !important;
  border-left: 4px solid #0284c7 !important;
}

.row-website-booking:hover {
  background: rgba(2, 132, 199, 0.09) !important;
}

.table-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.table-walkin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Compact Top Patient Info Banner (Screen B) */
.pms-case-patient-banner {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  flex-wrap: wrap;
}

.patient-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 12px;
  border-right: 1.5px solid var(--border-medium);
  color: var(--primary);
  flex-shrink: 0;
}

.patient-banner-title i {
  font-size: 1.3rem;
}

.patient-banner-title strong {
  display: block;
  font-size: 0.88rem;
  color: var(--primary-dark);
  line-height: 1.2;
}

.patient-banner-title small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.patient-banner-fields {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}

.banner-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 130px;
}

.banner-field.field-grow {
  min-width: 170px;
  flex: 1.4;
}

.banner-field.field-sm {
  min-width: 90px;
  flex: 0.8;
}

.banner-field label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.banner-field input,
.banner-field select {
  padding: 6px 10px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  background: var(--bg-warm);
  outline: none;
  width: 100%;
  transition: var(--transition);
}

.banner-field input:focus,
.banner-field select:focus {
  border-color: var(--primary);
  background: #ffffff;
}

/* 4 Focused Section Navigation Tabs */
.case-step-nav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  background: #fdfbf7;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-medium);
  overflow-x: auto;
}

.case-step-tab {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.case-step-tab:hover {
  background: rgba(200, 141, 88, 0.08);
  border-color: var(--accent-gold);
  color: var(--primary);
}

.case-step-tab.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 6px rgba(74, 37, 34, 0.25);
}

.case-step-panel {
  display: none;
  animation: fadeIn 0.2s ease;
}

.case-step-panel.active {
  display: block;
}

/* ==========================================================================
   PRACTICAL HORIZONTAL 32-TEETH ODONTOGRAM
   ========================================================================== */
.odontogram-container {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.odontogram-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border-medium);
  flex-wrap: wrap;
  gap: 6px;
}

.odontogram-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.odontogram-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.legend-dot.normal {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
}

.legend-dot.selected {
  background: var(--primary);
  border: 1.5px solid var(--primary-dark);
}

.odontogram-arch {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.arch-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  padding: 0 4px;
}

.arch-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.quad-labels {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
}

.quad-midline-tag {
  color: var(--accent-gold);
  font-weight: 800;
}

/* Strictly Horizontal Flex Row */
.teeth-horizontal-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  width: 100% !important;
  overflow-x: auto !important;
  padding: 4px 2px !important;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.teeth-quadrant {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 3px !important;
  flex-shrink: 0 !important;
}

/* Individual Tooth Card */
.case-tooth-btn {
  width: 36px !important;
  height: 48px !important;
  border: 1.5px solid var(--border-medium) !important;
  background: #ffffff !important;
  color: var(--text-primary) !important;
  border-radius: 6px !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px 1px !important;
  transition: all 0.16s ease !important;
  flex-shrink: 0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.case-tooth-btn .tooth-num {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

.case-tooth-btn .tooth-abbr {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
  margin-top: 2px;
}

.case-tooth-btn:hover {
  background: #fff8f0 !important;
  border-color: var(--accent-gold) !important;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(200, 141, 88, 0.25);
}

.case-tooth-btn.selected {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  border-color: var(--primary-dark) !important;
  box-shadow: 0 3px 8px rgba(74, 37, 34, 0.35) !important;
  transform: translateY(-2px);
}

.case-tooth-btn.selected .tooth-num {
  color: #ffffff !important;
}

.case-tooth-btn.selected .tooth-abbr {
  color: #fde68a !important;
}

/* Midline Separator between Quadrants */
.odontogram-midline {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 10px !important;
  height: 44px !important;
  margin: 0 2px !important;
  flex-shrink: 0 !important;
}

.odontogram-midline .midline-bar {
  width: 2.5px;
  height: 100%;
  background: #cbd5e1;
  border-radius: 2px;
}

/* Practical 1-Click Problem Tagger Bar */
.tooth-problem-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fdfbf7;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.selected-tooth-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
}

.selected-tooth-indicator strong {
  color: var(--primary);
}

.quick-problem-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.problem-chips-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-right: 2px;
}

.tooth-prob-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.16s ease;
}

.tooth-prob-btn:hover {
  transform: translateY(-1px);
}

.tooth-prob-btn.prob-decay { color: #b45309; border-color: #fcd34d; background: #fffbeb; }
.tooth-prob-btn.prob-decay:hover { background: #fde68a; }

.tooth-prob-btn.prob-pain { color: #b91c1c; border-color: #fca5a5; background: #fef2f2; }
.tooth-prob-btn.prob-pain:hover { background: #fecaca; }

.tooth-prob-btn.prob-missing { color: #0369a1; border-color: #7dd3fc; background: #f0f9ff; }
.tooth-prob-btn.prob-missing:hover { background: #bae6fd; }

.tooth-prob-btn.prob-crown { color: #6d28d9; border-color: #c4b5fd; background: #f5f3ff; }
.tooth-prob-btn.prob-crown:hover { background: #ddd6fe; }

.tooth-prob-btn.prob-broken { color: #475569; border-color: #cbd5e1; background: #f8fafc; }
.tooth-prob-btn.prob-broken:hover { background: #e2e8f0; }

.tooth-prob-btn.prob-wisdom { color: #c2410c; border-color: #fdba74; background: #fff7ed; }
.tooth-prob-btn.prob-wisdom:hover { background: #fed7aa; }

.step-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.step-nav-actions.flex-between {
  justify-content: space-between;
}

.btn-step-next {
  background: var(--primary);
  color: #ffffff;
  border: none;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(74, 37, 34, 0.2);
}

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

.btn-step-prev {
  background: #f1f5f9;
  color: #475569;
  border: 1.5px solid #cbd5e1;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.btn-step-prev:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Mandatory Medical History Section & Critical Alerts (Screen B) */
.medical-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.med-history-checkbox-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: var(--bg-warm);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition);
}

.med-history-checkbox-card:hover {
  border-color: var(--accent-gold);
  background: #ffffff;
}

.med-history-checkbox-card.flagged {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.med-history-checkbox-card input[type="checkbox"] {
  accent-color: #dc2626;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.med-history-checkbox-card span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}

.med-history-checkbox-card small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.critical-allergy-banner {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  animation: pulseAlert 2s infinite;
}

@keyframes pulseAlert {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Procedure to Tooth Linking & Inline Price Editing (Screen C) */
.proc-inline-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.proc-tooth-input,
.proc-price-input {
  padding: 4px 8px;
  font-size: 0.78rem;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  background: #ffffff;
  outline: none;
  font-weight: 700;
  color: var(--text-primary);
}

.proc-tooth-input { width: 90px; }
.proc-price-input { width: 85px; }

/* 1-Click Pre/Post-Op Instructions Library (Screen C) */
.postop-library-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.postop-preset-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  color: var(--primary-dark);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.postop-preset-btn:hover {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
}

/* Tooth Surface Selector (Screen D) */
.surface-selector-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.surface-selector-bar label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.surface-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-medium);
  background: #ffffff;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.surface-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Multi-Item Dynamic Billing Table (Screen F) */
.invoice-items-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.86rem;
}

.invoice-items-table th {
  background: var(--bg-warm);
  padding: 9px 12px;
  text-align: left;
  border-bottom: 2px solid var(--border-medium);
  font-weight: 800;
  color: var(--primary-dark);
}

.invoice-items-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.btn-add-line-item {
  background: rgba(200, 141, 88, 0.15);
  color: var(--primary-dark);
  border: 1.5px dashed var(--accent-gold);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  margin-bottom: 14px;
}

.btn-add-line-item:hover {
  background: var(--accent-gold);
  color: #ffffff;
}

.billing-ledger-summary {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 14px;
}

.ledger-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.ledger-line.total-net {
  border-top: 2px dashed var(--border-medium);
  padding-top: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* RVG Digital Radiograph & Clinical Media Gallery Tab */
.rvg-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.rvg-card {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.rvg-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.rvg-image-wrap {
  width: 100%;
  height: 190px;
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.rvg-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rvg-card:hover .rvg-image-wrap img {
  transform: scale(1.05);
}

.rvg-meta {
  padding: 12px 14px;
}

.rvg-meta h5 {
  font-size: 0.92rem;
  color: var(--primary-dark);
  margin-bottom: 3px;
}

.rvg-meta p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.rvg-upload-box {
  border: 2px dashed var(--accent-gold);
  background: rgba(200, 141, 88, 0.06);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.rvg-upload-box:hover {
  background: rgba(200, 141, 88, 0.14);
}

/* WhatsApp Automation Hub Tab */
.wa-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.wa-hub-card {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.wa-hub-card:hover {
  border-color: #25d366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.15);
}

.wa-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.wa-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eaf9ef;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.wa-template-preview {
  background: #f8f6f3;
  border-left: 3px solid #25d366;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #262626;
  font-family: monospace;
  white-space: pre-line;
  margin: 10px 0 16px;
  max-height: 120px;
  overflow-y: auto;
}

/* Role-Based Access Control (RBAC) Selector in Header */
.rbac-role-selector {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 3px 8px;
  gap: 6px;
}

.rbac-role-selector select {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  outline: none;
  cursor: pointer;
}

.rbac-role-selector select option {
  background: #43211e;
  color: #ffffff;
}

/* ==========================================================================
   MODULE: PATIENT FULL & FINAL DISCHARGE FILE & TREATMENT LEDGER STYLES
   ========================================================================== */
.btn-final-file-banner {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-full) !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  transition: var(--transition) !important;
  box-shadow: 0 3px 10px rgba(27, 94, 32, 0.25) !important;
}

.btn-final-file-banner:hover {
  background: linear-gradient(135deg, #144718 0%, #1b5e20 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(27, 94, 32, 0.35) !important;
}

.btn-final-file-action {
  background: #1b5e20 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 9px 16px !important;
  border-radius: var(--radius-full) !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: var(--transition) !important;
}

.btn-final-file-action:hover {
  background: #144718 !important;
  transform: translateY(-1px) !important;
}

.btn-settle-action {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 9px 18px !important;
  border-radius: var(--radius-full) !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.3) !important;
  transition: var(--transition) !important;
}

.btn-settle-action:hover {
  background: #15803d !important;
  transform: translateY(-1px) !important;
}

.modal-card-finalbill {
  max-width: 1040px !important;
  width: 95vw !important;
}

.finalbill-modal-header {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%) !important;
  color: #ffffff !important;
}

.finalbill-logo-icon {
  background: #ffffff !important;
  color: #1b5e20 !important;
}

.finalbill-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.final-bill-paper {
  background: #ffffff;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 32px 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  font-family: var(--font-main);
  color: #1f2937;
  line-height: 1.5;
}

/* Letterhead Clinic Header */
.final-letterhead-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 2.5px solid #1b5e20;
  gap: 16px;
  flex-wrap: wrap;
}

.final-clinic-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.final-clinic-logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.25);
  flex-shrink: 0;
}

.final-clinic-name {
  font-size: 1.32rem;
  font-weight: 900;
  color: #1b5e20;
  letter-spacing: 0.5px;
  margin: 0 0 2px 0;
}

.final-clinic-tagline {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.final-clinic-address,
.final-clinic-contact {
  font-size: 0.78rem;
  color: #4b5563;
  line-height: 1.4;
}

.final-doc-info {
  text-align: right;
  flex-shrink: 0;
}

.doc-badge {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 12px;
  display: inline-block;
}

.doc-badge strong {
  display: block;
  font-size: 0.86rem;
  color: #1b5e20;
}

.doc-badge span {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

/* Document Ribbon */
.final-doc-title-ribbon {
  background: #1b5e20;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.ribbon-title {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.ribbon-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: #c8e6c9;
}

/* Patient Metadata 4-Column Grid */
.final-patient-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px 16px;
  background: #fcfbf9;
  border: 1px solid #e7e2da;
  border-radius: 8px;
  margin: 14px 0;
}

@media (max-width: 800px) {
  .final-patient-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #78716c;
  text-transform: uppercase;
}

.meta-value {
  font-size: 0.9rem;
  font-weight: 800;
  color: #1c1917;
}

.meta-value.status-completed-tag {
  color: #15803d;
  font-weight: 800;
}

.meta-value.status-active-tag {
  color: #b45309;
  font-weight: 800;
}

/* Section Containers */
.final-file-section {
  margin-top: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #e2e8f0;
}

.final-file-section .section-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1b5e20;
  padding-bottom: 6px;
  border-bottom: 2px solid #bbf7d0;
  margin-bottom: 10px;
  letter-spacing: 0.4px;
}

.diagnosis-box {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.88rem;
}

.diag-row strong {
  color: #14532d;
  margin-right: 6px;
}

.tooth-highlight-badge {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.82rem;
}

/* Tables for Chronology and Itemized Bill */
.final-treatment-table,
.final-bill-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.82rem;
}

.final-treatment-table th,
.final-bill-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.final-treatment-table td,
.final-bill-table td {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  vertical-align: middle;
}

.final-treatment-table tr:nth-child(even),
.final-bill-table tr:nth-child(even) {
  background: #fcfcfd;
}

.sitting-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.76rem;
}

.sitting-status-done {
  color: #15803d;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Financial Ledger Summary Cards */
.final-financial-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
  margin-top: 14px;
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  padding: 14px 18px;
}

@media (max-width: 768px) {
  .final-financial-summary-grid {
    grid-template-columns: 1fr;
  }
}

.payment-history-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #44403c;
  padding: 4px 0;
}

.fin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 3px 0;
  color: #44403c;
}

.fin-row.discount {
  color: #15803d;
  font-weight: 700;
}

.fin-row.net-total {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1b5e20;
  border-top: 1.5px solid #cbd5e1;
  padding-top: 6px;
  margin-top: 4px;
}

.fin-row.paid-total {
  color: #15803d;
  font-size: 0.95rem;
  font-weight: 700;
}

.fin-row.balance-due {
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1.05rem;
}

.fin-row.balance-due.cleared {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.fin-row.balance-due.due-pending {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

/* Big Official Seal & Bilateral Sign-Off */
.final-clearance-container {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1.5px dashed #cbd5e1;
  flex-wrap: wrap;
}

.paid-stamp-box {
  flex-shrink: 0;
}

.official-ink-stamp {
  border: 3px double #15803d;
  color: #15803d;
  padding: 10px 18px;
  border-radius: 12px;
  text-align: center;
  transform: rotate(-3deg);
  display: inline-block;
  background: rgba(220, 252, 231, 0.45);
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.15);
}

.official-ink-stamp.stamp-pending {
  border: 3px double #dc2626;
  color: #dc2626;
  background: rgba(254, 226, 226, 0.45);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.stamp-stars {
  font-size: 0.74rem;
  letter-spacing: 3px;
  margin-bottom: 2px;
}

.stamp-title {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.stamp-main {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin: 3px 0;
  text-transform: uppercase;
}

.stamp-sub {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.stamp-loc {
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.85;
  margin-top: 2px;
}

.final-signatures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex: 1;
}

@media (max-width: 650px) {
  .final-signatures-grid {
    grid-template-columns: 1fr;
  }
}

.sign-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sign-declaration {
  font-size: 0.75rem;
  color: #64748b;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 28px;
}

.sign-line {
  border-top: 1.5px solid #334155;
  padding-top: 5px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1e293b;
}

/* Post-Treatment Care and Warranty Notes */
.final-file-footer-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  color: #475569;
}

@media (max-width: 650px) {
  .final-file-footer-notes {
    grid-template-columns: 1fr;
  }
}

.final-file-footer-notes p {
  margin: 3px 0 0 0;
  line-height: 1.35;
}

/* ==========================================================================
   PRINT STYLESHEET: CLEAN A4 OUTPUT FOR FULL & FINAL DISCHARGE FILE
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  body.tc-printing > *:not(#tcPrintRoot) {
    display: none !important;
  }

  #tcPrintRoot {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  #tcPrintRoot * {
    visibility: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #tcPrintRoot .no-print {
    display: none !important;
  }

  #tcPrintRoot .rx-preview-paper,
  #tcPrintRoot .final-bill-paper {
    box-shadow: none !important;
    border: 1px solid #bbb !important;
    border-radius: 0 !important;
    padding: 18px 22px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }
}

/* Mobile-Friendly Staff Portal (PMS) Responsive Layout */
@media (max-width: 900px) {
  .pms-header-bar {
    padding: 10px 12px;
    gap: 8px;
  }

  .pms-header-status-box {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .pms-live-indicator,
  .pms-pass-badge {
    display: none;
  }

  .pms-main-viewport {
    padding: 12px;
  }

  .pms-panel-box {
    padding: 14px;
  }

  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr !important;
  }

  .rx-action-buttons {
    flex-direction: column;
  }

  .rx-action-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .pms-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .final-bill-paper {
    padding: 16px 14px;
  }

  .finalbill-footer {
    padding: 10px 14px !important;
  }

  .finalbill-footer-right {
    width: 100%;
    justify-content: stretch;
  }

  .finalbill-footer-right .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}




/* Official Logo & Real Clinic Tour Strip */
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  padding: 2px;
}

.footer-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
  padding: 4px;
  flex-shrink: 0;
}

.clinic-tour-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.clinic-tour-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.clinic-tour-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.clinic-tour-card:hover img {
  transform: scale(1.06);
}

.clinic-tour-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 10px;
  background: linear-gradient(to top, rgba(45, 22, 20, 0.85), transparent);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .clinic-tour-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Patient Reviews & Google Maps Card */
.reviews-section {
  background: var(--bg-warm);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-size: 0.9rem;
}

.review-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(200, 141, 88, 0.14);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.review-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.review-author strong {
  font-size: 0.92rem;
  color: var(--primary-dark);
}

.review-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.clinic-map-card {
  margin-top: 32px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.clinic-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.clinic-map-header h4 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 3px;
}

.clinic-map-header p {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.btn-map-directions {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-map-directions:hover {
  background: var(--accent-gold);
  color: #ffffff;
}

.clinic-map-frame-wrap {
  width: 100%;
  height: 300px;
}

.clinic-map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   STAFF PORTAL (PMS) — CLEAN SAAS UI POLISH (UNCLUTTERED & CONSISTENT)
   ========================================================================== */
#staffDashboardModal .pms-main-viewport {
  background: #f5f2ee;
  padding: 20px 24px;
}

#staffDashboardModal .pms-nav-tabs {
  background: #ffffff;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #e7e1da;
  border-bottom: 1px solid #e7e1da;
  gap: 6px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(67, 33, 30, 0.04);
}

#staffDashboardModal .pms-tab-btn {
  border-radius: 8px;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: #5c4946;
}

#staffDashboardModal .pms-tab-btn:hover {
  background: #f8f4ef;
  color: #43211e;
}

#staffDashboardModal .pms-tab-btn.active {
  background: #43211e;
  color: #ffffff;
  border-bottom: none;
  box-shadow: 0 3px 10px rgba(67, 33, 30, 0.18);
}

#staffDashboardModal .pms-panel-box {
  background: #ffffff;
  border: 1px solid #e7e1da;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(67, 33, 30, 0.04);
}

#staffDashboardModal .pms-panel-title-bar {
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0ebe5;
}

#staffDashboardModal .pms-panel-title-bar h4 {
  font-size: 1.05rem;
  color: #361a17;
  margin-bottom: 3px;
}

#staffDashboardModal .pms-panel-title-bar p {
  font-size: 0.84rem;
  color: #786562;
  margin: 0;
}

/* Consistent Inputs & Selects inside Staff Portal */
#staffDashboardModal input[type="text"],
#staffDashboardModal input[type="tel"],
#staffDashboardModal input[type="number"],
#staffDashboardModal input[type="date"],
#staffDashboardModal input[type="time"],
#staffDashboardModal select,
#staffDashboardModal textarea {
  border: 1.5px solid #dfd7ce;
  border-radius: 8px;
  background: #fdfcfb;
  color: #2b1816;
  font-size: 0.88rem;
  padding: 9px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#staffDashboardModal input:focus,
#staffDashboardModal select:focus,
#staffDashboardModal textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: #c88d58;
  box-shadow: 0 0 0 3px rgba(200, 141, 88, 0.16);
}

#staffDashboardModal label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #523b38;
  margin-bottom: 5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Cleaner Queue Filter Bar & Table */
#staffDashboardModal .queue-filter-chips-bar {
  background: #faf8f5;
  border: 1px solid #ece5dd;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  gap: 8px;
}

#staffDashboardModal .queue-filter-chip {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid #e2d9cf;
  background: #ffffff;
  color: #4f3a37;
}

#staffDashboardModal .queue-filter-chip.active {
  background: #43211e;
  color: #ffffff;
  border-color: #43211e;
}

#staffDashboardModal .pms-table th {
  background: #f8f5f1;
  color: #4a3330;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 12px 12px;
  border-bottom: 1.5px solid #e5ddd4;
}

#staffDashboardModal .pms-table td {
  padding: 12px 12px;
  border-bottom: 1px solid #f1ece6;
  vertical-align: middle;
}

#staffDashboardModal .pms-table tr:hover {
  background: #fcfaf7;
}

/* Cleaner Preset Pills & Action Buttons */
#staffDashboardModal .rx-presets-bar {
  background: #faf7f4;
  border: 1px solid #ece5dd;
  border-radius: 10px;
  padding: 12px;
  margin: 14px 0;
}

#staffDashboardModal .rx-preset-btn {
  background: #ffffff;
  border: 1px solid #dfd6cc;
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #43211e;
  transition: all 0.2s ease;
}

#staffDashboardModal .rx-preset-btn:hover {
  background: #43211e;
  color: #ffffff;
  border-color: #43211e;
}

#staffDashboardModal .rx-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #f0ebe5;
}

#staffDashboardModal .rx-preview-paper {
  padding: 28px 30px;
  border: 1px solid #dcd5cd;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

@media (max-width: 900px) {
  #staffDashboardModal .pms-main-viewport {
    padding: 10px;
  }

  #staffDashboardModal .pms-panel-box {
    padding: 14px;
    border-radius: 10px;
  }

  #staffDashboardModal .rx-preview-paper {
    padding: 16px 14px;
  }
}

/* ==========================================================================
   LUXURY A4 LETTERHEAD & PDF STYLING (RX & TAX INVOICE)
   ========================================================================== */
.rx-preview-paper {
  border-top: 5px solid #43211e !important;
  border-radius: 10px;
  background: #ffffff;
  color: #1f2937;
}

.rx-header {
  border-bottom: 2px solid #c88d58;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.rx-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.rx-letterhead-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #e7ddd2;
  background: #ffffff;
  padding: 4px;
  flex-shrink: 0;
}

.rx-header-text {
  flex: 1;
}

.rx-clinic-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #43211e;
  letter-spacing: 0.4px;
}

.rx-clinic-badge-sub {
  display: inline-block;
  margin: 3px 0;
  padding: 2px 10px;
  background: #43211e;
  color: #f7d9be;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  border-radius: 999px;
}

.rx-clinic-sub {
  font-size: 0.78rem;
  color: #5c4946;
  line-height: 1.4;
}

.rx-doc-info-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e2d7cc;
  font-size: 0.76rem;
  font-weight: 700;
  color: #43211e;
}

.rx-patient-meta,
.bill-receipt-meta {
  background: #faf7f3;
  border: 1px solid #eadfd4;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 14px;
  font-size: 0.8rem;
}

.rx-symbol {
  font-size: 1.55rem;
  font-weight: 800;
  color: #43211e;
  margin: 6px 0 8px;
}

.rx-item-line {
  padding: 8px 10px;
  border-bottom: 1px dashed #e7dfd6;
  font-size: 0.84rem;
}

.rx-item-line:last-child {
  border-bottom: none;
}

.rx-instructions-preview {
  margin-top: 14px;
  padding: 10px 14px;
  background: #fdfbf8;
  border-left: 3px solid #c88d58;
  border-radius: 0 6px 6px 0;
  font-size: 0.8rem;
  white-space: pre-line;
  color: #3f2f2d;
}

.bill-table-preview {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px;
  font-size: 0.82rem;
}

.bill-table-preview th {
  background: #43211e;
  color: #ffffff;
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
}

.bill-table-preview td {
  padding: 8px 10px;
  border-bottom: 1px solid #ebe3da;
}

.bill-table-preview tr:nth-child(even) td {
  background: #fcfaf7;
}

.bill-summary-preview {
  background: #faf7f3;
  border: 1px solid #e5dad0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 8px;
}

.rx-footer-sign {
  margin-top: 28px;
  padding-top: 10px;
  padding-bottom: 8px;
  display: flex;
  justify-content: flex-end;
  font-size: 0.8rem;
  font-weight: 700;
  color: #43211e;
}

.rx-footer-sign span {
  border-top: 1.5px solid #43211e;
  padding-top: 6px;
  min-width: 220px;
  text-align: center;
}
