/**
 * WorkDent Custom Design System & UI Engine
 * WCAG AAA compliant text contrast, responsive layout, glassmorphism navbar,
 * and automatic-progression How-It-Works stepper.
 */

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Healthcare SaaS Color Tokens - Teal, Mint, Blue, Navy (STRICTLY NO PURPLE) */
  --wd-teal: #087F8C;
  --wd-teal-hover: #06646E;
  --wd-teal-light: #E8F8F7;
  --wd-teal-border: #B9F3E8;
  
  --wd-accent: #36C9C0;
  --wd-mint: #B9F3E8;
  --wd-mint-soft: #F0FDF4;
  
  --wd-blue: #2479D8;
  --wd-blue-hover: #1B5EB0;
  --wd-blue-light: #EFF6FF;
  --wd-blue-border: #BFDBFE;
  
  --wd-dark: #102A43;
  --wd-dark-soft: #243B53;
  --wd-slate: #334E68;
  --wd-muted: #627D98;
  --wd-subtle: #9FB3C8;
  
  --wd-bg: #FFFFFF;
  --wd-bg-soft: #F5FAF9;
  --wd-card: #FFFFFF;
  --wd-border: #DCE8E8;
  
  --wd-footer-bg: #0D2030;
  --wd-footer-border: #1E3A52;
  
  /* Shadows */
  --wd-shadow-sm: 0 1px 3px rgba(16, 42, 67, 0.06);
  --wd-shadow-md: 0 4px 12px -2px rgba(16, 42, 67, 0.08);
  --wd-shadow-lg: 0 12px 28px -4px rgba(16, 42, 67, 0.1);
  --wd-shadow-xl: 0 20px 40px -8px rgba(16, 42, 67, 0.14);
}

* {
  font-family: var(--font-sans);
  box-sizing: border-box;
}

body {
  background-color: var(--wd-bg);
  color: var(--wd-dark);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Base Headings & Text Contrast Protection (WCAG AAA) */
h1, h2, h3, h4, h5, h6 {
  color: var(--wd-dark);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

p {
  color: var(--wd-slate);
  line-height: 1.6;
}

/* ==================== BUTTONS (EXPLICIT HIGH CONTRAST) ==================== */
.wd-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--wd-teal) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 0.9375rem;
  padding: 0.75rem 1.375rem;
  border-radius: 0.75rem;
  text-decoration: none !important;
  border: 1px solid var(--wd-teal-hover);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(8, 127, 140, 0.28);
  min-height: 48px;
  touch-action: manipulation;
  user-select: none;
}
.wd-btn-primary:hover {
  background-color: var(--wd-teal-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(8, 127, 140, 0.35);
}
.wd-btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.wd-btn-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--wd-blue) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 0.9375rem;
  padding: 0.75rem 1.375rem;
  border-radius: 0.75rem;
  text-decoration: none !important;
  border: 1px solid var(--wd-blue-hover);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(36, 121, 216, 0.28);
  min-height: 48px;
  touch-action: manipulation;
  user-select: none;
}
.wd-btn-blue:hover {
  background-color: var(--wd-blue-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(36, 121, 216, 0.35);
}

.wd-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #FFFFFF !important;
  color: var(--wd-dark) !important;
  font-weight: 600 !important;
  font-size: 0.9375rem;
  padding: 0.75rem 1.375rem;
  border-radius: 0.75rem;
  text-decoration: none !important;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  min-height: 48px;
  touch-action: manipulation;
  user-select: none;
}
.wd-btn-secondary:hover {
  background-color: var(--wd-bg-soft) !important;
  border-color: #94A3B8;
  transform: translateY(-1px);
}
.wd-btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

.wd-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--wd-dark) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 0.9375rem;
  padding: 0.75rem 1.375rem;
  border-radius: 0.75rem;
  text-decoration: none !important;
  border: 1px solid #000000;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
  min-height: 48px;
  touch-action: manipulation;
}
.wd-btn-dark:hover {
  background-color: #020617 !important;
  transform: translateY(-1px);
}

