/* GoNoGo Platform — Design Tokens & Styles */

/* ============================================================
   FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;

  --text-xs: clamp(0.6875rem, 0.65rem + 0.1vw, 0.75rem);     /* 11-12px */
  --text-sm: clamp(0.8125rem, 0.775rem + 0.1vw, 0.875rem);    /* 13-14px */
  --text-base: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);   /* 14-15px */
  --text-lg: clamp(1.0625rem, 1rem + 0.2vw, 1.25rem);         /* 17-20px */
  --text-xl: clamp(1.375rem, 1.25rem + 0.4vw, 1.75rem);       /* 22-28px */
  --text-2xl: clamp(1.75rem, 1.5rem + 0.8vw, 2.5rem);         /* 28-40px */
  --text-3xl: clamp(2.25rem, 2rem + 1vw, 3.25rem);            /* 36-52px */

  /* Spacing (4px grid) */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Colors — GoNoGo Dark Mode */
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --bg-card: #1a1a1a;
  --bg-card-hover: #1e1e1e;
  --bg-elevated: #222222;
  --border-primary: #2a2a2a;
  --border-subtle: #1f1f1f;
  --border-focus: #11a551;

  --green: #11a551;
  --green-dim: rgba(17, 165, 81, 0.15);
  --green-glow: rgba(17, 165, 81, 0.12);
  --green-text: #15c962;
  --green-bg: rgba(17, 165, 81, 0.1);

  --orange: #ff9800;
  --orange-dim: rgba(255, 152, 0, 0.15);
  --orange-text: #ffb74d;
  --orange-bg: rgba(255, 152, 0, 0.1);

  --red: #e74c3c;
  --red-dim: rgba(231, 76, 60, 0.15);
  --red-text: #ff6b5a;
  --red-bg: rgba(231, 76, 60, 0.1);

  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.15);

  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --text-faint: #444444;

  /* Surfaces */
  --surface-0: var(--bg-primary);
  --surface-1: var(--bg-secondary);
  --surface-2: var(--bg-card);
  --surface-3: var(--bg-elevated);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px var(--green-glow);
  --shadow-glow-strong: 0 0 30px rgba(17,165,81,0.2);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-normal: 200ms var(--ease-out);
  --transition-slow: 350ms var(--ease-out);

  /* Layout */
  --content-max: 1200px;
  --content-narrow: 800px;
  --sidebar-width: 260px;
  --header-height: 60px;
}

/* ============================================================
   BASE RESET & FOUNDATION
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--green-text);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-size: inherit;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim);
}

::selection {
  background: var(--green);
  color: white;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--border-primary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.text-red { color: var(--red); }

.tabular-nums {
  font-variant-numeric: tabular-nums lining-nums;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* ============================================================
   COMPONENT: NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-primary);
  height: var(--header-height);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo span.go { color: var(--green); }
.logo span.no { color: var(--text-secondary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--surface-2);
}

.nav-links a.active {
  color: var(--green);
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 1.25rem;
  background: transparent;
  border: 1px solid var(--border-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hamburger:hover {
  color: var(--text-primary);
  background: var(--surface-2);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 99;
  padding: var(--space-6);
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: var(--text-base);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--text-primary);
  background: var(--surface-2);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ============================================================
   COMPONENT: BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-height: 36px;
  border: 1px solid transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.btn-primary:hover {
  background: #0fb84a;
  border-color: #0fb84a;
  box-shadow: 0 0 20px var(--green-dim);
  color: white;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-primary);
  border-color: var(--border-primary);
}

.btn-secondary:hover {
  background: var(--surface-3);
  border-color: var(--text-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--red);
  color: white;
}

.btn-danger:hover {
  background: #ff5a4a;
  box-shadow: 0 0 20px var(--red-dim);
  color: white;
}

.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  min-height: 28px;
}

.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  min-height: 44px;
}

/* ============================================================
   COMPONENT: CARDS
   ============================================================ */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-normal);
}

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

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================================
   COMPONENT: BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.badge-top-performer {
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.06));
  color: #d4af37;
  border: 1px solid rgba(212,175,55,0.35);
}

.badge-go {
  background: var(--green-bg);
  color: var(--green-text);
  border: 1px solid var(--green-dim);
}

.badge-nogo {
  background: var(--red-bg);
  color: var(--red-text);
  border: 1px solid var(--red-dim);
}

.badge-caution {
  background: var(--orange-bg);
  color: var(--orange-text);
  border: 1px solid var(--orange-dim);
}

.badge-score {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-md);
}

