:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #18243b;
  background: #fff7f7;
  
  /* Primary Source of Truth Design Tokens */
  --primary: #c51f26;
  --red: #c51f26;
  --red-dark: #ad191f;
  --red-light: #fcebec;
  --red-border: #fca5a5;
  --navy: #18243b;
  --bg: #fff7f7;
  --bg-blush: #fff7f7;
  --text-main: #18243b;
  --text-muted: #687b98;
  --border: #dfe6ef;
  --surface: #ffffff;
  --success: #00a477;
  --success-bg: #e6f9f3;
  --success-border: #a3e8d5;
  --accent-blue: #eaf4ff;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --focus-ring: rgba(197, 31, 38, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
}

* {
  box-sizing: border-box;
}

/* Modern, Elegant Custom Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(185, 28, 28, 0.4) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
  background: var(--red, #b91c1c);
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  color: var(--text-main);
  overflow-x: clip;
  font-size: 1rem;
}

body.nav-open-lock {
  overflow: hidden;
}

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

p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
a,
td,
th {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header & Navigation */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(5vw, 20px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Password Input with Visibility Toggle */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper .form-input,
.password-input-wrapper input {
  width: 100%;
  padding-right: 44px;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
  min-width: 32px;
  min-height: 32px;
}

.password-toggle-btn:hover {
  color: var(--text-main);
  background-color: #f1f5f9;
}

.password-toggle-btn:focus-visible {
  outline: 2px solid var(--primary, #b91c1c);
  outline-offset: 2px;
}

/* Screen Reader Only Utility (WCAG compliant) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header Brand Logo CLS fix */
.brand-header-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Emergency Header Fast-Action Pill */
.header-emergency-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  color: #dc2626;
  border: 1.5px solid #fecaca;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 6px -1px rgba(220, 38, 38, 0.12);
}

.header-emergency-pill:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
  transform: translateY(-1px);
}

.emergency-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #dc2626;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  animation: pulseEmergencyDot 2s infinite;
  flex-shrink: 0;
}

.header-emergency-pill:hover .emergency-pulse-dot {
  background-color: #ffffff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
}

@keyframes pulseEmergencyDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

/* Mobile Nav Backdrop Overlay */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 95;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-nav-backdrop.show {
  display: block;
  opacity: 1;
}

.mobile-only-emergency {
  display: none;
}

/* Initial Route Hydration Skeleton Loader */
.initial-app-skeleton {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  width: 100%;
}

.skeleton-pulse-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px;
}

.skeleton-spinner {
  width: 38px;
  height: 38px;
  border: 3.5px solid #fee2e2;
  border-top-color: #dc2626;
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
}

.skeleton-text {
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  animation: pulseOpacity 1.6s ease-in-out infinite;
}

@keyframes pulseOpacity {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

nav {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  align-items: center;
}

nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--red);
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
  border-radius: 6px;
}

/* User Menu Dropdown */
.notif-bell-btn {
  position: relative;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
  text-decoration: none;
}

.notif-bell-btn:hover {
  background: #f1f5f9;
  color: var(--red);
  border-color: var(--red-border);
}

.notif-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #94a3b8;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  line-height: 1;
  pointer-events: none;
  z-index: 2;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.notif-bell-badge.badge-has-unread {
  background: #dc2626;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}

.user-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.user-menu-trigger:hover {
  background: #f1f5f9;
}

.user-menu-arrow-icon {
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.user-menu-wrapper.open .user-menu-arrow-icon,
.user-menu-trigger[aria-expanded="true"] .user-menu-arrow-icon {
  transform: rotate(180deg);
}

.user-nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 750;
}

.user-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 240px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 12px;
  z-index: 100;
  display: none;
  text-align: left;
}

.user-menu-dropdown.show {
  display: block;
}

.user-menu-header {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.user-menu-name {
  font-weight: 700;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text-main);
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.user-menu-item:hover {
  background: #f8fafc;
  color: var(--red);
}

.user-menu-item.logout {
  color: #dc2626;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 8px;
}

.user-menu-item.logout:hover {
  background: #fef2f2;
}

/* Layout Container */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 0 64px;
  background: #f8fafc;
  min-height: calc(100vh - 120px);
}

.landing-page-wrapper {
  margin: -32px 0 -64px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.landing-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.landing-section {
  padding: 64px 0;
  position: relative;
}

.bg-surface-alt {
  background: #f1f5f9;
}

/* Common Typography & Badges */
.eyebrow,
.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.landing-eyebrow {
  background: var(--red-light);
  border: 1px solid var(--red-border);
  padding: 6px 14px;
  border-radius: 9999px;
}

.eyebrow-dot,
.donor-pulse-dot,
.contact-badge-dot,
.about-badge-dot,
.hiw-badge-dot,
.privacy-badge-dot,
.terms-badge-dot,
.disclaimer-badge-dot,
.help-badge-dot,
.find-donors-badge-dot,
.donor-dashboard-badge-dot {
  display: none !important;
}

.section-header-center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 36px;
  padding: 0 16px;
}

.section-heading {
  font-size: clamp(1.4rem, 2.5vw + 0.6rem, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin: 0 0 10px;
}

.section-subheading {
  font-size: clamp(0.88rem, 1vw + 0.6rem, 1rem);
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.text-accent {
  color: var(--red);
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  background: #fee2e2;
  color: #991b1b;
  text-transform: uppercase;
}

.badge-active {
  background: #dcfce7;
  color: #166534;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 10px 18px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.button:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.button-outline {
  background: #ffffff;
  color: var(--red);
  border: 1px solid var(--border);
}

.button-outline:hover {
  background: var(--red-light);
  border-color: var(--red-border);
  color: var(--red-dark);
}

.button-lg {
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 10px;
}

.button-sm {
  padding: 7px 14px;
  font-size: 0.88rem;
  border-radius: 6px;
}

.button-primary {
  background: var(--red);
  color: #ffffff;
  border: 1px solid var(--red);
}

.button-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
}

.button-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.button-secondary:hover {
  background: #f8fafc;
  color: var(--red);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.button-white {
  background: #ffffff;
  color: var(--red);
  border: 1px solid #ffffff;
  font-weight: 700;
}

.button-white:hover {
  background: #fff5f5;
  transform: translateY(-2px);
}

.button-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.button-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Authentication Cards & Forms */
.auth-card {
  margin: 24px auto 48px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.auth-card h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.auth-card p.subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 24px;
}

.form-group {
  text-align: left;
  margin-bottom: 16px;
}

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

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
}

.form-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.toggle-pwd-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.toggle-pwd-btn:hover {
  color: var(--text-main);
}

/* Password Strength Meter */
.strength-bar {
  height: 4px;
  width: 100%;
  background: #e2e8f0;
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.strength-progress {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
  font-size: 0.75rem;
  margin-top: 4px;
  color: var(--text-muted);
}

/* Notifications & Alerts */
.alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 18px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.alert-error {
  background: var(--red-light);
  border: 1px solid var(--red-border);
  color: var(--red-dark);
}

.alert-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}

.alert-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning);
}

/* Google OAuth Button */
.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 11px 18px;
  background-color: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.google-btn:hover {
  background-color: #f9fafb;
}

.google-btn svg {
  width: 18px;
  height: 18px;
}

/* Dividers */
.divider {
  position: relative;
  margin: 20px 0;
  text-align: center;
}

.divider hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

.divider span {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 0 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Profile Avatar & Spinners */
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-bottom: 12px;
}

.spinner {
  display: block;
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top: 3px solid var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 32px auto;
}

/* Centralized Loader State */
.auth-loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(70vh - 100px);
  width: 100%;
  text-align: center;
  padding: 40px 20px;
  margin: auto;
}

.auth-loader-card .spinner {
  margin: 0 0 16px 0;
  width: 44px;
  height: 44px;
  border-width: 3.5px;
}

.button .btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Sessions */
.session-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: #f8fafc;
  font-size: 0.85rem;
}

.session-item.current {
  border-color: #86efac;
  background: #f0fdf4;
}

/* Landing Page: Hero */
.hero-landing {
  padding: 56px 0 64px;
  background: linear-gradient(135deg, #fff7f7 0%, #ffffff 50%, #fcebec 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-content-col {
  text-align: left;
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 850;
  color: var(--text-main);
}

.hero-supporting-text {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 32px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-disclaimer-wrapper {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 16px;
}

.hero-disclaimer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 12px 20px;
  color: #991b1b;
  font-size: 0.86rem;
  line-height: 1.5;
  width: 100%;
  max-width: 960px;
  box-shadow: 0 1px 3px rgba(185, 28, 28, 0.04);
}

.hero-disclaimer-card strong {
  color: #7f1d1d;
  font-weight: 700;
}

.disclaimer-icon {
  flex-shrink: 0;
  color: #b91c1c;
}

.hero-visual-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illustration-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(15, 23, 42, 0.06));
}

/* Landing Page: How It Works & Explore Grids */
.how-cards-grid,
.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card,
.explore-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
}

.text-card-link {
  cursor: pointer;
}

.text-card-link:hover .card-title {
  color: var(--primary);
}

.text-card-link:hover .card-action-cue {
  color: var(--primary);
  transform: translateX(4px);
}

.card-action-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.feature-card:hover,
.explore-card:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 32px -6px rgba(15, 23, 42, 0.09), 0 0 0 1px rgba(197, 30, 36, 0.12);
}

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

.explore-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.explore-card:hover .explore-icon-wrapper {
  transform: scale(1.08);
  background: #fee2e2;
}

.explore-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
}

.explore-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 20px;
  flex-grow: 1;
}

.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s ease, color 0.2s ease;
}

.explore-link svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.explore-card:hover .explore-link {
  color: #991b1b;
  gap: 12px;
}

.explore-card:hover .explore-link svg {
  transform: translateX(4px);
}

.card-step-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #94a3b8;
  background: #f8fafc;
  border-radius: 6px;
  padding: 3px 8px;
}

.card-icon-bubble,
.explore-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--red-border);
}

.card-title,
.explore-title {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0 0 8px;
}

.card-text,
.explore-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.explore-description {
  margin-bottom: 20px;
  flex: 1;
}

.explore-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.explore-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
}

.explore-footer {
  margin-top: auto;
}

.explore-footer .button {
  width: 100%;
  justify-content: space-between;
}

