/* Align - Premium Ergonomic E-Commerce Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Caveat:wght@700&display=swap');

:root {
  /* ALIGN Brand Color System - Clinical Editorial Palette */
  --primary: 220 15% 10%;        /* Crisp charcoal-black */
  --primary-light: 220 12% 18%;
  --accent: 124 14% 20%;         /* ALIGN Dark Green: #2B392C */
  --accent-light: 103 34% 80%;   /* ALIGN Light Green: #C5DDBB */
  --accent-dark: 124 18% 13%;    /* Deep Forest Green */
  --accent-glow: hsla(124, 14%, 20%, 0.12);
  
  --green-dark: #2B392C;
  --green-light: #C5DDBB;
  --green-subtle: #F2F7F0;
  
  --bg-light: 210 20% 98%;       /* Clean Off-white / Pure background */
  --bg-card: 0 0% 100%;
  --text-dark: 220 20% 10%;      /* Crisp Dark Text */
  --text-muted: 220 12% 42%;     /* Muted Grey Text */
  --text-light: 210 30% 98%;     /* Light Text */
  
  --secondary: 124 14% 20%;      /* Secondary accent */
  --danger: 350 75% 55%;
  --success: 124 14% 20%;
  
  /* Font Family definitions */
  --font-title: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-logo: 'Plus Jakarta Sans', sans-serif;
  
  /* Styling Tokens */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 6px 20px rgba(12, 20, 33, 0.04);
  --shadow-lg: 0 12px 36px rgba(12, 20, 33, 0.06);
  --shadow-accent: 0 8px 24px hsla(124, 14%, 20%, 0.12);
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: hsl(var(--bg-light));
  color: hsl(var(--text-dark));
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  color: hsl(var(--primary));
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container Utility */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Floating Navigation */
header.site-nav-header, header:first-of-type {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition-normal);
}

header.scrolled {
  height: 80px;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-wrapper {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.align-logo-container {
  display: flex;
  align-items: center;
  gap: 0px; /* Snug fit as in the image */
  cursor: pointer;
}

.header-logo {
  width: 124px;
  height: auto;
  object-fit: contain;
  transition: var(--transition-normal);
}

header.scrolled .header-logo {
  width: 124px;
  height: auto;
}

.logo-orange-block {
  width: 42px;
  height: 42	px;
  background-color: #fe5801; /* Vibrant Orange */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 4px 0 0 4px;
  box-shadow: 0 4px 12px rgba(254, 88, 1, 0.2);
}

.logo-triangle-svg {
  width: 70px;
  height: auto;
}

.logo-script-text {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 32px;
  color: hsl(var(--primary));
  padding-left: 6px;
  padding-right: 6px;
  line-height: 1;
  letter-spacing: -0.5px;
  display: inline-block;
  transform: translateY(-2px); /* Slight shift up for handwritten script feel */
}

/* Light background override for dark headers/footers */
footer .logo-script-text {
  color: white !important;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

nav ul li a {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 15px;
  color: hsl(var(--primary-light));
  position: relative;
  padding: 6px 0;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: hsl(var(--accent));
  transition: var(--transition-fast);
}

nav ul li a:hover {
  color: hsl(var(--accent-dark));
}

nav ul li a:hover::after,
nav ul li.active a::after,
nav ul li a.active::after {
  width: 100%;
}

nav ul li.active a,
nav ul li a.active {
  color: hsl(var(--accent-dark));
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Icon Buttons */
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
  transition: var(--transition-fast);
  position: relative;
  background-color: rgba(0, 0, 0, 0.02);
}

.icon-btn:hover {
  background-color: hsl(var(--accent-glow));
  color: hsl(var(--accent-dark));
}

.icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: hsl(var(--accent));
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid white;
  animation: pop-badge 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  white-space: nowrap;
  cursor: pointer; /* Ensure pointer finger cursor always shows */
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--text-light));
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: hsl(var(--primary-light));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(12, 20, 33, 0.15);
}

.btn-accent {
  background-color: hsl(var(--accent));
  color: white;
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  background-color: hsl(var(--accent-light));
  transform: translateY(-2px);
  box-shadow: 0 16px 36px hsla(21, 99%, 50%, 0.35);
}

.btn-outline {
  background-color: transparent; /* Fix conflict with solid background classes */
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
}