/* ==================== GLASSMORPHISM NAVBAR ==================== */
.wd-navbar-wrap {
  position: fixed;
  top: 0.875rem;
  left: 0.875rem;
  right: 0.875rem;
  max-width: 72rem;
  margin: 0 auto;
  z-index: 50;
  pointer-events: auto;
}

.wd-navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.125rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.25s ease;
}

.wd-navbar-scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 14px 35px -5px rgba(15, 23, 42, 0.12) !important;
  border-color: #CBD5E1 !important;
}

.wd-nav-link {
  color: var(--wd-slate) !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: 0.625rem;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.wd-nav-link:hover {
  color: var(--wd-blue) !important;
  background-color: var(--wd-blue-light);
}

/* Dropdown Menu */
.wd-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 15rem;
  background: #FFFFFF;
  border: 1px solid var(--wd-border);
  border-radius: 0.875rem;
  box-shadow: var(--wd-shadow-xl);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
}
.wd-dropdown.open .wd-dropdown-content,
.wd-dropdown:hover .wd-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==================== GOOGLE-STYLE AUTHENTICATED USER AVATAR & DROPDOWN ==================== */
.wd-user-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.wd-user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.25rem 0.625rem 0.25rem 0.25rem;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1.5px solid var(--wd-border);
  box-shadow: 0 1px 3px rgba(16, 42, 67, 0.08);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  touch-action: manipulation;
}
.wd-user-avatar-btn:hover,
.wd-user-dropdown-wrap.open .wd-user-avatar-btn {
  border-color: var(--wd-teal);
  box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.15);
}

.wd-avatar-img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wd-avatar-initial {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--wd-teal), var(--wd-blue));
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wd-avatar-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--wd-dark);
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wd-user-menu-card {
  position: absolute;
  top: calc(100% + 0.625rem);
  right: 0;
  width: 18rem;
  background: #FFFFFF;
  border: 1px solid var(--wd-border);
  border-radius: 1.125rem;
  box-shadow: var(--wd-shadow-xl);
  padding: 0.75rem;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.wd-user-dropdown-wrap.open .wd-user-menu-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wd-user-header {
  padding: 0.75rem;
  background: var(--wd-bg-soft);
  border-radius: 0.75rem;
  border: 1px solid var(--wd-border);
  margin-bottom: 0.5rem;
}

.wd-user-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wd-slate);
  text-decoration: none;
  border-radius: 0.625rem;
  transition: all 0.15s ease;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.wd-user-item:hover {
  background-color: var(--wd-teal-light);
  color: var(--wd-teal);
}
.wd-user-item.danger {
  color: #DC2626;
}
.wd-user-item.danger:hover {
  background-color: #FEF2F2;
  color: #B91C1C;
}

/* Custom Healthcare Footer */
.wd-footer {
  background-color: var(--wd-footer-bg) !important;
  color: #9FB3C8 !important;
  border-top: 1px solid var(--wd-footer-border) !important;
}
.wd-footer h4 {
  color: #FFFFFF !important;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wd-footer a {
  color: #9FB3C8 !important;
  text-decoration: none;
  transition: color 0.15s ease;
}
.wd-footer a:hover {
  color: var(--wd-accent) !important;
}

/* Modern Select Styling */
.wd-select {
  width: 100%;
  height: 2.875rem;
  border-radius: 0.75rem;
  border: 1.5px solid #CBD5E1;
  padding: 0 2.25rem 0 1rem;
  font-size: 0.875rem;
  color: var(--wd-dark);
  background-color: #F8FAFC;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23486581'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.125rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.wd-select:focus {
  outline: none;
  border-color: var(--wd-teal);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.15);
}

/* Mobile Drawer */
.wd-mobile-drawer {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--wd-border);
  border-radius: 1.125rem;
  box-shadow: var(--wd-shadow-xl);
  padding: 1.25rem;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 60;
}
.wd-mobile-drawer.active {
  display: flex !important;
}

