/* ==========================================================================
   DigniCare CSS Design System - 2026 Modern Mobile-App Version
   ========================================================================== */

:root {
  /* Color Palette - Logo-Aligned Hunter Green, Sage Green, and Cool Taupe-Grey */
  --color-primary: #214327;          /* Logo Dark Hunter Green */
  --color-primary-light: #2b5732;    /* Lighter Hunter Green */
  --color-accent: #92a184;           /* Logo Muted Sage Green */
  --color-accent-hover: #7c8c6f;     /* Deeper Sage Green */
  --color-bg-base: #f4f7f5;          /* Warm-tinted neutral background */
  --color-bg-card: #ffffff;          /* Card White */
  --color-text: #1b261d;             /* Dark forest green-grey for body text */
  --color-text-muted: #7b8474;       /* Logo-aligned Warm Taupe-Grey */
  --color-border: #e2e8e3;           /* Soft sage-tinted divider */
  --color-border-hover: #d2dad3;     
  --color-success: #165a2d;          
  --color-danger: #ef4444;           
  --color-warning: #f59e0b;          
  --color-info: #3b82f6;             

  /* Typography */
  --font-family-headings: 'Outfit', sans-serif;
  --font-family-body: 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 6px;
  --spacing-sm: 12px;
  --spacing-md: 20px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;

  /* Maximum Roundness Blueprint */
  --radius-sm: 8px;
  --radius-md: 16px;                 /* Maximum roundness for general containers */
  --radius-lg: 24px;                 /* Maximum roundness for major cards & modals */
  --radius-full: 9999px;
  
  /* Neumorphic Shadow Depth */
  --shadow-sm: 0 2px 8px rgba(14, 61, 30, 0.03);
  --shadow-md: 0 8px 30px rgba(14, 61, 30, 0.05);
  --shadow-lg: 0 16px 48px rgba(14, 61, 30, 0.08); /* Soft diffuse card shadow */
  --shadow-premium: 0 24px 60px rgba(14, 61, 30, 0.12);

  /* Optimized Micro-Interaction Transition (Avoids transitioning all properties for performance) */
  --transition-spring: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
  --transition-normal: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-body);
  background-color: var(--color-bg-base);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Viewport Glow Spots (Optimized without layout blur filters) */
.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  z-index: -10;
  pointer-events: none;
  opacity: 0.55;
  will-change: transform, opacity;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.bg-glow-1 {
  background: radial-gradient(circle, rgba(92, 214, 130, 0.18) 0%, rgba(255,255,255,0) 100%);
  top: -15%;
  left: -10%;
}
.bg-glow-2 {
  background: radial-gradient(circle, rgba(22, 90, 45, 0.1) 0%, rgba(255,255,255,0) 100%);
  bottom: -15%;
  right: -10%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  font-weight: 800; /* Extra bold headings */
  color: var(--color-primary);
  line-height: 1.2;
}

/* Layout Utilities */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: var(--spacing-lg) var(--spacing-md);
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

/* Performance-Optimized Header Component */
.header-bar {
  background: #ffffff; /* Clean White backing for max performance */
  color: var(--color-primary);
  padding: 14px var(--spacing-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(14, 61, 30, 0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(14, 61, 30, 0.05);
}

.brand-title {
  font-family: var(--font-family-headings);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.brand-accent {
  color: var(--color-primary-light);
}

.brand-tagline {
  font-family: var(--font-family-headings);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-muted) !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.9;
  display: block;
}

.sidebar-tagline {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-muted) !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-top: 4px;
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-at-top .header-left-group {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-16px);
}

.header-logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.header-nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.header-nav-links a {
  color: rgba(33, 67, 39, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-normal);
}

.header-nav-links a:hover {
  color: var(--color-primary-light);
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.user-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.user-name {
  font-weight: 800; /* LinkedIn-style bold */
  font-size: 0.9rem;
  color: var(--color-primary);
}

.user-role-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 0.5px;
}

/* Dashboard Sidebar Menu Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--spacing-lg);
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: 90px;
}

.dashboard-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-md);
}

.dash-menu-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-family: var(--font-family-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  transition: var(--transition-spring);
  border-left: 3px solid transparent;
}

.dash-menu-item:hover {
  background-color: rgba(14, 61, 30, 0.04);
  color: var(--color-primary);
  transform: translateX(4px);
}

.dash-menu-item.active {
  background-color: rgba(14, 61, 30, 0.06);
  color: var(--color-primary);
  border-left: 3px solid var(--color-primary-light);
  font-weight: 800;
}

.dash-menu-badge {
  margin-left: auto;
  background-color: var(--color-danger);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
  animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* Tab Panels Visibility */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: panelEnter 0.3s ease-out;
}

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

