/* TeleMed+ Custom Styles & Design System */

:root {
  --color-teal-primary: #009C9A;
  --color-teal-dark: #006D70;
  --color-teal-deep: #004F57;
  --color-teal-light: #E6F7F6;
  --color-bg: #F5FAFC;
  --color-white: #FFFFFF;
  --color-text-primary: #172B35;
  --color-text-secondary: #718096;
  --color-border: #E2EDF0;
  --color-success: #16A67A;
  --color-warning: #F0A83A;
  --color-error: #E45858;
}

/* Strict mobile viewport constraints to prevent horizontal bleeding */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
}

#app-root {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Accessible focus outlines for keyboard users */
:focus-visible {
  outline: 2px solid var(--color-teal-primary);
  outline-offset: 2px;
}

/* Non-selectable UI controls only (body text stays copyable) */
button, nav, aside {
  user-select: none;
  -webkit-user-select: none;
}

/* Media assets responsive constraints */
img, video, canvas {
  max-width: 100%;
}

/* Hide scrollbar utility */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #009C9A;
}

/* Smooth Transitions */
.transition-smooth {
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations (fallback even without Tailwind runtime) */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.animate-fade-in {
  animation: fadeIn 0.22s ease-out forwards;
}
.animate-slide-up {
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-slide-in-left {
  animation: slideInLeft 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Gradients */
.gradient-teal {
  background: linear-gradient(135deg, #009C9A 0%, #006D70 60%, #004F57 100%);
}

.gradient-teal-banner {
  background: linear-gradient(110deg, #009C9A 0%, #008284 45%, #006D70 100%);
}

.gradient-card-soft {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5FAFC 100%);
}

.gradient-health-status {
  background: linear-gradient(135deg, #009C9A 0%, #008284 100%);
}

/* Sidebar Gradient */
.sidebar-teal {
  background: linear-gradient(180deg, #004F57 0%, #006D70 65%, #00454D 100%);
}

/* Card Shadows */
.card-shadow {
  box-shadow: 0 4px 20px -2px rgba(0, 79, 87, 0.06), 0 2px 6px -1px rgba(0, 79, 87, 0.03);
}

.card-shadow-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card-shadow-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(0, 79, 87, 0.1), 0 4px 8px -2px rgba(0, 79, 87, 0.05);
}

/* Heartbeat Animation */
@keyframes heartbeatPulse {
  0% { transform: scale(1); }
  14% { transform: scale(1.1); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
  70% { transform: scale(1); }
}

.animate-heartbeat {
  animation: heartbeatPulse 1.8s infinite ease-in-out;
}

/* Skeleton Loading */
@keyframes skeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #E2EDF0 25%, #F0F6F8 50%, #E2EDF0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s infinite linear;
  border-radius: 10px;
}

/* Video Call Pulse Indicator */
.live-pulse {
  position: relative;
}
.live-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background-color: #16A67A;
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Floating Audio Visualizer in Video Consultation */
.audio-bar {
  display: inline-block;
  width: 3px;
  height: 12px;
  margin: 0 1px;
  background-color: #009C9A;
  border-radius: 2px;
  animation: audioWave 1s infinite ease-in-out;
}
.audio-bar:nth-child(2) { animation-delay: 0.15s; height: 18px; }
.audio-bar:nth-child(3) { animation-delay: 0.3s; height: 14px; }
.audio-bar:nth-child(4) { animation-delay: 0.45s; height: 22px; }
.audio-bar:nth-child(5) { animation-delay: 0.6s; height: 10px; }

@keyframes audioWave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1.2); }
}

/* Toast Container */
#toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  left: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 400px;
  margin-left: auto;
}

@media (max-width: 640px) {
  #toast-container {
    left: 12px;
    right: 12px;
    top: 12px;
    max-width: 100%;
  }
}

.toast-item {
  pointer-events: auto;
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 79, 87, 0.16);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  animation: toastSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.25s ease;
}