/* Landing Page: CTA Banner */
.section-cta {
  padding: 40px 0 64px;
  background: #ffffff;
}

.cta-banner-card {
  background: radial-gradient(circle at 85% 15%, rgba(239, 68, 68, 0.45) 0%, transparent 60%),
              linear-gradient(135deg, #b91c1c 0%, #991b1b 45%, #7f1d1d 100%);
  border-radius: 28px;
  padding: clamp(38px, 6vw, 68px) clamp(22px, 5vw, 48px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 50px -12px rgba(185, 28, 28, 0.45),
              0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 60px -15px rgba(185, 28, 28, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.cta-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(254, 202, 202, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-decorative-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.circle-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  top: -120px;
  right: -90px;
  filter: blur(10px);
}

.circle-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  bottom: -100px;
  left: -80px;
  filter: blur(8px);
}

.circle-3 {
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.035);
  top: 40%;
  right: 20%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.cta-inner-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.cta-tag-wrapper {
  margin-bottom: 18px;
}

.cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cta-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.cta-heading {
  font-size: clamp(1.65rem, 3.5vw + 0.6rem, 2.6rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-supporting-text {
  font-size: clamp(0.95rem, 1.1vw + 0.55rem, 1.12rem);
  color: #fef2f2;
  line-height: 1.65;
  margin: 0 auto 32px;
  max-width: 620px;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.cta-buttons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.cta-primary-btn {
  background: #ffffff !important;
  color: #b91c1c !important;
  font-weight: 800;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.25), 0 0 0 1px #ffffff inset;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 13px 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
}

.cta-primary-btn:hover {
  background: #fff8f8 !important;
  color: #991b1b !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 28px -4px rgba(0, 0, 0, 0.32);
}

.cta-secondary-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 700;
  padding: 13px 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: #ffffff !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px -4px rgba(0, 0, 0, 0.2);
}

.cta-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #fee2e2;
  opacity: 0.9;
}

.cta-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.cta-trust-item svg {
  color: #fca5a5;
}

.cta-trust-dot {
  opacity: 0.5;
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  .cta-banner-card {
    border-radius: 20px;
    padding: 36px 18px 32px;
  }
  .cta-buttons-row {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .cta-primary-btn, .cta-secondary-btn {
    width: 100%;
    justify-content: center;
  }
  .cta-trust-badges {
    flex-direction: column;
    gap: 6px;
  }
  .cta-trust-dot {
    display: none;
  }
}

/* Landing Page: Footer */
.landing-footer {
  background: #f8fafc;
  color: #64748b;
  padding: 64px 0 32px;
  font-size: 0.92rem;
  border-top: 1px solid var(--border);
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.brand-light {
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.brand-light .brand-mark {
  background: var(--red);
  color: #ffffff;
}

.footer-about-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #64748b;
  margin: 0 0 20px;
}

.footer-badge-box {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-mini-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
}

.footer-col-title {
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 750;
  margin: 0 0 14px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 768px) {
  .footer-col-important {
    grid-column: 1 / -1;
  }

  .footer-nav-list-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 16px !important;
  }
}

.footer-nav-list a {
  color: #64748b;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-nav-list a:hover {
  color: var(--red);
}

.footer-disclaimer-banner {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 18px 24px;
  margin-bottom: 36px;
}

.footer-disclaimer-banner p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #475569;
}

.footer-disclaimer-banner strong {
  color: #dc2626;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: #94a3b8;
}

.footer-copyright {
  color: #64748b;
}

.site-footer {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  background: #ffffff;
}

/* Blood Request Layouts & Cards */
.requests-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px;
}

.requests-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 24px;
  position: relative;
}

.requests-header .button,
.requests-header-action {
  margin-top: 4px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
  flex: 1;
}

.filter-label {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.filter-select,
.filter-input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  background: #fff;
  color: var(--text-main);
  outline: none;
}

.filter-select:focus,
.filter-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--focus-ring);
}


/* Donor Discovery 3-Column Grid */
.donors-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
}

.donor-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  padding: 18px;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  text-align: left;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .donors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 640px) {
  .donors-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* Directory and Camps Grid Styling */
.directory-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
}

@media (max-width: 1024px) {
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 640px) {
  .directory-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

.directory-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.directory-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.1);
}

.requests-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
}

@media (max-width: 1024px) {
  .requests-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 640px) {
  .requests-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

.request-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.request-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.07);
}

.request-card.urgent-critical {
  border-left: 5px solid #dc2626;
}

.request-card.urgent-high {
  border-left: 5px solid #f97316;
}

.request-card.urgent-medium {
  border-left: 5px solid #3b82f6;
}

.request-card.urgent-low {
  border-left: 5px solid #10b981;
}

.request-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.blood-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  background: #fef2f2;
  color: var(--red);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--red-border);
}

.urgency-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}

.urgency-CRITICAL {
  background: #fee2e2;
  color: #991b1b;
}

.urgency-HIGH {
  background: #ffedd5;
  color: #9a3412;
}

.urgency-MEDIUM {
  background: #e0f2fe;
  color: #0369a1;
}

.urgency-LOW {
  background: #ecfdf5;
  color: #065f46;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.status-PENDING_VERIFICATION {
  background: #fef9c3;
  color: #854d0e;
}

.status-ACTIVE {
  background: #dcfce7;
  color: #166534;
}

.status-RESPONSES_RECEIVED {
  background: #dbeafe;
  color: #1e40af;
}

.status-FULFILLED {
  background: #f1f5f9;
  color: #475569;
}

.status-CANCELLED {
  background: #f1f5f9;
  color: #94a3b8;
}

.request-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.request-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 0.84rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: grid;
  place-items: center;
  z-index: 10000;
  padding: clamp(10px, 3vw, 24px);
  overflow-y: auto;
}

.modal-content {
  background: #ffffff;
  border-radius: 14px;
  max-width: 540px;
  width: 100%;
  padding: clamp(18px, 4vw, 28px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  position: relative;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.custom-confirm-backdrop {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.15s ease;
}

/* Admin Dashboard & Analytics */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 72px);
  background: #f8fafc;
}

.admin-sidebar {
  width: 250px;
  background: #ffffff;
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.admin-sidebar-header {
  padding: 0 12px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-nav-item:hover {
  background: #f1f5f9;
  color: var(--red);
}

.admin-nav-item.active {
  background: #fef2f2;
  color: var(--red);
  font-weight: 600;
}

.admin-main {
  flex: 1;
  padding: 28px 36px;
  overflow-y: auto;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.stat-card-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stat-card-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.stat-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.admin-table-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

.admin-table-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.admin-table th {
  background: #f8fafc;
  padding: 12px 18px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
}

.admin-table tr:hover td {
  background: #fafafa;
}

.pagination-controls {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.chart-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chart-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

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

.bar-chart-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.bar-chart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
}

.bar-chart-label {
  width: 90px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
  flex-shrink: 0;
}

.bar-chart-track {
  flex: 1;
  background: #f1f5f9;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
}

.bar-chart-fill {
  height: 100%;
  background: var(--red);
  border-radius: 6px;
  min-width: 4px;
}

.bar-chart-value {
  width: 50px;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
  flex-shrink: 0;
}

.date-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

/* Animations & Toast */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Healthcare Production Toast Notification System (RaktDal)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - 32px);
}

.toast-item {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: opacity 180ms ease, transform 180ms ease;
  animation: toastIn 180ms cubic-bezier(0, 0, 0.2, 1) forwards;
}

@keyframes toastIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast-item.toast-item-leaving {
  opacity: 0;
  transform: translateY(6px);
}

/* Subtle, Restrained Semantic Accents */
.toast-item-success {
  border-color: #cbd5e1;
}

.toast-item-success .toast-leading-icon {
  color: #15803d; /* Muted clinical green */
}

.toast-item-error {
  border-color: #fecaca;
  background: #fffcfc;
}

.toast-item-error .toast-leading-icon {
  color: #b91c1c; /* Muted healthcare red */
}

.toast-item-warning {
  border-color: #fed7aa;
}

.toast-item-warning .toast-leading-icon {
  color: #b45309; /* Muted amber */
}

.toast-item-urgent {
  border-color: #fca5a5;
  background: #fffafa;
}

.toast-item-urgent .toast-leading-icon {
  color: #b91c1c; /* Brand emergency red */
}

.toast-item-info {
  border-color: #cbd5e1;
}

.toast-item-info .toast-leading-icon {
  color: #2563eb; /* Muted healthcare blue */
}

/* Icon Container */
.toast-leading-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-icon-svg {
  display: block;
}

/* Text Typography */
.toast-text-wrap {
  flex: 1;
  min-width: 0;
}

.toast-headline {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 2px;
}

.toast-copy {
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #475569;
  word-break: break-word;
}

/* Dismiss Icon Button */
.toast-dismiss-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
  margin: -2px -2px 0 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 150ms ease;
}

.toast-dismiss-btn:hover {
  color: #475569;
}