.badge-score.score-high {
  background: var(--green-bg);
  color: var(--green-text);
  border: 1px solid var(--green-dim);
}

.badge-score.score-mid {
  background: var(--green-bg);
  color: var(--green-text);
  border: 1px solid var(--green-dim);
}

.badge-score.score-low {
  background: var(--red-bg);
  color: var(--red-text);
  border: 1px solid var(--red-dim);
}

.badge-green {
  background: var(--green-bg);
  color: var(--green-text);
  border: 1px solid var(--green-dim);
}
.badge-yellow {
  background: rgba(245,158,11,0.12);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.25);
}
.badge-red {
  background: var(--red-bg);
  color: var(--red-text);
  border: 1px solid var(--red-dim);
}

/* ============================================================
   COMPONENT: SCORE DISPLAY
   ============================================================ */
.score-circle {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.score-circle svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-circle .score-value {
  font-size: var(--text-xl);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  z-index: 1;
}
.score-circle-lg .score-value {
  font-size: 2.5rem; /* or try 2.25rem if this feels too big */
}

.score-circle-lg {
  width: 120px;
  height: 120px;
}

.score-circle-lg .score-value {
  font-size: var(--text-2xl);
}

.score-circle-xl {
  width: 164px;
  height: 164px;
}

.score-circle-xl .score-value {
  font-size: 3rem;
}

.score-circle-hero {
  width: 120px;
  height: 120px;
}

.score-circle-hero .score-value {
  font-size: var(--text-2xl);
}

.score-bar {
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
}

.score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 600ms var(--ease-out);
}

/* ============================================================
   COMPONENT: TABLES (Admin)
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-primary);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.data-table th:hover {
  color: var(--text-secondary);
}

.data-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.data-table .brand-cell {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: white;
  padding: 2px;
}

.brand-logo-xl {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  padding: 4px;
}

.brand-logo-lg {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  padding: 4px;
}

img.brand-logo-hero {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  padding: 6px;
  object-fit: contain;
  background: var(--surface-2);
  border: 2px solid var(--border-primary);
}

/* ============================================================
   COMPONENT: STAR RATING
   ============================================================ */
.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}

.star-rating i {
  color: var(--text-faint);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.star-rating i.active {
  color: var(--orange);
}

.star-rating-input {
  cursor: pointer;
}

.star-rating-input i:hover,
.star-rating-input i.hover {
  color: var(--orange);
}

/* ============================================================
   COMPONENT: COMMENTS
   ============================================================ */
.comment-card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: border-color var(--transition-fast);
  overflow: hidden;
  word-wrap: break-word;
}

.comment-card:hover {
  border-color: var(--border-primary);
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.comment-author {
  font-weight: 600;
  font-size: var(--text-sm);
}

.comment-date {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.comment-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.sentiment-badge {
  font-size: var(--text-xs);
  padding: 1px var(--space-2);
  border-radius: var(--radius-full);
  font-weight: 500;
}

.sentiment-positive {
  background: var(--green-bg);
  color: var(--green-text);
}

.sentiment-neutral {
  background: var(--orange-bg);
  color: var(--orange-text);
}

.sentiment-negative {
  background: var(--red-bg);
  color: var(--red-text);
}

/* ============================================================
   COMPONENT: MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-6);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.modal-title {
  font-size: var(--text-lg);
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--surface-3);
  color: var(--text-primary);
}

/* ============================================================
   COMPONENT: FORM ELEMENTS
   ============================================================ */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* ============================================================
   COMPONENT: TOAST / ALERT
   ============================================================ */
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  background: var(--surface-3);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-slow);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-color: var(--green-dim);
  color: var(--green-text);
}

.toast-error {
  border-color: var(--red-dim);
  color: var(--red-text);
}

/* ============================================================
   COMPONENT: SEARCH
   ============================================================ */
.search-input {
  position: relative;
}

.search-input i {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.search-input input {
  padding-left: 36px;
}

/* ============================================================
   COMPONENT: CATEGORY FILTER PILLS
   ============================================================ */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.filter-pill:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--green-bg);
  border-color: var(--green);
  color: var(--green-text);
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section {
  padding: var(--space-16) 0;
}

.section-sm {
  padding: var(--space-10) 0;
}

.section-header {
  margin-bottom: var(--space-8);
}

.section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.section-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: var(--space-24) 0 var(--space-16);
  text-align: center;
  position: relative;
  overflow: visible;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.hero-title {
  font-size: var(--text-3xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  position: relative;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.5;
  position: relative;
}

/* ============================================================
   INDUSTRY GRID
   ============================================================ */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
}

.industry-card {
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  color: var(--text-primary);
}