@keyframes toastSlideIn {
  from {
    transform: translateY(-16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast-item.toast-leave {
  transform: translateY(-16px);
  opacity: 0;
}

/* Modal Backdrops */
.modal-backdrop {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(23, 43, 53, 0.55);
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Clean Print Stylesheet (zero blank extra pages) */
@page {
  size: A4;
  margin: 12mm;
}

@media print {
  html, body {
    background: #FFFFFF !important;
    overflow: visible !important;
  }
  #app-root,
  #toast-container,
  #offline-banner,
  #active-modal-backdrop,
  #telemed-video-room,
  .no-print {
    display: none !important;
  }
  #print-root {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF !important;
  }
}

/* Login Screen Reference Visual Helpers */
.login-screen-bg {
  background: linear-gradient(168deg, #FFFFFF 0%, #F2FCFB 38%, #E1F6F5 76%, #D2F1EF 100%);
}

.login-cta-btn {
  background: linear-gradient(90deg, #009C9A 0%, #007A7C 55%, #006669 100%);
}
.login-cta-btn:hover {
  background: linear-gradient(90deg, #008B89 0%, #006A6C 55%, #005458 100%);
}

.login-doctor-blend {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.85) 20%, #000 38%, #000 100%),
                      linear-gradient(to top, transparent 0%, #000 12%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.85) 20%, #000 38%, #000 100%),
              linear-gradient(to top, transparent 0%, #000 12%, #000 100%);
  mask-composite: intersect;
}

/* Mobile Splash Screen Visual Helpers */
.splash-screen-bg {
  background: linear-gradient(175deg, #00A5A2 0%, #008285 45%, #00666A 100%);
}

.splash-doctor-blend {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 100%),
                      linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 100%),
              linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
}

/* Bottom safe area for mobile iPhone notch & home bar */
.pb-safe {
  padding-bottom: max(env(safe-area-inset-bottom, 12px), 10px);
}

/* Futuristic Floating Glass Mobile Bottom Navigation Dock */
.mobile-dock-wrapper {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0 14px max(env(safe-area-inset-bottom, 12px), 12px);
  pointer-events: none;
}

.mobile-dock-bar {
  pointer-events: auto;
  max-width: 440px;
  margin: 0 auto;
  padding: 7px 8px;
  border-radius: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  background: linear-gradient(135deg, rgba(0, 52, 59, 0.90) 0%, rgba(0, 79, 87, 0.88) 55%, rgba(0, 58, 66, 0.92) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 229, 217, 0.24);
  box-shadow:
    0 16px 38px -8px rgba(0, 40, 46, 0.48),
    0 6px 16px -4px rgba(0, 156, 154, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.bottom-nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px 7px;
  border-radius: 19px;
  color: rgba(226, 247, 246, 0.72);
  text-decoration: none;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.24s ease,
              color 0.24s ease,
              box-shadow 0.24s ease;
}

.bottom-nav-link:active {
  transform: scale(0.93);
}

.bottom-nav-link:hover {
  color: #FFFFFF;
}

.bottom-nav-link .dock-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.bottom-nav-link .dock-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bottom-nav-link .dock-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #FF6B6B 0%, #E45858 100%);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1.5px solid #004F57;
  box-shadow: 0 2px 6px rgba(228, 88, 88, 0.45);
}

.bottom-nav-link.is-active {
  background: linear-gradient(135deg, #00E5D9 0%, #00B5B2 52%, #009C9A 100%);
  color: #00353B;
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px -4px rgba(0, 229, 217, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.bottom-nav-link.is-active .dock-icon-wrap {
  transform: translateY(-1px) scale(1.06);
}

.bottom-nav-link.is-active .dock-label {
  font-weight: 800;
  color: #00353B;
}

.bottom-nav-link.is-active .dock-badge {
  border-color: #00B5B2;
}

.bottom-nav-link.is-active::after {
  content: '';
  position: absolute;
  top: 3px;
  width: 18px;
  height: 2.5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.72);
}

@media (min-width: 768px) {
  .mobile-dock-wrapper {
    display: none !important;
  }
}

/* Professional Searchable Combobox Component (Doctor Picker) */
.tm-combobox {
  border: 1.5px solid #DCE8EC;
  border-radius: 14px;
  background: #FFFFFF;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tm-combobox:focus-within {
  border-color: #009C9A;
  box-shadow: 0 0 0 3px rgba(0, 156, 154, 0.14);
}

.tm-combobox-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #F8FCFC;
  border-bottom: 1px solid #E2EDF0;
}

.tm-combobox-icon {
  color: #5A717B;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-combobox-input {
  flex: 1;
  min-width: 0;
  border: none !important;
  outline: none !important;
  background: transparent;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
  color: #172B35;
}

.tm-combobox-input::placeholder {
  color: #718096;
}

.tm-combobox-list {
  max-height: 184px;
  overflow-y: auto;
  background: #FFFFFF;
}

.tm-combobox-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: none;
  border-bottom: 1px solid #F1F6F8;
  background: #FFFFFF;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.tm-combobox-option:last-child {
  border-bottom: none;
}

.tm-combobox-option:hover {
  background: #E6F7F6;
}

.tm-combobox-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #E6F7F6 0%, #F2FCFB 100%);
  border: 1.5px solid rgba(0, 156, 154, 0.45);
}

/* ============================================================================
   Responsive Appointment Cards (Doctor & Patient)
   Desktop/wide: actions aligned to the right when space allows.
   Small/mobile (<640px): actions stack cleanly vertically below the card info.
   ============================================================================ */
.tm-appt-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 16px;
}

.tm-appt-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 280px;
  min-width: 0;
}

.tm-appt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 1 auto;
  margin-left: auto;
}

.tm-appt-actions > button,
.tm-appt-actions > a,
.tm-appt-actions > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .tm-appt-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .tm-appt-info {
    flex: 1 1 auto;
    width: 100%;
  }

  .tm-appt-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* ============================================================================
   TeleMed+ Ultra-Futuristic Design System: Bio-Glass Light + Obsidian Dark
   ============================================================================ */
body {
  background-color: #F2FAFC;
  background-image:
    radial-gradient(at 12% 8%, rgba(0, 229, 217, 0.11) 0px, transparent 42%),
    radial-gradient(at 88% 14%, rgba(0, 156, 154, 0.09) 0px, transparent 45%),
    radial-gradient(at 78% 88%, rgba(22, 166, 122, 0.08) 0px, transparent 42%);
  background-attachment: fixed;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, table, .font-black, .font-mono {
  font-variant-numeric: tabular-nums;
}

/* Spatial Glass Header */
.tm-glass-header {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(0, 156, 154, 0.14) !important;
  box-shadow: 0 8px 30px -12px rgba(0, 79, 87, 0.1);
}

/* Bioluminescent Sidebar */
.sidebar-teal {
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 229, 217, 0.22) 0%, transparent 45%),
    linear-gradient(180deg, #003A42 0%, #005861 52%, #00353D 100%) !important;
  border-right: 1px solid rgba(0, 229, 217, 0.18);
  box-shadow: 12px 0 36px -16px rgba(0, 40, 48, 0.45);
}

.sidebar-nav-link {
  position: relative;
  transition: transform 0.18s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-nav-link:hover {
  transform: translateX(3px);
}

.sidebar-nav-link.bg-\[\#009C9A\] {
  background: linear-gradient(135deg, #00B8B4 0%, #008A8E 100%) !important;
  box-shadow: 0 10px 24px -6px rgba(0, 229, 217, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

/* Spatial Glass Cards */
.card-shadow {
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 12px 32px -14px rgba(0, 79, 87, 0.13),
    0 2px 6px -1px rgba(0, 79, 87, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.card-shadow-hover {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 10px 26px -12px rgba(0, 79, 87, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease !important;
}

.card-shadow-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 156, 154, 0.42) !important;
  box-shadow:
    0 18px 38px -14px rgba(0, 156, 154, 0.24),
    0 0 0 1px rgba(0, 229, 217, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

/* Bio-Glow Primary Buttons */
button.bg-\[\#009C9A\],
a.bg-\[\#009C9A\] {
  background-image: linear-gradient(135deg, #00B5B2 0%, #008B8E 100%);
  box-shadow: 0 8px 20px -6px rgba(0, 156, 154, 0.45);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button.bg-\[\#009C9A\]:hover,
a.bg-\[\#009C9A\]:hover {
  filter: brightness(1.04);
  box-shadow: 0 12px 26px -6px rgba(0, 200, 196, 0.55);
}

button.bg-\[\#006D70\],
a.bg-\[\#006D70\] {
  background-image: linear-gradient(135deg, #007E82 0%, #00545C 100%);
  box-shadow: 0 8px 20px -6px rgba(0, 79, 87, 0.4);
}

button:active {
  transform: scale(0.98);
}

/* VisionOS Frosted Modal */
.modal-backdrop {
  background: rgba(5, 22, 28, 0.56) !important;
  backdrop-filter: blur(10px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(140%) !important;
}

#active-modal-backdrop [role="dialog"] {
  border: 1px solid rgba(0, 229, 217, 0.28);
  box-shadow: 0 28px 64px -16px rgba(0, 35, 42, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  animation: tmModalSpring 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tmModalSpring {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Theme Toggle Pill */
.tm-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 13px;
  border-radius: 9999px;
  background: rgba(230, 247, 246, 0.85);
  border: 1px solid rgba(0, 156, 154, 0.25);
  color: #006D70;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tm-theme-toggle:hover {
  background: #009C9A;
  color: #FFFFFF;
  box-shadow: 0 8px 18px -6px rgba(0, 156, 154, 0.5);
}

/* ============================================================================
   Obsidian Bio-Tech Dark Mode (html[data-theme="dark"])
   ============================================================================ */
html[data-theme="dark"] body {
  background-color: #061318 !important;
  background-image:
    radial-gradient(at 15% 10%, rgba(0, 229, 217, 0.14) 0px, transparent 44%),
    radial-gradient(at 86% 18%, rgba(0, 156, 154, 0.12) 0px, transparent 46%),
    radial-gradient(at 50% 92%, rgba(22, 166, 122, 0.1) 0px, transparent 48%) !important;
  color: #E7F5F7 !important;
}

html[data-theme="dark"] .tm-glass-header {
  background: rgba(7, 22, 29, 0.82) !important;
  border-bottom: 1px solid rgba(0, 229, 217, 0.16) !important;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.65);
}

html[data-theme="dark"] .sidebar-teal {
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 229, 217, 0.18) 0%, transparent 45%),
    linear-gradient(180deg, #041015 0%, #07222B 55%, #041218 100%) !important;
  border-right: 1px solid rgba(0, 229, 217, 0.2);
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .card-shadow,
html[data-theme="dark"] .card-shadow-hover {
  background-color: rgba(11, 30, 38, 0.86) !important;
  border-color: rgba(0, 229, 217, 0.16) !important;
  box-shadow:
    0 14px 36px -14px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(0, 229, 217, 0.1) !important;
}

html[data-theme="dark"] .card-shadow-hover:hover {
  border-color: rgba(0, 229, 217, 0.48) !important;
  box-shadow:
    0 20px 42px -14px rgba(0, 229, 217, 0.22),
    0 0 0 1px rgba(0, 229, 217, 0.25) !important;
}

html[data-theme="dark"] .bg-\[\#F5FAFC\],
html[data-theme="dark"] .bg-\[\#F5FAFC\]\/60,
html[data-theme="dark"] .bg-\[\#F5FAFC\]\/80,
html[data-theme="dark"] .bg-slate-50,
html[data-theme="dark"] .bg-slate-100 {
  background-color: rgba(16, 42, 53, 0.78) !important;
  border-color: rgba(0, 229, 217, 0.14) !important;
}

html[data-theme="dark"] .bg-\[\#E6F7F6\],
html[data-theme="dark"] .bg-\[\#E6F7F6\]\/60,
html[data-theme="dark"] .bg-\[\#E6F7F6\]\/70,
html[data-theme="dark"] .bg-\[\#E6F7F6\]\/30 {
  background-color: rgba(0, 156, 154, 0.18) !important;
  border-color: rgba(0, 229, 217, 0.28) !important;
}

html[data-theme="dark"] .bg-amber-50,
html[data-theme="dark"] .bg-amber-50\/70 {
  background-color: rgba(240, 168, 58, 0.14) !important;
  border-color: rgba(240, 168, 58, 0.35) !important;
}

html[data-theme="dark"] .bg-emerald-50,
html[data-theme="dark"] .bg-emerald-50\/70 {
  background-color: rgba(22, 166, 122, 0.16) !important;
  border-color: rgba(22, 166, 122, 0.35) !important;
}

html[data-theme="dark"] .bg-indigo-50,
html[data-theme="dark"] .bg-indigo-50\/70,
html[data-theme="dark"] .bg-indigo-100 {
  background-color: rgba(99, 102, 241, 0.2) !important;
  border-color: rgba(129, 140, 248, 0.38) !important;
  color: #C7D2FE !important;
}

html[data-theme="dark"] .bg-rose-50,
html[data-theme="dark"] .bg-red-50 {
  background-color: rgba(228, 88, 88, 0.16) !important;
  border-color: rgba(228, 88, 88, 0.35) !important;
}

html[data-theme="dark"] .text-\[\#172B35\],
html[data-theme="dark"] .text-slate-700,
html[data-theme="dark"] .text-amber-900,
html[data-theme="dark"] .text-emerald-900,
html[data-theme="dark"] .text-indigo-900 {
  color: #ECF8FA !important;
}

html[data-theme="dark"] .text-\[\#004F57\],
html[data-theme="dark"] .text-\[\#006D70\] {
  color: #63F0E8 !important;
}

html[data-theme="dark"] .text-\[\#718096\],
html[data-theme="dark"] .text-\[\#516873\],
html[data-theme="dark"] .text-slate-500 {
  color: #93B4BF !important;
}

html[data-theme="dark"] .text-indigo-700,
html[data-theme="dark"] .text-indigo-800 {
  color: #C7D2FE !important;
}

html[data-theme="dark"] .text-emerald-700,
html[data-theme="dark"] .text-emerald-800 {
  color: #6EE7B7 !important;
}

html[data-theme="dark"] .text-amber-700,
html[data-theme="dark"] .text-amber-800 {
  color: #FCD34D !important;
}

html[data-theme="dark"] .text-rose-700,
html[data-theme="dark"] .text-red-600 {
  color: #FDA4AF !important;
}

html[data-theme="dark"] .border-\[\#E2EDF0\],
html[data-theme="dark"] .divide-\[\#E2EDF0\] > * + * {
  border-color: rgba(0, 229, 217, 0.14) !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background-color: rgba(7, 22, 29, 0.9) !important;
  color: #ECF8FA !important;
  border-color: rgba(0, 229, 217, 0.22) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #6E919D !important;
}

html[data-theme="dark"] tbody tr:hover {
  background-color: rgba(0, 229, 217, 0.08) !important;
}

html[data-theme="dark"] .tm-combobox,
html[data-theme="dark"] .tm-combobox-list,
html[data-theme="dark"] .tm-combobox-option {
  background: #0B1E26 !important;
  border-color: rgba(0, 229, 217, 0.2) !important;
  color: #ECF8FA !important;
}

html[data-theme="dark"] .tm-combobox-input-wrap {
  background: #07161D !important;
  border-bottom-color: rgba(0, 229, 217, 0.18) !important;
}

html[data-theme="dark"] .tm-combobox-option:hover {
  background: rgba(0, 156, 154, 0.22) !important;
}

html[data-theme="dark"] .tm-theme-toggle {
  background: rgba(0, 229, 217, 0.14);
  border-color: rgba(0, 229, 217, 0.35);
  color: #63F0E8;
}

html[data-theme="dark"] .tm-theme-toggle:hover {
  background: #00E5D9;
  color: #04161B;
}

html[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #07161D;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #1B4A57;
}

/* ============================================================================
   Public Landing Page — Pixel-Accurate Layout (Bio-Glass Light + Obsidian Dark)
   100% self-contained CSS so zero uncompiled Tailwind utilities can break layout.
   ============================================================================ */
.lp-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #F4FAFC;
  color: #0F253E;
  overflow-x: hidden;
}

.lp-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* 1. Navbar */
.lp-navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(0, 156, 154, 0.14);
  box-shadow: 0 4px 24px -12px rgba(0, 79, 87, 0.12);
}

.lp-nav-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.lp-brand-text {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0B3A4A;
}

.lp-brand-plus {
  color: #00A5A2;
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.lp-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #163042;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.lp-nav-link:hover {
  background: #E6F7F6;
  color: #006D70;
}

.lp-nav-link.is-active {
  background: linear-gradient(135deg, #00B2AE 0%, #008B8E 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 6px 16px -4px rgba(0, 156, 154, 0.45);
}

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lp-btn-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 9999px;
  border: 1.5px solid #CBE4E8;
  background: rgba(255, 255, 255, 0.9);
  color: #0F253E;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.lp-btn-login:hover {
  border-color: #009C9A;
  background: #E6F7F6;
  color: #006D70;
}

.lp-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #007F87 0%, #005B63 100%);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(0, 91, 99, 0.5);
  transition: transform 0.16s ease, filter 0.18s ease;
}

.lp-btn-cta:hover {
  filter: brightness(1.07);
}

.lp-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #D8ECEF;
  background: #FFFFFF;
  color: #0F253E;
  cursor: pointer;
}

/* 2. Hero Full-Bleed Photographic Banner */
.lp-hero {
  position: relative;
  width: 100%;
  height: 460px;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(115deg, #EDF8FB 0%, #E3F5F8 55%, #B8ECEE 100%);
}

.lp-hero-photo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-37%);
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.78) 12%, #000 24%, #000 89%, rgba(0, 0, 0, 0.55) 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.78) 12%, #000 24%, #000 89%, rgba(0, 0, 0, 0.55) 96%, transparent 100%);
}

.lp-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(237, 248, 251, 0.96) 0%,
    rgba(237, 248, 251, 0.88) 32%,
    rgba(237, 248, 251, 0.32) 44%,
    rgba(237, 248, 251, 0) 54%,
    rgba(198, 241, 244, 0) 78%,
    rgba(178, 236, 238, 0.62) 100%
  );
}

.lp-hero-wave {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  max-width: 540px;
  height: 185px;
  z-index: 3;
  pointer-events: none;
}

.lp-hero-grid {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.lp-hero-copy {
  max-width: 560px;
}

.lp-hero-title {
  margin: 0;
  font-size: 46px;
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: #0E223D;
}

.lp-hero-title-accent {
  color: #009C9A;
  display: block;
}

.lp-hero-sub {
  margin: 14px 0 22px;
  font-size: 15.5px;
  line-height: 1.52;
  font-weight: 500;
  color: #294356;
  max-width: 470px;
  min-height: 72px;
}

.lp-hero-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.lp-btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #00828A 0%, #005E66 100%);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 24px -8px rgba(0, 94, 102, 0.55);
  transition: transform 0.16s ease, filter 0.18s ease;
}

.lp-btn-hero-primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.lp-btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  color: #006D70;
  border: 1.5px solid #009C9A;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.lp-btn-hero-outline:hover {
  background: #E6F7F6;
  transform: translateY(-1px);
}

.lp-hero-script-wrap {
  align-self: flex-start;
  margin-top: 8px;
  text-align: center;
  transform: rotate(-4deg);
  flex-shrink: 0;
}

.lp-hero-script {
  font-family: 'Caveat', cursive !important;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.08;
  color: #0F253E;
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.85);
}

/* Main stacked sections */
.lp-main {
  flex: 1;
  padding-top: 18px;
  padding-bottom: 42px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* 3. Trust Strip (4 Pillars with vertical dividers) */
.lp-trust-bar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid #DFEFF2;
  border-radius: 18px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  box-shadow: 0 10px 28px -14px rgba(0, 79, 87, 0.14);
}

.lp-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 4px 16px;
  border-right: 1px solid #D9ECEF;
}

.lp-trust-item:last-child {
  border-right: none;
}

.lp-trust-title {
  font-size: 14px;
  font-weight: 800;
  color: #0F253E;
  line-height: 1.25;
}

.lp-trust-sub {
  font-size: 12px;
  color: #5E7484;
  margin-top: 1px;
}

/* 4. Especialidades Médicas (Left intro + 7 colored icon cards) */
.lp-specs-section {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.lp-specs-title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.12;
  color: #0F253E;
}

.lp-specs-title span {
  color: #009C9A;
  display: block;
}

.lp-specs-desc {
  margin: 10px 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: #4A6373;
}

.lp-btn-spec-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 9999px;
  border: 1.5px solid #009C9A;
  background: rgba(255, 255, 255, 0.9);
  color: #006D70;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}

.lp-btn-spec-all:hover {
  background: #009C9A;
  color: #FFFFFF;
}

.lp-specs-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.lp-spec-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid #E1EFF2;
  border-radius: 16px;
  padding: 18px 10px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 8px 22px -12px rgba(0, 79, 87, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-spec-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 156, 154, 0.5);
  box-shadow: 0 16px 32px -12px rgba(0, 156, 154, 0.25);
}

.lp-spec-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #163042;
  line-height: 1.25;
}

/* 5. Consultas Disponíveis Agora (Mint Bio-Glass Band + 3 Horizontal Doctor Cards) */
.lp-doctors-band {
  background: linear-gradient(135deg, #DDF5F6 0%, #EAF9FA 60%, #E1F6F8 100%);
  border: 1px solid rgba(0, 156, 154, 0.18);
  border-radius: 22px;
  padding: 26px 24px;
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  box-shadow: 0 14px 34px -16px rgba(0, 109, 112, 0.18);
}

.lp-doctors-intro {
  padding-right: 20px;
  border-right: 1px solid rgba(0, 156, 154, 0.2);
}

.lp-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #009C9A;
}

.lp-doctors-heading {
  margin: 10px 0 8px;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.15;
  color: #0F253E;
}

.lp-doctors-sub {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.45;
  color: #466171;
}

.lp-doctors-carousel {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lp-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #D4EAED;
  color: #006D70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -6px rgba(0, 79, 87, 0.22);
  transition: all 0.18s ease;
}

.lp-arrow-btn:hover {
  background: #009C9A;
  color: #FFFFFF;
}

.lp-doctors-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  min-width: 0;
  padding: 4px 2px;
}

.lp-doc-card {
  flex: 0 0 calc((100% - 28px) / 3);
  min-width: 268px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #E2F0F2;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: stretch;
  gap: 13px;
  box-shadow: 0 10px 24px -12px rgba(0, 79, 87, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lp-doc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 156, 154, 0.45);
  box-shadow: 0 18px 34px -14px rgba(0, 156, 154, 0.26);
}

.lp-doc-photo {
  width: 86px;
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top;
  background: #E7F4F6;
  flex-shrink: 0;
}

.lp-doc-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lp-online-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  background: #DCFCE7;
  color: #15803D;
  width: fit-content;
}

.lp-doc-name {
  margin: 4px 0 1px;
  font-size: 14.5px;
  font-weight: 800;
  color: #0F253E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-doc-spec {
  margin: 0;
  font-size: 12px;
  color: #5E7484;
  font-weight: 500;
}

.lp-doc-price {
  margin: 3px 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #009C9A;
}

.lp-doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 7px 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #00828A 0%, #00666E 100%);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.18s ease;
}

.lp-doc-btn:hover {
  filter: brightness(1.08);
}

/* 6. Como Funciona? (3 Horizontal Steps + Curved Family Corner) */
.lp-how-band {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid #DFEFF2;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr) 310px;
  align-items: stretch;
  min-height: 158px;
  box-shadow: 0 12px 30px -14px rgba(0, 79, 87, 0.14);
}

.lp-how-intro {
  padding: 24px 12px 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lp-how-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #0F253E;
}

.lp-how-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #5E7484;
}

.lp-how-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 14px;
}

.lp-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.lp-step-num {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: #00A5A2;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.lp-step-icon {
  color: #0B4657;
  flex-shrink: 0;
  margin-top: 2px;
}

.lp-step-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F253E;
  line-height: 1.25;
}

.lp-step-desc {
  font-size: 11.5px;
  color: #5E7484;
  line-height: 1.4;
  margin-top: 2px;
}

.lp-step-arrow {
  color: #6BAAB2;
  flex-shrink: 0;
}

.lp-how-family-wrap {
  position: relative;
  height: 100%;
  min-height: 158px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.lp-how-family-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.lp-how-family-img {
  position: relative;
  z-index: 2;
  width: 238px;
  max-width: 82%;
  height: auto;
  display: block;
  object-fit: contain;
  margin-right: 4px;
  filter: drop-shadow(0 6px 14px rgba(0, 52, 60, 0.16));
}

/* 7. Footer */
.lp-footer {
  background: linear-gradient(135deg, #004A55 0%, #003A44 100%);
  color: #FFFFFF;
  margin-top: auto;
}

.lp-footer-top {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
}

.lp-footer-links a,
.lp-footer-links button {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  padding: 0;
}

.lp-footer-links a:hover,
.lp-footer-links button:hover {
  color: #00E5D9;
}

.lp-footer-sep {
  color: rgba(255, 255, 255, 0.35);
}

.lp-footer-contacts {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 600;
  flex-wrap: wrap;
}

.lp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 24px;
  text-align: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
}

/* Responsive Breakpoints */
@media (max-width: 1180px) {
  .lp-nav-links { display: none; }
  .lp-menu-btn { display: inline-flex; }
  .lp-specs-section { grid-template-columns: 1fr; }
  .lp-specs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lp-doctors-band { grid-template-columns: 1fr; }
  .lp-doctors-intro { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(0, 156, 154, 0.2); padding-bottom: 16px; }
  .lp-doc-card { flex: 0 0 285px; }
  .lp-how-band { grid-template-columns: 1fr; }
  .lp-how-intro { padding: 22px 22px 0; }
  .lp-how-steps { flex-direction: column; align-items: stretch; padding: 16px 22px; }
  .lp-step-arrow { display: none; }
  .lp-how-family-wrap { min-height: 130px; }
  .lp-hero-script-wrap { display: none; }
  .lp-hero-photo {
    left: auto;
    right: -28px;
    transform: none;
  }
}

@media (max-width: 767px) {
  .lp-container { padding-left: 16px; padding-right: 16px; }
  .lp-btn-login { display: none; }
  .lp-hero { height: 430px; min-height: 430px; }
  .lp-hero-photo {
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    transform: none;
    object-position: 62% 14%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .lp-hero-title { font-size: 34px; }
  .lp-hero-sub { font-size: 14px; }
  .lp-hero-veil {
    background: linear-gradient(180deg, rgba(241, 250, 253, 0.94) 0%, rgba(241, 250, 253, 0.88) 70%, rgba(215, 245, 246, 0.92) 100%);
  }
  .lp-trust-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .lp-trust-item { border-right: none; justify-content: flex-start; padding: 4px; }
  .lp-specs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-arrow-btn { display: none; }
  .lp-doc-card { flex: 0 0 86%; min-width: 260px; }
}

/* Obsidian Bio-Tech Dark Mode for Landing Page */
html[data-theme="dark"] .lp-page {
  background: #061318 !important;
  color: #ECF8FA !important;
}

html[data-theme="dark"] .lp-navbar {
  background: rgba(6, 19, 24, 0.86) !important;
  border-bottom-color: rgba(0, 229, 217, 0.18) !important;
}

html[data-theme="dark"] .lp-brand-text,
html[data-theme="dark"] .lp-nav-link,
html[data-theme="dark"] .lp-hero-title,
html[data-theme="dark"] .lp-trust-title,
html[data-theme="dark"] .lp-specs-title,
html[data-theme="dark"] .lp-spec-name,
html[data-theme="dark"] .lp-doctors-heading,
html[data-theme="dark"] .lp-doc-name,
html[data-theme="dark"] .lp-how-title,
html[data-theme="dark"] .lp-step-title,
html[data-theme="dark"] .lp-hero-script {
  color: #ECF8FA !important;
}

html[data-theme="dark"] .lp-hero-script {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

html[data-theme="dark"] .lp-hero-sub,
html[data-theme="dark"] .lp-trust-sub,
html[data-theme="dark"] .lp-specs-desc,
html[data-theme="dark"] .lp-doctors-sub,
html[data-theme="dark"] .lp-doc-spec,
html[data-theme="dark"] .lp-how-sub,
html[data-theme="dark"] .lp-step-desc {
  color: #9BC0CC !important;
}

html[data-theme="dark"] .lp-hero {
  background: linear-gradient(115deg, #061318 0%, #092028 55%, #0A2E38 100%) !important;
}

html[data-theme="dark"] .lp-hero-veil {
  background: linear-gradient(
    90deg,
    rgba(6, 19, 24, 0.96) 0%,
    rgba(6, 19, 24, 0.88) 34%,
    rgba(6, 19, 24, 0.42) 47%,
    rgba(6, 19, 24, 0.08) 60%,
    rgba(6, 32, 40, 0.14) 80%,
    rgba(6, 36, 44, 0.72) 100%
  ) !important;
}

html[data-theme="dark"] .lp-trust-bar,
html[data-theme="dark"] .lp-spec-card,
html[data-theme="dark"] .lp-doc-card,
html[data-theme="dark"] .lp-how-band,
html[data-theme="dark"] .lp-btn-login,
html[data-theme="dark"] .lp-btn-hero-outline,
html[data-theme="dark"] .lp-btn-spec-all,
html[data-theme="dark"] .lp-arrow-btn,
html[data-theme="dark"] .lp-menu-btn {
  background: rgba(11, 30, 38, 0.88) !important;
  border-color: rgba(0, 229, 217, 0.2) !important;
  color: #ECF8FA !important;
}

html[data-theme="dark"] .lp-trust-item {
  border-right-color: rgba(0, 229, 217, 0.14);
}

html[data-theme="dark"] .lp-doctors-band {
  background: linear-gradient(135deg, rgba(8, 32, 41, 0.92) 0%, rgba(10, 42, 52, 0.92) 100%) !important;
  border-color: rgba(0, 229, 217, 0.22) !important;
}

html[data-theme="dark"] .lp-step-icon {
  color: #5CECE4;
}

html[data-theme="dark"] .lp-footer {
  background: linear-gradient(135deg, #04151C 0%, #031015 100%) !important;
  border-top: 1px solid rgba(0, 229, 217, 0.16);
}

/* Floating WhatsApp Quick Support Pill (Public Homepage) */
.lp-whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #22C55E 0%, #15803D 100%);
  color: #FFFFFF !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 28px -6px rgba(21, 128, 61, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.lp-whatsapp-fab:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px -6px rgba(34, 197, 94, 0.65);
}

@media (max-width: 639px) {
  .lp-whatsapp-fab {
    right: 14px;
    bottom: 14px;
    padding: 12px;
  }
  .lp-whatsapp-label {
    display: none;
  }
}

/* Obsidian Bio-Tech Dark Mode Polish for Login & Register Screens */
html[data-theme="dark"] .auth-page-bg {
  background: radial-gradient(circle at 20% 15%, rgba(0, 229, 217, 0.14), transparent 45%), #051217 !important;
}

html[data-theme="dark"] .login-screen-bg {
  background: linear-gradient(180deg, #071B22 0%, #0A252E 52%, #06181F 100%) !important;
  border-color: rgba(0, 229, 217, 0.22) !important;
}

html[data-theme="dark"] .login-screen-bg .text-\[\#1E3B44\],
html[data-theme="dark"] .login-screen-bg .text-\[\#354E58\] {
  color: #B4D4DE !important;
}

html[data-theme="dark"] .login-screen-bg .text-\[\#007377\],
html[data-theme="dark"] .login-screen-bg .text-\[\#007D80\] {
  color: #5CECE4 !important;
}

html[data-theme="dark"] .login-screen-bg .bg-white\/85,
html[data-theme="dark"] .login-screen-bg .bg-\[\#F0F8F8\] {
  background-color: rgba(11, 34, 43, 0.9) !important;
  border-color: rgba(0, 229, 217, 0.24) !important;
}

html[data-theme="dark"] .login-doctor-blend {
  opacity: 0.88;
}

/* ============================================================================
   TeleMed+ Futuristic Bio-Tech Motion & Interactive Glass System (Landing Page)
   GPU-accelerated (transform/opacity), Light Bio-Glass + Obsidian Neon Dark
   ============================================================================ */

.lp-page {
  background-color: #F3FAFC;
  background-image:
    radial-gradient(at 8% 12%, rgba(0, 229, 217, 0.13) 0px, transparent 42%),
    radial-gradient(at 92% 46%, rgba(0, 156, 154, 0.09) 0px, transparent 44%),
    radial-gradient(at 14% 88%, rgba(22, 166, 122, 0.08) 0px, transparent 42%);
}

html[data-theme="dark"] .lp-page {
  background-color: #061318 !important;
  background-image:
    radial-gradient(at 10% 10%, rgba(0, 229, 217, 0.12) 0px, transparent 42%),
    radial-gradient(at 90% 45%, rgba(0, 156, 154, 0.10) 0px, transparent 45%),
    radial-gradient(at 20% 88%, rgba(22, 166, 122, 0.09) 0px, transparent 42%) !important;
}

/* --- 1. Animated Hero Banner (Grid, Bio-Orbs, ECG Pulse, Breathing Waves, HUD) --- */
.lp-hero {
  --lp-px: 0px;
  --lp-py: 0px;
}

.lp-hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 140, 143, 0.17) 1.15px, transparent 1.15px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0.12) 72%, rgba(0, 0, 0, 0.6) 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0.12) 72%, rgba(0, 0, 0, 0.6) 100%);
}

.lp-hero-orb {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(46px);
  z-index: 0;
  will-change: transform, opacity;
}

.lp-hero-orb-1 {
  width: 340px;
  height: 340px;
  top: -110px;
  left: -60px;
  background: radial-gradient(circle, rgba(0, 229, 217, 0.34) 0%, rgba(0, 156, 154, 0.06) 70%, transparent 100%);
  animation: lpOrbFloatA 12s ease-in-out infinite;
}

.lp-hero-orb-2 {
  width: 380px;
  height: 380px;
  bottom: -140px;
  right: -40px;
  background: radial-gradient(circle, rgba(22, 166, 122, 0.28) 0%, rgba(0, 229, 217, 0.12) 60%, transparent 100%);
  animation: lpOrbFloatB 15s ease-in-out infinite;
}

@keyframes lpOrbFloatA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.78; }
  50% { transform: translate3d(32px, 18px, 0) scale(1.1); opacity: 1; }
}

@keyframes lpOrbFloatB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.72; }
  50% { transform: translate3d(-28px, -22px, 0) scale(1.12); opacity: 0.96; }
}

/* Animated ECG Heartbeat Pulse along Hero Base */
.lp-hero-ecg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  width: 100%;
  height: 62px;
  z-index: 3;
  pointer-events: none;
}

.lp-ecg-beam {
  stroke-dasharray: 290 1300;
  stroke-dashoffset: 1590;
  animation: lpEcgTrace 4.8s cubic-bezier(0.35, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 0 6px rgba(0, 214, 206, 0.72));
}

@keyframes lpEcgTrace {
  0% { stroke-dashoffset: 1590; opacity: 0.15; }
  12% { opacity: 1; }
  82% { opacity: 0.95; }
  100% { stroke-dashoffset: -290; opacity: 0; }
}

/* Breathing Hero Waves */
.lp-wave-back {
  transform-origin: bottom right;
  animation: lpWaveBreathA 7.5s ease-in-out infinite;
}

.lp-wave-front {
  transform-origin: bottom right;
  animation: lpWaveBreathB 6.2s ease-in-out infinite;
}

@keyframes lpWaveBreathA {
  0%, 100% { transform: translate3d(0, 0, 0) scaleY(1); }
  50% { transform: translate3d(-8px, -4px, 0) scaleY(1.06); }
}

@keyframes lpWaveBreathB {
  0%, 100% { transform: translate3d(0, 0, 0) scaleY(1); }
  50% { transform: translate3d(5px, 3px, 0) scaleY(0.95); }
}

/* Live Eyebrow Pill above Hero Headline */
.lp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  margin-bottom: 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 156, 154, 0.24);
  box-shadow: 0 8px 20px -10px rgba(0, 109, 112, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: #00666B;
}

.lp-eyebrow-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #16A67A;
  flex-shrink: 0;
}

.lp-eyebrow-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  border: 1.5px solid #16A67A;
  animation: lpRadarPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Holographic Animated Accent Gradient on Hero Subtitle Line */
.lp-hero-title-accent {
  background: linear-gradient(95deg, #008B8E 0%, #00C2BC 35%, #00727A 68%, #00B0AB 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: lpGradientShift 6.5s ease-in-out infinite;
}

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

/* Staggered Hero Entrance */
.lp-hero-enter {
  opacity: 0;
  transform: translateY(16px);
  animation: lpHeroEnter 0.68s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0ms);
}

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

/* Animated Handwritten Underline Draw */
.lp-script-underline {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: lpDrawStroke 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.48s forwards;
}

@keyframes lpDrawStroke {
  to { stroke-dashoffset: 0; }
}

/* Right Hero Column: Handwritten Script + Floating HUD Telemetry Pills */
.lp-hero-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-shrink: 0;
  align-self: stretch;
  padding-top: 2px;
}

.lp-hero-right-col .lp-hero-script-wrap {
  margin-top: 2px;
  transform: rotate(-4deg) translate3d(calc(var(--lp-px, 0px) * -0.45), calc(var(--lp-py, 0px) * -0.45), 0);
  transition: transform 0.28s ease-out;
}

.lp-hud-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-top: auto;
  transform: translate3d(calc(var(--lp-px, 0px) * 0.72), calc(var(--lp-py, 0px) * 0.72), 0);
  transition: transform 0.25s ease-out;
}

.lp-hud-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px) saturate(175%);
  -webkit-backdrop-filter: blur(18px) saturate(175%);
  border: 1px solid rgba(0, 180, 176, 0.32);
  box-shadow:
    0 14px 30px -10px rgba(0, 79, 87, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  will-change: transform;
}