@media (max-width: 640px) {
  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {

  .how-cards-grid,
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-columns-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .site-header {
    padding: 14px 20px;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 3;
    min-width: 44px;
    min-height: 44px;
  }

  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px 24px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
    z-index: 110;
  }

  .site-header nav a {
    padding: 10px 14px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    min-height: 44px;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .site-header nav a:hover {
    background-color: #f8fafc;
  }

  .site-header nav a.active {
    background-color: #fef2f2;
    color: var(--red);
  }

  .site-header nav a.active::after {
    display: none;
  }

  .mobile-only-emergency {
    display: block;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .mobile-emergency-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 700;
  }

  .header-emergency-pill {
    display: none;
  }

  .site-header nav.mobile-open {
    display: flex;
    animation: slideDownNav 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

  .hero-content-col {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .hero-visual-col {
    margin-top: 6px;
  }

  .hero-disclaimer-wrapper {
    width: 100%;
  }

  .hero-disclaimer-card {
    margin: 0 auto;
    text-align: left;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .how-cards-grid,
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .cta-buttons-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons-row .button {
    width: 100%;
  }

  .footer-columns-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }

  .col-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .requests-container,
  .donor-container {
    padding: 16px 12px;
  }

  .filter-bar {
    flex-direction: column;
    gap: 12px;
  }

  .filter-group,
  .filter-select,
  .filter-input {
    width: 100%;
  }

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

  .stat-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    overflow-x: auto;
  }

  .admin-main {
    padding: 20px 16px;
  }

  .admin-table-card {
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 10px 14px;
  }

  .how-cards-grid,
  .explore-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-card,
  .explore-card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .card-icon-bubble,
  .explore-icon-box {
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    border-radius: 10px;
  }

  .card-icon-bubble svg {
    width: 20px;
    height: 20px;
  }

  .card-step-badge {
    top: 14px;
    right: 14px;
    font-size: 0.75rem;
    padding: 2px 6px;
  }

  .card-title,
  .explore-title {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .card-text,
  .explore-desc {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .explore-card-header {
    margin-bottom: 10px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .button {
    width: 100%;
  }

  .landing-section {
    padding: 36px 0;
  }

  .stat-cards-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 20px 14px;
    margin: 16px auto;
  }

  .button {
    padding: 9px 14px;
    font-size: 0.9rem;
  }

  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .toast {
    min-width: unset;
    width: 100%;
  }
}


/* ==========================================================================
   LANGUAGE SELECTOR DROPDOWN & TYPOGRAPHY
   ========================================================================== */
:root {
  /* Script-compatible typography stack supporting Latin, Devanagari, Bengali, Telugu, and Tamil */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Devanagari', 'Noto Sans Bengali', 'Noto Sans Telugu', 'Noto Sans Tamil', sans-serif;
}

.nav-actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-selector-wrapper {
  position: relative;
  display: inline-block;
}

.lang-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.lang-selector-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--red);
}

.lang-selector-btn:focus-visible {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.lang-globe-icon {
  color: var(--red);
  flex-shrink: 0;
}

.current-lang-text {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lang-arrow-icon {
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.lang-selector-wrapper.open .lang-arrow-icon {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 170px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  padding: 6px;
  z-index: 1000;
  animation: dropdownFadeIn 0.16s ease-out forwards;
}

.lang-dropdown.show {
  display: block;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

.lang-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-option-item:hover {
  background: #f1f5f9;
  color: var(--red);
}

.lang-option-item:focus-visible {
  outline: none;
  background: #fef2f2;
  color: var(--red);
}

.lang-option-item.active {
  background: #fef2f2;
  color: var(--red);
  font-weight: 700;
}

.lang-check-icon {
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 800;
}

/* Indic text line-height adjustment for clear script rendering */
:lang(hi),
:lang(mr),
:lang(bn),
:lang(te),
:lang(ta) {
  line-height: 1.55;
}

@media (max-width: 768px) {
  .lang-selector-btn {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .current-lang-text {
    max-width: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}


/* ==========================================================================
   PHASE 18: PWA & COMPLETE RESPONSIVE OPTIMIZATION
   ========================================================================== */

/* Safe area insets for notched phones & standalone PWA header padding */
body {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

body.pwa-standalone .site-header {
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
}

/* PWA Connectivity Banner */
.pwa-connectivity-banner {
  display: none;
  width: 100%;
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.pwa-connectivity-banner .banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.pwa-connectivity-banner.offline {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border-bottom: 1px solid #fecaca;
  animation: slideDownBanner 0.25s ease forwards;
}

.pwa-connectivity-banner.online {
  display: block;
  background: #f0fdf4;
  color: #166534;
  border-bottom: 1px solid #bbf7d0;
  animation: slideDownBanner 0.25s ease forwards;
}

@keyframes slideDownBanner {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

/* PWA App Update Notification Card */
.pwa-update-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1050;
  max-width: 420px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* PWA Install Banner at Bottom-Right */
.pwa-install-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: calc(100% - 48px);
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.18);
  z-index: 1040;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 640px) {
  .pwa-install-banner {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }
}

.pwa-install-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pwa-install-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.pwa-install-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pwa-install-text strong {
  font-size: 0.92rem;
  color: var(--text-main);
}

.pwa-install-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pwa-dismiss-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.pwa-dismiss-btn:hover {
  color: var(--text-main);
}

/* ==========================================================================
   TOUCH TARGET & COMPACT RESPONSIVE REFINEMENTS
   ========================================================================== */

/* Minimum 44x44 CSS pixel touch targets for all interactive buttons on mobile */
@media (max-width: 768px) {

  .button,
  .lang-selector-btn,
  .mobile-nav-toggle,
  .user-menu-trigger,
  .filter-select,
  .filter-input {
    min-height: 44px;
  }

  .site-header {
    padding: 10px 16px;
    gap: 8px;
  }

  .brand img {
    height: 34px !important;
  }

  .brand {
    font-size: 1.15rem;
    gap: 6px;
  }

  .nav-actions-group {
    gap: 6px;
  }

  .lang-selector-btn {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  /* Prevent accidental horizontal overflow on mobile viewports */
  html,
  body {
    overflow-x: clip;
    width: 100%;
  }

  /* Responsive table card adaptation for admin and lists */
  .admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Ensure cards never touch the screen edge */
  .auth-card,
  .feature-card,
  .explore-card,
  .request-card {
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Ensure forms wrap comfortably on small screens (320px - 375px) */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px !important;
    /* Prevents auto-zoom on iOS Safari */
  }

  /* Hero illustration scales down cleanly without overlapping */
  .hero-illustration-svg {
    width: 100%;
    max-width: 340px;
    height: auto;
  }
}

/* Extra small devices (320px - 375px) */
@media (max-width: 375px) {
  .current-lang-text {
    display: none;
    /* Icon-only on very compact phones to preserve spacing */
  }

  .site-header {
    padding: 8px 12px;
  }

  .hero-title {
    font-size: 2rem !important;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .button {
    width: 100%;
  }

  .landing-footer {
    padding: 48px 0 24px 0;
  }
}

/* ==========================================================================
   TOTAL SUPPRESSION OF GOOGLE TRANSLATE DEFAULT UI, BANNERS, & TOOLTIPS
   ========================================================================== */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-y6EKec,
.VIpgJd-ZVi9od-aZ2wEe-OVi4kf,
.VIpgJd-ZVi9od-vH1Gmf,
iframe[id^=":1.container"],
iframe[id^=":2.container"],
iframe[id*="google_translate"],
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip-bottom,
.goog-tooltip-top {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  z-index: -9999 !important;
}

/* Prevent Google Translate from highlighting translated words on hover or click */
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
  color: inherit !important;
  border: none !important;
}

/* Lock body and html to top: 0px to prevent Google Translate pushing UI downwards */
html,
body {
  top: 0px !important;
  margin-top: 0px !important;
  position: static !important;
}

.skiptranslate:not(#google_translate_element) {
  display: none !important;
}

/* Class applied to brand names, medical terms, IDs, or sensitive strings that must NEVER be translated */
.notranslate {
  translate: no !important;
}

/* ==========================================================================
   ENHANCED MODERN DONOR DASHBOARD (HEALTHCARE SUITE DESIGN SYSTEM)
   ========================================================================== */

.donor-dashboard-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  animation: donorFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* 1. Hero Card - Theme-aligned, clean, authentic */
.donor-hero-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  color: var(--navy);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  margin-bottom: 24px;
}

.donor-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.donor-hero-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 260px;
}

.donor-blood-badge-wrap {
  flex-shrink: 0;
}

.donor-blood-badge-large {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.donor-hero-meta h1 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.donor-hero-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.donor-hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.donor-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.01em;
}

.donor-status-pill.available {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.donor-status-pill.unavailable {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.donor-status-pill.discoverable {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.donor-status-pill.hidden {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.donor-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 2. Key Stats Strip (4-Column) */
.donor-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.donor-stat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.donor-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  border-color: #cbd5e1;
}

.donor-stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.donor-stat-icon-bubble {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donor-stat-icon-bubble.red { background: #fee2e2; color: #c51e24; }
.donor-stat-icon-bubble.green { background: #dcfce7; color: #16a36a; }
.donor-stat-icon-bubble.blue { background: #e0f2fe; color: #0284c7; }
.donor-stat-icon-bubble.purple { background: #f3e8ff; color: #9333ea; }

.donor-stat-label {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.donor-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 4px;
}

.donor-stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
}

/* 3. Quick Action Hub (3-Column) */
.donor-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.donor-action-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.donor-action-card:hover {
  transform: translateY(-3px);
  border-color: #c51e24;
  box-shadow: 0 12px 28px rgba(197, 30, 36, 0.08);
}

.donor-action-card:hover .donor-action-arrow {
  transform: translateX(4px);
  color: #c51e24;
}

.donor-action-card:hover .donor-action-bubble {
  transform: scale(1.05);
}

.donor-action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.donor-action-bubble {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.donor-action-bubble.red { background: #fef2f2; color: #c51e24; }
.donor-action-bubble.teal { background: #f0fdf4; color: #16a36a; }
.donor-action-bubble.blue { background: #f0f9ff; color: #0284c7; }

.donor-action-title {
  font-size: 1.12rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0 0 6px;
}

.donor-action-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
  flex-grow: 1;
}

.donor-action-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.donor-action-arrow {
  transition: transform 0.2s ease, color 0.2s ease;
}

/* 4. Two-Column Details & Controls Section */
.donor-dashboard-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.donor-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.donor-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 18px;
}

.donor-panel-header h3 {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 0;
}

.donor-panel-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.donor-panel-link:hover {
  text-decoration: underline;
}

.donor-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.donor-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f8fafc;
}

.donor-info-row:last-child {
  border-bottom: none;
}

.donor-info-key {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.donor-info-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
}

/* Interactive Consent Toggles */
.donor-toggle-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  margin-bottom: 12px;
}

.donor-toggle-item:last-child {
  margin-bottom: 0;
}

.donor-toggle-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.donor-toggle-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.donor-toggle-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.donor-consent-notice {
  margin-top: 14px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.78rem;
}

/* Modern Accessible Switch */
.donor-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.donor-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.donor-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 9999px;
}

.donor-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.donor-switch input:checked + .donor-slider {
  background-color: #16a36a;
}

.donor-switch input:checked + .donor-slider::before {
  transform: translateX(20px);
}

.donor-switch input:disabled + .donor-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .donor-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .donor-actions-grid {
    grid-template-columns: 1fr;
  }
  .donor-dashboard-split {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .donor-hero-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .donor-hero-actions {
    width: 100%;
    display: flex;
    gap: 10px;
  }
  .donor-hero-actions .button {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .donor-dashboard-wrap {
    padding: 12px 10px 48px;
  }
  .donor-hero-card {
    padding: 18px 16px;
    border-radius: 14px;
  }
  .donor-hero-left {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    width: 100%;
  }
  .donor-blood-badge-large {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
    border-radius: 10px;
  }
  .donor-hero-meta {
    min-width: 0;
    flex: 1;
  }
  .donor-hero-meta h1 {
    font-size: 1.18rem;
    word-break: break-word;
  }
  .donor-hero-sub {
    font-size: 0.82rem;
    gap: 6px;
  }
  .donor-status-pill {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  .donor-panel {
    padding: 18px 16px;
    border-radius: 12px;
  }
  .donor-panel-header {
    padding-bottom: 12px;
    margin-bottom: 14px;
  }
  .donor-panel-header h3 {
    font-size: 0.98rem;
  }
  .donor-info-row {
    padding: 7px 0;
    gap: 10px;
  }
  .donor-info-key {
    font-size: 0.82rem;
  }
  .donor-info-val {
    font-size: 0.84rem;
    max-width: 60%;
    word-break: break-word;
  }
  .donor-toggle-item {
    padding: 10px 12px;
    gap: 10px;
  }
  .donor-toggle-text strong {
    font-size: 0.84rem;
  }
  .donor-toggle-text p {
    font-size: 0.74rem;
  }
}

@media (max-width: 480px) {
  .donor-hero-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .donor-blood-badge-large {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  .donor-hero-actions {
    flex-direction: column;
    gap: 8px;
  }
  .donor-hero-actions .button {
    width: 100%;
  }
  .donor-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .donor-info-val {
    text-align: left;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .donor-dashboard-wrap,
  .donor-stat-card,
  .donor-action-card,
  .donor-slider {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   SUPPORT & CONTACT PAGE (PREMIUM HEALTHCARE DESIGN SYSTEM)
   ========================================================================== */

.contact-page-container {
  min-height: calc(100vh - 70px);
  background: var(--bg);
  color: var(--text-main);
  animation: fadeIn 0.4s ease-out;
}

/* 1. Hero Section */
.contact-hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7f7 0%, #ffffff 50%, #fcebec 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px 52px;
}

.contact-hero-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 30, 36, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.contact-hero-section::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 36, 58, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.contact-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-hero-text {
  text-align: left;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fee2e2;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
  border: 1px solid rgba(197, 30, 36, 0.15);
}

.contact-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 30, 36, 0.2);
}

.contact-hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
}

.contact-hero-title .accent-text {
  color: var(--primary);
  background: linear-gradient(135deg, #c51f26 0%, #991b1b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-hero-sub {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 620px;
}

.contact-metadata-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.contact-metadata-pill svg {
  color: var(--primary);
}

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

.contact-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-illustration-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(197, 30, 36, 0.08));
}

.contact-hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.contact-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.contact-hero-pill svg {
  color: var(--primary);
}

/* 2. Main Content Wrapper */
.contact-body-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.contact-section-head {
  text-align: center;
  margin-bottom: 36px;
}

.contact-section-head h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}

.contact-section-head p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0;
}

/* 3. Contact Channels Cards (4 Cards Grid) */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.contact-channel-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.contact-channel-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 28px -6px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(197, 30, 36, 0.12);
}

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

.contact-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.contact-channel-card:hover .contact-icon-box {
  transform: scale(1.08);
  background: #fee2e2;
}

.contact-channel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--navy);
  line-height: 1.3;
}

.contact-channel-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 18px;
  flex-grow: 1;
}

.contact-channel-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  word-break: break-all;
  transition: color 0.2s ease, gap 0.2s ease;
}

.contact-channel-card:hover .contact-channel-action {
  gap: 10px;
  color: #991b1b;
}

.contact-channel-action svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.contact-channel-card:hover .contact-channel-action svg {
  transform: translateX(3px);
}

.contact-channel-card.emergency-accent {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border-color: #bbf7d0;
}

.contact-channel-card.emergency-accent .contact-icon-box {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #16a34a;
}

.contact-channel-card.emergency-accent .contact-channel-action {
  color: #15803d;
}

/* 4. Split Section: Process + Contact Form */
.contact-split-section {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
  margin-bottom: 64px;
  align-items: start;
}

/* Left: How Support Works (Process Card) */
.support-process-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.support-process-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}

.support-process-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 28px;
}

.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 17px;
  width: 2px;
  background: #e2e8f0;
}

.process-step {
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.process-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(197, 30, 36, 0.15);
}

.process-step-body h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 750;
  color: var(--navy);
}

.process-step-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.support-notice-box {
  margin-top: 28px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.support-notice-box svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Right: Contact Form */
.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.05);
}

.contact-form-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px;
}

.contact-form-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 24px;
}

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

.contact-field-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.contact-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 650;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.contact-label .req-star {
  color: var(--primary);
  margin-left: 2px;
}

.contact-label .char-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-input,
.contact-select,
.contact-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.92rem;
  color: var(--text-main);
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 30, 36, 0.12);
}

