@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* VideoConsultation.css - Shared 4eCloud Video Consultation Design System */
* {
  box-sizing: border-box;
}
.vc-shared-root {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #f1f5f9;
  background-color: #080a12;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
/* ── Main Flex Layout (Desktop Left-Right Split) ──────── */
.vc-layout,
.vc-layout-container {
  display: flex !important;
  flex-direction: row !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #080a12 !important;
  position: relative !important;
  overflow: hidden !important;
}
/* Left Video Section */
.vc-video-section {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  height: 100% !important;
  background: #080a12 !important;
  position: relative !important;
  overflow: hidden !important;
}
/* Right Clinical Sidebar Section */
.vc-sidebar,
.vc-sidebar-section {
  width: 420px !important;
  min-width: 360px !important;
  max-width: 450px !important;
  flex-shrink: 0 !important;
  height: 100% !important;
  background: #0f1322 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 20 !important;
  overflow: hidden !important;
}
@media (max-width: 1024px) {
  .vc-sidebar,
  .vc-sidebar-section {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 380px !important;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.8) !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  
  .vc-sidebar.vc-sidebar-open,
  .vc-sidebar-section.vc-sidebar-open {
    transform: translateX(0) !important;
  }
}
@media (max-width: 640px) {
  .vc-sidebar,
  .vc-sidebar-section {
    width: 100% !important;
  }
}
/* ── Top Header Bar ────────────────────────────────────── */
.vc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(13, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  height: 58px;
  gap: 12px;
  z-index: 10;
}
.vc-header-left,
.vc-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vc-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-green { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
.dot-red   { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
.vc-header-title {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}
.vc-duration {
  font-size: 12px;
  font-weight: 700;
  color: #34d399;
  font-variant-numeric: tabular-nums;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
}
.vc-rec-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #ef4444;
  padding: 2px 10px;
  border-radius: 999px;
  animation: recBlink 1.2s ease-in-out infinite;
}
@keyframes recBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.vc-role-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}
.vc-participants-badge {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
}
.vc-sidebar-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.vc-sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
/* ── Video Display Area (Full Center View) ──────────────── */
.vc-video-grid {
  position: relative;
  flex: 1 1 auto;
  background: #04060c;
  overflow: hidden;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Base Video Stream Box */
.vc-stream-box {
  position: absolute;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: #060810;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Active Main Stage Stream (Full Size) */
.vc-stream-box.vc-stream-main {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  z-index: 10;
  cursor: default;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.vc-video-grid.chat-open .vc-stream-box.vc-stream-main {
  right: 320px;
  width: calc(100% - 320px);
}
/* 2-Screen PIP Mode (Inactive Stream in Bottom-Right) */
.vc-stream-box.vc-stream-pip {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 230px;
  height: 145px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  z-index: 30;
  background: #0f1222;
  cursor: pointer;
}
.vc-stream-box.vc-stream-pip:hover {
  border-color: #6366f1;
  transform: scale(1.03);
}
.vc-stream-box.vc-stream-pip.chat-open {
  right: 336px;
}
/* 3-Screen Thumbnails (Stacked on the Top-Right) */
.vc-stream-box.vc-stream-thumb {
  position: absolute;
  right: 20px;
  width: 220px;
  height: 135px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85);
  z-index: 30;
  background: #0f1222;
  cursor: pointer;
}
.vc-stream-box.vc-stream-thumb:hover {
  border-color: #6366f1;
  transform: scale(1.03);
}
.vc-stream-box.vc-stream-thumb-1 {
  top: 20px;
}
.vc-stream-box.vc-stream-thumb-2 {
  top: 170px;
}
.vc-stream-box.vc-stream-thumb.chat-open {
  right: 336px;
}
/* Hidden Stream Box - Non-destructive hiding to allow WebRTC stream initialization and measurement */
.vc-stream-box.vc-stream-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  z-index: -10 !important;
}
/* Stream Labels */
.vc-stream-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 15;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vc-stream-label-screen {
  background: rgba(16, 185, 129, 0.85);
  border-color: rgba(16, 185, 129, 0.4);
}
/* ── Floating Presenting Indicator (Google Meet style) ── */
.vc-presenting-pill {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(16, 185, 129, 0.2);
  padding: 6px 14px 6px 16px;
  border-radius: 999px;
  z-index: 50;
  pointer-events: auto;
}
.vc-presenting-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: recBlink 1.5s ease-in-out infinite;
}
.vc-presenting-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}
.vc-presenting-stop-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vc-presenting-stop-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}
/* ── Viewing Remote Screen Floating Bar ── */
.vc-viewing-screen-pill {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(99, 102, 241, 0.2);
  padding: 6px 14px 6px 16px;
  border-radius: 999px;
  z-index: 50;
  pointer-events: auto;
}
.vc-viewing-screen-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 8px #6366f1;
  animation: recBlink 1.5s ease-in-out infinite;
}
.vc-viewing-swap-btn {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vc-viewing-swap-btn:hover {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}
/* ── Clean Presenter Card (Google Meet Model - Prevents Infinite Mirror) ── */
.vc-presenter-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #141b36 0%, #090c18 100%);
  padding: 16px;
  text-align: center;
  z-index: 20;
}
.vc-presenter-icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.4));
}
.vc-presenter-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}
.vc-presenter-subtitle {
  font-size: 11px;
  color: #94a3b8;
  margin: 0 0 10px 0;
  max-width: 200px;
  line-height: 1.4;
}
.vc-presenter-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}
.vc-presenter-stop-btn {
  background: #ef4444;
  color: #ffffff;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  transition: all 0.2s ease;
}
.vc-presenter-stop-btn:hover {
  background: #dc2626;
  transform: scale(1.04);
}
/* When swapped to Main Stage, expand presenter card elegantly */
.vc-stream-main .vc-presenter-card {
  padding: 40px 24px;
}
.vc-stream-main .vc-presenter-icon {
  font-size: 56px;
  margin-bottom: 16px;
}
.vc-stream-main .vc-presenter-title {
  font-size: 22px;
  margin-bottom: 8px;
}
.vc-stream-main .vc-presenter-subtitle {
  font-size: 14px;
  max-width: 380px;
  margin-bottom: 22px;
}
.vc-stream-main .vc-presenter-stop-btn {
  font-size: 13px;
  padding: 9px 24px;
}
/* ── Infinite Mirror Shield Overlay ───────────────────── */
.vc-mirror-shield {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 18, 0.82);
  backdrop-filter: blur(8px);
  z-index: 35;
  padding: 24px;
  text-align: center;
}
.vc-mirror-shield-card {
  max-width: 440px;
  background: #111528;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.vc-mirror-icon {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 4px;
}
.vc-mirror-title {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}
.vc-mirror-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0;
}
.vc-mirror-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}
.vc-mirror-btn {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.vc-mirror-btn-primary {
  background: #6366f1;
  color: #fff;
}
.vc-mirror-btn-primary:hover {
  background: #4f46e5;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.4);
}
.vc-mirror-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}
.vc-mirror-btn-secondary:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}
/* Clickable Overlay on Thumbnails for Reliable Stream Swapping */
.vc-thumb-click-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 40;
  pointer-events: auto;
  padding: 0;
  margin: 0;
  outline: none;
  transition: background 0.25s ease;
}
.vc-thumb-click-overlay:hover {
  background: rgba(15, 23, 42, 0.25);
}
.vc-thumb-click-overlay .vc-swap-hint-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(99, 102, 241, 0.95);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
  pointer-events: none;
}
.vc-thumb-click-overlay:hover .vc-swap-hint-pill {
  opacity: 1;
  transform: translateY(0);
}
.vc-swap-hint {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 25;
  pointer-events: none;
}
.vc-stream-box.vc-stream-pip:hover .vc-swap-hint,
.vc-stream-box.vc-stream-thumb:hover .vc-swap-hint {
  opacity: 1;
}
.vc-swap-hint span {
  background: rgba(99, 102, 241, 0.95);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  letter-spacing: 0.02em;
}
/* Camera Off Overlay */
.vc-video-off-badge {
  font-size: 11px;
  position: absolute;
  z-index: 12;
  background: rgba(0, 0, 0, 0.75);
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.vc-video-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060810;
}
.vc-video-inner {
  width: 100%;
  height: 100%;
  position: relative;
}
.vc-video-inner video,
.vc-video-inner .OT_root,
.vc-video-inner .OT_publisher,
.vc-video-inner .OT_subscriber,
.vc-video-inner .OT_widget-container,
.vc-video-inner .OT_video-container,
.vc-video-inner .OT_video-element {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  border-radius: inherit;
}
/* For Screen Sharing: maintain full view without cropping slides/docs */
.vc-stream-screen .vc-video-inner video,
.vc-stream-screen .vc-video-inner .OT_video-element,
.vc-stream-screen .vc-video-inner .OT_widget-container,
.vc-stream-screen .vc-video-inner .OT_video-container {
  object-fit: contain !important;
  background: #000;
}
.vc-waiting-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: radial-gradient(ellipse at center, #111528 0%, #04060c 100%);
  z-index: 5;
}
.vc-avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  border: 2px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #818cf8;
  animation: avatarPulse 3s ease-in-out infinite;
}
@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.25); }
  50% { box-shadow: 0 0 0 20px rgba(99, 102, 241, 0); }
}
.vc-waiting-text {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
}
/* PIP Floating Preview Box */
.vc-pip-box {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 220px;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  z-index: 30;
  background: #0f1222;
  cursor: default;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vc-pip-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  padding: 2px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}