/* ==================== HERO SECTION (RESERVED TOP CLEARANCE) ==================== */
.wd-hero-section {
  padding-top: 8.5rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 640px) {
  .wd-hero-section {
    padding-top: 9.5rem;
    padding-bottom: 5.5rem;
  }
}
@media (min-width: 1024px) {
  .wd-hero-section {
    padding-top: 10.5rem;
    padding-bottom: 6rem;
  }
}

.wd-hero-title {
  font-size: clamp(2rem, 5.5vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--wd-dark);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.wd-hero-p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--wd-slate);
  max-width: 38rem;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

/* ==================== HOW IT WORKS (AUTO-STEPPING ENGINE) ==================== */
.wd-step-tab {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.875rem;
  border: 1px solid var(--wd-border);
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.wd-step-tab:hover {
  border-color: #94A3B8;
  background-color: var(--wd-bg-soft);
}
.wd-step-tab.active {
  border-color: var(--wd-blue) !important;
  background-color: var(--wd-blue-light) !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}

.wd-step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  font-weight: 800;
  font-size: 0.8125rem;
  background: #E2E8F0;
  color: var(--wd-slate);
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.wd-step-tab.active .wd-step-badge {
  background: var(--wd-blue);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.wd-step-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--wd-dark);
  margin-bottom: 0.25rem;
}
.wd-step-eyebrow {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wd-muted);
}
.wd-step-tab.active .wd-step-eyebrow {
  color: var(--wd-blue);
}

/* Animated Step Progress Bar */
.wd-step-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
}
.wd-step-tab.active .wd-step-progress-track {
  background: rgba(37, 99, 235, 0.15);
}
.wd-step-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--wd-blue);
  transition: width 0.1s linear;
}

/* ==================== SOFT UI CARDS & FEATURES ==================== */
.wd-card {
  background: #FFFFFF;
  border: 1px solid var(--wd-border);
  border-radius: 1.125rem;
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--wd-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.wd-card:hover {
  transform: translateY(-2px);
  border-color: #93C5FD;
  box-shadow: var(--wd-shadow-lg);
}

/* Pill Badges */
.wd-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: var(--wd-blue-light);
  color: var(--wd-blue);
  border: 1px solid var(--wd-blue-border);
}

/* Hero Media Frame */
.wd-browser-frame {
  border-radius: 1.125rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #FFFFFF;
  box-shadow: var(--wd-shadow-xl);
  overflow: hidden;
}

.wd-browser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

/* Prevent Horizontal Overflow */
.wd-container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .wd-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .wd-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Responsive Visibility & Display Utilities (Prevent Next.js Purge Failure) */
.hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .md\:flex {
    display: none !important;
  }
}

@media (max-width: 639px) {
  .sm\:flex {
    display: none !important;
  }
  .sm\:inline-flex {
    display: none !important;
  }
  .sm\:block {
    display: none !important;
  }
}

@media (min-width: 640px) {
  .sm\:flex {
    display: flex !important;
  }
  .sm\:hidden {
    display: none !important;
  }
  .sm\:inline {
    display: inline !important;
  }
  .sm\:block {
    display: block !important;
  }
  .sm\:w-auto {
    width: auto !important;
  }
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex !important;
  }
  .md\:hidden {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .lg\:flex {
    display: flex !important;
  }
  .lg\:hidden {
    display: none !important;
  }
  .lg\:inline {
    display: inline !important;
  }
  .lg\:block {
    display: block !important;
  }
}