/* Soft Neumorphism Panels (No Hard Borders) */
.dashboard-panel {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(14, 61, 30, 0.05); /* Clean subtle outline */
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg); /* Soft diffuse shadows */
  margin-bottom: var(--spacing-lg);
  transition: var(--transition-spring);
}

.dashboard-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 61, 30, 0.12);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.06);
}

.panel-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.panel-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-body);
  font-weight: 700;
  border-radius: var(--radius-full); /* Fully rounded buttons */
  cursor: pointer;
  transition: var(--transition-spring); /* Springy button micro-interactions */
  border: 1px solid transparent;
  gap: var(--spacing-xs);
  padding: 12px 24px; /* Added default padding to prevent squashed buttons */
  font-size: 0.95rem; /* Added default font size */
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

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

.btn-primary:hover {
  background-color: var(--color-primary-light);
  box-shadow: 0 8px 25px rgba(14, 61, 30, 0.15);
}

.btn-secondary {
  background-color: var(--color-primary-light);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #165a2d;
  box-shadow: 0 8px 25px rgba(22, 90, 45, 0.15);
}

.btn-accent {
  background-color: #ffffff;
  color: var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-accent:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 8px 25px rgba(92, 214, 130, 0.2);
}

.btn-outline {
  background: none;
  border: 2px solid var(--color-primary-light);
  color: var(--color-primary-light);
}

.btn-outline:hover {
  background-color: rgba(22, 90, 45, 0.05);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

.btn-md {
  padding: 12px 24px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-w-full {
  width: 100%;
}

/* Custom Interactive Inputs */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1; /* Slate 300 */
  font-family: var(--font-family-body);
  font-size: 0.9rem;
  color: var(--color-text);
  transition: var(--transition-spring);
  background-color: #ffffff;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 4px rgba(22, 90, 45, 0.08);
}

.form-input.input-error, .form-select.input-error, .form-textarea.input-error {
  border-color: var(--color-danger) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12) !important;
}

/* Password input wrapper with show/hide toggle icon */
.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper .form-input {
  padding-right: 46px !important;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, opacity 0.2s;
  opacity: 0.7;
}

.password-toggle-btn:hover {
  color: var(--color-primary);
  opacity: 1;
}

.password-toggle-btn svg {
  display: block;
}

/* ==========================================================================
   DigniCare Public Homepage Styles
   ========================================================================== */

/* Fullscreen video intro styling */
.video-intro-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: -32px;
  background-color: #0b1a10;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Space out indicator and player */
  align-items: center;
  padding: 40px 24px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 10;
  transform-origin: center center;
  will-change: opacity, transform;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

/* Ambient backdrop playing the video blurred (Desktop only) */
.ambient-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  display: block;
}

.ambient-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(35px) brightness(0.65) contrast(1.1);
  transform: scale(1.1); /* Expand slightly to hide blur edge artifacts */
  opacity: 0.9;
  pointer-events: none;
}

.ambient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(11, 26, 16, 0.05) 0%, rgba(11, 26, 16, 0.55) 100%);
  z-index: 2;
}

/* Foreground Player Container */
.video-player-container {
  position: relative;
  z-index: 3;
  height: 75vh; /* Occupy 75% height on desktop */
  aspect-ratio: 9 / 16; /* Native vertical aspect ratio */
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fill the vertical aspect container perfectly */
  display: block;
}

.intro-scroll-indicator {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #ffffff;
  font-family: var(--font-family-headings);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  animation: bounce 2s infinite;
  margin-top: 16px;
}