.lp-hud-card-1 {
  animation: lpHeroEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.31s both, lpHudFloat 5.4s ease-in-out 1.1s infinite;
}

.lp-hud-card-2 {
  animation: lpHeroEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.39s both, lpHudFloat 5.4s ease-in-out 3.1s infinite;
}

@keyframes lpHudFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}

.lp-hud-icon {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.lp-hud-icon-live {
  background: linear-gradient(135deg, #16A67A 0%, #0E8762 100%);
  box-shadow: 0 6px 14px -4px rgba(22, 166, 122, 0.55);
}

.lp-hud-icon-teal {
  background: linear-gradient(135deg, #00B5B2 0%, #006D70 100%);
  box-shadow: 0 6px 14px -4px rgba(0, 156, 154, 0.55);
}

.lp-hud-title {
  font-size: 12px;
  font-weight: 800;
  color: #0E223D;
  line-height: 1.2;
  white-space: nowrap;
}

.lp-hud-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: #4A6A79;
  line-height: 1.25;
  white-space: nowrap;
}

/* Bio-Shimmer Light Sweep on Primary CTAs */
.lp-shimmer-btn,
.lp-btn-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.lp-shimmer-btn::after,
.lp-btn-cta::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -65%;
  width: 44%;
  height: 140%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.38) 50%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: lpBtnShimmer 4.8s ease-in-out infinite;
}