.contact-input[readonly],
.contact-input:disabled {
  background: #f8fafc;
  color: var(--navy);
  font-weight: 600;
  cursor: not-allowed;
  border-color: #e2e8f0;
  box-shadow: none;
}

.contact-locked-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 7px;
  border-radius: 9999px;
  margin-left: 6px;
}

.contact-input.is-invalid,
.contact-select.is-invalid,
.contact-textarea.is-invalid {
  border-color: #ef4444;
  background: #fffafa;
}

.field-error-msg {
  color: #ef4444;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 4px;
  display: none;
}

.contact-textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-status-banner {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  display: none;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.contact-status-banner.is-info {
  display: flex;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.contact-status-banner.is-success {
  display: flex;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.contact-status-banner.is-error {
  display: flex;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.contact-submit-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 750;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(197, 30, 36, 0.2);
}

.contact-submit-btn:hover:not(:disabled) {
  background: #a8191e;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(197, 30, 36, 0.28);
}

.contact-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.contact-form-footinfo {
  margin-top: 14px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 5. FAQ Accordion Section */
.contact-faq-section {
  margin-bottom: 64px;
}

.faq-list-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-item.is-open {
  border-color: rgba(197, 30, 36, 0.3);
  box-shadow: 0 4px 14px rgba(197, 30, 36, 0.05);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 20px 22px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
  font-family: inherit;
  transition: color 0.15s ease;
}

.faq-trigger:hover {
  color: var(--primary);
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.faq-icon-arrow {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.faq-item.is-open .faq-icon-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-inner {
  padding: 0 22px 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 6. Call to Action Banner */
.contact-cta-card {
  background: linear-gradient(135deg, #17243a 0%, #0f172a 100%) !important;
  color: #ffffff !important;
  border-radius: 20px;
  padding: 48px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}

.contact-cta-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 30, 36, 0.45) 0%, rgba(197, 30, 36, 0) 70%);
  pointer-events: none;
}

.contact-cta-card::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contact-cta-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.contact-cta-desc {
  font-size: 1.05rem;
  color: #e2e8f0 !important;
  max-width: 640px;
  margin: 0 auto 30px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.contact-cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.contact-cta-buttons .button {
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 10px;
}

.contact-cta-btn-white {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #ffffff !important;
  transition: all 0.2s ease;
}

.contact-cta-btn-white:hover {
  background: #f1f5f9 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.contact-cta-btn-red {
  background: var(--red) !important;
  color: #ffffff !important;
  border: 1px solid var(--red) !important;
  transition: all 0.2s ease;
}

.contact-cta-btn-red:hover {
  background: #991b1b !important;
  border-color: #991b1b !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(185, 28, 28, 0.35);
}

.contact-cta-btn-ghost {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  transition: all 0.2s ease;
}

.contact-cta-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
}

/* 7. Responsive Breakpoints */
@media (max-width: 1024px) {
  .contact-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .contact-hero-text {
    text-align: center;
  }
  .contact-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .contact-hero-ctas {
    justify-content: center;
  }
  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-split-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .contact-hero-section {
    padding: 40px 16px 32px;
  }
  .contact-hero-title {
    font-size: 2rem;
  }
  .contact-body-wrapper {
    padding: 32px 16px 64px;
  }
  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .form-grid-two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-form-card {
    padding: 24px 20px;
  }
  .support-process-card {
    padding: 24px 20px;
  }
  .contact-cta-card {
    padding: 32px 20px;
  }
  .contact-cta-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .contact-hero-title {
    font-size: 1.7rem;
  }
  .contact-hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .contact-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .contact-cta-buttons .button {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page-container,
  .contact-channel-card,
  .contact-icon-box,
  .faq-icon-arrow,
  .faq-content,
  .contact-submit-btn {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   ABOUT US PAGE (PREMIUM HEALTHCARE STORYTELLING DESIGN SYSTEM)
   ========================================================================== */

.about-page-container {
  min-height: calc(100vh - 70px);
  background: var(--bg);
  color: var(--text-main);
  animation: fadeIn 0.4s ease-out;
}

/* 1. Hero Section */
.about-hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7f7 0%, #ffffff 50%, #fcebec 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px 56px;
}

.about-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fee2e2;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 18px;
  border: 1px solid rgba(197, 30, 36, 0.15);
}

.about-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 30, 36, 0.2);
}

.about-hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
}

.about-hero-title .accent-text {
  color: var(--primary);
  background: linear-gradient(135deg, #c51e24 0%, #991b1b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 620px;
}

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

.about-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-illustration-svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(197, 30, 36, 0.08));
}

/* 2. Global Body Layout */
.about-body-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 84px;
}

.about-section-head {
  text-align: center;
  margin-bottom: 40px;
}

.about-section-head h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}

.about-section-head p {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 3. Our Story Section (Split 2-Column Storytelling Card) */
.about-story-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 48px 44px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
  margin-bottom: 64px;
  position: relative;
  overflow: hidden;
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.about-story-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 18px;
  line-height: 1.25;
}

.about-story-p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 18px;
}

.about-story-callout {
  padding: 18px 20px;
  background: #fef2f2;
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  margin-top: 24px;
  font-size: 0.94rem;
  color: #7f1d1d;
  line-height: 1.6;
}

.about-story-visual {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-stat-bubble {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.story-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fef2f2;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.story-stat-body strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--navy);
}