.industry-card:hover {
  border-color: var(--green-dim);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.industry-card i {
  font-size: var(--text-xl);
  color: var(--green);
  margin-bottom: var(--space-3);
  display: block;
}

.industry-card .name {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.industry-card .count {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.industry-card.no-data {
  opacity: 0.4;
  pointer-events: none;
}

/* ============================================================
   BRAND CARDS (Public listing)
   ============================================================ */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
}

.brand-card {
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

.brand-card:hover {
  border-color: var(--green-dim);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
  color: var(--text-primary);
}

.brand-card-top {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.brand-card-info {
  flex: 1;
  min-width: 0;
}

.brand-card-name {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.brand-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.brand-card-chart {
  width: 100%;
  height: 180px;
  margin-bottom: var(--space-3);
}

.brand-card-stats {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.brand-card-stats span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ============================================================
   BRAND DETAIL PAGE
   ============================================================ */
.brand-hero {
  padding: var(--space-4) 0 var(--space-5);
  border-bottom: 1px solid var(--border-primary);
}

.brand-hero-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.brand-hero-identity {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.brand-hero-logo {
  flex-shrink: 0;
}

.brand-hero-score {
  text-align: center;
  flex-shrink: 0;
}

.brand-hero-info {
  flex: 1;
}

.brand-hero-name {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

.brand-hero-badges {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Category breakdown */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.category-card {
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: border-color var(--transition-fast);
}

.category-card:hover {
  border-color: var(--border-primary);
}

.category-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.category-card-name {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
}

.category-card-name i {
  color: var(--green);
  width: 16px;
}

.category-card-score {
  font-weight: 700;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.category-card-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-2);
  line-height: 1.5;
}

/* Granular scoring detail (expandable) */
.granular-chevron {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  padding-left: var(--space-2);
}
.granular-chevron.open {
  transform: rotate(180deg);
}
.granular-criteria {
  margin-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-3);
}
.granular-row {
  margin-bottom: var(--space-3);
}
.granular-row:last-child {
  margin-bottom: 0;
}
.granular-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}
.granular-sub {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
}
.granular-pts {
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}
.granular-bar-track {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.granular-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.granular-evidence {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.45;
  font-style: italic;
}

/* ============================================================
   COMPARE PAGE
   ============================================================ */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.compare-grid .card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 768px) {
  .compare-grid { grid-template-columns: 1fr; }
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.compare-row .label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 100px;
}

.compare-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.compare-bar.left {
  justify-content: flex-end;
}

.compare-bar.right {
  justify-content: flex-start;
}

.compare-bar-track {
  height: 8px;
  border-radius: 4px;
  background: var(--surface-3);
  flex: 1;
  overflow: hidden;
  max-width: 200px;
}

.compare-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 600ms var(--ease-out);
}

.compare-bar.left .compare-bar-track {
  direction: rtl;
}

/* ============================================================
   ADMIN STYLES
   ============================================================ */
.admin-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--surface-1);
  border-right: 1px solid var(--border-primary);
  padding: var(--space-5);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-6);
  flex: 1;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.admin-sidebar-link:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.admin-sidebar-link.active {
  background: var(--green-bg);
  color: var(--green-text);
}

.admin-sidebar-link i {
  width: 20px;
  text-align: center;
}

.admin-main {
  padding: var(--space-8);
  min-height: 100vh;
  min-width: 0;
  overflow-x: hidden;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.admin-title {
  font-size: var(--text-xl);
  font-weight: 700;
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.kpi-card {
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.kpi-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

.kpi-value {
  font-size: var(--text-2xl);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.kpi-delta {
  font-size: var(--text-xs);
  font-weight: 500;
  margin-top: var(--space-1);
}

/* Admin table wrapper */
.table-wrapper {
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-primary);
  flex-wrap: wrap;
}

.table-toolbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
}

/* ============================================================
   PASSWORD PROMPT (Admin)
   ============================================================ */
.password-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.password-box {
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.password-box .logo {
  justify-content: center;
  margin-bottom: var(--space-6);
}

.password-box .form-group {
  text-align: left;
}

.password-error {
  color: var(--red-text);
  font-size: var(--text-xs);
  margin-top: var(--space-2);
  display: none;
}

/* ============================================================
   PUBLIC AUTH (Sign In / Create Account)
   ============================================================ */
.btn-auth-nav {
  background: transparent;
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-auth-nav:hover {
  border-color: var(--green);
  color: var(--green);
}
.btn-auth-signed-in {
  color: var(--green);
  border-color: rgba(17,165,81,0.3);
}
.btn-auth-signed-in:hover {
  background: rgba(17,165,81,0.08);
}

/* Auth user dropdown */
.auth-user-menu {
  position: relative;
  display: inline-block;
}
.auth-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 1000;
  overflow: hidden;
}
.auth-dropdown.open {
  display: block;
}
.auth-dropdown-header {
  padding: 12px 16px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-primary);
  word-break: break-all;
}
.auth-dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s;
}
.auth-dropdown-item:hover {
  background: var(--surface-3);
  color: var(--text-primary);
}
.auth-dropdown-item i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

/* Auth modal */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: var(--space-4);
  backdrop-filter: blur(4px);
}
.auth-modal {
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 420px;
  width: 100%;
  position: relative;
  animation: authModalIn 0.2s ease-out;
}
@keyframes authModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.auth-modal-close:hover {
  color: var(--text-primary);
}
.auth-modal-logo {
  text-align: center;
  margin-bottom: var(--space-4);
}

/* Auth tabs */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-primary);
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.auth-tab:hover {
  color: var(--text-secondary);
}
.auth-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* Auth error */
.auth-error {
  color: var(--red-text);
  font-size: var(--text-xs);
  margin-bottom: var(--space-3);
  display: none;
  padding: var(--space-2) var(--space-3);
  background: rgba(231,76,60,0.08);
  border-radius: var(--radius-md);
}

/* Auth forgot password */
.auth-forgot {
  text-align: right;
  margin: calc(-1 * var(--space-1)) 0 var(--space-3);
  font-size: var(--text-xs);
}
.auth-forgot a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.auth-forgot a:hover {
  color: var(--green);
}

/* Auth footer */
.auth-footer {
  text-align: center;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.auth-footer a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}
.auth-footer a:hover {
  text-decoration: underline;
}

/* Password eye toggle (reusable) */
.password-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  font-size: 14px;
}
.password-eye:hover {
  color: var(--text-secondary);
}

/* Welcome modal */
.welcome-modal { text-align: center; }
.welcome-title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.welcome-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}
.welcome-perks {
  text-align: left;
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.welcome-perk {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 500;
}
.welcome-perk i {
  color: var(--green);
  width: 20px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
}
.welcome-footer {
  text-align: center;
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.welcome-footer a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}
.welcome-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .auth-modal {
    padding: var(--space-6);
    margin: var(--space-2);
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border-primary);
  padding: var(--space-10) 0;
  margin-top: var(--space-16);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-links {
  display: flex;
  gap: var(--space-4);
}

.footer-links a {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-attribution {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-attribution a {
  color: var(--text-muted);
}

.footer-attribution a:hover {
  color: var(--text-secondary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    display: none;
  }
  .admin-sidebar.mobile-open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    z-index: 200;
    box-shadow: var(--shadow-lg);
  }
  .admin-main {
    padding: var(--space-5);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: var(--space-16) 0 var(--space-10);
  }
  .brand-grid {
    grid-template-columns: 1fr;
  }
  .industry-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .brand-hero {
    padding: var(--space-3) 0 var(--space-4);
  }
  .brand-hero-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
  .brand-hero-identity {
    flex-direction: column;
    gap: var(--space-2);
  }
  .brand-hero-logo img.brand-logo-hero {
    width: 80px;
    height: 80px;
  }
  .brand-hero-score .score-circle-hero {
    width: 100px;
    height: 100px;
  }
  .brand-hero-score .score-circle-hero .score-value {
    font-size: var(--text-xl);
  }
  .brand-hero-name {
    font-size: var(--text-lg);
  }
  .brand-hero-badges {
    justify-content: center;
    gap: var(--space-2);
  }
  .brand-hero-badges .badge {
    font-size: var(--text-xs);
    padding: 3px 8px;
  }
  .brand-hero-info > div:last-child {
    justify-content: center;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section {
    padding: var(--space-10) 0;
  }
  .container {
    padding: 0 var(--space-4);
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .brand-card-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 400ms var(--ease-out) forwards;
  opacity: 0;
}

.stagger-1 { animation-delay: 50ms; }
.stagger-2 { animation-delay: 100ms; }
.stagger-3 { animation-delay: 150ms; }
.stagger-4 { animation-delay: 200ms; }
.stagger-5 { animation-delay: 250ms; }
.stagger-6 { animation-delay: 300ms; }

/* ============================================================
   PRICING TABLE
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
}

.pricing-card {
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
}

.pricing-card-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.pricing-card-price {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.pricing-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pricing-card-features li {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pricing-card-features li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--green);
  font-size: 10px;
}

/* ============================================================
   EXTERNAL RATINGS
   ============================================================ */
.ratings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
}

.rating-card {
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
}

.rating-card-platform {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

.rating-card-score {
  font-size: var(--text-2xl);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-1);
}

/* Regulatory */
.regulatory-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.regulatory-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.regulatory-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--text-sm);
}

/* ============================================================
   STRENGTHS & CONCERNS
   ============================================================ */
.sc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .sc-grid { grid-template-columns: 1fr; }
}