.lp-shimmer-btn:hover,
.lp-btn-cta:hover {
  box-shadow: 0 14px 30px -6px rgba(0, 185, 180, 0.58) !important;
}

@keyframes lpBtnShimmer {
  0%, 62% { left: -65%; opacity: 0; }
  70% { opacity: 1; }
  100% { left: 135%; opacity: 0; }
}

/* --- 2. Scroll Reveal System (Zero-Flash Safe) --- */
.lp-anim-ready [data-lp-reveal] {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 0.62s cubic-bezier(0.16, 1, 0.3, 1) var(--stagger, 0ms),
    transform 0.62s cubic-bezier(0.16, 1, 0.3, 1) var(--stagger, 0ms);
}

.lp-anim-ready [data-lp-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- 3. Interactive Micro-Animations across Sections --- */
.lp-trust-item {
  transition: transform 0.22s ease;
}

.lp-trust-icon {
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), filter 0.26s ease;
}

.lp-trust-item:hover {
  transform: translateY(-2px);
}

.lp-trust-item:hover .lp-trust-icon {
  transform: scale(1.12);
  filter: drop-shadow(0 0 8px rgba(0, 185, 180, 0.45));
}

/* Holographic Specialty Cards */
.lp-spec-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.lp-spec-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 229, 217, 0.22) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.26s ease;
  pointer-events: none;
}