.story-stat-body span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 4. Mission, Vision and Values */
.about-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.about-pillar-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
}

.pillar-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.pillar-badge-top.mission {
  background: #fee2e2;
  color: var(--primary);
}

.pillar-badge-top.vision {
  background: #e0f2fe;
  color: #0369a1;
}

.about-pillar-card h3 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px;
}

.about-pillar-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Values Grid (6 Cards) */
.about-values-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  margin-bottom: 64px;
}

.about-values-title {
  text-align: center;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}

.about-values-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 32px;
}

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

.value-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 20px;
  transition: all 0.25s ease;
}

.value-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.value-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: transform 0.2s ease;
}

.value-item:hover .value-icon-box {
  transform: scale(1.1);
  background: #fee2e2;
}

.value-item h4 {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--navy);
  margin: 0 0 6px;
}

.value-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* 5. Why Choose RaktDal Grid (6 Cards) */
.about-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 64px;
}

.about-feature-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.about-feature-box:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 28px -6px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(197, 30, 36, 0.12);
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.about-feature-box:hover .about-feature-icon {
  transform: scale(1.08);
  background: #fee2e2;
}

.about-feature-box h3 {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--navy);
  margin: 0 0 8px;
}

.about-feature-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* 6. How It Works Timeline (4 Connected Steps) */
.about-timeline-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 44px 36px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
  margin-bottom: 64px;
}

.timeline-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 36px;
}

.timeline-step-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.timeline-step-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fef2f2;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(197, 30, 36, 0.15);
}

.timeline-step-card h4 {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--navy);
  margin: 0 0 8px;
}

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

/* 7. Trust & Privacy Callout (Security Theme) */
.about-trust-banner {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px 36px;
  margin-bottom: 64px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.about-trust-left {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.trust-shield-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fee2e2;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(197, 30, 36, 0.12);
}

.about-trust-left h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}

.about-trust-left p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.about-trust-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.trust-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}

.trust-check-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* 8. Call to Action Banner */
.about-cta-card {
  background: linear-gradient(135deg, #17243a 0%, #0f172a 100%) !important;
  color: #ffffff !important;
  border-radius: 20px;
  padding: 48px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}

.about-cta-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 30, 36, 0.45) 0%, rgba(197, 30, 36, 0) 70%);
  pointer-events: none;
}

.about-cta-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.about-cta-desc {
  font-size: 1.05rem;
  color: #e2e8f0 !important;
  max-width: 680px;
  margin: 0 auto 30px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.about-cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.about-cta-buttons .button {
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 10px;
}

/* Responsive Breakpoints for About Page */
@media (max-width: 1024px) {
  .about-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .about-hero-sub {
    margin: 0 auto 24px;
  }
  .about-hero-ctas {
    justify-content: center;
  }
  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .about-trust-banner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .about-hero-section {
    padding: 44px 16px 36px;
  }
  .about-hero-title {
    font-size: 2.1rem;
  }
  .about-body-wrapper {
    padding: 36px 16px 64px;
  }
  .about-story-section {
    padding: 28px 20px;
  }
  .about-pillars-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .about-features-grid {
    grid-template-columns: 1fr;
  }
  .timeline-steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-trust-list {
    grid-template-columns: 1fr;
  }
  .about-trust-banner {
    padding: 28px 20px;
  }
  .about-cta-card {
    padding: 32px 20px;
  }
  .about-cta-title {
    font-size: 1.65rem;
  }
}

@media (max-width: 480px) {
  .about-hero-title {
    font-size: 1.75rem;
  }
  .about-hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .about-hero-ctas .button {
    width: 100%;
  }
  .about-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .about-cta-buttons .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-page-container,
  .about-feature-box,
  .about-feature-icon,
  .value-item,
  .value-icon-box {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   HOW IT WORKS PAGE (INTERACTIVE WORKFLOWS & JOURNEY TIMELINES)
   ========================================================================== */

.hiw-page-container {
  min-height: calc(100vh - 70px);
  background: var(--bg);
  color: var(--text-main);
  animation: fadeIn 0.4s ease-out;
}

/* 1. Hero Section */
.hiw-hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7f7 0%, #ffffff 50%, #fcebec 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px 52px;
}

.hiw-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hiw-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fee2e2;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
  border: 1px solid rgba(197, 30, 36, 0.15);
}

.hiw-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 30, 36, 0.2);
}

.hiw-hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
}

.hiw-hero-title .accent-text {
  color: var(--primary);
  background: linear-gradient(135deg, #c51e24 0%, #991b1b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hiw-hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 620px;
}

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

.hiw-illustration-svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(197, 30, 36, 0.08));
}

/* 2. Body Wrapper */
.hiw-body-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 84px;
}

/* 3. Journey Selector Tabs */
.hiw-journey-nav-wrapper {
  margin-bottom: 48px;
  text-align: center;
}

.hiw-journey-tabs {
  display: inline-flex;
  background: #ffffff;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.hiw-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.22s ease;
}

.hiw-tab-btn:hover:not(.active) {
  color: var(--navy);
  background: #f8fafc;
}

.hiw-tab-btn.active {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(23, 36, 58, 0.2);
}

.hiw-tab-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 4. Journey Content Container */
.hiw-journey-panel {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.hiw-journey-panel.active {
  display: block;
}

.hiw-panel-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.hiw-panel-header h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}

.hiw-panel-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* 5. Alternating Connected Visual Timeline */
.hiw-timeline-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto 64px;
  padding: 20px 0;
}

/* Central Connecting Line */
.hiw-timeline-wrapper::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 50%;
  width: 3px;
  background: #e2e8f0;
  transform: translateX(-50%);
  z-index: 0;
}

.hiw-timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.hiw-timeline-item:last-child {
  margin-bottom: 0;
}

/* Alternating sides */
.hiw-timeline-item.side-left .hiw-card-col {
  grid-column: 1;
  text-align: right;
}

.hiw-timeline-item.side-left .hiw-spacer-col {
  grid-column: 3;
}

.hiw-timeline-item.side-right .hiw-card-col {
  grid-column: 3;
  text-align: left;
}

.hiw-timeline-item.side-right .hiw-spacer-col {
  grid-column: 1;
}

.hiw-node-col {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hiw-node-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--primary);
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(197, 30, 36, 0.18);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.hiw-timeline-item:hover .hiw-node-bubble {
  transform: scale(1.12);
  background: var(--primary);
  color: #ffffff;
}

.hiw-step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  max-width: 420px;
  width: 100%;
}

.hiw-timeline-item.side-left .hiw-step-card {
  margin-left: auto;
}

.hiw-timeline-item.side-right .hiw-step-card {
  margin-right: auto;
}

.hiw-timeline-item:hover .hiw-step-card {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(197, 30, 36, 0.12);
}

.hiw-step-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hiw-timeline-item.side-left .hiw-step-top {
  justify-content: flex-end;
}

.hiw-timeline-item.side-right .hiw-step-top {
  justify-content: flex-start;
}

.hiw-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.hiw-timeline-item:hover .hiw-step-icon {
  transform: scale(1.08);
}

.hiw-step-tag {
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
}

.hiw-step-card h3 {
  font-size: 1.18rem;
  font-weight: 750;
  color: var(--navy);
  margin: 0 0 8px;
}

.hiw-step-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.hiw-step-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.hiw-step-link:hover {
  gap: 10px;
  color: #991b1b;
}

/* 6. Platform Capabilities & Benefits Grid */
.hiw-benefits-section {
  margin-bottom: 64px;
}

.hiw-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hiw-benefit-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.hiw-benefit-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 24px -4px rgba(15, 23, 42, 0.07);
}

.hiw-benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: transform 0.2s ease;
}

.hiw-benefit-card:hover .hiw-benefit-icon {
  transform: scale(1.08);
}

.hiw-benefit-card h4 {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--navy);
  margin: 0 0 6px;
}

.hiw-benefit-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* 7. Responsibility & Safety Section (Shield Theme) */
.hiw-safety-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px 36px;
  margin-bottom: 64px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.hiw-safety-left {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.hiw-safety-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fee2e2;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(197, 30, 36, 0.12);
}

.hiw-safety-left h3 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}

.hiw-safety-left p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.hiw-safety-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hiw-safety-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}

.hiw-safety-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* 8. Call to Action Banner */
.hiw-cta-card {
  background: linear-gradient(135deg, #17243a 0%, #0f172a 100%) !important;
  color: #ffffff !important;
  border-radius: 20px;
  padding: 48px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}

.hiw-cta-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 30, 36, 0.45) 0%, rgba(197, 30, 36, 0) 70%);
  pointer-events: none;
}

.hiw-cta-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.hiw-cta-desc {
  font-size: 1.05rem;
  color: #e2e8f0 !important;
  max-width: 680px;
  margin: 0 auto 30px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.hiw-cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hiw-cta-buttons .button {
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 10px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hiw-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hiw-hero-sub {
    margin: 0 auto 24px;
  }
  .hiw-hero-ctas {
    justify-content: center;
  }
  .hiw-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hiw-safety-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .hiw-hero-section {
    padding: 44px 16px 36px;
  }
  .hiw-hero-title {
    font-size: 2.1rem;
  }
  .hiw-body-wrapper {
    padding: 36px 16px 64px;
  }
  .hiw-journey-tabs {
    width: 100%;
    flex-direction: column;
  }
  .hiw-tab-btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Mobile Timeline: Align left */
  .hiw-timeline-wrapper::before {
    left: 26px;
  }
  .hiw-timeline-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }
  .hiw-node-col {
    flex-shrink: 0;
  }
  .hiw-node-bubble {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .hiw-card-col {
    flex-grow: 1;
    text-align: left !important;
  }
  .hiw-timeline-item.side-left .hiw-step-top {
    justify-content: flex-start;
  }
  .hiw-spacer-col {
    display: none;
  }
  
  .hiw-benefits-grid {
    grid-template-columns: 1fr;
  }
  .hiw-safety-card {
    padding: 28px 20px;
  }
  .hiw-cta-card {
    padding: 32px 20px;
  }
  .hiw-cta-title {
    font-size: 1.65rem;
  }
}

@media (max-width: 480px) {
  .hiw-hero-title {
    font-size: 1.75rem;
  }
  .hiw-hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hiw-hero-ctas .button {
    width: 100%;
  }
  .hiw-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hiw-cta-buttons .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hiw-page-container,
  .hiw-journey-panel,
  .hiw-step-card,
  .hiw-benefit-card,
  .hiw-node-bubble {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   PRIVACY POLICY & CONSENT CENTER (HEALTHCARE & BANKING GRADE DESIGN)
   ========================================================================== */

.privacy-page-container {
  min-height: calc(100vh - 70px);
  background: var(--bg);
  color: var(--text-main);
  animation: fadeIn 0.4s ease-out;
}

/* 1. Hero Section */
.privacy-hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7f7 0%, #ffffff 50%, #fcebec 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px 52px;
}

.privacy-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fee2e2;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
  border: 1px solid rgba(197, 30, 36, 0.15);
}

.privacy-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 30, 36, 0.2);
}