/* Essential Layout & Sizing Utilities */
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.flex-col { flex-direction: column !important; }
.flex-1 { flex: 1 1 0% !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.shrink-0 { flex-shrink: 0 !important; }

.gap-1 { gap: 0.25rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-3\.5 { gap: 0.875rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }
.gap-10 { gap: 2.5rem !important; }

.size-3 { width: 0.75rem !important; height: 0.75rem !important; }
.size-3\.5 { width: 0.875rem !important; height: 0.875rem !important; }
.size-4 { width: 1rem !important; height: 1rem !important; }
.size-5 { width: 1.25rem !important; height: 1.25rem !important; }
.size-6 { width: 1.5rem !important; height: 1.5rem !important; }
.size-9 { width: 2.25rem !important; height: 2.25rem !important; }
.size-10 { width: 2.5rem !important; height: 2.5rem !important; }
.size-11 { width: 2.75rem !important; height: 2.75rem !important; }

.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.max-w-xl { max-w: 36rem !important; }
.max-w-2xl { max-width: 42rem !important; }
.max-w-3xl { max-width: 48rem !important; }
.max-w-4xl { max-width: 56rem !important; }
.max-w-5xl { max-width: 64rem !important; }
.max-w-6xl { max-width: 72rem !important; }
.max-w-7xl { max-width: 80rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.rounded-md { border-radius: 0.375rem !important; }
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-full { border-radius: 9999px !important; }

.text-center { text-align: center !important; }
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.overflow-hidden { overflow: hidden !important; }
.object-cover { object-fit: cover !important; }
.object-center { object-position: center !important; }
.object-top { object-position: top !important; }

/* Grid Utilities */
.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:max-w-none { max-width: none !important; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .md\:flex-row { flex-direction: row !important; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
  .lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
  .lg\:col-span-7 { grid-column: span 7 / span 7 !important; }
  .lg\:col-span-2 { grid-column: span 2 / span 2 !important; }
}

/* ==================== WORKDENT BANNER SYSTEM STYLES ==================== */
.wd-banner-tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.5rem 1rem !important;
  border-radius: 9999px !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  color: #475569 !important;
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
}
.wd-banner-tab:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}
.wd-banner-tab.active {
  background-color: #eff6ff !important;
  color: #2563eb !important;
  border-color: #bfdbfe !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1) !important;
}
.wd-banner-tab.active span.size-2 {
  background-color: #2563eb !important;
}

#banner-image {
  transition: opacity 0.25s ease-in-out !important;
}

#banner-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 0.5rem !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  background-color: #1e3a8a !important; /* Rich deep blue */
  color: #93c5fd !important; /* Crisp light blue */
  border: 1px solid #3b82f6 !important;
  margin-bottom: 1rem !important;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25) !important;
}

/* ==================== NETWORK & PLATFORM COMPONENTS ==================== */

/* Badges */
.wd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wd-badge-tech {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.wd-badge-lab {
  background-color: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}
.wd-badge-dentist {
  background-color: #FAF5FF;
  color: #6B21A8;
  border: 1px solid #E9D5FF;
}
.wd-badge-company {
  background-color: #FFF7ED;
  color: #9A3412;
  border: 1px solid #FED7AA;
}
.wd-badge-vip {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #92400E;
  border: 1px solid #F59E0B;
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.2);
}

/* Network Filter Buttons */
.wd-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #475569;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}
.wd-filter-pill:hover {
  background-color: #F8FAFC;
  color: #0F172A;
  border-color: #CBD5E1;
}
.wd-filter-pill.active {
  background-color: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

/* Network Cards */
.wd-item-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1.125rem;
  padding: 1.5rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
}
.wd-item-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.08);
}

/* Modals */
.wd-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.wd-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.wd-modal-box {
  background: #FFFFFF;
  border-radius: 1.25rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  max-width: 38rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  transform: scale(0.96);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.wd-modal-backdrop.open .wd-modal-box {
  transform: scale(1);
}

/* Sticky Cookie Banner */
.wd-cookie-bar {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 56rem;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 99;
  transition: all 0.3s ease;
}
@media (min-width: 640px) {
  .wd-cookie-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.wd-cookie-bar.hidden {
  display: none !important;
}

/* Auth / User Pill in Navbar */
.wd-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.5rem;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0F172A;
  text-decoration: none;
  transition: all 0.15s ease;
}
.wd-user-pill:hover {
  background-color: #EFF6FF;
  border-color: #BFDBFE;
  color: #2563EB;
}

/* ==================== 3-DOTS NAVBAR SYSTEM ==================== */
.wd-dots-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  padding: 0 !important;
  border-radius: 0.625rem !important;
  color: #475569 !important;
  cursor: pointer !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  transition: all 0.2s ease !important;
}
.wd-dots-btn:hover {
  background-color: #F1F5F9 !important;
  color: #0F172A !important;
  border-color: #E2E8F0 !important;
}
.wd-dots-btn svg,
.wd-mobile-toggle svg,
#wd-mobile-toggle svg,
#wd-mobile-toggle-btn svg {
  pointer-events: none !important;
}