.scroll-arrow {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: bold;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Copy Section directly below the video section */
.hero-copy-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  padding: var(--spacing-xl) var(--spacing-md) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.hero-copy-section .hero-tagline {
  font-family: var(--font-family-headings);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -1px;
  line-height: 1.2;
}

.hero-copy-section .hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.hero-copy-section .hero-ctas {
  display: flex;
  gap: var(--spacing-md);
  margin-top: 8px;
}

.hero-copy-section .hero-features-row {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-floating-pill {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg-card);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.pulse-indicator::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--color-accent);
  animation: pulse-ring 1.5s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Stats Counter Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.stat-card {
  background: var(--color-bg-card);
  padding: var(--spacing-xl) var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(14, 61, 30, 0.05);
  transition: var(--transition-spring);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 90, 45, 0.2);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06), 0 0 12px rgba(92, 214, 130, 0.08);
}

.stat-number {
  font-family: var(--font-family-headings);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Widescreen Browser Mockup Frame for Promo Video */
.video-section {
  background: var(--color-bg-card);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-xl);
  text-align: center;
  border: none;
}

.video-section h2 {
  font-size: 1.75rem;
  margin-bottom: 6px;
  font-weight: 800;
}

.video-player-wrapper {
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--spacing-lg);
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Features Grid */
.features-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.feature-pillar-card {
  background: var(--color-bg-card);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(14, 61, 30, 0.06);
  transition: var(--transition-spring);
}

.feature-pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 90, 45, 0.25);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06), 0 0 15px rgba(92, 214, 130, 0.1);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: var(--spacing-md);
  display: inline-block;
  padding: 10px;
  background-color: rgba(14, 61, 30, 0.04);
  border-radius: var(--radius-md);
}

.feature-pillar-card h3 {
  font-size: 1.35rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 800;
}

.feature-list {
  list-style: none;
  margin-top: var(--spacing-md);
}

.feature-list li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.feature-list li::before {
  content: "✓";
  color: var(--color-success);
  font-weight: bold;
}

/* Business Marketplace Directory Grid */
.marketplace-showcase {
  background: var(--color-bg-card);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: none;
  margin-bottom: var(--spacing-xl);
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.business-card {
  background: var(--color-bg-base);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(14, 61, 30, 0.08);
  transition: var(--transition-spring);
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.business-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 90, 45, 0.25);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.05), 0 0 15px rgba(92, 214, 130, 0.1);
}

.business-banner {
  background-color: #f8fafc;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  position: relative;
}

.business-body {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.business-category {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-primary-light);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.business-name {
  font-family: var(--font-family-headings);
  font-size: 1.25rem;
  font-weight: 800; /* Extra bold */
  color: var(--color-primary);
  margin-bottom: 6px;
}

.business-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted); /* Softened secondary text */
  line-height: 1.5;
  margin-bottom: var(--spacing-md);
  flex: 1;
}

.business-footer {
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.business-location {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Trust Banner */
.trust-banner {
  background: rgba(14, 61, 30, 0.03);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  border: 1px dashed rgba(22, 90, 45, 0.3);
}

.trust-badge-container {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Testimonials Section Styles */
.testimonials-section {
  margin: var(--spacing-xl) 0;
  padding: 0 var(--spacing-sm);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.testimonial-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition-spring);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(33, 67, 39, 0.15);
}

.testimonial-quote-icon {
  font-size: 4rem;
  color: rgba(33, 67, 39, 0.08);
  font-family: serif;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 2;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-sm);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.author-name {
  font-weight: 800;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.author-location {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.author-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
  letter-spacing: 0.3px;
}

.badge-carer {
  background-color: rgba(43, 87, 50, 0.08);
  color: var(--color-primary-light);
}

.badge-family {
  background-color: rgba(146, 161, 132, 0.12);
  color: #5b6b4f;
}

.public-footer {
  background-color: var(--color-bg-card);
  padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  margin-top: var(--spacing-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.footer-column h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-spring);
}

.footer-links a:hover {
  color: var(--color-primary-light);
  transform: translateX(4px);
  display: inline-block;
}

.footer-newsletter p {
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Dynamic Service Categories Carousel Styles */
.category-carousel-section {
  text-align: center;
  margin: var(--spacing-xl) 0;
  padding: 0 var(--spacing-sm);
}

.carousel-container {
  overflow-x: auto;
  padding: var(--spacing-sm) 4px;
  scrollbar-width: none; /* Hide scrollbar for clean look */
}
.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  flex-wrap: wrap; /* Wrap cards on desktop to display them all */
  justify-content: center;
  gap: 16px;
}

.carousel-card {
  flex: 1 1 180px; /* Stretch to fill rows professionally */
  max-width: 240px;
  min-width: 160px;
  background: var(--color-bg-card);
  padding: 24px var(--spacing-sm);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: var(--transition-spring);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.carousel-card:hover {
  transform: translateY(-6px) scale(1.05);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.carousel-card .card-icon {
  font-size: 2.2rem;
  margin-bottom: var(--spacing-xs);
  display: block;
}

.carousel-card h3 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
}

/* Two-Column 'Why Choose Us' Section */
.why-choose-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.why-column {
  background: var(--color-bg-card);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  transition: var(--transition-spring);
  text-align: left;
}

.why-column:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 90, 45, 0.2);
  box-shadow: var(--shadow-lg);
}

.why-icon {
  font-size: 2.4rem;
  margin-bottom: var(--spacing-sm);
  display: inline-block;
  padding: 12px;
  background-color: rgba(22, 90, 45, 0.04);
  border-radius: var(--radius-md);
}

.why-column h2 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: left;
  }
  .why-choose-section {
    grid-template-columns: 1fr;
  }
}