.lp-spec-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), filter 0.28s ease;
}

.lp-spec-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(0, 200, 195, 0.68);
  box-shadow: 0 18px 34px -12px rgba(0, 156, 154, 0.32), 0 0 0 1px rgba(0, 229, 217, 0.22);
}

.lp-spec-card:hover::before {
  opacity: 1;
}

.lp-spec-card:hover .lp-spec-icon-wrap {
  transform: translateY(-2px) scale(1.12);
  filter: drop-shadow(0 6px 10px rgba(0, 156, 154, 0.22));
}

/* Live Radar Doctors Cards */
.lp-online-radar {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #16A67A;
  flex-shrink: 0;
}

.lp-online-radar::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  border: 1.5px solid #16A67A;
  animation: lpRadarPing 2.1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes lpRadarPing {
  0% { transform: scale(1); opacity: 0.9; }
  80%, 100% { transform: scale(2.5); opacity: 0; }
}

.lp-doc-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease, border-color 0.26s ease;
}

.lp-doc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00E5D9, transparent);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.lp-doc-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 195, 190, 0.58);
  box-shadow: 0 20px 36px -14px rgba(0, 109, 112, 0.28);
}

.lp-doc-card:hover::before {
  opacity: 1;
}

/* Animated Energy Flow in "Como Funciona?" (1 -> 2 -> 3) */
.lp-step-num {
  position: relative;
}