.btn-outline:hover {
  background-color: hsl(var(--primary));
  color: white;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

/* Glassmorphism Card Utilities */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Sidebar Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(12, 20, 33, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background-color: white;
  z-index: 2001;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 20px;
  font-family: var(--font-title);
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 16px;
  animation: slide-in-item 0.3s ease;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  background-color: #f0f4f8;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  color: hsl(var(--primary));
  margin-bottom: 4px;
}

.cart-item-price {
  font-weight: 700;
  font-size: 14px;
  color: hsl(var(--accent-dark));
  margin-bottom: 8px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background-color: hsl(var(--accent));
  color: white;
}

.qty-val {
  font-size: 13px;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
}

.cart-item-remove {
  color: hsl(var(--text-muted));
  transition: var(--transition-fast);
  padding: 8px;
  border-radius: var(--radius-full);
}

.cart-item-remove:hover {
  color: hsl(var(--danger));
  background-color: rgba(220, 50, 50, 0.05);
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background-color: hsl(var(--bg-light));
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 12px;
  color: hsl(var(--text-muted));
}

.cart-total-line {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 20px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: hsl(var(--text-muted));
  gap: 16px;
}

.cart-empty svg {
  color: rgba(0, 0, 0, 0.15);
}

/* Animations */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(254, 88, 1, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(254, 88, 1, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(254, 88, 1, 0);
  }
}

@keyframes pop-badge {
  0% {
    transform: scale(0);
  }
  80% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes slide-in-item {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Main Section Layouts */
main {
  margin-top: 80px; /* Offset for floating header */
}

section {
  padding: 80px 0;
}

/* Hero Section */
.hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, hsla(21, 99%, 50%, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, hsla(220, 40%, 15%, 0.03) 0%, transparent 50%);
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: hsl(var(--accent-glow));
  color: hsl(var(--accent-dark));
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 24px;
  border: 1px solid hsla(21, 99%, 50%, 0.15);
}

.hero-title {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, hsl(var(--accent-dark)), hsl(var(--accent)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 18px;
  color: hsl(var(--text-muted));
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-features {
  display: flex;
  gap: 32px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: hsl(var(--primary));
}

.hero-feature-item svg {
  color: hsl(var(--accent));
  flex-shrink: 0;
}

.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-bg {
  position: absolute;
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, hsla(21, 99%, 50%, 0.12) 0%, transparent 70%);
  z-index: 1;
}

.hero-image {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background-color: white;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  max-width: 440px;
}

.hero-card-floating {
  position: absolute;
  bottom: 30px;
  left: -40px;
  z-index: 3;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Category Grid Section */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.section-tag {
  color: hsl(var(--accent-dark));
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: hsl(var(--primary));
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: hsl(var(--text-muted));
  font-size: 16px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.category-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 320px;
}

.category-card-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background-color: hsl(var(--accent-glow));
  color: hsl(var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition-normal);
}

.category-card:hover .category-card-icon {
  background-color: hsl(var(--accent));
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.category-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.category-card p {
  color: hsl(var(--text-muted));
  font-size: 14px;
  margin-bottom: 24px;
  flex: 1;
}

.category-card-link {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  color: hsl(var(--accent-dark));
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-card-link svg {
  transition: transform var(--transition-fast);
}

.category-card:hover .category-card-link svg {
  transform: translateX(4px);
}

/* Home Products / Bestsellers */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  border-radius: var(--radius-md);
  background-color: white;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(17, 204, 153, 0.15);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: hsl(var(--primary));
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  z-index: 5;
  letter-spacing: 0.5px;
}

.product-badge.popular {
  background-color: hsl(var(--accent));
}

.product-card-img-wrapper {
  position: relative;
  background-color: #f7fafc;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-card-img {
  max-height: 200px;
  object-fit: contain;
  transition: var(--transition-normal);
}

.product-card:hover .product-card-img {
  transform: scale(1.08);
}

.product-card-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.product-card-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: hsl(var(--accent-dark));
  letter-spacing: 1px;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: hsl(var(--primary));
}

.product-card-rating svg {
  color: hsl(var(--secondary));
  fill: hsl(var(--secondary));
}

.product-card-rating span {
  color: hsl(var(--text-muted));
  font-weight: 500;
}

.product-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: hsl(var(--primary));
  line-height: 1.3;
}

.product-card-desc {
  font-size: 13px;
  color: hsl(var(--text-muted));
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 16px;
}

.product-card-price {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  color: hsl(var(--primary));
}

.add-to-cart-quick {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: hsl(var(--primary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.add-to-cart-quick:hover {
  background-color: hsl(var(--accent));
  transform: scale(1.05);
}

/* Posture Quiz CTA Banner */
.quiz-cta {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-light)));
  color: white;
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.quiz-cta::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, hsla(21, 99%, 50%, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.quiz-cta-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.quiz-cta h2 {
  color: white;
  font-size: 42px;
  font-weight: 850;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.quiz-cta h2 span {
  color: hsl(var(--accent));
}

.quiz-cta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
  margin-bottom: 36px;
  line-height: 1.5;
}

/* Science & Medical Benefits Section */
.science-section {
  background-color: white;
}

.science-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.science-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.science-content h2 {
  font-size: 38px;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.science-text {
  color: hsl(var(--text-muted));
  margin-bottom: 32px;
}

.benefit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.benefit-item {
  display: flex;
  gap: 16px;
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: hsl(var(--accent-glow));
  color: hsl(var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.benefit-item p {
  color: hsl(var(--text-muted));
  font-size: 13px;
}

/* Testimonials / Social Proof */
.testimonials {
  background: linear-gradient(180deg, hsl(var(--bg-light)) 0%, white 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: hsl(var(--secondary));
  fill: hsl(var(--secondary));
  margin-bottom: 16px;
}

.testimonial-quote {
  font-size: 15px;
  color: hsl(var(--primary));
  font-style: italic;
  margin-bottom: 24px;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: hsl(var(--primary));
  font-size: 14px;
}

.testimonial-author-info h4 {
  font-size: 14px;
  font-weight: 700;
}

.testimonial-author-info span {
  font-size: 12px;
  color: hsl(var(--text-muted));
}

/* Footer Section */
footer {
  background-color: hsl(var(--primary));
  color: hsl(var(--text-light));
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-info .logo-text {
  color: white;
  margin-bottom: 20px;
}

.footer-info p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background-color: hsl(var(--accent));
  transform: translateY(-2px);
}

.footer-column h4 {
  color: white;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.footer-links li a:hover {
  color: hsl(var(--accent-light));
  padding-left: 4px;
}

.footer-newsletter h4 {
  margin-bottom: 12px;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  color: white;
  transition: var(--transition-fast);
}

.newsletter-input:focus {
  border-color: hsl(var(--accent));
  background-color: rgba(255, 255, 255, 0.09);
}

.newsletter-btn {
  background-color: hsl(var(--accent));
  color: white;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.newsletter-btn:hover {
  background-color: hsl(var(--accent-light));
  transform: scale(1.05);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: hsl(var(--accent-light));
}

/* Shop (Catalog) Page Specific Styling */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.shop-sidebar {
  position: sticky;
  top: 100px;
}

.filter-section {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.filter-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.filter-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: hsl(var(--primary-light));
  cursor: pointer;
  user-select: none;
}

.filter-checkbox {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-sm);
  border: 2.5px solid rgba(0, 0, 0, 0.15);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.filter-checkbox:checked {
  background-color: hsl(var(--accent));
  border-color: hsl(var(--accent));
}

.filter-checkbox:checked::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  top: 1px;
  left: 5px;
}

.filter-checkbox-label:hover .filter-checkbox {
  border-color: hsl(var(--accent-dark));
}

.shop-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.shop-results-count {
  font-weight: 500;
  color: hsl(var(--text-muted));
  font-size: 15px;
}

.shop-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-sort-label {
  font-size: 14px;
  font-weight: 600;
  color: hsl(var(--primary-light));
}

.shop-sort-select {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: white;
  font-size: 14px;
  font-weight: 600;
  color: hsl(var(--primary));
  cursor: pointer;
  transition: var(--transition-fast);
}

.shop-sort-select:hover {
  border-color: hsl(var(--accent));
}

.search-bar-wrapper {
  width: 100%;
  max-width: 500px;
  position: relative;
  margin-bottom: 40px;
}

.search-input {
  width: 100%;
  background-color: white;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 20px 16px 52px;
  font-size: 15px;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: hsl(var(--accent));
  box-shadow: var(--shadow-accent);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--text-muted));
}

/* Product Detail Page Specific Styling */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-image-wrapper {
  background-color: #f7fafc;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.1;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.main-image-wrapper img {
  max-height: 400px;
  object-fit: contain;
}

.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.thumbnail-card {
  background-color: #f7fafc;
  border-radius: var(--radius-md);
  padding: 10px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
}

.thumbnail-card:hover,
.thumbnail-card.active {
  border-color: hsl(var(--accent));
  background-color: white;
}

.thumbnail-card img {
  max-height: 70px;
  object-fit: contain;
}

.product-info-column {
  display: flex;
  flex-direction: column;
}

.product-detail-category {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: hsl(var(--accent-dark));
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.product-detail-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.product-detail-rating-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 20px;
}

.product-detail-price {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  color: hsl(var(--primary));
  margin-bottom: 24px;
}

.product-detail-desc {
  font-size: 15px;
  color: hsl(var(--text-muted));
  margin-bottom: 32px;
}

.product-action-row {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  align-items: center;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 2px solid hsl(var(--primary));
  border-radius: var(--radius-md);
  padding: 6px;
  height: 52px;
}

.qty-selector .qty-btn {
  width: 36px;
  height: 36px;
  background-color: transparent;
}

.qty-selector .qty-btn:hover {
  background-color: hsl(var(--accent-glow));
  color: hsl(var(--accent-dark));
}

.qty-selector .qty-val {
  min-width: 36px;
  font-size: 15px;
}

.product-detail-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background-color: white;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.p-feature-item {
  display: flex;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
}

.p-feature-item svg {
  color: hsl(var(--accent));
  flex-shrink: 0;
}

.p-feature-item h5 {
  font-size: 14px;
  margin-bottom: 2px;
}

.p-feature-item p {
  color: hsl(var(--text-muted));
}

/* Tabs for Spec & Benefits */
.detail-tabs {
  margin-top: 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 40px;
}

.tab-headers {
  display: flex;
  gap: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.tab-header {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  color: hsl(var(--text-muted));
  padding-bottom: 16px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.tab-header:hover {
  color: hsl(var(--primary));
}

.tab-header.active {
  color: hsl(var(--accent-dark));
}

.tab-header.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: hsl(var(--accent));
  border-radius: var(--radius-full);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: slide-in-item 0.4s ease;
}

/* Posture Quiz Interface Styling */
.quiz-container {
  max-width: 720px;
  margin: 40px auto;
  padding: 48px;
}

.quiz-progress-bar-wrapper {
  width: 100%;
  height: 6px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-full);
  margin-bottom: 40px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, hsl(var(--accent-dark)), hsl(var(--accent)));
  border-radius: var(--radius-full);
  transition: width var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: slide-in-item 0.4s ease;
}

.quiz-question {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 32px;
  text-align: center;
  color: hsl(var(--primary));
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.quiz-option {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  border: 2px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  background-color: white;
  transition: var(--transition-normal);
}

.quiz-option:hover {
  border-color: hsl(var(--accent-light));
  background-color: hsl(var(--accent-glow));
  transform: translateY(-2px);
}

.quiz-option.selected {
  border-color: hsl(var(--accent));
  background-color: hsl(var(--accent-glow));
  box-shadow: var(--shadow-sm);
}

.quiz-option-dot {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.quiz-option.selected .quiz-option-dot {
  border-color: hsl(var(--accent));
  background-color: hsl(var(--accent));
}

.quiz-option-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: white;
  display: none;
}

.quiz-option.selected .quiz-option-dot::after {
  display: block;
}

.quiz-option-text {
  font-weight: 600;
  font-size: 15px;
  color: hsl(var(--primary));
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

/* Quiz Recommendation Screen */
.quiz-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
}

.quiz-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(17, 204, 153, 0.15);
  border-top-color: hsl(var(--accent));
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.recommendation-card {
  text-align: center;
}

.recommendation-badge {
  background-color: hsl(var(--accent));
  color: white;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13px;
  display: inline-block;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.recommendation-product-box {
  background-color: #f7fafc;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
  margin: 32px 0;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.rec-img-wrapper {
  background-color: white;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rec-details h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.rec-details .price {
  font-size: 22px;
  font-weight: 800;
  color: hsl(var(--accent-dark));
  margin-bottom: 16px;
}

.rec-details p {
  color: hsl(var(--text-muted));
  font-size: 14px;
  margin-bottom: 24px;
}

/* Checkout Page Styling */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

.checkout-card {
  padding: 40px;
}

.checkout-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.checkout-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 20px;
  right: 20px;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.checkout-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  position: relative;
}

.checkout-step-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: #e2e8f0;
  color: hsl(var(--text-muted));
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border: 2px solid white;
  transition: var(--transition-fast);
}

.checkout-step-label {
  font-size: 12px;
  font-weight: 600;
  color: hsl(var(--text-muted));
}

.checkout-step-indicator.active .checkout-step-circle {
  background-color: hsl(var(--primary));
  color: white;
  box-shadow: 0 0 0 4px rgba(12, 20, 33, 0.1);
}

.checkout-step-indicator.active .checkout-step-label {
  color: hsl(var(--primary));
  font-weight: 700;
}

.checkout-step-indicator.completed .checkout-step-circle {
  background-color: hsl(var(--accent));
  color: white;
}

.checkout-step-content {
  display: none;
}

.checkout-step-content.active {
  display: block;
  animation: slide-in-item 0.4s ease;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: hsl(var(--primary-light));
}

.form-input {
  width: 100%;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  transition: var(--transition-fast);
  background-color: hsl(var(--bg-light));
}

.form-input:focus {
  border-color: hsl(var(--accent));
  background-color: white;
  box-shadow: var(--shadow-sm);
}

/* Virtual Credit Card Display */
.card-preview-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.virtual-card {
  width: 100%;
  max-width: 340px;
  height: 200px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-light)));
  color: white;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.virtual-card::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, hsla(21, 99%, 50%, 0.2) 0%, transparent 70%);
  top: -60px;
  right: -60px;
}

.v-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.v-card-chip {
  width: 40px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.v-card-logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.v-card-number {
  font-family: monospace;
  font-size: 18px;
  letter-spacing: 2px;
  margin: 20px 0;
  position: relative;
  z-index: 2;
}

.v-card-bottom {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.v-card-label {
  font-size: 9px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}

.v-card-value {
  font-size: 13px;
  font-weight: 500;
}

/* Order Summary */
.checkout-summary-card {
  padding: 32px;
  background-color: white;
}

.checkout-summary-title {
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.summary-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.summary-item-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: #f0f4f8;
  object-fit: cover;
}

.summary-item-info {
  flex: 1;
}

.summary-item-name {
  font-size: 13px;
  font-weight: 600;
}

.summary-item-qty {
  font-size: 12px;
  color: hsl(var(--text-muted));
}

.summary-item-price {
  font-weight: 700;
  font-size: 13px;
}

/* Success Confetti View */
.success-card {
  text-align: center;
  padding: 60px 40px;
}

.success-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background-color: hsl(var(--accent-glow));
  color: hsl(var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.order-timeline {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
  position: relative;
}

.order-timeline::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 30px;
  right: 30px;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: #cbd5e1;
  border: 2px solid white;
}

.timeline-step.active .timeline-dot {
  background-color: hsl(var(--accent));
  box-shadow: 0 0 0 4px hsla(21, 99%, 50%, 0.2);
}

.timeline-label {
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
  color: hsl(var(--text-muted));
}

.timeline-step.active .timeline-label {
  color: hsl(var(--accent-dark));
  font-weight: 700;
}

/* Confetti canvas overlay */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* Mobile Responsiveness Rules */
@media (max-width: 1024px) {
  .hero-grid,
  .science-grid,
  .shop-layout,
  .product-detail-grid,
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-image-container {
    order: -1;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 40px;
  }
  
  .category-grid,
  .product-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  nav {
    display: none; /* In a true site we'd make a burger, but we'll keep it simple for now or build it in */
  }
  
  .quiz-cta {
    padding: 40px 30px;
  }
  
  .benefit-list {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
}

/* ==========================================
   Injury Center & Brace Advisor Custom Styles
   ========================================== */

/* Injury Center Page Layout */
.injury-center-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  margin-top: 20px;
}

.anatomy-selector-container {
  width: 100%;
}

.anatomy-selector-wrapper {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.anatomy-model-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.95;
  transition: var(--transition-normal);
  mix-blend-mode: multiply; /* Removes white background from realistic model */
  filter: drop-shadow(0 12px 24px rgba(12, 20, 33, 0.05));
}

.anatomy-hotspot {
  position: absolute;
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%); /* Center hotspot on coordinate percentage */
}

.hotspot-dot {
  width: 12px;
  height: 12px;
  background-color: hsl(var(--accent));
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 0 10px hsl(var(--accent));
  transition: var(--transition-fast);
  border: 2px solid white;
}

.hotspot-pulse {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid hsl(var(--accent));
  border-radius: var(--radius-full);
  animation: pulse-ring 2s infinite ease-out;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.anatomy-hotspot:hover .hotspot-dot {
  transform: scale(1.3);
  background-color: hsl(var(--accent-light));
  box-shadow: 0 0 14px hsl(var(--accent-light));
}

.anatomy-hotspot.active .hotspot-dot {
  background-color: hsl(var(--accent));
  transform: scale(1.4);
  box-shadow: 0 0 16px hsl(var(--accent)), 0 0 0 5px hsla(21, 99%, 50%, 0.25);
  border-color: white;
}

.anatomy-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.anatomy-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  color: hsl(var(--primary-light));
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-normal);
}

.anatomy-nav-item:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateX(4px);
}

.anatomy-nav-item.active {
  background: hsl(var(--primary));
  color: white;
  border-color: hsl(var(--primary));
  box-shadow: var(--shadow-md);
}

.anatomy-nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.05);
}

.anatomy-nav-item.active .anatomy-nav-icon {
  background-color: rgba(255, 255, 255, 0.15);
}

.injury-details-pane {
  animation: fadeIn 0.4s ease forwards;
}

.injury-guide-section {
  margin-bottom: 36px;
}

.injury-guide-section h3 {
  font-size: 22px;
  margin-bottom: 12px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 8px;
}

.symptom-timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.symptom-box, .recovery-timeline-box {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.stretch-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stretch-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.stretch-number {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: hsl(var(--accent-glow));
  color: hsl(var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-title);
  flex-shrink: 0;
}

.matched-product-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-lg);
  margin-top: 30px;
}