.sc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sc-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.sc-list li i {
  margin-top: 3px;
  font-size: var(--text-xs);
  flex-shrink: 0;
}

/* ============================================================
   RESEARCH STATUS (Admin)
   ============================================================ */
.freshness-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
}

.freshness-fresh {
  background: var(--green-bg);
  color: var(--green-text);
}

.freshness-stale {
  background: var(--orange-bg);
  color: var(--orange-text);
}

.freshness-outdated {
  background: var(--red-bg);
  color: var(--red-text);
}

/* Activity feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  flex-shrink: 0;
}

.activity-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.4;
}

.activity-text strong {
  color: var(--text-primary);
}

.activity-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* Pill selector for brand compare */
.brand-selector {
  position: relative;
}

.brand-selector-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface-3);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}

.brand-selector-dropdown.open {
  display: block;
}

.brand-selector-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.brand-selector-option:hover {
  background: var(--surface-2);
}

/* Tab system */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-primary);
  gap: 0;
  margin-bottom: var(--space-6);
}

.tab {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.tab:hover {
  color: var(--text-secondary);
}

.tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* Admin mobile toggle */
.admin-mobile-toggle {
  display: none;
  position: fixed;
  bottom: var(--space-5);
  left: var(--space-5);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--green);
  color: white;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 150;
  font-size: var(--text-base);
}