.wd-more-dropdown {
  position: relative !important;
}
.wd-more-dropdown .wd-dropdown-content {
  position: absolute !important;
  top: calc(100% + 0.5rem) !important;
  right: 0 !important;
  left: auto !important;
  width: 16rem !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 1rem !important;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15) !important;
  padding: 0.5rem !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(8px) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 100 !important;
}
.wd-more-dropdown.open .wd-dropdown-content {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.wd-dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.625rem !important;
  padding: 0.5rem 0.625rem !important;
  border-radius: 0.625rem !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}
.wd-dropdown-item:hover {
  background-color: #EFF6FF !important;
  color: #2563EB !important;
}
.wd-dropdown-item.active {
  background-color: #DBEAFE !important;
  color: #1D4ED8 !important;
  font-weight: 700 !important;
}

/* Mobile Drawer Smooth Animation */
.wd-mobile-drawer {
  position: absolute !important;
  top: calc(100% + 0.75rem) !important;
  left: 0 !important;
  right: 0 !important;
  max-height: 80vh !important;
  overflow-y: auto !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18) !important;
  padding: 1.25rem !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-8px) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
  z-index: 99 !important;
}
.wd-mobile-drawer.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* ==================== MOBILE BOTTOM NAVIGATION DOCK ==================== */
.wd-bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08) !important;
  z-index: 999 !important;
  padding-bottom: max(0.35rem, env(safe-area-inset-bottom)) !important;
  pointer-events: auto !important;
}

@media (min-width: 768px) {
  .wd-bottom-nav {
    display: none !important;
  }
}

body.has-bottom-nav {
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)) !important;
}

@media (min-width: 768px) {
  body.has-bottom-nav {
    padding-bottom: 0 !important;
  }
}

.wd-bottom-nav-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  max-width: 32rem !important;
  margin: 0 auto !important;
  height: 3.875rem !important;
  padding: 0 0.5rem !important;
}

.wd-bottom-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.1875rem !important;
  flex: 1 !important;
  height: 100% !important;
  min-height: 44px !important;
  min-width: 44px !important;
  text-decoration: none !important;
  color: #627D98 !important;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
  position: relative !important;
  -webkit-tap-highlight-color: transparent !important;
}

.wd-bottom-item:hover,
.wd-bottom-item:active,
.wd-bottom-item.active {
  color: var(--wd-teal) !important;
}

.wd-bottom-item.active .wd-bottom-label {
  font-weight: 800 !important;
  color: var(--wd-teal) !important;
}

.wd-bottom-icon {
  width: 1.375rem !important;
  height: 1.375rem !important;
  stroke-width: 2.1 !important;
  transition: transform 0.15s ease !important;
}

.wd-bottom-item:active .wd-bottom-icon {
  transform: scale(0.92) !important;
}

.wd-bottom-item.active .wd-bottom-icon {
  stroke-width: 2.4 !important;
}

/* Elevated + Create Button in Center */
.wd-bottom-create {
  position: relative !important;
  top: -0.625rem !important;
}

.wd-bottom-create-btn {
  width: 2.875rem !important;
  height: 2.875rem !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, #087F8C 0%, #2479D8 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 18px rgba(8, 127, 140, 0.4) !important;
  border: 2px solid #FFFFFF !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.wd-bottom-create:active .wd-bottom-create-btn {
  transform: scale(0.92) !important;
  box-shadow: 0 2px 8px rgba(8, 127, 140, 0.25) !important;
}

.wd-bottom-avatar {
  width: 1.375rem !important;
  height: 1.375rem !important;
  border-radius: 9999px !important;
  object-fit: cover !important;
  border: 1.5px solid var(--wd-teal) !important;
}

.wd-bottom-initial {
  width: 1.375rem !important;
  height: 1.375rem !important;
  border-radius: 9999px !important;
  background: var(--wd-teal) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  font-size: 0.6875rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