.privacy-hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
}

.privacy-hero-title .accent-text {
  color: var(--primary);
  background: linear-gradient(135deg, #c51e24 0%, #991b1b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.privacy-hero-sub {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 620px;
}

.privacy-metadata-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

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

.privacy-illustration-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(197, 30, 36, 0.08));
}

/* 2. Privacy at a Glance (4 Cards Grid) */
.privacy-glance-section {
  margin-bottom: 48px;
}

.privacy-glance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.privacy-glance-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.privacy-glance-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 28px -6px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(197, 30, 36, 0.12);
}

.privacy-glance-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: transform 0.2s ease;
}

.privacy-glance-card:hover .privacy-glance-icon {
  transform: scale(1.08);
}

.privacy-glance-card h3 {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--navy);
  margin: 0 0 8px;
}

.privacy-glance-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* 3. Consent Architecture Section (3 Highlight Cards) */
.privacy-consent-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px 36px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
  margin-bottom: 56px;
}

.privacy-consent-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.privacy-consent-head h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}

.privacy-consent-head p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}

.privacy-consent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.privacy-consent-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.22s ease;
}

.privacy-consent-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.06);
}

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

.consent-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fee2e2;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.consent-card-header h3 {
  font-size: 1.08rem;
  font-weight: 750;
  color: var(--navy);
  margin: 0;
}

.consent-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 16px;
}

.consent-card-details {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  margin-top: auto;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
}

.consent-card-details strong {
  color: var(--navy);
}

/* 4. Privacy Data Flow Diagram */
.privacy-flow-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px 32px;
  margin-bottom: 56px;
}

.privacy-flow-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.privacy-flow-head h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}

.privacy-flow-head p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0;
}

.privacy-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.flow-step-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fee2e2;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.flow-step-item h4 {
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--navy);
  margin: 0 0 6px;
}

.flow-step-item p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* 5. Sticky Two-Column Policy Layout */
.privacy-split-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 64px;
}

/* Left: Sticky Table of Contents */
.privacy-toc-sidebar {
  position: sticky;
  top: 90px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 18px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.privacy-toc-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.privacy-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.privacy-toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.18s ease;
}

.privacy-toc-link:hover {
  color: var(--primary);
  background: #fef2f2;
}

.privacy-toc-link.active {
  color: var(--primary);
  background: #fee2e2;
  font-weight: 700;
}

.privacy-toc-num {
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  flex-shrink: 0;
  width: 18px;
}

.privacy-toc-link.active .privacy-toc-num {
  color: var(--primary);
}

/* Right: Structured Policy Content Sections */
.privacy-content-stream {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.policy-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 30px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  scroll-margin-top: 100px;
}

.policy-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.policy-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fef2f2;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.policy-card-head h2 {
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}

.policy-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.policy-body p {
  margin: 0 0 14px;
}

.policy-body p:last-child {
  margin-bottom: 0;
}

.policy-body ul {
  padding-left: 20px;
  margin: 0 0 14px;
}

.policy-body li {
  margin-bottom: 8px;
}

.policy-body li:last-child {
  margin-bottom: 0;
}

.policy-callout-box {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  font-size: 0.88rem;
  color: #334155;
  margin: 16px 0;
  line-height: 1.6;
}

.policy-callout-box.security-accent {
  border-left-color: #0284c7;
  background: #f0f9ff;
  color: #0369a1;
}

/* 6. FAQ Accordion Section */
.privacy-faq-section {
  margin-bottom: 64px;
}

/* 7. Final Call to Action Banner */
.privacy-cta-card {
  background: linear-gradient(135deg, #17243a 0%, #0f172a 100%) !important;
  color: #ffffff !important;
  border-radius: 20px;
  padding: 48px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}

.privacy-cta-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 30, 36, 0.45) 0%, rgba(197, 30, 36, 0) 70%);
  pointer-events: none;
}

.privacy-cta-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.privacy-cta-desc {
  font-size: 1.05rem;
  color: #e2e8f0 !important;
  max-width: 680px;
  margin: 0 auto 30px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.privacy-cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.privacy-cta-buttons .button {
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 10px;
}

/* Mobile Dropdown for Table of Contents */
.privacy-mobile-toc {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.privacy-mobile-toc-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  background: #ffffff;
  outline: none;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .privacy-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .privacy-hero-sub {
    margin: 0 auto 20px;
  }
  .privacy-hero-ctas {
    justify-content: center;
  }
  .privacy-glance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .privacy-consent-grid {
    grid-template-columns: 1fr;
  }
  .privacy-flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .privacy-split-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .privacy-toc-sidebar {
    display: none;
  }
  .privacy-mobile-toc {
    display: block;
  }
}

@media (max-width: 768px) {
  .privacy-hero-section {
    padding: 44px 16px 36px;
  }
  .privacy-hero-title {
    font-size: 2.1rem;
  }
  .privacy-glance-grid {
    grid-template-columns: 1fr;
  }
  .privacy-flow-steps {
    grid-template-columns: 1fr;
  }
  .policy-card {
    padding: 24px 20px;
  }
  .privacy-consent-section {
    padding: 28px 20px;
  }
  .privacy-flow-section {
    padding: 28px 20px;
  }
  .privacy-cta-card {
    padding: 32px 20px;
  }
  .privacy-cta-title {
    font-size: 1.65rem;
  }
}

@media (max-width: 480px) {
  .privacy-hero-title {
    font-size: 1.75rem;
  }
  .privacy-hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .privacy-hero-ctas .button {
    width: 100%;
  }
  .privacy-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .privacy-cta-buttons .button {
    width: 100%;
  }
}

/* ==========================================================================
   TERMS & CONDITIONS PAGE (PREMIUM HEALTHCARE DESIGN SYSTEM)
   ========================================================================== */

.terms-page-container {
  min-height: calc(100vh - 70px);
  background: var(--bg);
  color: var(--text-main);
  animation: fadeIn 0.4s ease-out;
}

/* 1. Hero Section */
.terms-hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7f7 0%, #ffffff 50%, #fcebec 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px 52px;
}

.terms-hero-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 31, 38, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.terms-hero-section::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 36, 59, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.terms-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.terms-hero-text {
  text-align: left;
}

.terms-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fee2e2;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
  border: 1px solid rgba(197, 31, 38, 0.15);
}

.terms-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 31, 38, 0.2);
}

.terms-hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
}

.terms-hero-title .accent-text {
  color: var(--primary);
  background: linear-gradient(135deg, #c51f26 0%, #991b1b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.terms-hero-sub {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 620px;
}

.terms-metadata-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.terms-metadata-pill svg {
  color: var(--primary);
}

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

.terms-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.terms-illustration-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(197, 31, 38, 0.08));
}

/* 2. Content Body */
.terms-body-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.terms-main-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.terms-section-block {
  padding: 28px 0;
  border-bottom: 1px solid #f1f5f9;
}

.terms-section-block:first-child {
  padding-top: 0;
}

.terms-section-block:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.terms-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.terms-number-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #fee2e2;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
  flex-shrink: 0;
}

.terms-section-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.terms-section-body {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  padding-left: 46px;
}

.terms-notice-box {
  margin: 36px 0 0;
  background: #f8fafc;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.terms-notice-box svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.terms-notice-box strong {
  color: var(--navy);
}

/* Responsive */
@media (max-width: 1024px) {
  .terms-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .terms-hero-text {
    text-align: center;
  }
  .terms-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .terms-hero-ctas {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .terms-hero-section {
    padding: 44px 18px 36px;
  }
  .terms-hero-title {
    font-size: 2.1rem;
  }
  .terms-hero-sub {
    font-size: 1rem;
  }
  .terms-body-wrapper {
    padding: 32px 16px 64px;
  }
  .terms-main-card {
    padding: 28px 20px;
    border-radius: 18px;
  }
  .terms-section-head {
    align-items: flex-start;
  }
  .terms-section-body {
    padding-left: 0;
    margin-top: 10px;
    font-size: 0.92rem;
  }
}


/* ==========================================================================
   MEDICAL DISCLAIMER PAGE (PREMIUM CLINICAL ADVISORY DESIGN SYSTEM)
   ========================================================================== */

.disclaimer-page-container {
  min-height: calc(100vh - 70px);
  background: var(--bg);
  color: var(--text-main);
  animation: fadeIn 0.4s ease-out;
}

/* 1. Hero Section */
.disclaimer-hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fffdf5 0%, #ffffff 50%, #fffbeb 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px 52px;
}

.disclaimer-hero-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 138, 0, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.disclaimer-hero-section::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 36, 59, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.disclaimer-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.disclaimer-hero-text {
  text-align: left;
}

.disclaimer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
  border: 1px solid rgba(229, 138, 0, 0.25);
}

.disclaimer-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.disclaimer-hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
}

.disclaimer-hero-title .accent-text {
  color: #b45309;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.disclaimer-hero-sub {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 620px;
}

.disclaimer-metadata-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fefce8;
  color: #854d0e;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 24px;
  border: 1px solid #fef08a;
}

.disclaimer-metadata-pill svg {
  color: #d97706;
}

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

.disclaimer-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.disclaimer-illustration-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(217, 119, 6, 0.1));
}

/* 2. Content Body */
.disclaimer-body-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Warning Callout Box */
.disclaimer-warning-banner {
  background: #fffbeb;
  border-left: 5px solid #d97706;
  border-top: 1px solid #fef3c7;
  border-right: 1px solid #fef3c7;
  border-bottom: 1px solid #fef3c7;
  border-radius: 18px;
  padding: 28px 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.05);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.disclaimer-warning-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fef3c7;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.disclaimer-warning-content h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
  color: #92400e;
  font-weight: 800;
  line-height: 1.35;
}