@media (max-width: 1024px) {
  .admin-mobile-toggle { display: flex; }
}

/* ============================================================
   INDUSTRY CARDS V2 — UK-style with colors
   ============================================================ */
.industry-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}
.industry-card-v2 {
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: all var(--transition-normal);
  position: relative;
}
.industry-card-v2:hover {
  border-color: var(--green-dim);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.ic-icon {
  font-size: var(--text-xl);
  margin-bottom: var(--space-1);
}
.ic-name {
  font-weight: 700;
  font-size: var(--text-base);
}
.ic-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.ic-arrow {
  color: var(--text-faint);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  transition: transform var(--transition-fast);
}
.industry-card-v2:hover .ic-arrow {
  transform: translateX(4px);
  color: var(--green);
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-theme-toggle {
  margin-left: var(--space-2);
}

.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--surface-2);
  border-color: var(--text-muted);
}

.mobile-nav .theme-toggle {
  width: auto;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  gap: var(--space-3);
  justify-content: flex-start;
}

/* ============================================================
   LIGHT MODE OVERRIDES
   ============================================================ */
.light-mode {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f2f5;
  --bg-elevated: #f5f5f5;
  --border-primary: #e0e0e0;
  --border-subtle: #eeeeee;

  --green: #0d8c44;
  --green-dim: rgba(13, 140, 68, 0.12);
  --green-glow: rgba(13, 140, 68, 0.08);
  --green-text: #0d8c44;
  --green-bg: rgba(13, 140, 68, 0.08);

  --orange: #e68a00;
  --orange-dim: rgba(230, 138, 0, 0.12);
  --orange-text: #cc7a00;
  --orange-bg: rgba(230, 138, 0, 0.08);

  --red: #d63031;
  --red-dim: rgba(214, 48, 49, 0.12);
  --red-text: #c0392b;
  --red-bg: rgba(214, 48, 49, 0.08);

  --blue: #2563eb;
  --blue-dim: rgba(37, 99, 235, 0.12);

  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;
  --text-faint: #bbbbbb;

  --surface-0: var(--bg-primary);
  --surface-1: var(--bg-secondary);
  --surface-2: var(--bg-card);
  --surface-3: var(--bg-elevated);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 20px rgba(13, 140, 68, 0.06);
  --shadow-glow-strong: 0 0 30px rgba(13, 140, 68, 0.1);
}

/* Header: override hardcoded dark background */
.light-mode .site-header {
  background: rgba(255, 255, 255, 0.85);
}

/* Hero: tone down radial glow on light */
.light-mode .hero::before {
  opacity: 0.25;
}

/* Logo: use dedicated light-mode logo via JS — no CSS filter needed */

/* Table row hover: use light rgba */
.light-mode .data-table tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

