/* ═══════════ BASE — Anthropic-inspired theme ═══════════ */
:root {
  --primary: #1A1A1A;
  --primary-dark: #000000;
  --accent: #D97706;
  --success: #059669;
  --danger: #DC2626;
  --dark: #1A1A1A;
  --gray-50: #FAF9F7;
  --gray-100: #F5F4F0;
  --gray-200: #E5E5E5;
  --gray-400: #9CA3AF;
  --gray-600: #6B6B6B;
  --gray-800: #1A1A1A;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);

  /* Bootstrap CSS variable overrides */
  --bs-primary: #1A1A1A;
  --bs-primary-rgb: 26, 26, 26;
  --bs-link-color: #1A1A1A;
  --bs-link-hover-color: #000;
  --bs-body-bg: #FAF9F7;
  --bs-body-color: #1A1A1A;
  --bs-border-color: #E5E5E5;
  --bs-card-bg: #FFFFFF;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--gray-50);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark);
}

/* ═══════════ ANTHROPIC BUTTON OVERRIDES ═══════════ */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 500;
  padding: 8px 20px;
  transition: background-color 0.15s, transform 0.1s;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #000 !important;
  border-color: #000 !important;
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  background-color: transparent !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 500;
  padding: 8px 20px;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary) !important;
  color: #fff !important;
}

.btn-outline-secondary {
  border-radius: var(--radius-pill) !important;
}
.btn-outline-danger {
  border-radius: var(--radius-pill) !important;
}
.btn-secondary {
  border-radius: var(--radius-pill) !important;
}
.btn-success {
  border-radius: var(--radius-pill) !important;
}
.btn-danger {
  border-radius: var(--radius-pill) !important;
}
.btn-sm {
  border-radius: var(--radius-pill) !important;
  padding: 4px 14px;
}
.btn-lg {
  border-radius: var(--radius-pill) !important;
  padding: 12px 28px;
}

/* Tab/pill nav — black active state */
.nav-pills .nav-link.active {
  background-color: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius-pill) !important;
}
.nav-pills .nav-link {
  border-radius: var(--radius-pill) !important;
  color: var(--gray-600);
}

/* Badge pills */
.badge {
  border-radius: var(--radius-pill) !important;
  font-weight: 500;
}
.badge.bg-primary {
  background-color: var(--primary) !important;
}

/* Card softening */
.card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Table header — dark instead of Bootstrap blue */
.table-dark {
  --bs-table-bg: var(--primary);
  --bs-table-border-color: #333;
}

/* Form controls — subtler borders */
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

/* Link styling */
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: #000;
  text-decoration: underline;
}

main { flex: 1; }

/* ═══════════ NAVBAR ═══════════ */
.navbar {
  border-bottom: 1px solid var(--gray-200);
  background: #fff !important;
  padding: 12px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 32px;
  width: auto;
}

.navbar .nav-link {
  color: var(--gray-600) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.navbar .nav-link:hover {
  background: var(--gray-100);
  color: var(--dark) !important;
}

.navbar .badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 999px;
}

/* ═══════════ HERO ═══════════ */
.hero-section {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-poster,
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-poster {
  z-index: 1;
}

.hero-bg-video {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-bg-video--active {
  opacity: 1;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(255, 255, 255, 0.75);
}

.hero-content {
  position: relative;
  z-index: 4;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 32px;
}

/* ─── Search bar (Airbnb style) ─── */
.hero-search {
  max-width: 640px;
}

.hero-search-inner {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  padding: 6px 6px 6px 24px;
  transition: box-shadow 0.2s;
}

.hero-search-inner:focus-within {
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.12);
  border-color: var(--primary);
}

.hero-search-field {
  flex: 1;
  min-width: 0;
}

.hero-search-field--narrow {
  flex: 0.6;
}

.hero-search-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-800);
  margin-bottom: 2px;
}

.hero-search-field input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--dark);
  width: 100%;
  padding: 0;
}

.hero-search-field input::placeholder {
  color: var(--gray-400);
}

.hero-search-divider {
  width: 1px;
  height: 36px;
  background: var(--gray-200);
  margin: 0 16px;
  flex-shrink: 0;
}

.hero-search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.hero-search-btn:hover {
  background: var(--primary-dark);
}

/* ─── Hero floating cards ─── */
.hero-visual {
  position: relative;
  width: 320px;
  height: 300px;
}

.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
  min-width: 260px;
}

.hero-card strong { display: block; font-size: 0.95rem; }
.hero-card span { font-size: 0.8rem; color: var(--gray-400); }
.hero-card-price {
  margin-left: auto;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  white-space: nowrap;
}