.disclaimer-warning-content p {
  margin: 0;
  color: #78350f;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Main Content Cards */
.disclaimer-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 36px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  margin-bottom: 28px;
}

.disclaimer-card:last-child {
  margin-bottom: 0;
}

.disclaimer-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.disclaimer-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fef2f2;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.disclaimer-card-icon.emergency {
  background: #fef2f2;
  color: var(--primary);
}

.disclaimer-card-icon.clinical {
  background: #eff6ff;
  color: #0284c7;
}

.disclaimer-card-head h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}

.disclaimer-card-body {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.disclaimer-card-body p {
  margin: 0 0 14px;
}

.disclaimer-card-body p:last-child {
  margin-bottom: 0;
}

.disclaimer-checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.disclaimer-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.disclaimer-check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}

.disclaimer-emergency-callout {
  background: #fef2f2;
  border: 1.5px solid #fee2e2;
  border-radius: 14px;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 0.95rem;
  color: #991b1b;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 14px;
}

.disclaimer-emergency-callout strong {
  font-weight: 800;
  color: #7f1d1d;
}

/* Responsive */
@media (max-width: 1024px) {
  .disclaimer-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .disclaimer-hero-text {
    text-align: center;
  }
  .disclaimer-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .disclaimer-hero-ctas {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .disclaimer-hero-section {
    padding: 44px 18px 36px;
  }
  .disclaimer-hero-title {
    font-size: 2.1rem;
  }
  .disclaimer-hero-sub {
    font-size: 1rem;
  }
  .disclaimer-body-wrapper {
    padding: 32px 16px 64px;
  }
  .disclaimer-warning-banner {
    padding: 22px 20px;
    flex-direction: column;
    gap: 12px;
  }
  .disclaimer-card {
    padding: 26px 20px;
    border-radius: 18px;
  }
  .disclaimer-emergency-callout {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   HELP & FREQUENTLY ASKED QUESTIONS (PREMIUM KNOWLEDGE BASE SYSTEM)
   ========================================================================== */

.help-page-container {
  min-height: calc(100vh - 70px);
  background: var(--bg);
  color: var(--text-main);
  animation: fadeIn 0.4s ease-out;
}

/* 1. Hero Section */
.help-hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7f7 0%, #ffffff 50%, #fcebec 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px 52px;
}

.help-hero-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 31, 38, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.help-hero-section::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 36, 59, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.help-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.help-hero-text {
  text-align: left;
}

.help-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fee2e2;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
  border: 1px solid rgba(197, 31, 38, 0.15);
}

.help-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 31, 38, 0.2);
}

.help-hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
}

.help-hero-title .accent-text {
  color: var(--primary);
  background: linear-gradient(135deg, #c51f26 0%, #991b1b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.help-hero-sub {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 620px;
}

.help-metadata-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.help-metadata-pill svg {
  color: var(--primary);
}

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

.help-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.help-illustration-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(197, 31, 38, 0.08));
}

/* 2. Body Wrapper */
.help-body-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* 3. Search Bar */
.help-search-container {
  position: relative;
  margin-bottom: 24px;
}

.help-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.help-search-icon {
  position: absolute;
  left: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.help-search-input {
  width: 100%;
  height: 54px;
  padding: 12px 48px 12px 50px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
  outline: none;
}

.help-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(197, 31, 38, 0.12), 0 4px 14px rgba(15, 23, 42, 0.04);
}

.help-search-clear {
  position: absolute;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.help-search-clear:hover {
  color: var(--primary);
  background: #fee2e2;
}

/* 4. Category Filter Pills */
.help-filter-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 32px;
  scrollbar-width: thin;
}

.help-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.help-filter-btn:hover {
  border-color: #cbd5e1;
  color: var(--navy);
  background: #f8fafc;
}

.help-filter-btn.active {
  background: #fee2e2;
  border-color: rgba(197, 31, 38, 0.25);
  color: var(--primary);
  font-weight: 750;
}

.help-filter-count {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
}

.help-filter-btn.active .help-filter-count {
  background: rgba(197, 31, 38, 0.15);
  color: var(--primary);
}

/* 5. Accordion List */
.help-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 56px;
}

.help-faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.help-faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.help-faq-item.is-open {
  border-color: rgba(197, 31, 38, 0.22);
  box-shadow: 0 8px 24px -4px rgba(197, 31, 38, 0.08);
}

.help-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.18s ease;
}

.help-faq-trigger:hover {
  background: #fefcfc;
}

.help-faq-item.is-open .help-faq-trigger {
  background: #fff7f7;
}

.help-faq-qwrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.help-faq-cat-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  flex-shrink: 0;
}

.help-faq-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--navy);
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.help-faq-icon-toggle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.help-faq-icon-toggle svg {
  transition: transform 0.22s ease;
}

.help-faq-item:hover .help-faq-icon-toggle {
  background: #fee2e2;
  border-color: rgba(197, 31, 38, 0.2);
}

.help-faq-item.is-open .help-faq-icon-toggle {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.help-faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.help-faq-inner {
  padding: 0 24px 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.help-faq-inner p {
  margin: 0;
}

.help-faq-inner a {
  color: var(--primary);
  font-weight: 650;
  text-decoration: underline;
}

/* 6. Empty Search State */
.help-empty-state {
  display: none;
  text-align: center;
  padding: 48px 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 56px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.help-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fee2e2;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.help-empty-state h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}

.help-empty-state p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 20px;
}

/* 7. Still Have Questions Card */
.help-support-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff7f7 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 44px 36px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.help-support-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 31, 38, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.help-support-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #fee2e2;
  color: var(--primary);
  margin-bottom: 14px;
}

.help-support-card h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}

.help-support-card p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.help-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: var(--primary);
  color: #ffffff !important;
  font-size: 0.96rem;
  font-weight: 750;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(197, 31, 38, 0.25);
  transition: all 0.2s ease;
}

.help-support-btn:hover {
  background: #a8191e;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(197, 31, 38, 0.35);
}

/* Responsive */
@media (max-width: 1024px) {
  .help-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .help-hero-text {
    text-align: center;
  }
  .help-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .help-hero-ctas {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .help-hero-section {
    padding: 44px 18px 36px;
  }
  .help-hero-title {
    font-size: 2.1rem;
  }
  .help-hero-sub {
    font-size: 1rem;
  }
  .help-body-wrapper {
    padding: 32px 16px 64px;
  }
  .help-faq-trigger {
    padding: 16px 18px;
    align-items: flex-start;
  }
  .help-faq-qwrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .help-faq-inner {
    padding: 0 18px 18px;
  }
  .help-support-card {
    padding: 32px 20px;
  }
  .help-support-card h2 {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   FIND DONORS DISCOVERY PAGE (PREMIUM PRIVACY-ALIGNED DESIGN)
   ========================================================================== */

.find-donors-container {
  min-height: calc(100vh - 70px);
  background: var(--bg);
  color: var(--text-main);
  animation: fadeIn 0.4s ease-out;
}

/* 1. Hero Section - Compact, balanced header */
.find-donors-hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7f7 0%, #ffffff 50%, #fcebec 100%);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px 28px;
  text-align: center;
}

.find-donors-hero-inner {
  max-width: 840px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.find-donors-hero-text {
  text-align: center;
}

.find-donors-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fee2e2;
  color: var(--primary);
  font-weight: 750;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 9999px;
  margin-bottom: 10px;
  border: 1px solid rgba(197, 31, 38, 0.15);
}

.find-donors-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 31, 38, 0.2);
}

.find-donors-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.find-donors-hero-title .accent-text {
  color: var(--primary);
  background: linear-gradient(135deg, #c51f26 0%, #991b1b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.find-donors-hero-sub {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 620px;
}

/* 2. Main Content Wrapper */
.find-donors-body-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* 3. Search Filter Card */
.find-donors-search-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  margin-bottom: 24px;
}

.find-donors-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.find-donors-search-form .form-group {
  flex: 1 1 140px;
  min-width: 130px;
}

.find-donors-search-form .form-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 4px;
  display: block;
}

.find-donors-search-form .form-input {
  width: 100%;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  font-size: 0.88rem;
  padding: 0 10px;
  transition: all 0.2s ease;
}

.find-donors-search-form .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 31, 38, 0.12);
}

.find-donors-btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}

.find-donors-search-btn {
  height: 38px;
  padding: 0 18px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 750;
  font-size: 0.88rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(197, 31, 38, 0.2);
}

.find-donors-search-btn:hover {
  background: #a8191e;
  transform: translateY(-1px);
}

.find-donors-reset-btn {
  height: 38px;
  padding: 0 14px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  color: var(--navy);
  font-weight: 650;
  font-size: 0.88rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.find-donors-reset-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* 4. Results Section Header */
.find-donors-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 4px;
}

.find-donors-results-bar p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0;
}

.find-donors-results-bar strong {
  color: var(--navy);
  font-weight: 800;
}

.find-donors-results-notice {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 5. Enhanced Donor Card */
.donor-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  padding: 22px 20px;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  text-align: left;
  box-sizing: border-box;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.donor-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 26px -4px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(197, 31, 38, 0.1);
}

.donor-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.donor-card-user {
  display: flex;
  gap: 12px;
  align-items: center;
}

.donor-blood-tag {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary);
  background: #fee2e2;
  border: 1px solid rgba(197, 31, 38, 0.15);
  padding: 5px 12px;
  border-radius: 8px;
  letter-spacing: -0.01em;
}