.lp-step-num::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px solid #00D4CC;
  opacity: 0;
  pointer-events: none;
}

.lp-step-1 .lp-step-num::after {
  animation: lpStepHalo 4.2s ease-out 0s infinite;
}

.lp-step-2 .lp-step-num::after {
  animation: lpStepHalo 4.2s ease-out 1.4s infinite;
}

.lp-step-3 .lp-step-num::after {
  animation: lpStepHalo 4.2s ease-out 2.8s infinite;
}

@keyframes lpStepHalo {
  0% { transform: scale(0.88); opacity: 0; }
  12% { transform: scale(1.06); opacity: 0.85; }
  34%, 100% { transform: scale(1.55); opacity: 0; }
}

.lp-step-arrow-1 {
  animation: lpArrowFlow 4.2s ease-in-out 0.65s infinite;
}

.lp-step-arrow-2 {
  animation: lpArrowFlow 4.2s ease-in-out 2.05s infinite;
}

@keyframes lpArrowFlow {
  0%, 100% { transform: translateX(0); color: #6BAAB2; }
  18% { transform: translateX(5px); color: #00B8B4; }
  36% { transform: translateX(0); color: #6BAAB2; }
}

.lp-how-family-img {
  animation: lpFamilyFloat 6.2s ease-in-out infinite;
}

@keyframes lpFamilyFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -3px, 0); }
}