.hero-card--1 { top: 0; left: 10px; animation-delay: 0s; }
.hero-card--2 { top: 90px; left: 40px; animation-delay: -2s; }
.hero-card--3 { top: 180px; left: 10px; animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ═══════════ CATEGORIES ═══════════ */
.categories-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.categories-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.categories-row::-webkit-scrollbar { display: none; }

.category-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s;
}

.category-pill:hover {
  border-color: var(--dark);
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}

.category-pill-dark {
  background: var(--dark);
  border-radius: 6px;
  padding: 2px;
}

/* ═══════════ FEATURED LISTINGS ═══════════ */
.featured-section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
}

.section-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
}

.section-link:hover { text-decoration: underline; }

/* ─── Listing cards ─── */
.listing-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--gray-200);
  height: 100%;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.listing-card-top {
  background: linear-gradient(135deg, #1A1A1A 0%, #333333 100%);
  padding: 28px 20px 20px;
  position: relative;
}

.listing-card-gpu {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.listing-card-vram {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.listing-card-body {
  padding: 16px 20px 20px;
}

.listing-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.listing-card-models {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.model-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: #F5F4F0;
  color: var(--primary);
}

.listing-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.listing-card-host {
  font-size: 0.82rem;
  color: var(--gray-400);
}

.listing-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}

.listing-card-price small {
  font-weight: 400;
  color: var(--gray-400);
  font-size: 0.8rem;
}

/* ═══════════ GPU CATALOGUE CARDS ═══════════ */

.gpu-cat-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  height: 100%;
}

.gpu-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-400);
  color: inherit;
}

.gpu-cat-available {
  border-color: #059669;
}

.gpu-cat-available:hover {
  border-color: #047857;
}

.gpu-cat-header {
  padding: 16px 16px 12px;
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
  color: #fff;
  position: relative;
}