.matched-product-img-wrapper {
  background-color: #f7fafc;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.matched-product-img-wrapper img {
  max-height: 180px;
  object-fit: contain;
}

/* Brace Advisor Wizard */
.advisor-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.advisor-header {
  text-align: center;
  margin-bottom: 40px;
}

.advisor-progress-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.advisor-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: hsl(var(--text-muted));
}

.advisor-progress-bg {
  height: 6px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.advisor-progress-bar {
  height: 100%;
  background-color: hsl(var(--accent));
  width: 0%;
  transition: width 0.4s ease;
}

.advisor-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.advisor-card-grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.advisor-selection-card {
  padding: 30px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.advisor-selection-card:hover {
  background: white;
  border-color: hsl(var(--accent-light));
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.advisor-selection-card.selected {
  background: white;
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 1px hsl(var(--accent)), var(--shadow-md);
}

.advisor-selection-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
  transition: all var(--transition-fast);
}

.advisor-selection-card.selected .advisor-selection-icon {
  background-color: hsl(var(--accent-glow));
  color: hsl(var(--accent-dark));
}

.advisor-selection-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.advisor-selection-card p {
  font-size: 13px;
  color: hsl(var(--text-muted));
  margin: 0;
}

/* Advisor Wizard Step Controller */
.advisor-step {
  display: none;
}

.advisor-step.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

.advisor-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 24px;
}

/* Loading animation for calculations */
.calc-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  text-align: center;
}