/* Subtle Alive Pulse on WhatsApp Quick Support Pill */
.lp-whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  border: 2px solid rgba(34, 197, 94, 0.55);
  pointer-events: none;
  animation: lpWaPulse 3.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes lpWaPulse {
  0% { transform: scale(1); opacity: 0.75; }
  65%, 100% { transform: scale(1.14, 1.32); opacity: 0; }
}

/* --- 4. Obsidian Bio-Tech Dark Mode Enhancements for New Motion Elements --- */
html[data-theme="dark"] .lp-hero-grid-bg {
  background-image: radial-gradient(rgba(0, 229, 217, 0.22) 1.15px, transparent 1.15px);
}

html[data-theme="dark"] .lp-hero-eyebrow {
  background: rgba(8, 29, 38, 0.82) !important;
  border-color: rgba(0, 229, 217, 0.34) !important;
  color: #7CF5EE !important;
  box-shadow: 0 10px 24px -10px rgba(0, 229, 217, 0.3);
}

html[data-theme="dark"] .lp-hero-title-accent {
  background: linear-gradient(95deg, #00E5D9 0%, #5FF7EC 40%, #16D39A 75%, #00E5D9 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

html[data-theme="dark"] .lp-hud-card {
  background: rgba(8, 28, 37, 0.84) !important;
  border-color: rgba(0, 229, 217, 0.34) !important;
  box-shadow: 0 16px 34px -10px rgba(0, 0, 0, 0.65), 0 0 18px -6px rgba(0, 229, 217, 0.28);
}

html[data-theme="dark"] .lp-hud-title {
  color: #ECF8FA !important;
}

html[data-theme="dark"] .lp-hud-sub {
  color: #8FC0CC !important;
}

html[data-theme="dark"] .lp-ecg-beam {
  filter: drop-shadow(0 0 9px rgba(0, 229, 217, 0.92));
}

/* Responsive hide of right HUD stack at <= 1180px to keep tablet/mobile pristine */
@media (max-width: 1180px) {
  .lp-hero-right-col { display: none; }
}

@media (max-width: 767px) {
  .lp-hero-eyebrow { font-size: 11px; padding: 5px 11px; }
  .lp-hero-ecg { height: 42px; bottom: 2px; }
}

/* Accessibility: honor OS Reduced Motion preference */
@media (prefers-reduced-motion: reduce) {
  .lp-hero-orb,
  .lp-ecg-beam,
  .lp-wave-back,
  .lp-wave-front,
  .lp-hero-title-accent,
  .lp-hero-enter,
  .lp-script-underline,
  .lp-hud-card-1,
  .lp-hud-card-2,
  .lp-shimmer-btn::after,
  .lp-btn-cta::after,
  .lp-eyebrow-dot::after,
  .lp-online-radar::after,
  .lp-step-num::after,
  .lp-step-arrow-1,
  .lp-step-arrow-2,
  .lp-how-family-img,
  .lp-whatsapp-fab::before {
    animation: none !important;
    transition: none !important;
  }
  .lp-hero-enter,
  .lp-anim-ready [data-lp-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .lp-script-underline {
    stroke-dashoffset: 0 !important;
  }
}

/* ============================================================================
   Official TeleMed+ Brand Assets (Symbol Badge & Full Horizontal Logo)
   Ensures crisp contrast across Light Bio-Glass, Dark Sidebar/Footer & Obsidian Dark
   ============================================================================ */
.tm-brand-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.tm-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px -6px rgba(0, 40, 48, 0.32), inset 0 1px 0 rgba(255, 255, 255, 1);
  flex-shrink: 0;
}

.lp-brand-full-wrap {
  display: inline-flex;
  align-items: center;
  padding: 3px 0;
  border-radius: 14px;
  transition: background-color 0.22s ease, padding 0.22s ease, box-shadow 0.22s ease;
}

.lp-brand-full-img {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
}

.tm-auth-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  transition: background-color 0.22s ease, padding 0.22s ease, box-shadow 0.22s ease;
}

.tm-brand-full-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  transition: background-color 0.22s ease, padding 0.22s ease;
}