/* Score circle track stroke: lighten on light mode */
.light-mode .score-circle svg circle:first-child {
  stroke: #e0e0e0;
}

/* Brand card / card borders: add subtle shadow for depth */
.light-mode .brand-card,
.light-mode .card,
.light-mode .industry-card,
.light-mode .industry-card-v2,
.light-mode .category-card,
.light-mode .rating-card,
.light-mode .pricing-card,
.light-mode .comment-card,
.light-mode .kpi-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Search results dropdown: light */
.light-mode #search-results {
  background: var(--bg-secondary) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
}

/* Mobile nav background */
.light-mode .mobile-nav {
  background: var(--bg-secondary);
}

/* Scrollbar thumb: lighter */
.light-mode ::-webkit-scrollbar-thumb {
  background: #ccc;
}

.light-mode ::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Brand selector dropdown */
.light-mode .brand-selector-dropdown {
  background: var(--bg-secondary);
}

/* Modal overlay */
.light-mode .modal-overlay {
  background: rgba(0, 0, 0, 0.4);
}
.light-mode .auth-modal-overlay {
  background: rgba(0, 0, 0, 0.4);
}
.light-mode .auth-dropdown {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Selection colour */
.light-mode ::selection {
  background: var(--green);
  color: #fff;
}


/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--bg-card);
  border-top: 1px solid var(--border-primary);
  padding: var(--space-5) var(--space-6);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  font-family: var(--font-body);
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-banner p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  max-width: 600px;
  line-height: 1.5;
}
.cookie-banner p a {
  color: var(--green);
  text-decoration: underline;
}
.cookie-banner-buttons {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}
.cookie-banner-buttons button {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}
.cookie-btn-accept {
  background: var(--green);
  color: #fff;
}
.cookie-btn-accept:hover {
  background: #0d8c44;
}
.cookie-btn-reject {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-primary) !important;
}
.cookie-btn-reject:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-4);
  }
}
/* ============================================================
   HOMEPAGE V2
   ============================================================ */

.homepage-v2 .hero-homepage {
  padding-top: calc(var(--space-20) + var(--space-4));
  padding-bottom: var(--space-16);
}

.homepage-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: var(--space-8);
  align-items: center;
}

.homepage-kicker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.homepage-kicker-text {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.homepage-logo-wrap {
  margin-bottom: var(--space-5);
}

.homepage-hero-logo {
  height: 92px;
  width: auto;
  border-radius: 12px;
  display: block;
  box-shadow: var(--shadow-md);
}

.homepage-title {
  max-width: 12ch;
  margin-bottom: var(--space-4);
  text-align: left;
}

.homepage-subtitle {
  max-width: 62ch;
  margin: 0 0 var(--space-6);
  text-align: left;
}

.homepage-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.homepage-search-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-md);
}

.homepage-search-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}

.homepage-search-wrap {
  position: relative;
  max-width: 100%;
  margin: 0;
}

.homepage-search-icon {
  color: var(--text-muted);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.homepage-search-input {
  width: 100%;
  padding: 16px 16px 16px 44px;
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--text-base);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.homepage-search-input:focus {
  box-shadow: 0 0 0 3px var(--green-dim);
}

.homepage-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  max-height: 60vh;
  overflow-y: auto;
  z-index: 50;
  box-shadow: var(--shadow-lg);
}

.homepage-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.homepage-quick-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.02);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.homepage-quick-link:hover {
  color: var(--text-primary);
  border-color: var(--green-dim);
  background: var(--surface-2);
}

.homepage-hero-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.homepage-signal-card {
  background:
    radial-gradient(circle at top right, rgba(17,165,81,0.12), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border-primary);
  border-radius: 24px;
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.homepage-signal-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: flex-start;
  margin-bottom: var(--space-5);
}