.vc-main-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  padding: 4px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}
/* ── Bottom Controls Bar ───────────────────────────────── */
.vc-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: #0b0d18;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  height: 72px;
  z-index: 20;
}
.vc-ctrl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: #181c2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 60px;
  outline: none;
  color: #cbd5e1;
}
.vc-ctrl-btn:hover {
  background: #222840;
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  color: #fff;
}
.vc-ctrl-btn:active {
  transform: translateY(0);
}
.vc-ctrl-icon {
  font-size: 18px;
  line-height: 1;
}
.vc-ctrl-label {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  color: #64748b;
}
.vc-ctrl-btn:hover .vc-ctrl-label {
  color: #cbd5e1;
}
/* Control States */
.vc-ctrl-btn.vc-ctrl-active {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
}
.vc-ctrl-btn.vc-ctrl-active .vc-ctrl-label { color: #fbbf24; }
.vc-ctrl-btn.vc-ctrl-sharing {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.35);
}
.vc-ctrl-btn.vc-ctrl-sharing .vc-ctrl-label { color: #4ade80; }
.vc-ctrl-btn.vc-ctrl-recording {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
}
.vc-ctrl-btn.vc-ctrl-recording .vc-ctrl-label { color: #f87171; }
.vc-ctrl-btn.vc-ctrl-chat-active {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.35);
}
.vc-ctrl-btn.vc-ctrl-chat-active .vc-ctrl-label { color: #a5b4fc; }
.vc-ctrl-btn.vc-ctrl-end {
  background: #dc2626;
  border-color: transparent;
  padding: 8px 24px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
}
.vc-ctrl-btn.vc-ctrl-end .vc-ctrl-label { color: #fff; }
.vc-ctrl-btn.vc-ctrl-end:hover {
  background: #b91c1c;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}
/* ── Chat Overlay Panel ────────────────────────────────── */
.vc-chat-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100% !important;
  max-height: 100% !important;
  width: 320px;
  background: #0d0f1a;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 50;
  box-shadow: -8px 0 24px rgba(0,0,0,0.5);
  animation: vcChatSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes vcChatSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
.vc-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  flex-shrink: 0;
  background: #0d0f1a;
}
.vc-chat-close-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vc-chat-close-btn:hover { color: #fff; }
.vc-chat-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.vc-chat-input-box {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0f1a;
  flex-shrink: 0;
  align-items: center;
}
.vc-chat-input {
  flex: 1 !important;
  background-color: #181c2e !important;
  background: #181c2e !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  outline: none !important;
  box-shadow: none !important;
  min-height: 40px !important;
  height: 40px !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.vc-chat-input::placeholder {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
  opacity: 1 !important;
}
.vc-chat-input:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
.vc-chat-send-btn {
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.vc-chat-send-btn:hover {
  background: #4f46e5;
}
/* ── Clinical Tabs Header ──────────────────────────────── */
.vc-tabs-header {
  display: flex;
  background: rgba(15, 19, 34, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px;
  gap: 4px;
  flex-shrink: 0;
  height: 58px;
  align-items: center;
}
.vc-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.vc-tab-btn:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
}
.vc-tab-btn.vc-tab-active {
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.25);
}
/* ── Clinical Panels Common Styles ─────────────────────── */
.vc-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.vc-panel-title {
  font-size: 17px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}
.vc-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.vc-badge-primary {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.vc-badge-secondary {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.vc-card {
  background: #14182a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.vc-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vc-form-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.vc-input,
.vc-textarea,
.vc-select {
  background: #191d32;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: #f1f5f9;
  outline: none;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.vc-input:focus,
.vc-textarea:focus,
.vc-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}
.vc-btn {
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  border: none;
}
.vc-btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}
.vc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
}
.vc-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}
.vc-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.vc-btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 4px 8px;
  font-size: 11px;
}
.vc-btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}
.vc-toast {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* FIGMA EXACT MATCH 3D SPHERICAL BUBBLE DASHBOARD WITH BOTTOM WAVE & ALL BUBBLES VISIBLE */

.bubble-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  animation: fadeInBubbleOverlay 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInBubbleOverlay {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.bubble-modal-container {
  width: 98vw;
  max-width: 1440px;
  height: 94vh;
  max-height: 880px;
  background: linear-gradient(180deg, #f8faff 0%, #edf4fc 100%);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  border-radius: 20px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

/* FIGMA BOTTOM WAVE GRAPHIC */
.modal-wave-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 240px;
  background: radial-gradient(ellipse at 50% 120%, rgba(192, 132, 252, 0.3) 0%, rgba(147, 197, 253, 0.3) 45%, rgba(103, 232, 249, 0.2) 75%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* FIGMA TOP BAR */
.figma-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: #0b1a3e;
  color: #ffffff;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.topbar-brand-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.figma-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.topbar-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bubble-close-icon-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #cbd5e1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bubble-close-icon-btn:hover {
  background: #ef4444;
  color: #ffffff;
  transform: rotate(90deg);
}

/* FIGMA HERO BANNER */
.figma-banner-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px 4px 24px;
  background: transparent;
  flex-shrink: 0;
  z-index: 1;
}

.banner-left-dash {
  display: flex;
  align-items: center;
}

.figma-dash-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff0f2;
  border: 1px solid #fecdd3;
  border-radius: 24px;
  padding: 4px 14px 4px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #0369a1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(244, 63, 94, 0.12);
  transition: transform 0.2s ease;
}

.figma-dash-button:hover {
  transform: scale(1.04);
}

.dash-icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f43f5e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-center-title {
  text-align: center;
}

.figma-welcome-title {
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 2px 0;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.figma-welcome-sub {
  font-size: 12px;
  font-weight: 600;
  color: #0284c7;
  margin: 0;
}

.banner-right-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.figma-profile-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
}

.figma-profile-btn:hover {
  color: #0284c7;
}

.figma-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0369a1;
  transition: all 0.2s ease;
}

.figma-profile-btn:hover .figma-avatar-circle {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  transform: scale(1.06);
}

/* FIGMA 7-COLUMN BUBBLE GRID LAYOUT WITH COLUMN AMBIENT HALOS */
.figma-bubble-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.85fr) repeat(3, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 6px;
  padding: 4px 16px 12px 16px;
  overflow-y: auto; /* PERMITS SMOOTH SCROLL IF VIEWPORT IS SMALL SO ALL BUBBLES ARE SHOWN */
  align-items: start;
  z-index: 1;
}

.bubble-group-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 4px;
  border-radius: 20px;
  transition: background 0.3s ease;
  min-width: 0;
}

/* FIGMA SCREEN AMBIENT COLUMN GLOW HALOS */
.bubble-group-column.sm-blue {
  background: radial-gradient(ellipse at center 40%, rgba(219, 234, 254, 0.45) 0%, rgba(219, 234, 254, 0.05) 75%, transparent 100%);
}
.bubble-group-column.sm-purple {
  background: radial-gradient(ellipse at center 40%, rgba(243, 232, 255, 0.45) 0%, rgba(243, 232, 255, 0.05) 75%, transparent 100%);
}
.bubble-group-column.sm-pink {
  background: radial-gradient(ellipse at center 40%, rgba(252, 231, 243, 0.45) 0%, rgba(252, 231, 243, 0.05) 75%, transparent 100%);
}
.bubble-group-column.sm-cyan {
  background: radial-gradient(ellipse at center 40%, rgba(207, 250, 254, 0.45) 0%, rgba(207, 250, 254, 0.05) 75%, transparent 100%);
}
.bubble-group-column.sm-orange {
  background: radial-gradient(ellipse at center 40%, rgba(254, 243, 199, 0.45) 0%, rgba(254, 243, 199, 0.05) 75%, transparent 100%);
}
.bubble-group-column.sm-green {
  background: radial-gradient(ellipse at center 40%, rgba(220, 252, 231, 0.45) 0%, rgba(220, 252, 231, 0.05) 75%, transparent 100%);
}
.bubble-group-column.sm-teal {
  background: radial-gradient(ellipse at center 40%, rgba(204, 251, 241, 0.45) 0%, rgba(204, 251, 241, 0.05) 75%, transparent 100%);
}

.group-title-header {
  margin-bottom: 6px;
  text-align: center;
}

.group-title-header h3 {
  font-size: 13.5px;
  font-weight: 800;
  margin: 0;
  color: #1e3a8a;
  letter-spacing: -0.01em;
}

.spheres-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.multi-subcolumns .subcolumns-wrapper {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

/* --- FIGMA SPHERICAL 3D BUBBLE --- */
.sm-bubble {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.06),
    inset 0 -5px 10px rgba(0, 0, 0, 0.04),
    inset 0 5px 10px rgba(255, 255, 255, 0.95);
  overflow: hidden;
  animation: float 4s ease-in-out infinite;
  box-sizing: border-box;
  flex-shrink: 0;
}

.push-row-5 {
  margin-top: 156px; /* Aligns Add Treatment Plan at Row 5 matching Figma */
}

/* 3D Top Specular Glare */
.sm-bubble::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 15%;
  width: 40%;
  height: 25%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  border-radius: 50%;
  transform: rotate(-15deg);
  z-index: 1;
}

/* Secondary Reflection Blur */
.sm-bubble::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 20%;
  height: 10%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  filter: blur(2px);
}

.sm-bubble:hover {
  transform: scale(1.18) translateY(-4px) rotate(2deg);
  box-shadow: 
    0 16px 32px rgba(0, 0, 0, 0.15),
    inset 0 -6px 12px rgba(0, 0, 0, 0.06),
    inset 0 6px 12px rgba(255, 255, 255, 1);
  z-index: 10;
}

.sm-bubble-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  z-index: 2;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.sm-bubble:hover .sm-bubble-icon {
  transform: scale(1.15) rotate(-6deg);
}

.sm-bubble-label {
  font-size: 9.5px;
  font-weight: 700;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e3a8a;
  line-height: 1.12;
  z-index: 2;
  position: relative;
  padding: 0 2px;
  word-break: break-word;
  white-space: normal;
  text-align: center;
  max-width: 72px;
}

/* --- FIGMA SPHERE COLOR GRADIENTS --- */