.calc-spinner {
  width: 64px;
  height: 64px;
  border: 4px solid rgba(0, 0, 0, 0.05);
  border-top-color: hsl(var(--accent));
  border-radius: var(--radius-full);
  animation: spin 1s infinite linear;
  margin-bottom: 24px;
}

.calc-status {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 8px;
  min-height: 28px;
}

.calc-substatus {
  font-size: 14px;
  color: hsl(var(--text-muted));
  min-height: 20px;
}

/* Result Presentation styles */
.advisor-result-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-lg);
}

.result-badge {
  display: inline-block;
  background-color: hsl(var(--success));
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.result-diagnostic-box {
  background-color: hsl(var(--bg-light));
  border-radius: var(--radius-md);
  padding: 24px;
  border-left: 4px solid hsl(var(--accent));
  margin-bottom: 30px;
}

.result-diagnostic-box h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.result-diagnostic-box p {
  font-size: 14px;
  color: hsl(var(--text-dark));
  line-height: 1.5;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .injury-center-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .anatomy-selector-wrapper {
    margin: 0 auto;
  }
  
  .anatomy-nav-item {
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .advisor-card-grid, .advisor-card-grid.cols-2 {
    grid-template-columns: 1fr;
  }
  
  .symptom-timeline-grid {
    grid-template-columns: 1fr;
  }
  
  .matched-product-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .matched-product-img-wrapper {
    max-width: 240px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   User Dropdown Navigation & Authentication Layout
   ========================================================================== */

/* User Menu Wrapper and Dropdown in Header */
.user-menu-wrapper {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 290px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition-normal);
  z-index: 1001;
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 8px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-light)));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.user-details h4 {
  font-size: 15px;
  font-weight: 700;
  color: hsl(var(--primary));
  line-height: 1.2;
}

.user-details p {
  font-size: 12px;
  color: hsl(var(--text-muted));
  word-break: break-all;
}

.dropdown-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.08);
  margin: 16px 0;
}

.dropdown-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dropdown-menu-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: hsl(var(--primary-light));
  padding: 4px 0;
}

.dropdown-menu-list li a svg {
  color: hsl(var(--text-muted));
  transition: var(--transition-fast);
}

.dropdown-menu-list li a:hover {
  color: hsl(var(--accent-dark));
}

.dropdown-menu-list li a:hover svg {
  color: hsl(var(--accent));
  transform: translateX(2px);
}

.dropdown-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background-color: rgba(220, 50, 50, 0.04);
  color: hsl(var(--danger));
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.dropdown-logout-btn:hover {
  background-color: hsl(var(--danger));
  color: white;
}

.dropdown-welcome h4 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 700;
}

.dropdown-welcome p {
  font-size: 12px;
  color: hsl(var(--text-muted));
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Auth Pages Split Layout */
.auth-page-title {
  font-size: 40px;
  font-weight: 800;
  text-align: left;
  margin-bottom: 40px;
  color: hsl(var(--primary));
  letter-spacing: -1px;
}

.auth-split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.auth-form-card, .auth-promo-card {
  padding: 40px;
}

.auth-card-title {
  font-size: 24px;
  font-weight: 800;
  color: hsl(var(--primary));
  margin-bottom: 8px;
}

.auth-card-subtitle {
  font-size: 14.5px;
  color: hsl(var(--text-muted));
  margin-bottom: 30px;
}

.auth-actions-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

.auth-helper-link {
  font-size: 13.5px;
  font-weight: 600;
  color: hsl(var(--text-muted));
  text-decoration: underline;
}

.auth-helper-link:hover {
  color: hsl(var(--accent-dark));
}

.benefit-checkbox-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.benefit-checkbox-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: hsl(var(--primary-light));
}

.benefit-checkbox-list li span {
  line-height: 1.3;
}

.check-icon {
  color: hsl(var(--success));
  flex-shrink: 0;
  margin-top: 2px;
}

/* Form inputs styling additions */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  color: hsl(var(--primary));
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: hsl(var(--text-dark));
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: hsl(var(--accent-dark));
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.password-toggle-btn {
  position: absolute;
  right: 16px;
  bottom: 11px;
  color: hsl(var(--text-muted));
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  background: none;
}

.password-toggle-btn:hover {
  color: hsl(var(--accent-dark));
}

.required {
  color: hsl(var(--accent-dark));
  font-weight: 700;
}

/* Custom Alert Boxes */
.alert-box {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.4;
  animation: slide-in-item 0.3s ease;
}

.alert-box.error {
  background-color: rgba(220, 50, 50, 0.05);
  color: hsl(var(--danger));
  border: 1px solid rgba(220, 50, 50, 0.15);
}

.alert-box.success {
  background-color: rgba(20, 150, 80, 0.05);
  color: hsl(var(--success));
  border: 1px solid rgba(20, 150, 80, 0.15);
}

/* ==========================================================================
   Dashboard Page Layout Styles
   ========================================================================== */

.dashboard-banner {
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
}

.banner-avatar {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, hsl(var(--accent-dark)), hsl(var(--accent)));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 32px;
  box-shadow: var(--shadow-accent);
  flex-shrink: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.banner-welcome-text h1 {
  font-size: 32px;
  font-weight: 800;
  color: hsl(var(--primary));
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.banner-welcome-text p {
  color: hsl(var(--text-muted));
  font-size: 15px;
  max-width: 700px;
  line-height: 1.5;
}

.banner-greeting-tag {
  color: hsl(var(--accent-dark));
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
}

.logout-banner-btn {
  margin-left: auto;
  flex-shrink: 0;
}

/* Dashboard main panels layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.dashboard-sidebar {
  padding: 16px;
}

.dashboard-sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-sidebar-menu li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  color: hsl(var(--primary-light));
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dashboard-sidebar-menu li svg {
  color: hsl(var(--text-muted));
  transition: var(--transition-fast);
}

.dashboard-sidebar-menu li:hover {
  background-color: rgba(0, 0, 0, 0.02);
  color: hsl(var(--accent-dark));
}

.dashboard-sidebar-menu li.active {
  background-color: hsl(var(--accent-glow));
  color: hsl(var(--accent-dark));
}

.dashboard-sidebar-menu li.active svg {
  color: hsl(var(--accent-dark));
}

/* Panels switching control */
.dashboard-panel {
  display: none;
}

.dashboard-panel.active {
  display: block;
}

.panel-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.panel-card {
  padding: 30px;
}

.panel-wide-card {
  padding: 35px;
}

.panel-card-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 12px;
}

.summary-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: hsl(var(--text-muted));
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.summary-value {
  font-size: 15px;
  font-weight: 600;
  color: hsl(var(--primary));
  line-height: 1.4;
}

/* Recent activity layout */
.recent-activity-item {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 16px;
}

.activity-icon-check {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background-color: rgba(20, 150, 80, 0.05);
  color: hsl(var(--success));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-details {
  flex: 1;
}

.activity-details h4 {
  font-size: 14.5px;
  font-weight: 700;
}

.activity-details p {
  font-size: 13px;
  color: hsl(var(--text-muted));
}

.activity-empty-state {
  text-align: center;
  padding: 60px 0;
  color: hsl(var(--text-muted));
}

.activity-empty-state p {
  font-family: var(--font-title);
  font-weight: 600;
  color: hsl(var(--primary));
  margin-bottom: 6px;
}

/* Order History styling */
.orders-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-history-card {
  overflow: hidden;
}

.order-header-bar {
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.01);
  transition: var(--transition-fast);
  flex-wrap: wrap;
  gap: 20px;
}