/* Custom Alert Toast */
.custom-alert {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 100px);
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  opacity: 0;
  transition: var(--transition-spring);
  z-index: 10000;
  width: max-content;
  max-width: 90%;
  justify-content: center;
}

.custom-alert.active {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Carer Grid Directory Styling */
.carer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

/* Soft Neumorphic Carer Cards & Springy Interactions */
.carer-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg); /* Maximum roundness */
  border: 1px solid rgba(14, 61, 30, 0.08); /* Sophisticated tech-modern outline */
  padding: var(--spacing-md);
  box-shadow: var(--shadow-lg); /* Soft diffuse shadows */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-spring); /* Spring transitions */
  text-align: center;
}

.carer-card:hover {
  transform: translateY(-6px) scale(1.01); /* Elevates and slightly scales on hover */
  border-color: rgba(22, 90, 45, 0.35); /* Tech-modern emerald accent outline */
  box-shadow: 0 20px 50px rgba(14, 61, 30, 0.06), 0 0 20px rgba(92, 214, 130, 0.15); /* Antigravity visual glow */
}

.carer-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.carer-avatar-wrapper {
  position: relative;
}

.carer-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-primary-light);
}

.carer-info-title h3 {
  font-size: 1.15rem;
  font-weight: 800; /* Bold title */
  margin: 0;
}

.carer-location {
  font-size: 0.75rem;
  color: var(--color-text-muted); /* Softened text */
}

.carer-rate-badge {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary-light);
  margin-bottom: var(--spacing-sm);
}

.carer-bio-text {
  font-size: 0.85rem;
  color: var(--color-text-muted); /* Softened text */
  line-height: 1.5;
  margin-bottom: var(--spacing-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pill-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--spacing-md);
  justify-content: center;
}

.pill {
  background-color: rgba(14, 61, 30, 0.05);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full); /* Fully rounded pills */
}

/* Details Locked Overlay */
.details-locked-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: rgba(100, 116, 139, 0.03);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  border: 1px dashed var(--color-border-hover);
}

/* Modals Overlay Base (Performance Optimized) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6); /* Warmed dark overlay */
  display: flex;
  align-items: flex-start; /* Align to top to support scrolling long modals */
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
  z-index: 10000;
  overflow-y: auto; /* Enable scroll if content is taller than viewport */
  padding: 40px var(--spacing-md);
  box-sizing: border-box;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff; /* Solid white background for maximum layout speed */
  border-radius: var(--radius-lg); /* Maximum roundness */
  width: 100%;
  max-width: 480px;
  padding: var(--spacing-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
  transform: translateY(30px);
  transition: var(--transition-spring);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

/* App View Visibility Wrapper */
.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

/* ==========================================================================
   Core Restored Components - LinkedIn Beater Standard
   ========================================================================== */

/* Authentication Cards (No Borders, Soft Shadows) */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: var(--spacing-lg);
}

.auth-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(14, 61, 30, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); /* Soft diffuse neumorphic shadow */
  padding: var(--spacing-xl);
  width: 100%;
  max-width: 440px;
  transition: var(--transition-spring);
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--spacing-lg);
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: var(--spacing-sm);
  font-family: var(--font-family-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-normal);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.auth-tab-btn:hover {
  color: var(--color-primary);
}