.gpu-cat-pro .gpu-cat-header {
  background: linear-gradient(135deg, #2D1B69 0%, #4A3080 100%);
}

.gpu-cat-dc .gpu-cat-header {
  background: linear-gradient(135deg, #7C4A00 0%, #B8860B 100%);
}

.gpu-cat-apple .gpu-cat-header {
  background: linear-gradient(135deg, #3D3D3D 0%, #666 100%);
}

.gpu-cat-amd .gpu-cat-header {
  background: linear-gradient(135deg, #8B1A1A 0%, #CC3333 100%);
}

.gpu-cat-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.gpu-cat-vram {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
  font-weight: 600;
}

.gpu-cat-img {
  height: 48px;
  width: auto;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  filter: brightness(0) invert(1);
}

.gpu-cat-bar {
  height: 3px;
  background: var(--gray-200);
}

.gpu-cat-bar-fill {
  height: 100%;
  background: #059669;
  transition: width 0.6s ease;
}

.gpu-cat-bar-pro .gpu-cat-bar-fill { background: #7C3AED; }
.gpu-cat-bar-dc .gpu-cat-bar-fill { background: #D97706; }
.gpu-cat-bar-apple .gpu-cat-bar-fill { background: #666; }
.gpu-cat-bar-amd .gpu-cat-bar-fill { background: #DC2626; }

.gpu-cat-footer {
  padding: 10px 16px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
}

.gpu-cat-status {
  font-size: 0.72rem;
  font-weight: 600;
}

.gpu-cat-status i {
  font-size: 5px;
  vertical-align: middle;
  margin-right: 4px;
}

.gpu-cat-online {
  color: #059669;
}

.gpu-cat-offline {
  color: var(--gray-400);
}

.gpu-cat-price {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dark);
}

.gpu-cat-cta {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.gpu-cat-card:hover .gpu-cat-cta {
  opacity: 1;
}

/* ═══════════ HOW IT WORKS ═══════════ */
.how-section {
  padding: 64px 0;
  background: var(--gray-50);
}

.how-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
}

.how-step {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  height: 100%;
  position: relative;
}

.how-step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-step img { margin-bottom: 16px; }

.how-step h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.how-step p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* ═══════════ TRUST SIGNALS ═══════════ */
.trust-section {
  padding: 64px 0;
}

.trust-card {
  padding: 32px 24px;
}

.trust-card img { margin-bottom: 16px; }

.trust-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* ═══════════ DUAL CTA ═══════════ */
/* ═══════════ EARNINGS TABLE ═══════════ */
.earnings-section {
  padding: 64px 0;
  background: #fff;
}

.earnings-table {
  border-radius: var(--radius);
  overflow: hidden;
}

.earnings-table thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 12px 16px;
  border: none;
}

.earnings-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--gray-200);
}

.earnings-table tbody tr:hover {
  background: var(--gray-50);
}

.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 40%, #3D3D3D 100%);
  color: #fff;
}

.cta-card {
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  color: #fff;
}

.cta-card--host {
  background: linear-gradient(135deg, #1A1A1A 0%, #3D3D3D 100%);
}

.cta-card--rent {
  background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
}

.cta-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-card p {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 24px;
}

.cta-card .btn-light {
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 32px;
}

/* ═══════════ FOOTER ═══════════ */
footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 32px 0 !important;
}

.footer-logo {
  display: block;
  height: 28px;
  width: auto;
  margin: 0 auto 12px;
  opacity: 0.6;
}

.footer-legal {
  margin-top: 8px;
}

.footer-legal a {
  color: var(--gray-600);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-copyright {
  margin-top: 6px;
  color: var(--gray-400);
}

/* ═══════════ CARDS (existing pages) ═══════════ */
.card {
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-color: var(--gray-200);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ═══════════ CODE BLOCKS ═══════════ */
code {
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85em;
  word-break: break-all;
}

.alert code {
  background: rgba(0,0,0,0.06);
}

/* ═══════════ BUTTONS ═══════════ */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 999px;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  border-radius: 999px;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-success {
  background: var(--success);
  border-color: var(--success);
  border-radius: 999px;
  font-weight: 600;
}

/* ═══════════ STAT CARDS ═══════════ */
.stat-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.stat-card-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
}

.stat-card--earnings {
  border-color: var(--success);
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.stat-card--earnings .stat-card-value {
  color: #065f46;
}

/* ═══════════ USAGE STATS INLINE ═══════════ */
.usage-stats-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.usage-stat-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-600);
}

/* ═══════════ API KEY DISPLAY ═══════════ */
.api-key-display {
  word-break: break-all;
  font-size: 0.78rem;
}

/* ═══════════ BILLING MODEL CARDS ═══════════ */
.billing-model-cards {
  display: flex;
  gap: 12px;
}

.billing-model-card {
  flex: 1;
  cursor: pointer;
}

.billing-model-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.billing-model-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 14px 12px;
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  transition: border-color 0.15s, background 0.15s;
}

.billing-model-card-inner strong {
  font-size: 0.9rem;
}

.billing-model-card-inner span {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.billing-model-card input:checked + .billing-model-card-inner {
  border-color: var(--primary);
  background: #F5F4F0;
}

/* ═══════════ COST BREAKDOWN ═══════════ */
.cost-breakdown {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 20px;
}

/* ═══════════ SETUP WIZARD ═══════════ */
.setup-wizard {
  max-width: 700px;
  margin: 0 auto;
}

.setup-logo {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
}

.setup-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.setup-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.setup-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--gray-200);
  color: var(--gray-400);
  background: #fff;
}

.setup-step--active .setup-step-num {
  border-color: var(--primary);
  color: var(--primary);
  background: #F5F4F0;
}

.setup-step--done .setup-step-num {
  border-color: var(--success);
  color: #fff;
  background: var(--success);
}

.setup-step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-400);
  white-space: nowrap;
}

.setup-step--active .setup-step-label { color: var(--primary); }
.setup-step--done .setup-step-label { color: var(--success); }

.setup-step-line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  min-width: 60px;
  margin: 0 8px;
  margin-bottom: 28px;
}

.setup-step-line--done {
  background: var(--success);
}

.setup-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
}

.setup-card-icon--done {
  background: #d1fae5;
  color: #065f46;
}

/* ═══════════ HEALTH BADGES ═══════════ */
.health-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.health-badge--healthy {
  background: #d1fae5;
  color: #065f46;
}

.health-badge--degraded {
  background: #fef3c7;
  color: #92400e;
}

.health-badge--down {
  background: #fee2e2;
  color: #991b1b;
}

.health-badge--unknown {
  background: var(--gray-100);
  color: var(--gray-400);
}