@media (max-width: 767px) {
  .lp-brand-full-img {
    height: 40px;
  }
}

/* Obsidian Dark Mode contrast protection for navy-blue brand ink */
html[data-theme="dark"] .lp-brand-full-wrap,
html[data-theme="dark"] .tm-brand-full-pill {
  background: rgba(244, 252, 253, 0.94) !important;
  padding: 5px 12px !important;
  border: 1px solid rgba(0, 229, 217, 0.35);
  box-shadow: 0 6px 20px -6px rgba(0, 229, 217, 0.35);
}

html[data-theme="dark"] .tm-auth-icon-wrap {
  background: rgba(244, 252, 253, 0.94) !important;
  padding: 6px;
  border: 1px solid rgba(0, 229, 217, 0.35);
  box-shadow: 0 8px 22px -6px rgba(0, 229, 217, 0.35);
}

/* ============================================================================
   3-Slide Animated Hero Carousel (Ken Burns Crossfade + Synced Copy/HUD + Progress)
   ============================================================================ */
.lp-hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.lp-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1), transform 6.4s ease-out;
  will-change: opacity, transform;
}

.lp-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Smooth Copy & HUD Crossfade without Shifting Fixed CTA Buttons */
.lp-hero-copy-dynamic {
  min-height: 242px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.lp-hero-copy-dynamic.is-swapping {
  opacity: 0;
  transform: translateY(8px);
}

.lp-hud-stack {
  transition: transform 0.25s ease-out, opacity 0.26s ease;
}

.lp-hud-stack.is-swapping {
  opacity: 0;
}

/* Bio-Glass Slide Progress Pills */
.lp-hero-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.lp-hero-dot {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 6px 11px 7px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 156, 154, 0.2);
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
}

.lp-hero-dot:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 156, 154, 0.45);
  transform: translateY(-1px);
}

.lp-hero-dot.is-active {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 180, 176, 0.55);
  box-shadow: 0 8px 20px -10px rgba(0, 109, 112, 0.32);
}

.lp-hero-dot-track {
  display: block;
  width: 66px;
  height: 3.5px;
  border-radius: 9999px;
  background: rgba(0, 125, 128, 0.18);
  overflow: hidden;
}

.lp-hero-dot-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #009C9A 0%, #00E5D9 100%);
  transform-origin: left center;
  transform: scaleX(0);
}

.lp-hero-dot.is-active .lp-hero-dot-fill {
  animation: lpSlideProgress 6s linear forwards;
}

.lp-hero.is-carousel-paused .lp-hero-dot.is-active .lp-hero-dot-fill {
  animation-play-state: paused;
}

@keyframes lpSlideProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.lp-hero-dot-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #4A6A79;
  line-height: 1;
  white-space: nowrap;
}

.lp-hero-dot.is-active .lp-hero-dot-label {
  color: #005E66;
}

/* Obsidian Bio-Tech Dark Mode for Carousel Progress Controls */
html[data-theme="dark"] .lp-hero-dot {
  background: rgba(8, 28, 37, 0.72) !important;
  border-color: rgba(0, 229, 217, 0.2) !important;
}

html[data-theme="dark"] .lp-hero-dot.is-active {
  background: rgba(11, 38, 49, 0.92) !important;
  border-color: rgba(0, 229, 217, 0.55) !important;
  box-shadow: 0 8px 20px -8px rgba(0, 229, 217, 0.35);
}

html[data-theme="dark"] .lp-hero-dot-track {
  background: rgba(0, 229, 217, 0.16);
}

html[data-theme="dark"] .lp-hero-dot-label {
  color: #8FC0CC;
}

html[data-theme="dark"] .lp-hero-dot.is-active .lp-hero-dot-label {
  color: #5CECE4;
}

@media (max-width: 767px) {
  .lp-hero-copy-dynamic {
    min-height: 215px;
  }
  .lp-hero-sub {
    min-height: 64px;
    margin: 12px 0 18px;
  }
  .lp-hero-controls {
    gap: 7px;
    margin-top: 16px;
  }
  .lp-hero-dot {
    padding: 5px 8px 6px;
  }
  .lp-hero-dot-track {
    width: 44px;
  }
  .lp-hero-dot-label {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero-slide {
    transform: none !important;
    transition: opacity 0.25s ease !important;
  }
  .lp-hero-dot.is-active .lp-hero-dot-fill {
    animation: none !important;
    transform: scaleX(1) !important;
  }
}