.donor-card-meta {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.donor-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.donor-card-bottom {
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .find-donors-search-form .form-group {
    flex: 1 1 calc(50% - 12px);
  }
  .find-donors-btn-group {
    width: 100%;
  }
  .find-donors-btn-group .find-donors-search-btn {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .find-donors-hero-section {
    padding: 24px 16px 20px;
  }
  .find-donors-hero-title {
    font-size: 1.6rem;
  }
  .find-donors-hero-sub {
    font-size: 0.9rem;
  }
  .find-donors-body-wrapper {
    padding: 16px 14px 48px;
  }
  .find-donors-search-card {
    padding: 16px 14px;
    border-radius: 14px;
  }
  .find-donors-search-form .form-group {
    flex: 1 1 100%;
  }
  .find-donors-btn-group {
    width: 100%;
  }
  .find-donors-btn-group .find-donors-search-btn {
    flex: 1;
  }
  .find-donors-results-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ==========================================================================
   DONOR DASHBOARD PAGE (PREMIUM PRIVACY-ALIGNED DESIGN)
   ========================================================================== */

.donor-dashboard-page-container {
  min-height: calc(100vh - 70px);
  background: var(--bg);
  color: var(--text-main);
  animation: fadeIn 0.4s ease-out;
}

/* Hero Section - Compact & balanced */
.donor-dashboard-hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7f7 0%, #ffffff 50%, #fcebec 100%);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px 28px;
  text-align: center;
}

.donor-dashboard-hero-inner {
  max-width: 840px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.donor-dashboard-hero-text {
  text-align: center;
}

.donor-dashboard-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fee2e2;
  color: var(--primary);
  font-weight: 750;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 9999px;
  margin-bottom: 10px;
  border: 1px solid rgba(197, 31, 38, 0.15);
}

.donor-dashboard-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 31, 38, 0.2);
}

.donor-dashboard-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.donor-dashboard-hero-title .accent-text {
  color: var(--primary);
  background: linear-gradient(135deg, #c51f26 0%, #991b1b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.donor-dashboard-hero-sub {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 620px;
}

.donor-dashboard-body-wrapper {
  max-width: 1060px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

@media (max-width: 768px) {
  .donor-dashboard-hero-section {
    padding: 24px 16px 20px;
  }
  .donor-dashboard-hero-title {
    font-size: 1.6rem;
  }
  .donor-dashboard-hero-sub {
    font-size: 0.9rem;
  }
  .donor-dashboard-body-wrapper {
    padding: 16px 14px 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-page-container,
  .privacy-glance-card,
  .privacy-consent-card,
  .flow-step-item,
  .policy-card {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Phase 18: User Profile & Account Dashboard Redesign
   ========================================================================== */
.user-profile-dashboard {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 60px;
  box-sizing: border-box;
}

.profile-dashboard-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

@media (max-width: 960px) {
  .profile-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.profile-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  margin-bottom: 24px;
}

.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.profile-card-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 600px) {
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
}

.profile-info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(223, 230, 239, 0.6);
}

.profile-info-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.profile-info-value {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy);
  word-break: break-word;
}

.profile-avatar-large {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 auto 14px;
  box-shadow: 0 4px 14px rgba(197, 31, 38, 0.25);
  border: 3.5px solid #ffffff;
  outline: 2px solid rgba(197, 31, 38, 0.2);
}

.profile-avatar-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
  border: 3.5px solid #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  outline: 2px solid rgba(197, 31, 38, 0.2);
}

.profile-session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.profile-session-card.current {
  background: #ecfdf3;
  border-color: #a7f3d0;
}

.profile-security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  margin-bottom: 10px;
}

.profile-security-row:hover {
  background: #fbfcfe;
}

/* ==========================================================================
   MASTER RESPONSIVE SYSTEM: Cross-Device Compatibility & Fluid Adaptations
   Supports: 320px - 2560px+ across Mobile, Tablet, Laptop, Desktop, Ultrawide
   ========================================================================== */

/* 1. Universal Layout & Fluid Containment */
*, *::before, *::after {
  box-sizing: border-box;
}

img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

/* 2. Responsive Form Rows & Dynamic Grid Utilities */
.responsive-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.responsive-form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.request-details-grid-responsive {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.camp-filter-responsive-form {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 160px;
  gap: 14px;
  align-items: end;
}

.bank-filter-responsive-form {
  display: grid;
  grid-template-columns: 2fr 1fr 160px;
  gap: 14px;
  align-items: end;
}

.request-filter-responsive-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 160px;
  gap: 12px;
  align-items: end;
}

/* Table Responsive Scrolling Container */
.table-card,
.admin-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Accessible Touch Target & Interaction Defaults */
button,
.button,
.filter-select,
.filter-input,
.form-input,
.user-menu-trigger,
.lang-selector-btn,
.mobile-nav-toggle {
  touch-action: manipulation;
}

/* 3. Small Tablet & Mid-Sized Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  .camp-filter-responsive-form,
  .bank-filter-responsive-form,
  .request-filter-responsive-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .camp-filter-responsive-form .find-donors-btn-group,
  .bank-filter-responsive-form .find-donors-btn-group,
  .request-filter-responsive-form .find-donors-btn-group {
    grid-column: 1 / -1;
  }

  .requests-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  }
}

/* 4. Tablets & Portrait Screen Sizes (max-width: 768px) */
@media (max-width: 768px) {
  .site-header {
    padding: 10px 14px;
    gap: 8px;
  }

  .brand {
    font-size: 1.15rem;
    gap: 6px;
    flex-shrink: 0;
  }

  .brand img {
    height: 32px !important;
  }

  .nav-actions-group {
    gap: 6px;
    margin-left: auto;
  }

  .lang-selector-btn {
    padding: 6px 8px;
    font-size: 0.8rem;
    min-height: 36px;
    height: 36px;
  }

  .current-lang-text {
    max-width: 55px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-menu-trigger {
    padding: 4px 8px;
    gap: 6px;
    font-size: 0.82rem;
    min-height: 36px;
    height: 36px;
  }

  .user-menu-trigger span:not(:last-child) {
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-nav-avatar {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  .mobile-nav-toggle {
    min-width: 38px;
    min-height: 38px;
    padding: 6px;
  }

  .responsive-form-row,
  .responsive-form-row-3,
  .request-details-grid-responsive {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .camp-filter-responsive-form,
  .bank-filter-responsive-form,
  .request-filter-responsive-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .camp-filter-responsive-form .find-donors-btn-group,
  .bank-filter-responsive-form .find-donors-btn-group,
  .request-filter-responsive-form .find-donors-btn-group {
    grid-column: 1;
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .requests-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .requests-grid > *,
  .request-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .modal-content {
    max-width: 100%;
    width: 100%;
    max-height: 94vh;
    padding: 20px 16px;
    border-radius: 14px;
  }

  .requests-container,
  .requests-wrapper,
  .find-donors-body-wrapper,
  .user-profile-dashboard {
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .find-donors-search-card {
    padding: 16px 14px !important;
  }

  /* Admin Layout Responsiveness */
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    overflow-x: auto;
    padding: 12px 14px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .admin-sidebar-nav-btn {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .admin-main {
    padding: 16px 12px;
  }

  /* Toast notification responsiveness */
  .toast-container {
    bottom: 12px;
    left: 12px;
    right: 12px;
    max-width: calc(100vw - 24px);
  }

  .toast {
    width: 100%;
    max-width: 100%;
  }
}

/* 5. Mobile & Small Handheld Devices (max-width: 480px) */
@media (max-width: 480px) {
  .site-header {
    padding: 8px 10px;
    gap: 6px;
  }

  .brand {
    font-size: 1.05rem;
    gap: 5px;
    flex-shrink: 0;
  }

  .brand img {
    height: 28px !important;
  }

  .nav-actions-group {
    gap: 4px;
    margin-left: auto;
  }

  .lang-selector-btn {
    padding: 4px 6px;
    font-size: 0.78rem;
    min-height: 32px;
    height: 32px;
    gap: 4px;
  }

  .lang-globe-icon {
    width: 14px;
    height: 14px;
  }

  .current-lang-text {
    display: none;
  }

  .user-menu-trigger {
    padding: 3px 6px;
    gap: 4px;
    font-size: 0.78rem;
    min-height: 32px;
    height: 32px;
  }

  .user-menu-trigger span:not(:last-child) {
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-nav-avatar {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .mobile-nav-toggle {
    min-width: 34px;
    min-height: 34px;
    padding: 4px;
  }

  .mobile-nav-toggle svg {
    width: 20px;
    height: 20px;
  }

  #authNavContainer .button,
  #authNavContainer a.button {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
  }

  .auth-card {
    padding: 24px 16px !important;
    border-radius: 14px !important;
    margin: 16px auto !important;
  }

  /* Button Touch-Target Sizing & Minimum Dimensions */
  .button,
  button[type="submit"],
  .filter-select,
  .form-input,
  .filter-input {
    min-height: 44px;
    font-size: 0.92rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .hero-cta-group .button {
    width: 100%;
    justify-content: center;
  }

  .hero-disclaimer-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 14px;
    font-size: 0.8rem;
    box-sizing: border-box !important;
  }

  /* Cards & Requests Grid single column */
  .requests-grid,
  .find-donors-grid,
  .dashboard-grid,
  .profile-dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .requests-grid > *,
  .find-donors-grid > *,
  .dashboard-grid > *,
  .profile-dashboard-grid > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .request-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 18px 16px !important;
    box-sizing: border-box !important;
  }

  .request-card .request-details-grid {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Modal Actions vertical stacking on narrow screens */
  .modal-actions-group {
    flex-direction: column;
    width: 100%;
  }

  .modal-actions-group .button {
    width: 100% !important;
  }
}

/* 6. Extra Small Screens (320px - 374px) */
@media (max-width: 374px) {
  .site-header {
    padding: 8px 10px;
  }

  .brand {
    font-size: 1.02rem;
  }

  .brand img {
    height: 28px !important;
  }

  .current-lang-text {
    display: none;
  }

  .lang-selector-btn {
    padding: 6px 6px;
  }

  #authNavContainer .button-outline {
    display: none;
  }

  .auth-card {
    padding: 20px 12px !important;
  }

  .modal-content {
    padding: 16px 12px;
  }

  .badge {
    font-size: 0.68rem;
    padding: 3px 6px;
  }
}

/* 7. Ultrawide & High-Resolution Displays (min-width: 1920px) */
@media (min-width: 1920px) {
  .site-header {
    padding: 18px max(10vw, 40px);
  }

  .main-content {
    max-width: 1800px;
    margin: 0 auto;
  }

  .requests-container,
  .find-donors-body-wrapper,
  .find-donors-hero-inner {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
  }

  .requests-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  }
}

/* 8. Safe Area Insets for Modern Mobile Notches */
@supports (padding: env(safe-area-inset-bottom)) {
  .site-header {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-left: calc(14px + env(safe-area-inset-left, 0px));
    padding-right: calc(14px + env(safe-area-inset-right, 0px));
  }

  .main-content {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .modal-content {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}