.homepage-panel-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.homepage-panel-title {
  font-size: var(--text-xl);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.homepage-score-showcase {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.homepage-verdict-card {
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--border-primary);
  background: rgba(255,255,255,0.02);
}

.homepage-verdict-card p {
  color: var(--text-secondary);
  font-size: var(--text-xs);
  margin-top: var(--space-2);
}

.homepage-verdict-number {
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.homepage-verdict-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.homepage-verdict-go {
  border-color: var(--green-dim);
  background: linear-gradient(180deg, rgba(17,165,81,0.10), rgba(17,165,81,0.04));
}

.homepage-verdict-caution {
  border-color: var(--orange-dim);
  background: linear-gradient(180deg, rgba(255,152,0,0.10), rgba(255,152,0,0.04));
}

.homepage-verdict-nogo {
  border-color: var(--red-dim);
  background: linear-gradient(180deg, rgba(231,76,60,0.10), rgba(231,76,60,0.04));
}

.homepage-rubric-list {
  display: grid;
  gap: var(--space-2);
}

.homepage-rubric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.homepage-rubric-row:last-child {
  border-bottom: none;
}

.homepage-rubric-row span:first-child {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-primary);
  font-weight: 500;
}

.homepage-rubric-row i {
  color: var(--green);
}

.homepage-micro-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.homepage-proof-item {
  border: 1px solid var(--border-primary);
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
}

.homepage-proof-value {
  display: block;
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.homepage-proof-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.homepage-nav-strip {
  padding-top: 0;
}

.homepage-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.homepage-strip-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.homepage-strip-card:hover {
  transform: translateY(-2px);
  border-color: var(--green-dim);
  box-shadow: var(--shadow-glow);
  color: var(--text-primary);
}

.homepage-strip-card i {
  color: var(--green);
  font-size: var(--text-lg);
  margin-top: 2px;
}

.homepage-strip-card strong {
  display: block;
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

.homepage-strip-card span {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.homepage-section-header {
  max-width: 760px;
}

.homepage-section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--green-text);
  background: var(--green-bg);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}

.homepage-section-title {
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}

.homepage-section-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 62ch;
}

.homepage-value-section {
  position: relative;
}

.homepage-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.homepage-feature-card {
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-normal);
}

.homepage-feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--green-dim);
  box-shadow: var(--shadow-glow);
}

.homepage-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-bg);
  color: var(--green);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.homepage-feature-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.homepage-feature-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.homepage-compare-band {
  background: var(--surface-1);
}

.homepage-compare-panel,
.homepage-business-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-8);
  border-radius: 24px;
  border: 1px solid var(--border-primary);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
    var(--surface-2);
  box-shadow: var(--shadow-md);
}

.homepage-compare-copy,
.homepage-business-copy {
  max-width: 760px;
}

.homepage-compare-action,
.homepage-business-actions {
  flex-shrink: 0;
}