.auth-tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary-light);
  font-weight: 800;
}

/* Role Selector Options in Register */
.role-selector {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xs);
}

.role-option {
  flex: 1;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-spring);
  position: relative;
}

.role-option:hover {
  border-color: var(--color-primary-light);
  background-color: rgba(14, 61, 30, 0.02);
}

.role-option.selected {
  border-color: var(--color-primary-light);
  background-color: rgba(14, 61, 30, 0.04);
}

.role-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.role-option-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 4px;
}

.role-option-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* Checklist Grids */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xs);
}

.check-option {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs);
  font-size: 0.85rem;
  color: var(--color-text);
  cursor: pointer;
  font-weight: 600;
  line-height: 1.3;
}

.check-option input[type="checkbox"] {
  accent-color: var(--color-primary-light);
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

/* Connections Items */
.conn-item {
  background-color: var(--color-bg-base);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-spring);
}

.conn-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.conn-item-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.conn-sender-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.conn-sender-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-primary-light);
}

.conn-sender-name {
  font-weight: 800; /* Larger bold name */
  color: var(--color-primary);
  font-size: 1rem;
}

.conn-status-tag {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.conn-status-tag.pending {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #f59e0b;
}

.conn-status-tag.accepted {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #34d399;
}

/* Document upload card */
.document-upload-card {
  background-color: rgba(14, 61, 30, 0.02);
  border: 2px dashed rgba(14, 61, 30, 0.15);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.uploaded-doc-list {
  margin-top: var(--spacing-md);
}

.doc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-bg-base);
  border: none;
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-xs);
  font-size: 0.85rem;
}

/* Filters Card */
.filter-card {
  background-color: var(--color-bg-card);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
}