.order-header-bar:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.order-meta-info {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.meta-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: hsl(var(--text-muted));
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.meta-val {
  font-size: 14.5px;
  font-weight: 600;
  color: hsl(var(--primary));
}

.order-status-badge {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.order-status-badge.delivered {
  background-color: rgba(20, 150, 80, 0.08);
  color: hsl(var(--success));
}

.order-status-badge.processing {
  background-color: rgba(50, 120, 220, 0.08);
  color: #3278dc;
}

.order-status-badge.placed {
  background-color: hsl(var(--accent-glow));
  color: hsl(var(--accent-dark));
}

.expand-chevron {
  color: hsl(var(--text-muted));
  transition: transform var(--transition-normal);
}

.expand-chevron.open {
  transform: rotate(180deg);
  color: hsl(var(--accent-dark));
}

/* Expandable Order Drawer */
.order-detail-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) cubic-bezier(0.16, 1, 0.3, 1);
  background-color: white;
}

.order-detail-drawer.open {
  max-height: 1200px;
}

.order-detail-content {
  padding: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.order-items-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-item-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  padding-bottom: 12px;
}

.order-item-img-placeholder {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background-color: hsl(var(--bg-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 30px 0 10px;
}

.order-timeline::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 20px;
  right: 20px;
  height: 3px;
  background-color: rgba(0, 0, 0, 0.08);
  z-index: 1;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.timeline-dot {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background-color: white;
  border: 4px solid rgba(0, 0, 0, 0.15);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.timeline-label {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  color: hsl(var(--text-muted));
  margin-top: 10px;
  transition: var(--transition-normal);
}

.timeline-step.completed .timeline-dot {
  background-color: hsl(var(--success));
  border-color: hsl(var(--success));
}

.timeline-step.completed .timeline-label {
  color: hsl(var(--success));
  font-weight: 700;
}

.timeline-step.active .timeline-dot {
  background-color: white;
  border-color: hsl(var(--accent-dark));
  box-shadow: 0 0 0 6px var(--accent-glow);
  transform: scale(1.1);
}

.timeline-step.active .timeline-label {
  color: hsl(var(--accent-dark));
  font-weight: 700;
}

/* Posture Diagnostics panel styling */
.dashboard-quiz-result-box {
  position: relative;
}

.quiz-badge {
  display: inline-block;
  background-color: rgba(20, 150, 80, 0.08);
  color: hsl(var(--success));
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rec-product-card {
  padding: 24px;
  margin-top: 20px;
}

/* Checkout Login notification alert */
.checkout-login-alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background-color: hsl(var(--accent-glow));
  color: hsl(var(--accent-dark));
  border: 1px solid hsla(21, 99%, 50%, 0.15);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slide-in-item 0.3s ease;
}

.checkout-login-alert a {
  text-decoration: underline;
  font-weight: 700;
}

/* Responsive auth adjustments */
@media (max-width: 1024px) {
  .auth-split-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .dashboard-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  
  .logout-banner-btn {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
  }
  
  .panel-card-row {
    grid-template-columns: 1fr;
  }
  
  .order-timeline::before {
    display: none;
  }
  
  .order-timeline {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding-left: 30px;
    border-left: 3px solid rgba(0, 0, 0, 0.08);
    margin-left: 10px;
  }
  
  .timeline-step {
    flex-direction: row;
    gap: 20px;
  }
  
  .timeline-dot {
    margin-left: -44px; /* Position dot on border-left line */
  }
  
  .timeline-label {
    margin-top: 0;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ============================================================
   ALIGN — Health-Tech & Injury Library Design System (v3.3)
   ============================================================ */

/* Brand & Header Navigation Updates */
.align-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.align-brand-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: #2B392C;
  text-transform: uppercase;
}

.align-brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: hsl(var(--text-muted));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-left: 1px solid rgba(0, 0, 0, 0.15);
  padding-left: 10px;
  margin-left: 2px;
  display: inline-block;
}

/* --- Hero Section (Editorial & Spacious Dual Pathways) --- */
.hero-library {
  padding: 100px 0 70px;
  background: 
    radial-gradient(ellipse at 50% 15%, rgba(197, 221, 187, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 85%, rgba(43, 57, 44, 0.04) 0%, transparent 50%),
    #FAFBF9;
  position: relative;
  overflow: hidden;
}

.hero-pathways-container {
  max-width: 1140px;
  margin: 0 auto;
}

.hero-pathways-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(43, 57, 44, 0.06);
  border: 1px solid rgba(43, 57, 44, 0.12);
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2B392C;
  margin-bottom: 18px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4a6b4d;
  box-shadow: 0 0 0 2px rgba(74, 107, 77, 0.25);
}

.home-pathways-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

.pathway-card {
  background: #FFFFFF;
  border: 1px solid rgba(43, 57, 44, 0.12);
  border-radius: 20px;
  padding: 42px 38px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(43, 57, 44, 0.03);
}

.pathway-card:hover {
  transform: translateY(-5px);
  border-color: rgba(43, 57, 44, 0.28);
  box-shadow: 0 20px 48px rgba(43, 57, 44, 0.08);
}

.pathway-card-primary {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBF9 100%);
  border-top: 4px solid #2B392C;
}

.pathway-card-secondary {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBF9 100%);
  border-top: 4px solid #5A755D;
}

.pathway-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  width: fit-content;
}

.pathway-card-primary .pathway-card-badge {
  background: #EAF4E8;
  color: #2B392C;
  border: 1px solid rgba(43, 57, 44, 0.14);
}

.pathway-card-secondary .pathway-card-badge {
  background: #F1F6F0;
  color: #3B533E;
  border: 1px solid rgba(59, 83, 62, 0.14);
}

.pathway-title {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: #1E2E1F;
  margin: 0 0 12px 0;
  line-height: 1.25;
}

.pathway-desc {
  font-size: 15.5px;
  color: #4A5D4C;
  line-height: 1.6;
  margin: 0 0 26px 0;
  font-weight: 500;
}

.pathway-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pathway-feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: hsl(var(--text-dark));
}

.pathway-feature-list svg {
  color: #3E5E41;
  flex-shrink: 0;
  margin-top: 2px;
}

.pathway-cta-wrap {
  margin-top: auto;
  padding-top: 10px;
}

.pathway-cta-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: var(--radius-full);
  font-size: 15px;
  transition: all 0.2s ease;
}

.pathway-cta-btn:hover svg {
  transform: translateX(3px);
}

.pathway-cta-btn svg {
  transition: transform 0.2s ease;
}

@media (max-width: 860px) {
  .home-pathways-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pathway-card {
    padding: 32px 26px;
  }
}

.hero-human-model-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.hero-human-model-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 60px rgba(43, 57, 44, 0.14));
  mix-blend-mode: multiply;
}

.hero-model-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at 50% 40%, rgba(197, 221, 187, 0.4) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.hero-model-badge {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(43, 57, 44, 0.93);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(43, 57, 44, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.03em;
  animation: float 4s ease-in-out infinite;
}

.hero-model-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C5DDBB;
  box-shadow: 0 0 0 2px rgba(197, 221, 187, 0.4);
}