.sm-blue {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #dbeafe 40%, #60a5fa 90%);
  border-color: rgba(191, 219, 254, 0.8);
}
.sm-blue .sm-bubble-icon { color: #2563eb; }

.sm-cyan {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #cffafe 40%, #22d3ee 90%);
  border-color: rgba(165, 243, 252, 0.8);
}
.sm-cyan .sm-bubble-icon { color: #0891b2; }

.sm-orange {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #ffedd5 40%, #fb923c 90%);
  border-color: rgba(254, 215, 170, 0.8);
}
.sm-orange .sm-bubble-icon { color: #ea580c; }

.sm-purple {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #ede9fe 40%, #a78bfa 90%);
  border-color: rgba(221, 214, 254, 0.8);
}
.sm-purple .sm-bubble-icon { color: #7c3aed; }

.sm-green {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #dcfce7 40%, #4ade80 90%);
  border-color: rgba(187, 247, 208, 0.8);
}
.sm-green .sm-bubble-icon { color: #16a34a; }

.sm-pink {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #fce7f3 40%, #f472b6 90%);
  border-color: rgba(251, 207, 232, 0.8);
}
.sm-pink .sm-bubble-icon { color: #db2777; }

.sm-teal {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #ccfbf1 40%, #2dd4bf 90%);
  border-color: rgba(153, 246, 228, 0.8);
}
.sm-teal .sm-bubble-icon { color: #0d9488; }

/* ACTIVE BUBBLE (Figma Patient Ledger Highlight) */
.active-bubble {
  background: radial-gradient(circle at 35% 35%, #f472b6 0%, #db2777 60%, #be185d 100%) !important;
  box-shadow: 0 10px 22px rgba(219, 39, 119, 0.5), inset 0 4px 8px rgba(255, 255, 255, 0.8) !important;
}
.active-bubble .sm-bubble-icon { color: #ffffff !important; }
.active-bubble .sm-bubble-label { color: #ffffff !important; }

/* FLOATING ANIMATION */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.spheres-stack .sm-bubble:nth-child(2n) { animation-delay: -1s; }
.spheres-stack .sm-bubble:nth-child(3n) { animation-delay: -2s; }
.spheres-stack .sm-bubble:nth-child(4n) { animation-delay: -3s; }
/* SIRI / IPHONE STYLE GLOBAL VOICE ASSISTANT STYLING */

.global-mic-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.global-mic-btn:hover {
  transform: translateY(-1px) scale(1.08);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.55);
}

.global-mic-btn.listening {
  background: linear-gradient(135deg, #ef4444 0%, #ec4899 100%);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
  animation: pulseMicBtn 1.5s infinite;
}

/* Compact version embedded inside search bar */
.global-mic-btn.compact {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
  margin-left: 2px;
}

.global-mic-btn.compact:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.6);
  transform: scale(1.08);
}

.global-mic-btn.compact.listening {
  background: linear-gradient(135deg, #ef4444 0%, #ec4899 100%);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.7);
  animation: pulseMicBtn 1.5s infinite;
}

@keyframes pulseMicBtn {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.mic-icon.active {
  animation: bounceMic 0.6s ease infinite alternate;
}

@keyframes bounceMic {
  from { transform: scale(1); }
  to { transform: scale(1.25); }
}

.mic-btn-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* SIRI FLOATING OVERLAY MODAL */
.siri-assistant-overlay {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  animation: siriSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes siriSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.siri-card-container {
  width: 340px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 30px rgba(59, 130, 246, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  color: #ffffff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.siri-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #cbd5e1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.siri-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

.siri-header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #60a5fa;
  margin-bottom: 14px;
}

.sparkle-icon {
  color: #a855f7;
  animation: spinSparkle 4s linear infinite;
}

@keyframes spinSparkle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* SIRI GLOWING ORB & PULSING AUDIO WAVES */
.siri-wave-orb {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 10px 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-core {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.9);
  z-index: 2;
  animation: orbGlow 2s ease-in-out infinite alternate;
}

@keyframes orbGlow {
  from { transform: scale(0.92); box-shadow: 0 0 15px rgba(236, 72, 153, 0.7); }
  to { transform: scale(1.1); box-shadow: 0 0 35px rgba(59, 130, 246, 0.95); }
}

.orb-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(168, 85, 247, 0.6);
  animation: siriRipple 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.orb-wave.wave2 { animation-delay: -0.8s; border-color: rgba(59, 130, 246, 0.6); }
.orb-wave.wave3 { animation-delay: -1.6s; border-color: rgba(236, 72, 153, 0.6); }

@keyframes siriRipple {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.siri-transcript-box {
  text-align: center;
  margin-bottom: 14px;
}

.assistant-speech-msg {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.user-heard-speech {
  font-size: 12px;
  font-weight: 500;
  font-style: italic;
  color: #93c5fd;
  margin: 0;
}

.siri-commands-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.siri-commands-hint > span {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.command-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.command-pills span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.command-pills span:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
  transform: translateY(-1px);
}

/* LIVE PERIO VOICE LOG CARD STYLES */
.siri-live-log-box {
  width: 100%;
  max-height: 140px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 10px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.siri-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.siri-log-clear-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 10px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.siri-log-clear-btn:hover {
  color: #f87171;
}

.siri-log-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding-right: 4px;
}

.siri-log-item {
  font-size: 11px;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #3b82f6;
  padding: 4px 8px;
  border-radius: 4px;
}

.siri-log-time {
  color: #64748b;
  font-size: 9.5px;
  margin-right: 6px;
}

.siri-log-phrase {
  color: #e2e8f0;
  font-weight: 600;
}

.siri-log-summary {
  color: #4ade80;
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

/* src/styles/DashboardPremium.css */
:root {
  --premium-navy: #08326d;
  --premium-blue-gradient: linear-gradient(90deg, #08326d 0%, #1b4d91 100%);
  --premium-bg: #f8fafc;
  --premium-surface: #ffffff;
  --premium-border: #e2e8f0;
  --premium-text-main: #1e293b;
  --premium-text-dim: #64748b;
  --premium-accent-green: #22c55e;
  --premium-accent-blue: #3b82f6;
  --premium-accent-orange: #f59e0b;
  --premium-accent-purple: #8b5cf6;
  --premium-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  --premium-radius: 16px;
}

.app-layout-root-premium {
  background-color: var(--premium-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* Prevent horizontal scroll on entire page */
}

.dashboard-content-area-premium {
  flex: 1;
  width: 100%;
  padding-top: 112px; /* Exact offset for fixed header (60px + 52px) */
}

.dashboard-content-area-premium.no-header {
  padding-top: 0;
}

.premium-dashboard {
  background-color: var(--premium-bg);
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--premium-text-main);
  padding: 0 0 40px 0;
}

.premium-sticky-header-group {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Header Overrides */
.premium-sticky-header-group {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Ensure SweetAlert2 dialogs and modals sit above the sticky header and blur it */
.swal2-container {
  z-index: 10000 !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

.top-bar-v5 {
  height: 60px;
  background: linear-gradient(135deg, #132b6b 0%, #1e3a8a 100%);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: white;
  position: relative;
}

.bubble-nav-container-v5 {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0 4px;
}

.bubble-dashboard-btn-v5 {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.bubble-dashboard-btn-v5:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.55);
}

.nav-bar-v5 {
  height: 52px;
  background: #25468d; /* Refined Nav Background */
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.search-wrapper-v5 {
  position: relative;
  flex: 1;
  max-width: 310px;
  min-width: 140px;
  margin: 0 10px;
}

.search-bar-v5 {
  display: flex;
  align-items: center;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 50px;
  padding: 0 8px 0 16px;
  height: 40px;
  gap: 8px;
  transition: all 0.2s ease;
}

.search-bar-v5:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.search-bar-v5 input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 13.5px;
  width: 100%;
  flex: 1;
  min-width: 0;
}

.search-icon-v5 {
  color: #64748b;
  flex-shrink: 0;
}

.header-actions-v5 {
  display: flex;
  align-items: center;
  gap: 24px; /* Perfect horizontal distribution */
  margin-left: auto;
}

.divider-v5 {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}

.user-profile-v5 {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.avatar-v5 {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-info-v5 {
  display: flex;
  flex-direction: column;
}

.user-name-v5 {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.user-time-v5 {
  font-size: 11px;
  color: #94a3b8;
}

.top-nav-pills {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  background: #1e3a8a; /* Original Nav Background */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-pill {
  color: white;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-pill.active {
  background: #2e6ba6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  font-weight: 600;
}

.nav-pill:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
}

.plus-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3b82f6;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 10px;
}

/* DOCTOR DROPDOWN WORKSTATION (Consolidated & Aligned) */
.premium-dropdown-v5 {
  position: absolute;
  top: calc(100% + 10px);
  right: 0; /* Perfect right alignment */
  width: 250px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  z-index: 4000;
  animation: dropdownSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-header-v5 {
  padding: 16px 20px 10px; /* Reduced padding */
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-avatar-v5 {
  width: 42px; /* Reduced avatar size */
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown-user-info-v5 {
  display: flex;
  flex-direction: column;
}

.dropdown-name-v5 {
  font-size: 16px; /* Reduced name font */
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.dropdown-role-v5 {
  font-size: 12px; /* Reduced role font */
  color: #777;
  font-weight: 500;
}

.dropdown-attendance-v5 {
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.attendance-action-btn-v5 {
  width: 100%;
  padding: 10px; /* More compact button */
  border-radius: 99px;
  border: none;
  font-size: 14px; /* Reduced font */
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: opacity 0.2s;
}

.attendance-action-btn-v5.out { background: #ff5252; }
.attendance-action-btn-v5.in { background: #10b981; }

.attendance-timer-v5 {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #444;
  font-size: 18px; /* Reduced timer font */
  font-weight: 700;
}

.dropdown-menu-v5 {
  padding: 8px 0; /* Balanced vertical grid */
}

.dropdown-link-v5 {
  width: 100%;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.dropdown-link-v5:hover {
  background: #f8fafc;
  color: #3b82f6;
}

.dropdown-link-v5 svg {
  color: #64748b;
  width: 20px;
  height: 20px;
}

.dropdown-footer-v5 {
  border-top: 1px solid #f1f5f9;
  padding: 4px 0;
}

.logout-action-v5 {
  color: #1a1a1a !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 14px 20px !important; /* Prominent logout interaction */
}

.logout-action-v5 svg {
  color: #1a1a1a !important;
}

@keyframes dropdownSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-plus-btn-v5 {
  width: 38px;
  height: 38px;
  background: #3b6ea5;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* Dashboard Content */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.hero-welcome {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.welcome-text h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 4px 0;
}

.welcome-text p {
  color: var(--premium-text-dim);
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.btn-premium {
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-outline {
  background: white;
  border: 1px solid var(--premium-border);
  color: var(--premium-text-main);
}

.btn-green {
  background: var(--premium-accent-green);
  border: none;
  color: white;
}

.btn-blue {
  background: var(--premium-accent-blue);
  border: none;
  color: white;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.kpi-card {
  background: white;
  padding: 24px;
  border-radius: var(--premium-radius);
  box-shadow: var(--premium-shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}

.kpi-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.kpi-card.production .kpi-icon-wrapper { background: #eff6ff; color: #3b82f6; }
.kpi-card.collection .kpi-icon-wrapper { background: #fffbeb; color: #f59e0b; }
.kpi-card.appointments .kpi-icon-wrapper { background: #f0fdf4; color: #22c55e; }
.kpi-card.treatments .kpi-icon-wrapper { background: #faf5ff; color: #8b5cf6; }

.kpi-info {
  flex: 1;
}

.kpi-label {
  color: var(--premium-text-dim);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

.kpi-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.kpi-value {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

.kpi-trend {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0fdf4;
  color: #16a34a;
}

/* Analytics Row */
.analytics-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.premium-card {
  background: white;
  border-radius: var(--premium-radius);
  box-shadow: var(--premium-shadow);
  padding: 24px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.card-title-row h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--premium-text-dim);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.bar-chart-container {
  height: 300px;
  width: 100%;
}

/* Radial Chart Legend */
.radial-legend {
  margin-top: 20px;
}

.radial-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.radial-item:last-child { border: none; }

.radial-label-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}

.radial-value {
  font-weight: 700;
  color: var(--premium-accent-blue);
}

/* Bottom Row */
.bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.view-all-link {
  color: var(--premium-accent-blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
}

.premium-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--premium-text-dim);
  font-weight: 600;
  background: #f8fafc;
}

.premium-table td {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.patient-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.patient-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.patient-name {
  font-weight: 600;
  font-size: 14px;
}

.time-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--premium-text-dim);
  font-size: 13px;
}

.source-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--premium-text-dim);
}

/* Task List */
.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.task-item:last-child { border: none; }

.task-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-details h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.task-details p {
  font-size: 12px;
  color: var(--premium-text-dim);
  margin: 2px 0 0 0;
}

.task-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--premium-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn.reject:hover { background: #fef2f2; color: #ef4444; border-color: #fecaca; }
.action-btn.approve:hover { background: #f0fdf4; color: #22c55e; border-color: #bbf7d0; }

.footer-premium {
  text-align: center;
  padding: 24px;
  color: var(--premium-text-dim);
  font-size: 12px;
}

.premium-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--premium-border);
  padding: 8px;
  z-index: 10000;
  color: var(--premium-text-main);
}

.dropdown-header {
  padding: 12px 16px;
}

.dropdown-name {
  font-weight: 700;
  font-size: 14px;
  margin: 0;
}

.dropdown-email {
  font-size: 12px;
  color: var(--premium-text-dim);
  margin: 4px 0 0 0;
}

.dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 8px 0;
}

.dropdown-item {
  width: 100%;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--premium-text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background: #f8fafc;
  color: var(--premium-accent-blue);
}

.dropdown-item.logout-item:hover {
  background: #fef2f2;
  color: #ef4444;
}

@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .analytics-row { grid-template-columns: 1fr; }
  .bottom-row { grid-template-columns: 1fr; }
  .search-wrapper-v5 { max-width: 280px; }
}

@media (max-width: 900px) {
  .bubble-btn-label { display: none; }
  .bubble-dashboard-btn-v5 { padding: 6px 10px; }
  .search-wrapper-v5 { max-width: 230px; }
}

@media (max-width: 768px) {
  /* Header */
  .top-bar-v5 {
    padding: 0 14px;
    height: 56px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  /* Keep search bar & voice assistant responsive on mobile/tablet */
  .search-wrapper-v5 {
    display: flex;
    flex: 1;
    min-width: 120px;
    margin: 0 6px;
  }

  .bubble-btn-label { display: none; }
  .bubble-dashboard-btn-v5 { padding: 6px 8px; }

  .search-bar-v5 {
    height: 36px;
    padding: 0 6px 0 12px;
  }

  .search-bar-v5 input {
    font-size: 12px;
  }

  /* User profile: compact */
  .user-info-v5 { display: none; }

  /* Reduce icon gaps */
  .header-actions-v5 { gap: 12px; }

  /* Nav pills: horizontal scroll on mobile */
  .top-nav-pills {
    padding: 8px 12px;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .top-nav-pills::-webkit-scrollbar { display: none; }

  .nav-pill {
    padding: 6px 14px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Content offset for smaller fixed header */
  .dashboard-content-area-premium {
    padding-top: 104px;
  }

  /* Dashboard layout */
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
  .analytics-row { grid-template-columns: 1fr; gap: 16px; }
  .bottom-row { grid-template-columns: 1fr; gap: 16px; }
  .dashboard-container { padding: 12px; }
  .hero-welcome { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn-premium { flex: 1; justify-content: center; }
  .welcome-text h1 { font-size: 22px; }

  /* Dropdown goes full width on mobile */
  .premium-dropdown-v5 { width: 230px; right: -8px; }
}

@media (max-width: 540px) {
  /* Header logo: smaller */
  .logo-section-v5 img { height: 28px !important; }

  /* Full-width dropdown on very small screens */
  .premium-dropdown-v5 {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0 0 18px 18px;
  }

  /* KPI stack single column */
  .kpi-grid { grid-template-columns: 1fr; }

  /* KPI card compact */
  .kpi-card { padding: 16px; }
  .kpi-icon-wrapper { width: 44px; height: 44px; font-size: 20px; }
  .kpi-value { font-size: 20px; }

  /* Premium card */
  .premium-card { padding: 16px; }

  /* Divider hide on mobile */
  .divider-v5 { display: none; }
}

@keyframes pulse-soft {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes spin-icon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-icon {
  animation: spin-icon 1s linear infinite;
}

.pulse-dot {
  animation: pulse-dot-key 1.5s infinite;
}

@keyframes pulse-dot-key {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}
.app-layout-root {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
  transition: all 0.3s ease;
}

.dashboard-main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: all 0.3s ease;
  margin-left: 260px; /* Sidebar width */
}

.sidebar-collapsed .dashboard-main-wrapper {
  margin-left: 80px;
}

.dashboard-content-area {
  padding-top: 64px; /* Header height */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dashboard-page-container {
  padding: 32px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

@media (max-width: 767px) {
  .dashboard-main-wrapper {
    margin-left: 0 !important;
  }
  
  .dashboard-page-container {
    padding: 20px 16px;
  }
}
/* ==========================================================================
   Language Dropdown Menu
   ========================================================================== */

.lang-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 250px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.15);
    padding: 10px;
    z-index: 2000;
    max-height: min(480px, 75vh);
    overflow: hidden;
    display: flex;
    flex-direction: column;

    /* Hidden state */
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(-8px);
}

.lang-menu--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ── Search Box ──────────────────────────────────────────────────────────── */
.lang-menu__search-box {
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.lang-menu__search-input {
    width: 100%;
    padding: 9px 32px 9px 38px !important;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.lang-menu__search-input:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.lang-menu__search-icon {
    position: absolute;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none;
    color: #94a3b8;
    z-index: 2;
}

.lang-menu__search-clear {
    position: absolute;
    right: 8px;
    top: 17px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 4px;
}

.lang-menu__search-clear:hover {
    color: #475569;
}

/* ── List ────────────────────────────────────────────────────────────────── */
.lang-menu__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    max-height: 380px;
    padding-right: 2px;
}

/* Custom Scrollbar for the list */
.lang-menu__list::-webkit-scrollbar {
    width: 6px;
}

.lang-menu__list::-webkit-scrollbar-track {
    background: transparent;
}

.lang-menu__list::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 10px;
}

.lang-menu__list::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

/* ── Item ────────────────────────────────────────────────────────────────── */
.lang-menu__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    width: 100%;
}

.lang-menu__check {
    margin-left: 8px;
    flex-shrink: 0;
}

.lang-menu__item:hover,
.lang-menu__item--active,
.lang-menu__item--focused {
    background: #f1f5f9;
}

.lang-menu__item:hover .lang-menu__label,
.lang-menu__item--active .lang-menu__label,
.lang-menu__item--focused .lang-menu__label {
    color: #0f172a;
    font-weight: 600;
}

/* ── Label ───────────────────────────────────────────────────────────────── */
.lang-menu__label {
    font-family: 'Outfit', sans-serif;
    font-size: 14.5px;
    font-weight: 450;
    line-height: 1.2;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Empty State ─────────────────────────────────────────────────────────── */
.lang-menu__empty {
    padding: 18px 12px;
    text-align: center;
    font-size: 13.5px;
    color: #94a3b8;
    font-family: 'Outfit', sans-serif;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .lang-menu {
        right: -10px;
    }
}
.login-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 220px;
    width: max-content;
    max-width: 280px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
    z-index: 100;
}

.login-menu--open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(12px);
    pointer-events: auto;
}

.login-menu__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.login-menu__item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 0.18s ease;
}

.login-menu__item:hover {
    background-color: #f1f5f9;
}

.login-menu__item:hover .login-menu__label {
    color: #0f172a;
}

/* ── Label ───────────────────────────────────────────────────────────────── */
.login-menu__label {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: #1a1a1a;
    white-space: nowrap;
    transition: color 0.18s ease;
}


@media (max-width: 1024px) and (min-width: 768px) {
    .login-menu {
        width: 150px;
        padding: 8px 10px;
    }
    .login-menu__item {
        padding: 4px 6px;
    }
    .login-menu__label {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .login-menu {
        position: static;
        width: 100%;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin-top: 10px;
        background: transparent;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
    }

    .login-menu--open {
        display: block;
    }

    .login-menu__item {
        padding: 10px 16px;
    }

    .login-menu__label {
        font-size: 16px;
    }
}/* ==========================================================================
   Products Mega-Menu Dropdown
   ========================================================================== */

.products-menu {
  position: absolute;
  top: 100% !important;
  left: 0 !important;
  width: 100% !important;
  padding-top: 0 !important;
  z-index: -1 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  box-shadow: none;
}

@media (max-width: 767px) {
  .products-menu {
    display: none !important;
  }
}

.products-menu--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.products-menu__container {
  width: 100% !important;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  padding: 35px 20px 30px 20px;
  font-family: 'Outfit', sans-serif;
}

/* ── Grid — 4 columns ────────────────────────────────────────────────────── */
.products-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) minmax(220px, 260px);
  gap: 16px;
  justify-content: space-between;
}

.products-menu__col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.products-menu__col-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  padding-left: 8px;
}

/* ── Item ────────────────────────────────────────────────────────────────── */
.products-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease;
  text-decoration: none;
}

.products-menu__item:hover {
  background: #f1f5f9;
}

.products-menu__label {
  font-size: 13.5px;
  font-weight: 600;
  color: #444;
  transition: color 0.18s ease;
}

.products-menu__item:hover .products-menu__label {
  color: #0f172a;
}

.products-menu__item:hover .products-menu__icon-wrap {
  background: #e2e8f0;
}

/* ── Icon wrapper ────────────────────────────────────────────────────────── */
.products-menu__icon-wrap {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease;
}

.products-menu__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  /* Make all icons black */
  filter: brightness(0);
  opacity: 0.8;
}

/* ── Right Ecosystem Banner ──────────────────────────────────────────────── */
.products-menu__ecosystem {
  border-left: 1px solid #e2e8f0;
  padding-left: 5px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.products-menu__eco-title {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 16px;
}

.products-menu__eco-desc {
  font-size: 16px;
  font-weight: 600;
  color: #1a202c;
  line-height: 1.5;
  margin-bottom: 24px;
}

.products-menu__eco-btn {
  display: inline-block;
  background-color: #3182ce;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  align-self: flex-start;
  white-space: nowrap;
}

.products-menu__eco-btn:hover {
  background-color: #2b6cb0;
}

/* Responsive constraints */
@media (max-width: 1280px) and (min-width: 1025px) {
  .products-menu__container {
    padding: 20px;
  }
  .products-menu__grid {
    grid-template-columns: 1fr 1fr 1fr 240px;
    gap: 12px;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .products-menu__container {
    padding: 10px;
  }
  .products-menu__grid {
    grid-template-columns: 1fr 1fr 1fr 180px;
    gap: 4px;
  }
  .products-eco-column {
    display: flex;
    padding-left: 8px;
  }
  .product-item {
    padding: 0.15rem;
    gap: 0.25rem;
  }
  .product-item-icon {
    width: 20px;
    height: 20px;
  }
  .product-item-title {
    font-size: 0.65rem;
  }
  .product-item-desc {
    font-size: 0.55rem;
  }
  .products-category-header h3 {
    font-size: 0.8rem;
  }
  .products-menu__eco-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  .products-menu__eco-desc {
    font-size: 0.65rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }
  .products-menu__eco-btn {
    font-size: 0.7rem;
    padding: 6px 8px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
}

@media (max-width: 767px) {
  .products-menu {
    display: none; /* Usually handled by mobile menu logic */
  }
}
/* ==========================================================================
   Resources Dropdown Menu
   ========================================================================== */

.resources-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: min(220px, 90vw);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.08);
    padding: 12px 14px;
    z-index: 2000;

    /* Hidden state */
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(-6px);
}

.resources-menu--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ── List ────────────────────────────────────────────────────────────────── */
.resources-menu__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ── Item ────────────────────────────────────────────────────────────────── */
.resources-menu__item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background 0.18s ease;
}

.resources-menu__item:hover {
    background: #f1f5f9;
}

.resources-menu__item:hover .resources-menu__label {
    color: #0f172a;
}

/* ── Label ───────────────────────────────────────────────────────────────── */
.resources-menu__label {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #1a1a1a;
    white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) and (min-width: 768px) {
    .resources-menu {
        width: min(200px, 90vw);
        padding: 10px 12px;
    }
    .resources-menu__item {
        padding: 6px 8px;
    }
    .resources-menu__label {
        font-size: 14px;
    }
}

@media (max-width: 767px) {

    /* It is hidden on mobile via hide-mobile class originally, but if we need a mobile menu */
    .resources-menu {
        display: none;
    }
}.solutions-menu {
  position: absolute;
  top: 100% !important;
  left: 0 !important;
  width: 100% !important;
  padding-top: 0;
  transform: none;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: -1;
}

@media (max-width: 767px) {
  .solutions-menu {
    display: none !important;
  }
}

.solutions-menu.mega-menu--open {
  opacity: 1;
  visibility: visible;
}

.solutions-menu__container {
  width: 100% !important;
  box-sizing: border-box;
  display: flex;
  padding: 35px 20px 30px 20px;
  gap: 5px;
  background: #ffffff;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.solutions-column {
  flex: none;
  display: flex;
  flex-direction: column;
  padding: 0 5px;
  border-right: 1px solid #e2e8f0; /* Vertical divider */
}

/* Header styling */
.solutions-column-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  /* Removed bottom border, screenshot doesn't have it */
}

.header-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.doc-icon-box {
  background: #3182ce;
}

.pat-icon-box {
  background: #e53e3e;
}

.header-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.solutions-column-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #1a202c;
  white-space: nowrap;
}

/* List styling */
.solutions-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.solutions-item {
  display: flex;
  align-items: center;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  gap: 1rem;
}

.solutions-item:hover {
  background: rgba(255,255,255,0.5);
}

/* Item Icon in White Box */
.solutions-item-icon {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 10px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  object-fit: contain;
  flex-shrink: 0;
}

.solutions-item-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.solutions-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #3182ce;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.solutions-item-desc {
  font-size: 0.8rem;
  color: #4a5568;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* View All Buttons */
.solutions-view-all {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: auto;
}

.btn-blue-light {
  background: #e2e8f0;
  color: #2b6cb0;
}
.btn-blue-light:hover {
  background: #cbd5e1;
}

.btn-red-light {
  background: #fee2e2;
  color: #e53e3e;
}
.btn-red-light:hover {
  background: #fecaca;
}

/* Info Column */
.solutions-info-column {
  flex: 1;
  padding: 0.5rem 5px 0 5px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.info-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.info-desc {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.solutions-explore-all {
  background: #3182ce;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
  white-space: nowrap;
}
.solutions-explore-all:hover {
  background: #2b6cb0;
}

@media (max-width: 1024px) and (min-width: 768px) {
  .solutions-menu__container {
    padding: 10px 5px;
    gap: 2px;
  }
  .solutions-column {
    padding: 0 5px;
  }
  .solutions-item {
    padding: 0.15rem;
    gap: 0.25rem;
  }
  .solutions-item-icon {
    width: 20px;
    height: 20px;
    padding: 2px;
  }
  .solutions-item-title {
    font-size: 0.65rem;
  }
  .solutions-item-desc {
    font-size: 0.55rem;
  }
  .solutions-column-header h3 {
    font-size: 0.8rem;
  }
  .solutions-view-all {
    font-size: 0.7rem;
    padding: 0.5rem;
  }
  
  /* Info Column */
  .solutions-info-column {
    display: flex;
    padding: 0.5rem 5px 0 5px;
  }
  .info-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .info-desc {
    font-size: 0.7rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  .solutions-explore-all {
    font-size: 0.7rem;
    padding: 6px 12px;
  }
}

/* Responsive */
@media (max-width: 767px) {
  .solutions-menu {
    position: static;
    width: 100%;
    border-radius: 0;
  }
  .solutions-menu__container {
    flex-direction: column;
  }
  .solutions-column {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
  }
  .solutions-info-column {
    display: none;
  }
  .solutions-item-title, .solutions-item-desc {
    white-space: normal;
  }
}
/* ==========================================================================
   Navbar — Apple-Style Liquid Glass Navigation
   ========================================================================== */

/* ── Custom Properties ──────────────────────────────────────────────────── */
.navbar {
  --_glass-alpha: 1;
  --_tiltX: 0deg;
  --_tiltY: 0deg;
  --_text-dim: rgba(0, 0, 0, 0.75);
  --_text-bright: #2d3748;
  --_accent: #E81A2D;
  --_accent-glow: hsla(0, 84%, 50%, 0.15);
}

/* ── Outer Wrapper ──────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  z-index: var(--z-sticky, 1000);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  pointer-events: none;
  overflow-x: clip;
  overflow-y: visible;
  box-sizing: border-box;
}

/* ── Container ────────────────────────────────────────────────────── */
.nav-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1400px, 94%);
  max-width: calc(100vw - 24px);
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 8px 24px;
  border-radius: 16px;
  pointer-events: auto;
  overflow: visible;
  isolation: isolate;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: perspective(800px) rotateX(var(--_tiltX)) rotateY(var(--_tiltY));
  transition: box-shadow 0.4s ease;
  will-change: transform;
  box-sizing: border-box;
}

/* ── Scrolled state ─────────────────────── */
.nav-container--scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ── Menu Open state ─────────────────────── */
.nav-container--menu-open {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  box-shadow: none !important;
  transition: border-radius 0s, box-shadow 0s;
}

/* ── Logo ───────────────────────────────────────────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  z-index: 2;
  border-radius: 10px;
}

.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

/* ── Nav Links ──────────────────────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 14px;
  z-index: 2;
}

.nav-item-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #2D3748;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 10px;
  transition: color 0.3s ease;
  user-select: none;
  z-index: 1;
}

.nav-item:hover {
  color: #1A202C;
  background: #f8fafc;
}

.nav-caret {
  margin-left: 6px;
  color: #2D3748;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-caret--open {
  transform: rotate(180deg);
}

.nav-item--active,
.nav-item--active:hover {
  color: #E81A2D !important;
  font-weight: 600;
  background: transparent;
}
.nav-item--active .nav-caret,
.nav-item--active:hover .nav-caret {
  color: #E81A2D !important;
}
.nav-item--active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2.5px;
  background-color: #E81A2D;
  border-radius: 2px;
}

/* ── Actions ────────────────────────────────────────────────────────────── */
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  z-index: 2;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  z-index: 1;
}

.nav-icon img {
  width: 26px;
  height: 26px;
  filter: brightness(0) saturate(100%) invert(39%) sepia(21%) saturate(2370%) hue-rotate(185deg) brightness(97%) contrast(92%);
}

.nav-icon:hover {
  background: #f4f4f5;
  box-shadow: 0 0 15px var(--_accent-glow);
}

.nav-lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #2D3748;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-lang-btn:hover,
.nav-lang-btn--active {
  color: #E81A2D;
  background: #f8fafc;
}

.nav-lang-btn:hover .nav-lang-globe-icon,
.nav-lang-btn--active .nav-lang-globe-icon {
  color: #E81A2D;
}

.nav-lang-globe-icon {
  color: #4A5568;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.nav-lang-img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(39%) sepia(21%) saturate(2370%) hue-rotate(185deg) brightness(97%) contrast(92%);
}

/* ── CTA Button ─────────────────────────────────────────────────────────── */
.nav-cta {
  position: relative;
  padding: 8px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: #E81A2D;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  z-index: 1;
  transition: background 0.3s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta:hover {
  background: #cc1526;
}

/* ── Ripple Effect ──────────────────────────────────────────────────────── */
.ripple {
  display: none;
}

/* ==========================================================================
   Animated Hamburger — 3-line → X morph
   ========================================================================== */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 1;
  position: relative;
  border-radius: 12px;
  transition: background-color 0.35s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger:active {
  transform: scale(0.95);
}

.nav-hamburger__line {
  position: absolute;
  width: 22px;
  height: 2px;
  background: #2D3748;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-hamburger__line--1 {
  top: 13px;
}

.nav-hamburger__line--2 {
  top: 20px;
}

.nav-hamburger__line--3 {
  top: 27px;
}

/* ── Open state — morph to X ── */
.nav-hamburger--open {
  background: #f1f5f9;
}

.nav-hamburger--open .nav-hamburger__line {
  background: #475569;
}

.nav-hamburger--open .nav-hamburger__line--1 {
  top: 20px;
  transform: rotate(45deg);
}

.nav-hamburger--open .nav-hamburger__line--2 {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger--open .nav-hamburger__line--3 {
  top: 20px;
  transform: rotate(-45deg);
}

/* ==========================================================================
   Mobile Drawer — Full-screen overlay with Apple-style slide
   ========================================================================== */
.mobile-backdrop {
  display: none;
}

.mobile-drawer {
  display: none;
}

@media (max-width: 767px) {
  .mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
  }

  .mobile-drawer {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: #ffffff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-drawer__inner {
    padding: 16px 20px 100px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mobile-toggle-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
  }

  .mobile-drawer__section--toggle {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mobile-toggle-context {
    padding: 20px 0 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* ── Section ── */
  .mobile-drawer__section {
    border-bottom: 1px solid transparent;
    margin-bottom: 6px;
    border-radius: 16px;
    transition: background-color 0.3s ease;
  }

  .mobile-drawer__section--cta {
    border-bottom: none;
    margin-top: 16px;
  }

  /* ── Link ── */
  .mobile-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 16px;
    background: none;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-drawer__link:active {
    background: #f1f5f9;
  }

  .mobile-drawer__link--active {
    color: #E81A2D;
    background: #f8fafc;
  }

  /* ── Chevron ── */
  .mobile-drawer__chevron {
    color: #9ca3af;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
    flex-shrink: 0;
  }

  .mobile-drawer__chevron--open {
    transform: rotate(180deg);
    color: #E81A2D;
  }

  /* ── Sub Menu ── */
  .mobile-drawer__sub {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px 16px 12px;
    background: #f8fafc;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    margin-top: -8px; /* tuck behind link */
  }

  .mobile-drawer__sub-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border: 1px solid transparent;
    background: #ffffff;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #334155;
    border-radius: 12px;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-drawer__sub-item:active {
    background: #fef2f2;
    color: #E81A2D;
    border-color: #fecaca;
  }

  .mobile-drawer__sub-item--text {
    padding-left: 16px;
  }

  .mobile-drawer__label-highlight {
    font-weight: 700;
  }

  .mobile-drawer__sub-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
  }

  .mobile-drawer__sub-item:active .mobile-drawer__sub-icon {
    background: #ffebed;
  }

  .mobile-drawer__sub-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(60%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(80%);
  }

  .mobile-drawer__sub-item:active .mobile-drawer__sub-icon img {
    filter: brightness(0) saturate(100%) invert(18%) sepia(96%) saturate(3000%) hue-rotate(342deg) brightness(95%) contrast(95%);
  }

  /* ── Mobile CTA ── */
  .mobile-drawer__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 18px 28px;
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #E81A2D, #cc1526);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(232, 26, 45, 0.3);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-drawer__cta:active {
    transform: scale(0.98);
    box-shadow: 0 2px 12px rgba(232, 26, 45, 0.25);
  }

  .mobile-drawer__cta svg {
    transition: transform 0.2s ease;
  }

  .mobile-drawer__cta:active svg {
    transform: translateX(3px);
  }

  .mobile-drawer__label-highlight {
    color: var(--_accent);
    font-weight: 600;
  }

  .mobile-drawer__sub-group-title {
    font-size: 14px;
    font-weight: 700;
    color: #4a5568;
    padding: 8px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    text-decoration: none;
  }

  .mobile-drawer__sub-group-link {
    transition: color 0.2s ease;
  }

  .mobile-drawer__sub-group-link:active {
    color: var(--_accent);
  }

  .mobile-drawer__sub-explore {
    padding: 12px;
    margin-top: 8px;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: center;
  }

  .mobile-drawer__explore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #fdf2f2;
    color: var(--_accent);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
    width: 100%;
  }

  .mobile-drawer__explore-btn:active {
    background: #f8d7da;
  }
}

/* ==========================================================================
   Desktop Responsive
   ========================================================================== */
@media (max-width: 1366px) {
  .nav-container {
    width: 96%;
    max-width: 1340px;
    padding: 8px 14px;
  }

  .nav-links {
    gap: 6px;
    margin: 0 8px;
  }

  .nav-item {
    padding: 6px 8px;
    font-size: 13.5px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-cta {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media (max-width: 1120px) and (min-width: 768px) {
  .nav-container {
    padding: 6px 10px;
    width: 96%;
  }

  .nav-links {
    gap: 4px;
    margin: 0 4px;
  }

  .nav-item {
    padding: 5px 6px;
    font-size: 12px;
  }

  .nav-cta {
    padding: 6px 10px;
    font-size: 11.5px;
  }
  
  .nav-logo img {
    height: 38px;
  }

  .nav-actions {
    gap: 6px;
  }
}

@media (max-width: 767px) {
  .navbar {
    padding-top: 8px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-container {
    position: relative;
    width: 92%;
    max-width: calc(100vw - 24px);
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 6px 10px 6px 14px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Keep other items like hamburger on the right */
    gap: 12px;
    margin-left: 10px;
  }

  .nav-login {
    display: none;
  }

  .nav-cta-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none; /* Let clicks pass through if needed, though button will catch them */
  }

  .nav-cta {
    position: relative;
    pointer-events: auto;
    margin: 0;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: clamp(10px, 3.5vw, 13px);
    font-weight: 700;
    white-space: nowrap;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(232, 26, 45, 0.2);
  }

  .nav-icon {
    display: none;
  }

  .nav-hamburger {
    display: flex;
    order: 2;
  }

  /* Ensure toggle and wrapper are ordered correctly */
  .nav-persona-toggle-wrapper {
    order: 1;
  }

  .nav-logo img {
    height: 44px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 6px 8px 6px 12px;
  }

  .nav-logo img {
    height: 38px;
  }

  .nav-actions {
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .nav-container {
    padding: 6px 6px 6px 8px;
  }

  .nav-logo img {
    height: 34px;
  }

  .nav-actions {
    gap: 6px;
    margin-left: 4px;
  }

  .nav-cta {
    padding: 6px 12px;
    font-size: 11px;
    min-width: fit-content;
  }

  /* Apply super-compact styles to the PersonaToggle via the wrapper */
  .nav-persona-toggle-wrapper .persona-toggle--compact {
    width: 78px;
    height: 28px;
    padding: 2px;
  }

  .nav-persona-toggle-wrapper .persona-toggle--compact .persona-toggle__thumb {
    width: 22px;
    height: 22px;
  }

  .nav-persona-toggle-wrapper .persona-toggle--compact .persona-toggle__label {
    font-size: 9px;
  }

  .nav-hamburger {
    width: 36px;
    height: 36px;
  }

  .nav-hamburger__line {
    width: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-container {
    transition: none;
    transform: none !important;
  }

  .hover-glass {
    transition: none;
    transform: none !important;
  }

  .nav-hamburger__line {
    transition: none;
  }
}/* 6. Intensity Presets & Variables */
:root {
    --logo-scan-subtle: 0.3;
    --logo-scan-default: 0.6;
    --logo-scan-intense: 1.0;
    --logo-scan-color: 255, 255, 255;
    /* RGB for customization */
}

/* Theme Adaptation */
:root[data-theme="dark"] {
    --logo-scan-color: 200, 230, 255;
    /* Cool white for dark mode */
}

/* Container */
/* Container */
/* Container */
.logo-scan {
    position: relative;
    display: inline-flex;
    /* Tightly wraps image */
    overflow: visible;
    /* Revert clipping so glow can spill */
    transform-style: preserve-3d;
    cursor: pointer;
    line-height: 0;
    /* Ensures no extra vertical space */
}

/* Main Image */
.logo-img {
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Triggered Scale/Jitter on Image */
.logo-scan.is-active .logo-img {
    animation: logo-pop 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Overlay 1: Broad Sheen */
/* Overlay 1: Broad Sheen */
.logo-scan-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(var(--logo-scan-color), var(--scan-alpha, 0.4)) 45%,
            rgba(var(--logo-scan-color), var(--scan-alpha, 0.8)) 50%,
            rgba(var(--logo-scan-color), var(--scan-alpha, 0.4)) 55%,
            transparent 80%);
    transform: translateX(-150%) skewX(-20deg);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: overlay;

    /* MASKING: Ensure sheen only visible on opaque logo pixels */
    /* Url is set via inline style, but defaults here */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Overlay 2: Fast Bright Highlight */
.logo-scan-overlay-2 {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(var(--logo-scan-color), 0.9) 48%,
            rgba(var(--logo-scan-color), 1) 50%,
            rgba(var(--logo-scan-color), 0.9) 52%,
            transparent 60%);
    transform: translateX(-150%) skewX(-20deg);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: color-dodge;

    /* MASKING */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Glow: Soft Outer Blob */
.logo-scan-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(var(--logo-scan-color), 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* Animations Triggered by Classes */
.logo-scan-overlay.active {
    /* Use CSS variable for opacity based on modifier class */
    animation: scan-pass-1 2.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.logo-scan-overlay-2.active {
    animation: scan-pass-2 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.logo-scan-glow.active {
    animation: scan-glow 2.2s ease-out forwards;
}

/* Intensity Modifiers */
.logo-scan--subtle {
    --scan-alpha: var(--logo-scan-subtle);
}

.logo-scan--default {
    --scan-alpha: var(--logo-scan-default);
}

.logo-scan--intense {
    --scan-alpha: var(--logo-scan-intense);
}

/* Keyframes */
@keyframes logo-pop {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes scan-pass-1 {
    0% {
        transform: translateX(-150%) skewX(-20deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateX(150%) skewX(-20deg);
        opacity: 0;
    }
}

@keyframes scan-pass-2 {
    0% {
        transform: translateX(-150%) skewX(-10deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    60% {
        transform: translateX(150%) skewX(-10deg);
        opacity: 0;
    }

    100% {
        transform: translateX(150%) skewX(-10deg);
        opacity: 0;
    }
}

@keyframes scan-glow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    20% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .logo-scan.is-active .logo-img,
    .logo-scan-overlay.active,
    .logo-scan-overlay-2.active,
    .logo-scan-glow.active {
        animation: none;
        transition: none;
        transform: none;
        opacity: 1;
        /* Just show static state or nothing */
    }
}/* ==========================================================================
   Footer — Dark Theme Premium
   ========================================================================== */

.footer {
  position: relative;
  padding-top: 28px;
  padding-bottom: var(--section-spacing);
  overflow: hidden;
  border-top: 1px solid var(--t-border-subtle);
}

/* ── Background Pattern ─────────────────────────────────────────────────── */
.footer__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* filter: brightness(0.3); -- Removed as per user request to show BG */
}

/* ── Inner Wrapper ──────────────────────────────────────────────────────── */
.footer__inner {
  position: relative;
  z-index: 1;
}

/* ── Top Section ────────────────────────────────────────────────────────── */
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 2.5fr;
  gap: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--t-border-subtle);
}

/* ── Brand Column ───────────────────────────────────────────────────────── */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__logo-icon {
  flex-shrink: 0;
}

.footer__logo-icon img {
  filter: var(--t-icon-filter);
}

.footer__logo-text {
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--t-text-strong);
  letter-spacing: -0.02em;
}

.footer__logo-text span {
  color: hsl(0, 78%, 55%);
}

.footer__brand-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
  max-width: 320px;
  font-weight: 400;
}

/* ── Link Columns ───────────────────────────────────────────────────────── */
.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__col-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111827;
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__link {
  font-size: 0.95rem;
  color: #374151;
  text-decoration: none;
  font-weight: 450;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer__link:hover {
  color: #2563eb;
  transform: translateX(3px);
}

/* ── Contact Items ──────────────────────────────────────────────────────── */
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.5;
}

.footer__contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__contact-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #4b5563;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__contact-link {
  color: #374151;
  text-decoration: none;
  font-weight: 450;
  transition: color 0.25s ease;
}

.footer__contact-link:hover {
  color: #2563eb;
}

/* ── Bottom Bar ─────────────────────────────────────────────────────────── */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--t-border-subtle);
  position: relative;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__social {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--t-glass-fill);
  border: 1px solid var(--t-border);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  padding: 0;
  text-decoration: none;
}

.footer__social img {
  width: 38px;
  height: 38px;
  opacity: 1; /* Permanently colourful */
  filter: none; /* Removed grayscale/brightness filters */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer__social:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-8px) scale(1.15) rotate(5deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Individual Brand Dynamics */
.footer__social--linkedin:hover {
  border-color: #0077b5;
  box-shadow: 0 12px 24px rgba(0, 119, 181, 0.25);
}

.footer__social--insta:hover {
  border-color: #e4405f;
  box-shadow: 0 12px 24px rgba(228, 64, 95, 0.25);
}

.footer__social--fb:hover {
  border-color: #1877f2;
  box-shadow: 0 12px 24px rgba(24, 119, 242, 0.25);
}

.footer__social:hover img {
  transform: scale(1.1);
}

.footer__copyright {
  font-size: 0.88rem;
  color: #4b5563;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: absolute;
  right: 0;
}

.footer__legal-link {
  font-size: 0.88rem;
  color: #4b5563;
  text-decoration: none;
  font-weight: 450;
  transition: color 0.25s ease;
}

.footer__legal-link:hover {
  color: #2563eb;
}

.footer__legal-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #cbd5e1;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) and (min-width: 768px) {
  .footer {
    zoom: 0.65;
  }
}

@media (max-width: 767px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding-bottom: 2rem;
  }

  .footer__socials {
    justify-content: center;
  }

  .footer__legal {
    position: static;
    justify-content: center;
    width: 100%;
    order: 2;
  }

  .footer__copyright {
    order: 1;
  }
}

/* ── High Tech Note ─────────────────────────────────────────────────────── */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.high-tech-note {
  font-size: 0.65rem;
  color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-weight: 600;
}

.high-tech-dot {
  width: 6px;
  height: 6px;
  background-color: #3b82f6;
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

/* ── Contact Form ───────────────────────────────────────────────────────── */
.footer__connect-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.footer__connect-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
  font-size: 0.95rem;
  color: #374151;
  background: transparent;
  outline: none;
  font-family: inherit;
  transition: border-color 0.25s ease;
}

.footer__input:focus {
  border-bottom-color: #ed1a2b;
}

.footer__input::placeholder {
  color: #9ca3af;
}

.footer__submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.footer__submit-btn {
  background-color: #ed1a2b;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-family: inherit;
}

.footer__submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .footer__contact-headers-row {
    flex-direction: column;
    gap: 1rem !important;
  }
}
/* ── FOOTER CTA ── */
.ds-cta {
  padding: 1.5rem 2rem 4rem;
  background: white;
  text-align: center;
  position: relative;
  z-index: 10;
}

.ds-cta .ds-section-title {
  font-family: var(--ff-heading, 'Outfit', sans-serif);
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.875rem);
  font-weight: 600;
  line-height: 1.2;
  color: #111;
}

.brand-red {
  color: #e31837;
}

@keyframes bounceArrow {
  0%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  50% {
    transform: translateY(15px) translateX(-50%);
  }
}

.cta-red-arrow {
  position: absolute;
  left: 70%;
  right: auto;
  top: 70%;
  width: 80px;
  z-index: 5;
  animation: bounceArrow 2s infinite ease-in-out;
}

.ds-cta-banner {
  background: #004a94;
  border-radius: 24px;
  padding: 4rem 5%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 4rem auto 0;
  text-align: left;
  overflow: visible;
  background-size: cover;
  background-position: center;
  height: auto;
}

.ds-cta-full {
  width: 100%;
  max-width: none !important;
  position: relative;
  margin: 0;
  left: 0;
  right: 0;
  border-radius: 0;
  padding: 1rem 10%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  overflow: visible;
  background-size: cover;
  background-position: center;
  height: auto;
}

.cta-full-logo {
  width: 120px;
  margin-bottom: 0.5rem;
}

.ds-cta-content {
  position: relative;
  z-index: 3;
}

.ds-cta-content h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
  line-height: 1.2;
}

.cta-action-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-blue-glow {
  background: #60a5fa;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.5);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.btn-blue-glow:hover {
  background: #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.cta-avatars {
  display: flex;
  align-items: center;
}

.cta-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #60a5fa;
  margin-left: -8px;
  object-fit: cover;
}

.cta-avatar-img:first-child {
  margin-left: 0;
}

.cta-booked-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  color: white;
}

.cta-white-arrow {
  width: 24px;
  height: 24px;
  transform: rotate(-45deg);
  color: white;
}

.cta-booked-fast {
  font-size: 0.85rem;
  opacity: 0.9;
  text-align: left;
}

.cta-doctor-img {
  position: absolute;
  right: 5%;
  bottom: 0;
  height: 125%;
  max-height: 500px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(-10px 10px 15px rgba(0,0,0,0.3));
}

@media (max-width: 767px) {
  .ds-cta-banner {
    flex-direction: column;
    padding: 2rem 5%;
    align-items: center;
    text-align: center;
  }
  .ds-cta-content {
    padding: 0;
    align-items: center;
  }
  .ds-cta-content h3 {
    font-size: 2rem;
  }
  .cta-action-row {
    justify-content: center;
    flex-direction: column;
  }
  .cta-doctor-img {
    position: relative;
    right: auto;
    bottom: auto;
    height: auto;
    max-width: 100%;
    margin-top: 2rem;
  }
  .cta-red-arrow {
    display: block;
    left: 60%;
    width: 60px;
    top: 60%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .ds-cta {
    padding: 3rem 1rem;
  }
  .ds-cta .ds-section-title {
    font-size: 28px;
  }
  .cta-red-arrow {
    width: 50px;
    top: 50%;
  }
  .ds-cta-full {
    padding: 1rem 5%;
  }
  .ds-cta-content h3 {
    font-size: 2rem;
  }
  .cta-full-logo {
    width: 90px;
  }
  .cta-doctor-img {
    height: 110%;
    right: 0;
  }
  .btn-blue-glow {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .cta-booked-fast {
    font-size: 0.75rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .ds-cta {
    padding: 1.5rem 1rem;
  }
  .ds-cta .ds-section-title {
    font-size: 26px;
    margin-bottom: 1rem;
  }
  .cta-red-arrow {
    width: 40px;
    top: 40%;
  }
  .ds-cta-full {
    padding: 1rem 5%;
    margin-top: 1rem;
    min-height: auto;
  }
  .ds-cta-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }
  .cta-full-logo {
    width: 80px;
    margin-bottom: 0.2rem;
  }
  .cta-doctor-img {
    height: 100%;
    max-height: 300px;
    right: 0;
  }
  .btn-blue-glow {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  .cta-booked-fast {
    font-size: 0.7rem;
  }
  .cta-action-row {
    gap: 0.5rem;
  }
}

/* FOOTER TABLET HEIGHT FIX */
@media (min-width: 768px) and (max-width: 1024px) {
  .ds-cta-banner {
    padding: 1.5rem 3% !important;
    min-height: 200px !important;
  }
  .ds-cta-content h3 {
    margin-bottom: 0.5rem !important;
  }
}
/* ═══════════════════════════════════════════════════════════════
   Skeuomorphic Stats — Shared Styles
   Fix: prevent SVG/icon circle from being composited behind glass layer in build
   ═══════════════════════════════════════════════════════════════ */

.sk-stats-3d {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.sk-stats-3d--standalone {
  padding: 100px 80px 40px;
  background: #ffffff;
}

/* ── Header ────────────────────────────────────────────────── */
.sk-stats-3d__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
  will-change: transform;
}

.sk-stats-3d__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: #1e2538;
  margin: 0;
}

.sk-stats-3d__title-span {
  color: #ff2d3e;
  /* Brand Red */
}

/* ── Perspective stage ─────────────────────────────────────── */
.sk-stats-3d__stage {
  perspective: 1200px;
  perspective-origin: 50% 50%;
  max-width: 1200px;
  margin: 0 auto;
}

.sk-stats-3d__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  transform-style: preserve-3d;
}

/* ── Individual 3-D card ───────────────────────────────────── */
/*
  Important change:
  We render the frosted glass panel on ::before so children (icons)
  never get composited "under" the glass layer in production.
*/
.sk-stats-3d__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  padding: 52px 24px 44px;
  border-radius: 24px;

  /* moved to ::before */
  background: transparent;
  border: none;
  box-shadow: none;

  transform-style: preserve-3d;
  will-change: transform;

  /* prevents weird blending/flattening across browsers */
  isolation: isolate;
}

.sk-stats-3d__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(43, 49, 74, 0.08);

  box-shadow:
    0 1px 2px rgba(43, 49, 74, 0.04),
    0 8px 24px rgba(43, 49, 74, 0.06),
    0 24px 48px -12px rgba(86, 118, 206, 0.10);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  z-index: 0;
  transition: box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sk-stats-3d__card:hover::before {
  box-shadow:
    0 2px 4px rgba(43, 49, 74, 0.06),
    0 16px 40px rgba(43, 49, 74, 0.10),
    0 40px 80px -16px rgba(86, 118, 206, 0.18);
}

/* ensure all direct children render above the glass layer */
.sk-stats-3d__card>* {
  position: relative;
  z-index: 1;
}

/* edges */
.sk-stats-3d__edge {
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.sk-stats-3d__edge--top {
  top: 0;
  border-radius: 24px 24px 0 0;
}

.sk-stats-3d__edge--bottom {
  bottom: 0;
  border-radius: 0 0 24px 24px;
}

.sk-stats-3d__card:hover .sk-stats-3d__edge {
  opacity: 1;
}

/* ── Icon ──────────────────────────────────────────────────── */
/*
  Key change:
  Remove negative translateZ so the icon never goes behind the card surface.
*/
.sk-stats-3d__icon-container {
  margin-bottom: 20px;

  transform: translateZ(28px) translateY(4px);
  transform-style: preserve-3d;

  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;

  z-index: 3;
  backface-visibility: hidden;
}

.sk-stats-3d__icon-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;

  transform: scale(0.92) rotateX(-8deg) translateZ(0px);
  box-shadow:
    inset 0 16px 20px -8px rgba(10, 15, 30, 0.6),
    inset 0 -4px 6px -1px rgba(255, 255, 255, 1);

  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;

  /* keep highlight behind the SVG */
  z-index: 0;
  backface-visibility: hidden;
}

.sk-stats-3d .sk-stats-3d__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;

  transform: scale(0.92) rotateX(-8deg) translateZ(10px);
  position: relative;

  /* always above the pseudo shadow/highlight */
  z-index: 1;

  /* make sure production/global styles never dim it */
  filter: none !important;
  opacity: 1 !important;

  backface-visibility: hidden;
}

.sk-stats-3d__card:hover .sk-stats-3d__icon-container {
  transform: translateZ(70px) translateY(-8px);
}

.sk-stats-3d__card:hover .sk-stats-3d__icon {
  transform: scale(1.1) rotateX(10deg) translateZ(35px);
  filter:
    drop-shadow(0 12px 14px rgba(43, 49, 74, 0.12)) drop-shadow(0 24px 28px rgba(43, 49, 74, 0.10));
}

.sk-stats-3d__card:hover .sk-stats-3d__icon-container::after {
  transform: scale(1.1) rotateX(10deg);
  box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
}

/* ── Text ──────────────────────────────────────────────────── */
.sk-stats-3d__number {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 5.5vw, 84px);
  line-height: 1;
  letter-spacing: -2.5px;
  color: #1e2538;
  margin: 0 0 12px 0;
  transform: translateZ(30px);
  z-index: 2;
}

.sk-stats-3d__label {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 26px;
  color: #4b5268;
  margin: 0;
  max-width: 180px;
  transform: translateZ(15px);
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1280px) {
  .sk-stats-3d--standalone {
    padding: 80px 48px 40px;
  }

  .sk-stats-3d__grid {
    gap: 20px;
  }

  .sk-stats-3d__card {
    padding: 44px 18px 38px;
  }
}

@media (max-width: 1023px) {
  .sk-stats-3d--standalone {
    padding: 72px 32px 40px;
  }

  .sk-stats-3d__header {
    margin-bottom: 48px;
  }

  .sk-stats-3d__stage {
    perspective: 900px;
  }

  .sk-stats-3d__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .sk-stats-3d__number {
    font-size: clamp(44px, 8vw, 64px);
  }
}

@media (max-width: 640px) {
  .sk-stats-3d--standalone {
    padding: 56px 20px 40px;
  }

  .sk-stats-3d__header {
    margin-bottom: 36px;
  }

  .sk-stats-3d__stage {
    perspective: 600px;
  }

  .sk-stats-3d__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 420px;
    margin: 0 auto;
  }

  .sk-stats-3d__card {
    padding: 36px 14px 30px;
    border-radius: 18px;
  }

  .sk-stats-3d__card::before {
    border-radius: 18px;
  }

  .sk-stats-3d__number {
    font-size: 36px;
    letter-spacing: -1.5px;
  }

  .sk-stats-3d__label {
    font-size: 14px;
    line-height: 20px;
  }

  .sk-stats-3d__icon-container {
    width: 64px;
    height: 64px;
  }
}/* ══════════════════════════════════════════════════════════
   Success Stories — Testimonials
   ══════════════════════════════════════════════════════════ */

.ss-testimonials {
  padding-block: var(--section-spacing);
  background: #fff;
}

/* ── Heading ── */
.ss-testimonials__heading {
  max-width: 1239px;
  margin: 0 auto 48px;
  text-align: center;
  padding: 0 5%;
}

.ss-testimonials__title {
  font-family: var(--ff-heading, 'Outfit', sans-serif);
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.875rem);
  font-weight: 600;
  line-height: 82px;
  color: var(--ds-text, #111);
  text-transform: capitalize;
}

.ss-testimonials__title-red {
  color: #ed1a2b;
}

/* ── Cards row ── */
.ss-testimonials__grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ── Card ── */
.ss-testimonials__card {
  flex: 1;
  min-width: 0;
  max-width: 364px;
  background: #eeeefe;
  border-radius: 25px;
  padding: 26px 16px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.ss-testimonials__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

/* ── Card header ── */
.ss-testimonials__card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ss-testimonials__avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ss-testimonials__doctor-info {
  display: flex;
  flex-direction: column;
}

.ss-testimonials__doctor-name {
  font-family: var(--ff-heading, 'Outfit', sans-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: normal;
  color: #161616;
  text-transform: capitalize;
  margin: 0;
}

.ss-testimonials__doctor-role {
  font-family: var(--ff-heading, 'Outfit', sans-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  color: #5c5c5c;
  margin: 0;
}

.ss-testimonials__doctor-role-dark {
  color: #382f2f;
}

/* ── Review text ── */
.ss-testimonials__text {
  font-family: var(--ff-heading, 'Outfit', sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 29.3px;
  color: #525252;
  margin: 0 0 16px;
  flex: 1;
}

/* ── Stars ── */
.ss-testimonials__stars {
  height: 20px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.ss-testimonials__stars img {
  height: 100%;
  width: auto;
}

/* ── Separator line ── */
.ss-testimonials__separator {
  width: 100%;
  height: 1px;
  background: #d9d9d9;
  margin-top: 20px;
}

/* ── Home Page Exception ── */
#chapter-testimonials .ss-testimonials {
  padding-top: clamp(4rem, 8vw, 10rem); /* Substantial room for breakout toothbrushes */
  padding-bottom: var(--section-spacing);
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .ss-testimonials__grid {
    flex-direction: column;
    align-items: center;
  }

  .ss-testimonials__card {
    flex: none;
    width: min(364px, 90vw);
  }

  .ss-testimonials__title {
    line-height: 1.2;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .ss-testimonials__card {
    padding: 16px 10px 16px;
  }
  .ss-testimonials__doctor-name {
    font-size: 16px;
  }
  .ss-testimonials__doctor-role {
    font-size: 13px;
  }
  .ss-testimonials__text {
    font-size: 13px;
    line-height: 1.4;
  }
  .ss-testimonials__avatar {
    width: 48px;
    height: 48px;
  }
  .ss-testimonials__title {
    font-size: 32px;
    line-height: 40px;
  }
}
/* ==========================================================================
   Shared FAQ Accordion — extracted from Pricing page
   ========================================================================== */

.shared-faq {
    padding: 40px 24px 100px;
    max-width: 1188px;
    margin: 0 auto;
}

.shared-faq__title {
    font-weight: 600;
    font-size: 62px;
    line-height: 82px;
    color: #000;
    text-align: center;
    text-transform: capitalize;
    margin: 0 0 56px;
}

.shared-faq__title span {
    color: #ed1a2b;
}

.shared-faq__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.shared-faq__item {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.shared-faq__item--open {
    border-color: #ed1a2b;
}

.shared-faq__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    text-align: left;
    gap: 16px;
}

.shared-faq__question {
    font-size: 22px;
    line-height: 36.3px;
    color: #000;
    font-weight: 400;
}

.shared-faq__icon {
    width: 44px;
    height: 44px;
    background-color: #ed1a2b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.shared-faq__icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.shared-faq__icon--open {
    transform: rotate(45deg);
}

.shared-faq__answer {
    padding: 0 28px 24px;
    font-size: 18px;
    line-height: 30.3px;
    color: #525252;
}

.shared-faq__answer p {
    margin: 0;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .shared-faq__title {
        font-size: 44px;
        line-height: 56px;
    }
}

@media (max-width: 768px) {
    .shared-faq {
        padding: 60px 16px;
    }

    .shared-faq__title {
        font-size: 32px;
        line-height: 42px;
        margin-bottom: 32px;
    }

    .shared-faq__trigger {
        padding: 16px 20px;
    }

    .shared-faq__question {
        font-size: 18px;
        line-height: 28px;
    }

    .shared-faq__icon {
        width: 40px;
        height: 40px;
    }

    .shared-faq__list {
        gap: 16px;
    }
}/* Dashed Rings */
.eco-orbit-system {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitSpinReverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.eco-orbit-rotator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: orbitSpin 60s linear infinite;
}

.eco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed #ccc;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.eco-ring-1 { width: 230px; height: 230px; } /* Radius 115 */
.eco-ring-2 { width: 350px; height: 350px; } /* Radius 175 */
.eco-ring-3 { width: 470px; height: 470px; } /* Radius 235 */

.eco-center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  z-index: 10;
}
.eco-center-logo {
  width: 70%;
  height: auto;
  object-fit: contain;
}

.eco-node {
  position: absolute;
  width: 86px;
  height: 86px;
  z-index: 5;
  top: 50%;
  left: 50%;
  /* Centering adjustment so the center of the node is on the dashed line */
  margin-top: -43px;
  margin-left: -43px;
}

.eco-node-content {
  width: 86px;
  height: 86px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6px;
  animation: orbitSpinReverse 60s linear infinite;
}

.eco-node-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 2px;
  object-fit: contain;
  filter: brightness(0) opacity(0.8);
  transition: filter 0.2s;
}
.eco-node-content:hover .eco-node-icon {
  filter: none;
}
.eco-node-text {
  font-size: 0.55rem;
  font-weight: 700;
  color: #333;
  line-height: 1.1;
  width: 100%;
  transition: color 0.2s;
}
.eco-node-content:hover .eco-node-text {
  color: #006ce4;
}

@media (max-width: 768px) {
  .eco-node-text {
    font-size: 0.55rem;
  }
  .eco-node-content {
    width: 65px;
    height: 65px;
    padding: 3px;
  }
  .eco-node-icon {
    width: 22px;
    height: 22px;
  }
  .eco-node {
    width: 65px;
    height: 65px;
    margin-top: -32.5px;
    margin-left: -32.5px;
  }
  .eco-center-circle {
    width: 90px;
    height: 90px;
  }
}
.all-products-page {
  background-color: #f4f5f8;
  padding-bottom: 60px;
  width: 100%;
  box-sizing: border-box;
}

/* ── HERO SECTION ── */
.ap-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 24px 40px 24px;
  gap: 40px;
  min-height: auto;
  box-sizing: border-box;
}

.ap-hero-content {
  flex: 1;
  max-width: 540px;
}

.ap-hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
  margin-bottom: 20px;
}

.ap-hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: #4b5563;
  line-height: 1.6;
  font-weight: 500;
}

.ap-hero-diagram {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 400px;
  width: 100%;
  max-width: 540px;
}

.ap-ecosystem-graphic {
  position: relative !important;
  width: 100%;
  max-width: 540px;
  height: auto;
  aspect-ratio: 1 / 1;
}

/* ── PRODUCT GRID SECTION ── */
.ap-grid-section {
  background-color: #ffffff;
  padding: 60px 24px 80px 24px;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.ap-grid-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.ap-grid-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  margin-bottom: 16px;
}

.ap-grid-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: #64748b;
  margin-bottom: 32px;
  line-height: 1.5;
}

.ap-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ap-filter-btn {
  padding: 10px 24px;
  border-radius: 30px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #2581C4;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ap-filter-btn:hover {
  border-color: #2581C4;
  background: #f0f7ff;
}

.ap-filter-btn--active {
  background: #2581C4;
  color: #ffffff;
  border-color: #2581C4;
}

/* Grid */
.ap-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Card */
.ap-product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.ap-product-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: #f8fafc;
  border-radius: 50%;
  z-index: 0;
  transition: background-color 0.3s ease;
}

.ap-product-card > * {
  position: relative;
  z-index: 1;
}

.ap-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.ap-product-card:hover::before {
  background-color: #eef5ff;
}

.ap-card-icon-wrap {
  width: 48px;
  height: 48px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.ap-card-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0);
  transition: filter 0.2s ease;
}

.ap-product-card:hover .ap-card-icon {
  filter: none;
}

.ap-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.ap-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 10px 0;
}

.ap-card-desc {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.55;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.ap-card-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3b82f6;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ap-card-link:hover .ap-arrow {
  transform: translateX(4px);
}

.ap-arrow {
  transition: transform 0.2s ease;
}

.ap-testimonials {
  padding: 60px 20px;
  background: #ffffff;
  text-align: center;
}

.ap-testi-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #111827;
  margin-bottom: 32px;
}

/* ── Responsive Breakpoints ── */

/* Laptop & Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .ap-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .ap-hero {
    padding: 120px 20px 30px 20px;
    gap: 24px;
  }
  .ap-hero-content {
    max-width: 100%;
  }
}

/* Mobile & Small Tablet (< 768px) */
@media (max-width: 767px) {
  .ap-hero {
    flex-direction: column;
    text-align: center;
    padding: 110px 16px 30px 16px;
    gap: 20px;
  }
  .ap-hero-content {
    max-width: 100%;
  }
  .ap-hero-diagram {
    min-height: auto;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .ap-ecosystem-graphic {
    width: 100%;
    max-width: 360px;
    height: auto;
  }
  .ap-grid-section {
    padding: 40px 16px 60px 16px;
    border-radius: 28px 28px 0 0;
  }
  .ap-grid-header {
    margin-bottom: 32px;
  }
  .ap-products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ap-product-card {
    padding: 24px;
    border-radius: 16px;
  }
  .ap-filter-btn {
    padding: 8px 18px;
    font-size: 0.88rem;
  }
}
.product-slider {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.product-slider__track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: product-scroll var(--duration) linear infinite;
}

.product-slider:hover .product-slider__track {
  animation-play-state: paused;
}

@keyframes product-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* 280px card + 32px gap = 312px */
    transform: translateX(calc(-292px * var(--item-count)));
  }
}

@media (max-width: 640px) {
  @keyframes product-scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      /* 200px card + 32px gap = 232px */
      transform: translateX(calc(-232px * var(--item-count)));
    }
  }
}

.product-slider__card {
  flex: 0 0 260px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.5);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.product-slider__card:hover {
  transform: translateY(-8px);
  background: #fff;
  border-color: #ed1a2b;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-slider__icon-wrap {
  width: 100px;
  height: 100px;
  background: #f9fafb;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.product-slider__card:hover .product-slider__icon-wrap {
  transform: scale(1.1) rotate(5deg);
}

.product-slider__icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.product-slider__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-slider__name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #111827;
}

.product-slider__subtext {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .product-slider__card {
    flex: 0 0 200px;
    padding: 16px;
  }
  
  .product-slider__icon-wrap {
    width: 60px;
    height: 60px;
  }
  
  .product-slider__icon {
    width: 32px;
    height: 32px;
  }
}

.product-slider__card {
  height: auto;
  min-height: 240px;
  padding: 24px;
  align-items: flex-start;
  text-align: left;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .product-slider__card {
    flex: 0 0 220px;
    padding: 16px;
    min-height: 200px;
  }
  .product-slider__icon-wrap {
    width: 60px;
    height: 60px;
  }
  .product-slider__icon {
    width: 40px;
    height: 40px;
  }
  .product-slider__name {
    font-size: 14px;
  }
}
.ps-preventive-cta {
  padding: 5rem;
  background: #f8fafc;
  text-align: center;
}

.ps-section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.brand-red {
  color: #e31837;
}

.ps-preventive-banner {
  border-radius: 24px;
  max-width: 1200px;
  min-height: 400px;
  margin: 3rem auto 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem 4rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ps-preventive-content {
  flex: 1;
  text-align: left;
  z-index: 2;
  color: white;
  max-width: 500px;
}
.ps-preventive-content h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}
.ps-btn {
  background: #e31837;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  z-index: 10;
}
.ps-btn:hover {
  background: #c5122b;
}



@media (max-width: 767px) {
  .ps-preventive-cta {
    padding: 2rem 1.5rem;
  }
  .ps-preventive-banner {
    flex-direction: column;
    padding: 2rem;
    text-align: center;
    background-position: right center;
    background-size: cover;
    min-height: 300px;
  }
  .ps-preventive-content {
    text-align: center;
    margin-bottom: 2rem;
    background: rgba(0, 108, 228, 0.6);
    padding: 1rem;
    border-radius: 12px;
  }
}