/* Welcome dashboard banners */
.dashboard-welcome-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  padding: 24px var(--spacing-lg);
  border-radius: var(--radius-lg);
  font-family: var(--font-family-headings);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 10px 30px rgba(14, 61, 30, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.dashboard-welcome-banner::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(92, 214, 130, 0.2) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Responsive adjustments */
/* Responsive adjustments & App-Like Mobile Optimizations */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 768px) {
  /* Dynamically compress spacing tokens for mobile */
  :root {
    --spacing-md: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 28px;
  }

  /* Layout adjustments */
  .main-content {
    padding: 12px 12px;
  }
  
  h1, .hero-tagline {
    font-size: 1.8rem !important;
    letter-spacing: -0.5px;
    line-height: 1.25 !important;
  }
  h2 {
    font-size: 1.5rem !important;
  }
  h3 {
    font-size: 1.2rem !important;
  }
  
  /* Header mobile tuning */
  .header-bar {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    row-gap: 8px !important;
    column-gap: 12px !important;
    padding: 10px 16px !important;
    align-items: center !important;
  }
  
  .header-logo-group {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    opacity: 1 !important; /* Keep logo visible on mobile */
    transform: none !important;
    pointer-events: auto !important;
  }
  
  .header-logo-img {
    height: 28px !important;
  }
  
  .brand-title {
    font-size: 1.1rem !important;
  }
  
  @media (max-width: 420px) {
    .brand-title {
      display: none !important;
    }
  }
  
  .btn-sm {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    height: auto !important;
  }
  
  .header-right-group {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .user-logged-in #header-portal-btn {
    display: none !important;
  }

  .user-profile-menu {
    gap: 8px !important;
  }
  
  .user-details {
    display: none !important;
  }
  
  .header-nav-links {
    grid-column: 1 / span 2 !important;
    grid-row: 2 !important;
    display: flex !important;
    justify-content: space-around !important; /* Space items out evenly across the screen */
    align-items: center !important;
    margin: 0 !important;
    padding: 6px 0 0 0 !important;
    border-top: 1px solid rgba(14, 61, 30, 0.08);
    list-style: none !important;
    width: 100% !important;
    position: static !important; /* Reset absolute positioning on mobile */
    transform: none !important;
  }
  
  .header-nav-links a {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: var(--color-primary) !important;
    white-space: nowrap !important;
  }
  
  /* Login overlay and social row wrapping */
  .auth-card {
    padding: var(--spacing-lg) !important;
    max-width: 100% !important;
  }

  .social-login-row {
    flex-wrap: wrap !important;
  }

  .social-login-row button {
    flex: 1 1 100% !important;
  }

  /* Video intro section mobile tuning */
  .video-intro-section {
    height: 100vh !important;
    padding: 24px var(--spacing-md) !important;
    margin-top: -32px !important; /* Pull up to match mobile viewport header precisely */
    justify-content: flex-end !important; /* Push scroll indicator to bottom on mobile */
  }
  
  .ambient-video-bg {
    display: none !important; /* Hide blurred background on mobile */
  }
  
  .video-player-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 1 !important;
  }
  
  .intro-scroll-indicator {
    position: absolute !important;
    bottom: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 3 !important;
    margin-top: 0 !important;
  }
  
  .hero-copy-section {
    padding: var(--spacing-lg) var(--spacing-md) 0 !important;
    gap: var(--spacing-sm) !important;
  }
  
  .hero-copy-section .hero-tagline {
    font-size: 1.8rem !important;
    line-height: 1.25 !important;
  }
  
  .hero-copy-section .hero-subtitle {
    font-size: 0.95rem !important;
  }
  
  .hero-copy-section .hero-ctas {
    flex-direction: column !important;
    width: 100% !important;
    align-items: center !important;
    gap: var(--spacing-sm) !important;
  }
  
  .hero-copy-section .hero-ctas .btn {
    width: 100% !important;
    max-width: 320px !important;
  }
  
  /* Marketplace grid fix */
  .marketplace-showcase {
    padding: 16px !important;
  }
  
  .marketplace-grid {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-md) !important;
  }
  
  .business-card {
    width: 100% !important;
  }
  
  /* Stats section mobile tuning */
  .stats-section {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-sm) !important;
    padding: 16px !important;
  }
  
  .stat-card {
    padding: var(--spacing-md) !important;
  }
  
  /* Why Choose us mobile tuning */
  .why-choose-section {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-md) !important;
  }
  
  .why-column {
    padding: 16px !important;
  }
  
  /* Dashboard layout tuning */
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-md) !important;
  }
  
  .dashboard-sidebar {
    position: relative !important;
    top: 0 !important;
  }
  
  /* Dashboard vertical sidebar menu stacking */
  .dashboard-sidebar-menu {
    display: flex !important;
    flex-direction: column !important;
    overflow-x: visible !important;
    gap: 8px !important;
  }
  
  .dash-menu-item {
    white-space: normal !important;
    height: auto !important;
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
    width: 100% !important;
    text-align: left !important;
    border-bottom: none !important;
    border-left: 4px solid transparent !important;
  }
  
  .dash-menu-item:hover {
    transform: none !important;
  }
  
  .dash-menu-item.active {
    border-bottom: none !important;
    border-left: 4px solid var(--color-primary-light) !important;
    background-color: rgba(33, 67, 39, 0.04) !important;
  }
  
  /* Registration role selector option mobile stacking */
  .role-selector {
    flex-direction: column !important;
    gap: var(--spacing-sm) !important;
  }
  
  .role-option {
    padding: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
  }
  
  .role-option-icon {
    font-size: 1.4rem !important;
    margin-bottom: 0 !important;
  }

  /* Center Connections & Jobs on Mobile */
  .conn-item-flex, .conn-sender-info, .job-item-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
  }
  
  .conn-item-flex .btn, .job-item-header .btn {
    width: 100% !important;
    margin-top: 12px !important;
  }
  
  /* Center Mobile Dashboard Headers */
  .panel-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
  }

  /* Mobile carousel layout preservation */
  .carousel-track {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
  }
  
  .carousel-card {
    flex: 0 0 170px !important;
    max-width: none !important;
  }
}

/* Superadmin Action Styles */
.btn-danger {
  background-color: var(--color-danger);
  color: white;
  border: none;
}

.btn-danger:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
}

.conn-status-tag.blocked {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
}

/* ==========================================================================
   Chat / Messaging System Styles
   ========================================================================== */
.chat-container {
  display: flex;
  height: 580px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.chat-sidebar {
  width: 30%;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  background: rgba(244, 247, 245, 0.4);
}

.chat-sidebar-header {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
}

.chat-sidebar-header h3 {
  margin: 0;
  font-family: var(--font-family-headings);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-sm);
}