.hero-stat-float {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid rgba(43, 57, 44, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-stat-float-num {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  color: #2B392C;
  line-height: 1;
}

.hero-stat-float-label {
  font-size: 11px;
  font-weight: 600;
  color: hsl(var(--text-muted));
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.hero-stat-float.stat-top-left {
  top: 15%;
  left: -30px;
  animation: float 5s 0.5s ease-in-out infinite;
}

.hero-stat-float.stat-right {
  top: 40%;
  right: -20px;
  animation: float 4.5s 1s ease-in-out infinite;
}

.hero-badge-clinical {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(43, 57, 44, 0.07);
  border: 1px solid rgba(43, 57, 44, 0.14);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #2B392C;
  margin-bottom: 22px;
}

.hero-badge-clinical::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4a6b4d;
}

.hero-title-clinical {
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #1a2a1b;
  margin-bottom: 20px;
}

.hero-desc-clinical {
  font-size: clamp(15px, 1.6vw, 17.5px);
  color: hsl(var(--text-muted));
  max-width: 520px;
  margin: 0 0 36px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

/* Library Statistics Bar */
.stats-banner {
  background: linear-gradient(135deg, #1a2a1b 0%, #2B392C 100%);
  border-top: none;
  border-bottom: none;
  padding: 48px 0;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.stats-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 221, 187, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.stat-card {
  padding: 16px 24px;
  border-right: 1px solid rgba(197, 221, 187, 0.12);
}

.stat-card:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-title);
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 800;
  color: #C5DDBB;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(197, 221, 187, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Body Regions Quick Explorer Grid */
.regions-section {
  padding: 90px 0 100px;
  background-color: #FAFAFA;
  scroll-margin-top: 80px;
}

.region-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.region-card-item {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
  cursor: pointer;
  min-height: 148px;
  position: relative;
  overflow: hidden;
}

.region-card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2B392C, #C5DDBB);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.region-card-item:hover::before {
  transform: scaleX(1);
}

.region-card-item:hover {
  border-color: rgba(43, 57, 44, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(43, 57, 44, 0.1);
}

.region-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.region-card-name {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  color: #2B392C;
  margin-bottom: 4px;
}

.region-card-count {
  font-size: 12px;
  color: hsl(var(--text-muted));
}

.region-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: #F2F7F0;
  color: #2B392C;
}

.region-card-arrow {
  display: flex;
  justify-content: flex-end;
  color: #2B392C;
  transition: transform 0.2s ease;
  margin-top: 14px;
}

.region-card-item:hover .region-card-arrow {
  transform: translateX(4px);
}

/* Anatomy Model CTA Banner */
.anatomy-model-cta-card {
  margin-top: 48px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F5F8F4 100%);
  border: 1px solid rgba(43, 57, 44, 0.14);
  border-radius: 20px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 8px 30px rgba(43, 57, 44, 0.05);
  transition: all 0.25s ease;
}

.anatomy-model-cta-card:hover {
  border-color: rgba(43, 57, 44, 0.25);
  box-shadow: 0 16px 40px rgba(43, 57, 44, 0.08);
}

.model-cta-text {
  flex: 1;
  max-width: 600px;
}

.model-cta-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  color: #1E2E1F;
  margin: 8px 0 8px;
  line-height: 1.3;
}

.model-cta-desc {
  font-size: 14.5px;
  color: #4A5D4C;
  line-height: 1.55;
  margin: 0 0 20px 0;
}

.model-cta-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .anatomy-model-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
  .model-cta-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================================
   Interactive Human Body & Injury Library (injury-center.html)
   ============================================================ */

.library-main-layout {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 32px;
  margin-bottom: 80px;
}

.body-viewport-card {
  background: linear-gradient(160deg, #FAFBF9 0%, #FFFFFF 100%);
  border: 1px solid rgba(43, 57, 44, 0.09);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  position: sticky;
  top: 100px;
  box-shadow: 0 4px 24px rgba(43, 57, 44, 0.06), 0 1px 4px rgba(0,0,0,0.04);
}

.body-model-interactive-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  user-select: none;
  background: radial-gradient(ellipse at 50% 40%, rgba(197, 221, 187, 0.22) 0%, transparent 65%);
  border-radius: var(--radius-lg);
  padding: 16px 8px 0;
}

.body-model-img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  opacity: 0.97;
  filter: drop-shadow(0 12px 32px rgba(43, 57, 44, 0.1));
}

/* 9 Region Interactive Hotspots */
.body-hotspot {
  position: absolute;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  padding: 0;
}

.hotspot-core {
  width: 12px;
  height: 12px;
  background-color: #2B392C;
  border-radius: 50%;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 0 8px rgba(43, 57, 44, 0.4);
  transition: var(--transition-fast);
  z-index: 2;
}

.hotspot-wave {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid #2B392C;
  border-radius: 50%;
  animation: pulse-ring 2.2s infinite cubic-bezier(0.2, 0, 0.4, 1);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.body-hotspot:hover .hotspot-core {
  transform: scale(1.35);
  background-color: #4a6b4d;
  box-shadow: 0 0 14px rgba(43, 57, 44, 0.6);
}

.body-hotspot.active .hotspot-core {
  transform: scale(1.45);
  background-color: #2B392C;
  border-color: #C5DDBB;
  box-shadow: 0 0 16px rgba(43, 57, 44, 0.7), 0 0 0 4px rgba(197, 221, 187, 0.45);
}

/* Accessible Fallback Body Region Nav Buttons */
.body-region-fallback-nav {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.body-region-fallback-nav h4 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--text-muted));
  margin-bottom: 12px;
}

.fallback-buttons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.region-btn-chip {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #FAFAFA;
  font-size: 12px;
  font-weight: 600;
  color: #2B392C;
  cursor: pointer;
  transition: var(--transition-fast);
}

.region-btn-chip:hover {
  background: #F2F7F0;
  border-color: #2B392C;
}

.region-btn-chip.active {
  background: #2B392C;
  color: #FFFFFF;
  border-color: #2B392C;
}

/* Conditions & Region Detail View Container */
.library-content-pane {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 36px 36px 44px;
  box-shadow: var(--shadow-sm);
  min-height: 600px;
}

.pane-region-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pane-region-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: #F2F7F0;
  color: #2B392C;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pane-region-title {
  font-size: 32px;
  font-weight: 800;
  color: #2B392C;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.pane-region-summary {
  font-size: 14.5px;
  color: hsl(var(--text-muted));
  line-height: 1.6;
}

/* Search and Filter in Library */
.library-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #FAFAFA;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  transition: var(--transition-fast);
}

.library-search-box:focus-within {
  border-color: #2B392C;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(43, 57, 44, 0.08);
}

.library-search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14.5px;
  color: #2B392C;
  outline: none;
}

/* Condition Item Cards in List */
.conditions-catalog-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.condition-row-card {
  padding: 20px 22px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  text-decoration: none;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: var(--transition-fast);
  cursor: pointer;
}

.condition-row-card:hover {
  border-color: #2B392C;
  background: #FAFBF9;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(43, 57, 44, 0.06);
}

.condition-row-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: #2B392C;
  margin-bottom: 4px;
}