.health-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.health-dot--healthy { background: #10b981; }
.health-dot--degraded { background: #f59e0b; }
.health-dot--down { background: #ef4444; }

/* ═══════════ AUTH SPLIT LAYOUT ═══════════ */
.auth-split {
  display: flex;
  min-height: calc(100vh - 120px);
  /* Break out of .container */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: -1.5rem;
  margin-bottom: -1.5rem;
}

.auth-logo {
  height: 40px;
  width: auto;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
}

.auth-marketing {
  flex: 1;
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 40%, #3D3D3D 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.auth-marketing-inner {
  max-width: 480px;
}

.auth-marketing-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.auth-marketing-sub {
  font-size: 1.1rem;
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 40px;
}

.auth-value-props {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.auth-value-prop {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.auth-value-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-value-prop strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-value-prop p {
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.5;
  margin: 0;
}

.auth-social-proof {
  display: flex;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.auth-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-stat-num {
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-stat-label {
  font-size: 0.8rem;
  opacity: 0.6;
}

.auth-form-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: #fff;
}

.auth-form-inner {
  width: 100%;
  max-width: 420px;
}

.auth-form-inner h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

/* ─── Role selection cards ─── */
.auth-role-cards {
  display: flex;
  gap: 12px;
}

.auth-role-card {
  flex: 1;
  cursor: pointer;
}

.auth-role-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-role-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 16px 12px;
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  transition: border-color 0.15s, background 0.15s;
}

.auth-role-card-inner strong {
  font-size: 0.9rem;
}

.auth-role-card-inner span {
  font-size: 0.75rem;
  color: var(--gray-400);
  line-height: 1.3;
}

.auth-role-card input:checked + .auth-role-card-inner {
  border-color: var(--primary);
  background: #F5F4F0;
}

.auth-role-card-inner svg {
  color: var(--gray-400);
}

.auth-role-card input:checked + .auth-role-card-inner svg {
  color: var(--primary);
}

/* ═══════════ CTA BULLETS ═══════════ */
.cta-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.cta-bullets span {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 991px) {
  .hero-title { font-size: 2.5rem; }
  .hero-search-inner {
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
    gap: 8px;
    padding: 16px;
  }
  .hero-search-divider { display: none; }
  .hero-search-field { flex-basis: 100%; }
  .hero-search-field--narrow { flex-basis: 100%; }
  .hero-search-btn { width: 100%; justify-content: center; margin-top: 8px; }
}

@media (max-width: 991px) {
  .auth-split { flex-direction: column; }
  .auth-marketing { padding: 36px 24px; }
  .auth-marketing-title { font-size: 1.8rem; }
  .auth-social-proof { flex-wrap: wrap; }
}

@media (max-width: 575px) {
  .hero-section { padding: 48px 0 36px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .cta-card { padding: 32px 24px; }
  .auth-marketing { padding: 28px 20px; }
  .auth-form-col { padding: 32px 20px; }
  .auth-role-cards { flex-direction: column; }
}

/* ═══════════ AGENTIC MEMORY PROMO ═══════════ */
.am-promo {
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 40%, #3D3D3D 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: #fff;
}

.am-promo-inner {
  display: flex;
  gap: 40px;
  padding: 40px;
}

.am-promo-content {
  flex: 1;
  min-width: 0;
}

.am-promo-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #9CA3AF;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.am-promo-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.am-promo-sub {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 24px;
}

.am-promo-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.am-promo-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.am-promo-feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.am-promo-feature strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 1px;
}

.am-promo-feature span {
  font-size: 0.8rem;
  opacity: 0.65;
}

.am-promo-ctas {
  display: flex;
  gap: 12px;
}

.am-promo-ctas .btn-light {
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 28px;
}

.am-promo-ctas .btn-outline-light {
  border-radius: 999px;
  padding: 10px 28px;
  font-weight: 500;
}

/* Before/After code blocks */
.am-promo-visual {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.am-promo-code {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
}

.am-promo-code--after {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.am-code-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.15);
}

.am-code-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.am-code-dot--green {
  background: rgba(16, 185, 129, 0.6);
}

.am-code-label {
  margin-left: auto;
  font-size: 0.7rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.am-promo-code pre {
  margin: 0;
  padding: 12px 14px;
  font-size: 0.75rem;
  line-height: 1.5;
}

.am-dim { color: rgba(255, 255, 255, 0.35); }
.am-bright { color: rgba(255, 255, 255, 0.9); }

/* Host dashboard banner */
.am-banner {
  background: linear-gradient(90deg, #F5F4F0, #EDECEA);
  border: 1px solid #9CA3AF;
  border-radius: var(--radius);
  padding: 16px 20px;
}

.am-banner-icon {
  font-size: 1.5rem;
}

/* ═══════════ MEMORY WIZARD ═══════════ */
.memory-wizard {
  max-width: 800px;
  margin: 0 auto;
}

.memory-step {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  transition: opacity 0.2s;
}

.memory-step--disabled {
  opacity: 0.5;
  pointer-events: none;
}

.memory-step-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.memory-step-num {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.memory-step-num--done {
  background: var(--success);
}

@media (max-width: 991px) {
  .am-promo-inner { flex-direction: column; padding: 28px; }
  .am-promo-visual { display: none !important; }
}