.chat-list-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  margin-bottom: 4px;
}

.chat-list-item:hover {
  background: rgba(43, 87, 50, 0.05);
}

.chat-list-item.active {
  background: rgba(43, 87, 50, 0.1);
  border-left: 3px solid var(--color-primary);
}

.chat-list-item.unread {
  background: rgba(220, 38, 38, 0.05) !important;
  border-left: 3px solid var(--color-danger) !important;
}

.chat-list-item.unread:hover {
  background: rgba(220, 38, 38, 0.08) !important;
}

.chat-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--color-accent);
}

.chat-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.chat-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-item-role {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.chat-window {
  width: 70%;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
}

.chat-header {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--color-bg-card);
}

.chat-header-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

.chat-header-details h4 {
  margin: 0;
  font-family: var(--font-family-headings);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.chat-header-details span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.chat-messages-pane {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-md);
  background: #fafbfa;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 75%;
}

.chat-message.sent {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-message.received {
  align-self: flex-start;
}

.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.4;
  position: relative;
  word-break: break-word;
}

.chat-message.sent .chat-msg-bubble {
  background: var(--color-primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-message.received .chat-msg-bubble {
  background: #f1f3f0;
  color: var(--color-text);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--color-border);
}

.chat-msg-time {
  display: block;
  font-size: 0.65rem;
  margin-top: 4px;
  text-align: right;
  opacity: 0.7;
}

.chat-message.received .chat-msg-time {
  color: var(--color-text-muted);
}

.chat-message.sent .chat-msg-time {
  color: rgba(255, 255, 255, 0.8);
}

.chat-input-pane {
  padding: var(--spacing-sm) var(--spacing-md);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--color-bg-card);
}

.chat-input-field {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-normal);
}

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

.chat-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--spacing-xl);
}

.chat-empty-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  opacity: 0.5;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .chat-container {
    flex-direction: column;
    height: 500px;
  }
  .chat-sidebar {
    width: 100%;
    height: 40%;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .chat-window {
    width: 100%;
    height: 60%;
  }
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   MODULE 5 & 6: Jobs tab, Business Directory & Memberships Pricing
   ========================================================================== */

/* Memberships View Pricing toggles & cards styling */
.pricing-toggle-wrapper {
  display: inline-flex;
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 40px;
}
.pricing-toggle-btn {
  background: none;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.pricing-toggle-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Recommended tier accent borders & shadow glows */
.pricing-card.recommended-tier {
  border: 3px solid var(--color-secondary);
  box-shadow: var(--shadow-lg);
}
.recommended-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pricing-header {
  text-align: center;
  margin-bottom: 24px;
}
.pricing-tier-name {
  font-family: var(--font-family-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.pricing-price-row {
  margin-top: 8px;
}
.pricing-currency {
  font-size: 1.25rem;
  font-weight: 700;
  vertical-align: super;
}
.pricing-price-amount {
  font-family: var(--font-family-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
}
.pricing-price-unit {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.pricing-features-list {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.pricing-feature-item {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-check {
  color: var(--color-success);
  font-weight: 700;
}
.feature-cross {
  color: var(--color-danger);
  opacity: 0.5;
}

/* Custom Confirm Modal */
.custom-confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 20000;
}
.custom-confirm-modal.active {
  display: flex;
}
.custom-confirm-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow-xl);
}
.custom-confirm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.custom-confirm-header h3 {
  margin: 0;
  font-family: var(--font-family-title);
  color: var(--color-primary);
  font-size: 1.2rem;
}
.custom-confirm-icon {
  font-size: 1.5rem;
}
.custom-confirm-body p {
  margin: 0 0 24px 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.custom-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.custom-confirm-btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.custom-confirm-btn.cancel {
  background-color: #f3f4f6;
  color: #4b5563;
}
.custom-confirm-btn.cancel:hover {
  background-color: #e5e7eb;
}
.custom-confirm-btn.confirm {
  background-color: var(--color-primary);
  color: #ffffff;
}
.custom-confirm-btn.confirm:hover {
  background-color: var(--color-primary-light);
}

.chat-remove-x {
  transition: color 0.2s ease, transform 0.2s ease;
}
.chat-remove-x:hover {
  color: var(--color-danger) !important;
  transform: translateY(-50%) scale(1.25) !important;
}