.condition-row-desc {
  font-size: 13px;
  color: hsl(var(--text-muted));
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.condition-row-meta {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.badge-pathway {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #F2F7F0;
  color: #2B392C;
}

.condition-row-arrow {
  color: hsl(var(--text-muted));
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.condition-row-card:hover .condition-row-arrow {
  color: #2B392C;
  transform: translateX(4px);
}

/* ============================================================
   Condition Detail Page — Premium Clinical Design (condition.html)
   ============================================================ */

.condition-page-container {
  padding: 100px 20px 90px;
  max-width: 1180px;
  margin: 0 auto;
}


/* ── Top Navigation Bar ───────────────────────────────────── */
.cond-top-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.cond-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: #FFFFFF;
  border: 1px solid rgba(43, 57, 44, 0.15);
  border-radius: var(--radius-full);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  color: #2B392C;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.cond-back-btn:hover {
  background: #F2F7F0;
  border-color: #2B392C;
  transform: translateX(-4px);
  box-shadow: 0 2px 10px rgba(43, 57, 44, 0.1);
}

.cond-meta-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cond-id-pill {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  background: #1a2a1b;
  color: #C5DDBB;
}

.cond-pathway-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cond-pathway-pill.assess {
  background: rgba(220, 53, 69, 0.1);
  color: #b02a37;
  border: 1px solid rgba(220, 53, 69, 0.25);
}

.cond-pathway-pill.caution {
  background: rgba(217, 163, 0, 0.12);
  color: #8a6500;
  border: 1px solid rgba(217, 163, 0, 0.28);
}

.cond-pathway-pill.self {
  background: #EDF5E8;
  color: #2B392C;
  border: 1px solid rgba(43, 57, 44, 0.2);
}

/* ── Hero Header ──────────────────────────────────────────── */
.cond-header-hero {
  background: linear-gradient(135deg, #1e2e1f 0%, #2B392C 55%, #3a5040 100%);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  margin-bottom: 24px;
  box-shadow: 0 12px 48px rgba(43, 57, 44, 0.22), 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

/* Subtle texture overlay */
.cond-header-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 80% 50%, rgba(197, 221, 187, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cond-main-h1 {
  font-family: var(--font-title);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
  position: relative;
}

.cond-definition-lead {
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(197, 221, 187, 0.88);
  font-weight: 400;
  max-width: 820px;
  margin-bottom: 22px;
  position: relative;
}

.cond-focus-quote {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(197, 221, 187, 0.2);
  border-left: 3px solid #C5DDBB;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 20px;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(197, 221, 187, 0.9);
  position: relative;
}

.cond-focus-quote strong {
  font-weight: 700;
  color: #C5DDBB;
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ── Tab Navigation ───────────────────────────────────────── */
.cond-tabs-nav {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-md);
  padding: 5px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0,0,0,0.02);
}

.cond-tabs-nav::-webkit-scrollbar {
  display: none;
}

.cond-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  color: hsl(var(--text-muted));
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
}

.cond-tab-btn span {
  font-size: 15px;
}

.cond-tab-btn:hover {
  background: #F4F8F3;
  color: #2B392C;
}

.cond-tab-btn.active {
  background: #2B392C;
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(43, 57, 44, 0.25);
}

/* ── Tab Panes ────────────────────────────────────────────── */
.cond-tab-pane {
  display: none;
}

.cond-tab-pane.active {
  display: block;
  animation: tabFadeIn 0.22s ease both;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 2-Column Layout ──────────────────────────────────────── */
.condition-details-grid {
  display: grid;
  grid-template-columns: 1fr 316px;
  gap: 28px;
  align-items: start;
}

.condition-article {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* ── Clinical Section Cards ───────────────────────────────── */
.clinical-section-block {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03), 0 4px 16px rgba(0,0,0,0.03);
  transition: box-shadow 0.2s ease;
}

.clinical-section-block:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(43,57,44,0.05);
}

.clinical-section-title {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 800;
  color: #1e2e1f;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid rgba(43, 57, 44, 0.09);
  display: flex;
  align-items: center;
  gap: 10px;
}

.clinical-section-title::before {
  content: '';
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, #2B392C, #4a6b4d);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(43,57,44,0.12);
}

/* ── Presentation Props Grid ──────────────────────────────── */
.presentation-two-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.clinical-prop-card {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: #F9FAFB;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s ease;
}

.clinical-prop-card:hover {
  border-color: rgba(43, 57, 44, 0.15);
}

.prop-card-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #4a6b4d;
  margin-bottom: 7px;
}

.prop-card-body {
  font-size: 14px;
  color: hsl(var(--text-dark));
  line-height: 1.6;
}

/* ── Patient Quote Block ──────────────────────────────────── */
.patient-quote-box {
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #F4FAF0 0%, #EEF7E8 100%);
  border: 1px solid rgba(197, 221, 187, 0.7);
  border-left: 4px solid #4a9b57;
  margin-top: 14px;
}

.patient-quote-box .quote-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #2B392C;
  margin-bottom: 8px;
}

.patient-quote-box .quote-body {
  font-size: 14.5px;
  font-style: italic;
  color: #1e2e1f;
  line-height: 1.65;
}

/* ── Interim Protection Steps ─────────────────────────────── */
.interim-steps-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.interim-step-row {
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: #FCFCFC;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 4px solid #2B392C;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  transition: background 0.15s ease;
}

.interim-step-row:hover {
  background: #F9FDFB;
}

.step-action-title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: #2B392C;
  margin-bottom: 4px;
}

.step-timing-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: #4a6b4d;
  background: #EDF5E8;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

.step-precaution-text {
  font-size: 13.5px;
  color: hsl(var(--text-dark));
  line-height: 1.55;
}

/* ── Differential Cards ───────────────────────────────────── */
.differential-item-card {
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.differential-item-card:last-child { margin-bottom: 0; }

.differential-item-card:hover {
  border-color: #2B392C;
  background: #F4FAF0;
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(43, 57, 44, 0.08);
}

.diff-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.differential-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: #1e2e1f;
}

.diff-action-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.diff-action-tag.read {
  background: #EDF5E8;
  color: #2B392C;
}

.diff-action-tag.urgent {
  background: rgba(220, 53, 69, 0.1);
  color: #b02a37;
}

.differential-clue {
  font-size: 13px;
  color: hsl(var(--text-muted));
  line-height: 1.55;
}

/* ── Rehabilitation Stages ────────────────────────────────── */
.rehab-stages-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: stage-counter;
}

.stage-step-card {
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: #FAFAFA;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 4px solid #2B392C;
  position: relative;
  transition: all 0.18s ease;
  counter-increment: stage-counter;
}

.stage-step-card:hover {
  background: #F4FAF0;
  border-left-color: #4a9b57;
  box-shadow: 0 4px 16px rgba(43,57,44,0.07);
  transform: translateX(2px);
}

.stage-num-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: #2B392C;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.stage-body-text {
  font-size: 14px;
  color: hsl(var(--text-dark));
  line-height: 1.65;
}

/* ── Recovery & Criteria Split ────────────────────────────── */
.criteria-card-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(43,57,44,0.08);
}

/* ── ALIGN Clinical Conditioning Program & Rich Exercise Cards ── */
.physician-supervision-banner {
  background: #FFFDF5;
  border: 1px solid #E8D388;
  border-left: 5px solid #C98A17;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 2px 10px rgba(201, 138, 23, 0.06);
}

.supervision-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.supervision-content {
  flex: 1;
}

.supervision-title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  color: #7D5100;
  margin: 0 0 6px 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.supervision-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #4A3B18;
  margin: 0;
}

.supervision-text strong {
  color: #2D230A;
}

.conditioning-program-hero {
  background: linear-gradient(135deg, #FAFBF9 0%, #F3F7F2 100%);
  border: 1px solid rgba(43, 57, 44, 0.14);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(43, 57, 44, 0.04);
}

.conditioning-program-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.conditioning-program-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  color: #2B392C;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.conditioning-program-desc {
  font-size: 14px;
  line-height: 1.6;
  color: hsl(var(--text-dark));
  margin-bottom: 18px;
}

.conditioning-target-muscles {
  margin-bottom: 16px;
}

.conditioning-section-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2B392C;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.conditioning-muscles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.muscle-pill {
  background: #FFFFFF;
  border: 1px solid rgba(43, 57, 44, 0.16);
  color: #2B392C;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.muscle-pill::before {
  content: "•";
  color: #4a6b4d;
  font-weight: bold;
}

.conditioning-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.conditioning-stat-box {
  background: #FFFFFF;
  border: 1px solid rgba(43, 57, 44, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.stat-box-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: hsl(var(--text-muted));
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.stat-box-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #2B392C;
}

/* Guidelines Boxes */
.conditioning-protocols-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .conditioning-protocols-row {
    grid-template-columns: 1fr;
  }
}

.warmup-notice-card {
  background: #FEF9F3;
  border: 1px solid rgba(224, 122, 95, 0.25);
  border-left: 4px solid #E07A5F;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.warmup-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #B54D33;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.warmup-card-text {
  font-size: 13px;
  line-height: 1.55;
  color: #5C3D2E;
  margin: 0;
}

.pain-rules-card {
  background: #F4FAF5;
  border: 1px solid rgba(43, 57, 44, 0.18);
  border-left: 4px solid #2B392C;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.pain-rules-title {
  font-size: 13px;
  font-weight: 800;
  color: #2B392C;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pain-rules-text {
  font-size: 13px;
  line-height: 1.55;
  color: #263327;
  margin: 0;
}

/* Phase Filters */
.exercise-phase-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  align-items: center;
}

.exercise-filter-btn {
  background: #F0F4EF;
  border: 1px solid rgba(43, 57, 44, 0.12);
  color: #2B392C;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.16s ease;
}