.homepage-score-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.homepage-method-note {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.homepage-method-note p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

.homepage-business-section {
  padding-bottom: var(--space-20);
}

@media (max-width: 1100px) {
  .homepage-hero-grid {
    grid-template-columns: 1fr;
  }

  .homepage-title,
  .homepage-subtitle {
    max-width: none;
  }

  .homepage-strip-grid,
  .homepage-value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .homepage-compare-panel,
  .homepage-business-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .homepage-v2 .hero-homepage {
    padding-top: var(--space-16);
  }

  .homepage-hero-logo {
    height: 72px;
  }

  .homepage-title,
  .homepage-subtitle {
    text-align: left;
  }

  .homepage-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .homepage-hero-actions .btn {
    width: 100%;
  }

  .homepage-micro-proof,
  .homepage-strip-grid,
  .homepage-value-grid {
    grid-template-columns: 1fr;
  }

  .homepage-signal-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .homepage-quick-links {
    gap: var(--space-2);
  }

  .homepage-quick-link {
    width: 100%;
    justify-content: center;
  }

  .homepage-compare-panel,
  .homepage-business-panel {
    padding: var(--space-5);
  }
}
/* ============================================================
   HOMEPAGE FIXES — SA HERO LOGO + POLISH
   ============================================================ */

.logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.ic-icon {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.brand-logo {
  width: 44px;
  height: 44px;
  padding: 3px;
}

.brand-logo-lg {
  width: 60px;
  height: 60px;
  padding: 5px;
}

.brand-card-top {
  gap: var(--space-5);
}

.hero {
  text-align: center;
}

.hero .container,
.hero .animate-in {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto var(--space-5);
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-logo {
  display: block;
  width: min(420px, 78vw);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.hero-title,
.hero-subtitle {
  position: relative;
  z-index: 1;
  text-align: center;
}

.homepage-quick-links-grid .card {
  min-height: 96px;
}

.homepage-quick-links-grid .card > div {
  height: 100%;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.insight-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-primary);
  background: var(--surface-2);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.insight-card:hover {
  border-color: var(--green-dim);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.insight-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.insight-title {
  font-size: var(--text-sm);
  font-weight: 600;
}

.insight-meta {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.footer-social a {
  color: var(--text-muted);
}

.footer-social a:hover {
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .homepage-quick-links-grid,
  .homepage-value-points,
  .homepage-value-grid,
  .homepage-compare-grid,
  .homepage-business-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .hero-logo {
    width: min(320px, 82vw);
  }

  .hero-title {
    max-width: none !important;
  }
}

@media (max-width: 480px) {
  .homepage-search-panel,
  .homepage-signal-card,
  .homepage-feature-card {
    padding: var(--space-4);
  }

  .homepage-panel-title {
    font-size: var(--text-lg);
  }
}
/* ============================================================
   SA HOMEPAGE FINAL OVERRIDES
   Add at the very bottom of style.css
   ============================================================ */

/* Hero */
.hero {
  padding: var(--space-20) 0 var(--space-16);
  text-align: center;
  position: relative;
  overflow: visible;
}

.hero::before {
  content: '';
  position: absolute;
  top: -36%;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, 92vw);
  height: min(920px, 92vw);
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 68%);
  pointer-events: none;
  opacity: 0.42;
  z-index: 0;
}

.hero .container,
.hero .animate-in {
  position: relative;
  z-index: 1;
}

.hero-logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto var(--space-5);
  text-align: center;
}

.hero-logo {
  display: block;
  width: min(420px, 78vw);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.hero-title {
  font-size: clamp(2.4rem, 2rem + 1.4vw, 4.2rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: 12ch;
  margin: 0 auto var(--space-4);
  text-align: center;
}

.hero-subtitle {
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto var(--space-8);
  line-height: 1.65;
  text-align: center;
}

#hero-search {
  height: 52px !important;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

#search-results {
  left: 0 !important;
  right: 0 !important;
  margin-top: 8px;
}

/* Homepage quick links under hero */
.homepage-quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.homepage-quick-links-grid .card {
  min-height: 96px;
  height: 100%;
}

.homepage-quick-links-grid .card > div {
  height: 100%;
}

/* Section headers */
.section-header {
  margin-bottom: var(--space-8);
}

.section-title {
  font-size: clamp(1.8rem, 1.55rem + 0.7vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 64ch;
}

/* Industry cards */
.industry-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}

.industry-card-v2 {
  background: var(--surface-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: all var(--transition-normal);
  position: relative;
  min-height: 196px;
}

.industry-card-v2:hover {
  border-color: var(--green-dim);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.ic-icon {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.ic-name {
  font-weight: 700;
  font-size: var(--text-base);
  line-height: 1.35;
}

.ic-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.ic-arrow {
  color: var(--text-faint);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.industry-card-v2:hover .ic-arrow {
  transform: translateX(4px);
  color: var(--green);
}

/* Generic cards */
.card {
  border-radius: var(--radius-xl);
}

.card-hover:hover {
  border-color: var(--green-dim);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Brand cards */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
}

.brand-card-top {
  gap: var(--space-5);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: #fff;
  padding: 3px;
}

.brand-logo-lg {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  background: #fff;
  padding: 5px;
}

/* Homepage value / score / compare blocks */
.homepage-value-grid,
.homepage-score-grid,
.homepage-compare-grid,
.homepage-business-grid {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

.homepage-value-grid {
  grid-template-columns: 1.25fr 0.75fr;
}

.homepage-score-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.homepage-compare-grid,
.homepage-business-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.homepage-value-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

/* Insights and footer */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.insight-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-primary);
  background: var(--surface-2);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.insight-card:hover {
  border-color: var(--green-dim);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.insight-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.insight-title {
  font-size: var(--text-sm);
  font-weight: 600;
}

.insight-meta {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.footer-social a {
  color: var(--text-muted);
}

.footer-social a:hover {
  color: var(--text-secondary);
}

/* Navigation logo polish */
.logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* Better spacing for buttons on homepage */
.hero .btn-lg {
  min-height: 46px;
  padding: var(--space-3) var(--space-6);
}

/* Light mode polish */
.light-mode .hero::before {
  opacity: 0.22;
}

.light-mode .card,
.light-mode .industry-card-v2,
.light-mode .brand-card,
.light-mode .insight-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.light-mode .hero-logo {
  filter: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .homepage-quick-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homepage-value-grid,
  .homepage-score-grid,
  .homepage-compare-grid,
  .homepage-business-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .homepage-value-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: var(--space-16) 0 var(--space-10);
  }

  .hero-logo {
    width: min(320px, 82vw);
  }

  .hero-title {
    max-width: none;
    font-size: clamp(2rem, 1.8rem + 1vw, 2.8rem);
  }

  .hero-subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }

  .homepage-quick-links-grid {
    grid-template-columns: 1fr;
  }

  .industry-grid-v2,
  .brand-grid,
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .homepage-quick-links-grid .card {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .homepage-search-panel,
  .homepage-signal-card,
  .homepage-feature-card,
  .card 