.exercise-filter-btn:hover {
  background: #E2EDE0;
  border-color: #2B392C;
}

.exercise-filter-btn.active {
  background: #2B392C;
  color: #FFFFFF;
  border-color: #2B392C;
  box-shadow: 0 2px 8px rgba(43, 57, 44, 0.18);
}

/* Rich Exercise Card */
.exercise-cards-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.exercise-rich-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  position: relative;
}

.exercise-rich-card:hover {
  border-color: rgba(43, 57, 44, 0.25);
  box-shadow: 0 6px 20px rgba(43, 57, 44, 0.08);
}

.exercise-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 14px;
}

.exercise-number-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2B392C;
  color: #C5DDBB;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.exercise-title-area {
  flex: 1;
}

.exercise-rich-title {
  font-family: var(--font-title);
  font-size: 16.5px;
  font-weight: 800;
  color: #1e2e1f;
  margin: 0 0 6px 0;
}

.exercise-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.exercise-phase-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #EAF4E8;
  color: #2B392C;
  border: 1px solid rgba(43, 57, 44, 0.15);
}

.exercise-equip-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #F5F5F5;
  color: hsl(var(--text-muted));
}

/* Dosing Row */
.exercise-dose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  background: #F9FBF8;
  border: 1px solid rgba(43, 57, 44, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.dose-item-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: hsl(var(--text-muted));
  letter-spacing: 0.03em;
}

.dose-item-val {
  font-size: 13px;
  font-weight: 700;
  color: #2B392C;
}

/* Directions List */
.exercise-directions-wrapper {
  margin-bottom: 16px;
}

.exercise-subhead {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2B392C;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.exercise-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exercise-step-item {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: hsl(var(--text-dark));
}

.step-bullet-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E6EFE4;
  color: #2B392C;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Form Tips & Feeling Boxes */
.exercise-cues-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .exercise-cues-grid {
    grid-template-columns: 1fr;
  }
}

.exercise-form-tip-box {
  background: #FFFDF7;
  border: 1px solid #F3E5AB;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #634C00;
}

.exercise-feeling-box {
  background: #F4F8FA;
  border: 1px solid #CFE2EB;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #1F495F;
}

.exercise-progression-box {
  background: #FAFBF9;
  border: 1px dashed rgba(43, 57, 44, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #2B392C;
  margin-top: 10px;
}

/* Handout Actions */
.conditioning-handout-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: #FAFBF9;
  border: 1px solid rgba(43, 57, 44, 0.12);
  border-radius: var(--radius-sm);
  margin-top: 24px;
}

.btn-print-handout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #2B392C;
  color: #2B392C;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-print-handout:hover {
  background: #2B392C;
  color: #FFFFFF;
}

/* ── FAQ Accordion ────────────────────────────────────────── */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-card-item {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-sm);
  background: #FAFAFA;
  padding: 18px 22px;
  transition: all 0.18s ease;
  cursor: default;
}

.faq-card-item:hover {
  background: #F4FAF0;
  border-color: rgba(43,57,44,0.15);
  transform: translateX(2px);
}

.faq-prompt-question {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: #1e2e1f;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.faq-prompt-question::before {
  content: 'Q';
  min-width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #2B392C;
  color: #C5DDBB;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.condition-sidebar-sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.safety-gate-card {
  background: linear-gradient(135deg, #fff5f5 0%, #fff8f8 100%);
  border: 1px solid rgba(220, 53, 69, 0.2);
  border-left: 4px solid hsl(var(--danger));
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: 0 4px 20px rgba(220, 53, 69, 0.07);
}

.safety-gate-heading {
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 800;
  color: hsl(var(--danger));
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.safety-gate-text {
  font-size: 13px;
  color: #4a1c20;
  line-height: 1.65;
}

.sidebar-action-card {
  background: #FFFFFF;
  border: 1px solid rgba(43,57,44,0.12);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
}

.sidebar-action-card p {
  font-size: 11.5px;
  font-weight: 700;
  color: hsl(var(--text-muted));
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── Medical Disclaimer Card ──────────────────────────────── */
.clinical-disclaimer-card {
  background: #F9FAFB;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 28px;
}

.clinical-disclaimer-card p {
  font-size: 12px;
  color: hsl(var(--text-muted));
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   Clinical Editorial Footer
   ============================================================ */
.clinical-footer {
  background: linear-gradient(160deg, #1a2a1b 0%, #2B392C 100%);
  color: #C5DDBB;
  padding: 64px 0 40px;
  margin-top: 80px;
  border-top: 1px solid rgba(197, 221, 187, 0.08);
}

.clinical-footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.clinical-footer-brand-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.clinical-footer-tagline {
  font-size: 13.5px;
  color: rgba(197, 221, 187, 0.7);
  max-width: 420px;
  line-height: 1.65;
}

.clinical-footer-nav {
  display: flex;
  gap: 28px;
  margin-top: 4px;
}

.clinical-footer-nav a {
  color: rgba(197, 221, 187, 0.8);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.clinical-footer-nav a:hover {
  color: #FFFFFF;
}

.clinical-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(197, 221, 187, 0.45);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .library-main-layout {
    grid-template-columns: 380px 1fr;
  }
  .condition-details-grid {
    grid-template-columns: 1fr;
  }
  .condition-sidebar-sticky {
    position: static;
  }
  .presentation-two-grid, .interim-step-row, .criteria-card-split {
    grid-template-columns: 1fr;
  }
  .cond-header-hero {
    padding: 36px 32px;
  }
}

@media (max-width: 768px) {
  .library-main-layout {
    grid-template-columns: 1fr;
  }
  .body-viewport-card {
    position: static;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card {
    border-right: none;
    border-bottom: 1px solid rgba(197, 221, 187, 0.1);
    padding: 20px 16px;
  }
  .region-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .clinical-section-block {
    padding: 24px 22px;
  }
  .cond-tabs-nav {
    gap: 2px;
  }
  .cond-tab-btn {
    padding: 9px 14px;
    font-size: 12.5px;
  }
}

@media (max-width: 520px) {
  .region-cards-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cond-header-hero {
    padding: 28px 22px;
  }
  .condition-page-container {
    padding: 90px 14px 60px;
  }
}

/* ── Hero Library Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
  .hero-library .container {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 0;
  }
  .hero-library-text {
    padding: 40px 0 32px;
  }
  .hero-library-visual {
    padding-bottom: 0;
  }
  .hero-human-model-wrap {
    max-width: 360px;
  }
  .hero-stat-float.stat-top-left,
  .hero-stat-float.stat-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-library {
    padding: 100px 0 0;
  }
  .hero-library .container {
    grid-template-columns: 1fr;
  }
  .hero-library-text {
    padding: 32px 0 24px;
    text-align: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-library-visual {
    justify-content: center;
  }
  .hero-human-model-wrap {
    max-width: 280px;
  }
}

/* ── Premium Hero Heading (Patient-Trust v2) ─────────────── */

/* Small uppercase brand label above the h1 */
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2B392C;
  margin-bottom: 22px;
  position: relative;
  padding-left: 18px;
}

.hero-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  background: #2B392C;
}

/* Main patient heading */
.hero-title-patient {
  font-family: var(--font-title);
  font-size: clamp(44px, 5.2vw, 72px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.045em;
  color: #1a2a1b;
  margin-bottom: 26px;
}

/* "your body." — brand dark green, same weight */
.htp-green {
  color: #2B392C;
  display: block;
}

/* "Know what to do next." — light weight, muted, smaller */
.htp-follow {
  display: block;
  font-weight: 300;
  font-size: 0.62em;
  letter-spacing: -0.01em;
  color: hsl(var(--text-muted));
  margin-top: 14px;
  line-height: 1.4;
}

/* ── Outline button: green-only hover (no black fill) ─────── */
.btn-outline-green:hover {
  background-color: rgba(43, 57, 44, 0.07);
  color: #2B392C !important;
  border-color: #2B392C !important;
  transform: translateY(-2px);
}
