/* ============================================================
   RepoFinder Global Design System — §7 tokens + component classes
   Dark-first · developer command-palette × radar aesthetic
   ============================================================ */

/* Visually-hidden utility + accessible skip link (no Tailwind in this pipeline) */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:-9999px;top:0;z-index:200;padding:10px 16px;background:var(--bg-2);color:var(--brand-1);border:1px solid var(--brand-2);border-radius:8px;text-decoration:none;font-size:14px}
.skip-link:focus{left:12px;top:12px}

/* ─────────────────────────────────────────
   DESIGN TOKENS  (§7)
   ───────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:       #070A12;
  --bg-2:     #0A0E1A;
  /* Surfaces */
  --surface:  rgba(255,255,255,.035);
  --surface-2:rgba(255,255,255,.06);
  /* Borders */
  --border:   rgba(255,255,255,.09);
  /* Text */
  --text:     #E6EAF2;
  --text-dim: #8B93A7;
  --text-mute:#7C869C;
  /* Brand palette */
  --brand-1:  #22D3EE;   /* cyan  */
  --brand-2:  #6366F1;   /* indigo */
  --brand-3:  #A855F7;   /* violet */
  --grad:     linear-gradient(135deg,var(--brand-1),var(--brand-2) 55%,var(--brand-3));
  /* Status */
  --star:     #FBBF24;
  --ok:       #34D399;
  --warn:     #F59E0B;
  --bad:      #F87171;
  /* Geometry */
  --radius:   16px;
  --radius-sm:10px;
  /* Shadows */
  --shadow:   0 10px 40px -12px rgba(0,0,0,.55);
  --glow:     0 0 0 1px rgba(99,102,241,.35), 0 0 28px -6px rgba(99,102,241,.45);
  --glow-cyan:0 0 0 1px rgba(34,211,238,.35), 0 0 28px -6px rgba(34,211,238,.45);
  --glow-ok:  0 0 0 1px rgba(52,211,153,.35), 0 0 28px -6px rgba(52,211,153,.45);
}

/* ─────────────────────────────────────────
   BASE RESET
   ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

/* Ensure dark mode is always on */
html { color-scheme: dark; }

/* ─────────────────────────────────────────
   KEYFRAME ANIMATIONS
   ───────────────────────────────────────── */

/* Radar sweep — rotating conic-gradient behind hero */
@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Skeleton shimmer */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* Staggered card entrance */
@keyframes card-enter {
  0%   { opacity: 0; transform: translateY(20px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0)   scale(1); }
}

/* Verdict / score glow pulse */
@keyframes glow-pulse {
  0%, 100% { box-shadow: var(--glow); }
  50%       { box-shadow: 0 0 0 1px rgba(99,102,241,.55), 0 0 40px -4px rgba(99,102,241,.65); }
}

/* ≥90 score sparkle */
@keyframes sparkle {
  0%   { opacity: 0; transform: scale(0) rotate(0deg); }
  50%  { opacity: 1; transform: scale(1.3) rotate(180deg); }
  100% { opacity: 1; transform: scale(1)   rotate(360deg); }
}

/* Score gauge fill */
@keyframes gauge-fill {
  from { stroke-dashoffset: var(--dash-total); }
  to   { stroke-dashoffset: var(--dash-offset); }
}

/* Star count-up */
@keyframes count-up {
  0%   { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Fade in */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Slide up */
@keyframes slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Starfield twinkle */
@keyframes twinkle {
  0%, 100% { opacity: .2; transform: scale(1); }
  50%       { opacity: .9; transform: scale(1.4); }
}

/* Verdict border spin */
@keyframes border-spin {
  from { --angle: 0deg; }
  to   { --angle: 360deg; }
}

/* ─────────────────────────────────────────
   REDUCED MOTION — disable all transforms/animations
   ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .radar-ring, .starfield-dot { display: none !important; }
}

/* ─────────────────────────────────────────
   COMPONENT CLASSES
   ───────────────────────────────────────── */

/* Glassy surface */
.glass {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Generic card */
.card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(99,102,241,.35);
  box-shadow: var(--glow), var(--shadow);
  transform: translateY(-2px);
}

/* ── Canonical repo-card classes (Agent C mirrors these exactly) ──
   .repo-card                 outer wrapper (.card)
   .repo-card__inner          inner padding container
   .repo-card__header         flex row: avatar + names + rank badge
   .repo-card__avatar         <img> owner avatar 36px rounded-full
   .repo-card__names          owner/name + description column
   .repo-card__owner          dim text, small
   .repo-card__name           font-mono, medium-bold, brand-colored link
   .repo-card__description    dim body text, 2 lines clamp
   .repo-card__meta           flex row of stat chips
   .repo-card__stars          ⭐ star count (animated)
   .repo-card__forks          fork count
   .repo-card__issues         issue count
   .repo-card__lang           language dot + name
   .repo-card__updated        relative time
   .repo-card__score          RepoRadar score widget
   .repo-card__score-gauge    SVG radial gauge wrapper
   .repo-card__score-number   score integer
   .repo-card__breakdown      hidden breakdown (hover/focus shows)
   .repo-card__topics         flex row of .chip elements
   .repo-card__footer         flex row: license pill + actions
   .repo-card__actions        copy-clone btn + compare checkbox
   .repo-card--rank-1         gold podium
   .repo-card--rank-2         silver podium
   .repo-card--rank-3         bronze podium
   .repo-card--sparkle        ≥90 score sparkle overlay active
   .repo-card--compare        selected for compare mode
   ──────────────────────────────────────────────────────────────── */

.repo-card {
  composes: card;
  animation: card-enter .5s ease-out both;
}
/* Stagger delays via nth-child / inline style --delay */
.repo-card { animation-delay: var(--card-delay, 0ms); }

/* Podium accents */
.repo-card--rank-1 {
  border-color: rgba(251,191,36,.4);
  background: linear-gradient(135deg, rgba(251,191,36,.06) 0%, var(--surface) 60%);
}
.repo-card--rank-1:hover { box-shadow: 0 0 0 1px rgba(251,191,36,.5), 0 0 32px -6px rgba(251,191,36,.4), var(--shadow); }

.repo-card--rank-2 {
  border-color: rgba(148,163,184,.35);
  background: linear-gradient(135deg, rgba(148,163,184,.06) 0%, var(--surface) 60%);
}
.repo-card--rank-2:hover { box-shadow: 0 0 0 1px rgba(148,163,184,.4), 0 0 28px -6px rgba(148,163,184,.35), var(--shadow); }

.repo-card--rank-3 {
  border-color: rgba(180,120,60,.35);
  background: linear-gradient(135deg, rgba(180,120,60,.06) 0%, var(--surface) 60%);
}
.repo-card--rank-3:hover { box-shadow: 0 0 0 1px rgba(180,120,60,.4), 0 0 28px -6px rgba(180,120,60,.35), var(--shadow); }

/* Compare selected state */
.repo-card--compare {
  border-color: rgba(34,211,238,.5);
  box-shadow: var(--glow-cyan), var(--shadow);
}

/* Sparkle overlay (≥90 score) */
.repo-card--sparkle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(168,85,247,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(34,211,238,.08) 0%, transparent 60%);
  pointer-events: none;
  animation: sparkle .6s ease-out both;
}

/* Podium crown badges */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.rank-badge--1 { background: linear-gradient(135deg,#FCD34D,#F59E0B); color: #1a0a00; box-shadow: 0 0 16px rgba(245,158,11,.4); }
.rank-badge--2 { background: linear-gradient(135deg,#CBD5E1,#94A3B8); color: #0f172a; }
.rank-badge--3 { background: linear-gradient(135deg,#CD7F32,#92400E); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  transition: all .2s ease;
  white-space: nowrap;
}
.btn:hover {
  border-color: rgba(99,102,241,.4);
  background: rgba(99,102,241,.1);
  color: var(--brand-2);
}
.btn:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 20px -4px rgba(99,102,241,.5);
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px -4px rgba(99,102,241,.6);
  color: #fff;
  border-color: transparent;
}

/* Chips (topic pills) */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  white-space: nowrap;
  transition: all .15s ease;
  cursor: default;
}
.chip:hover { border-color: rgba(99,102,241,.35); color: var(--brand-2); }
.chip--clickable { cursor: pointer; }

/* Language dot */
.lang-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* License pill */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(52,211,153,.1);
  border: 1px solid rgba(52,211,153,.2);
  color: var(--ok);
}

/* Ask bar */
.ask-bar {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}
.ask-bar__input {
  width: 100%;
  padding: 18px 140px 18px 56px;
  text-overflow: ellipsis;
  background: rgba(255,255,255,.05);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 17px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  caret-color: var(--brand-1);
}
.ask-bar__input::placeholder { color: var(--text-mute); }
.ask-bar__input:focus {
  border-color: var(--brand-2);
  background: rgba(255,255,255,.07);
  box-shadow: var(--glow);
}
.ask-bar__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  pointer-events: none;
  transition: color .2s ease;
}
.ask-bar__input:focus ~ .ask-bar__icon,
.ask-bar:focus-within .ask-bar__icon { color: var(--brand-1); }
.ask-bar__submit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}
/* Compact the search button on small screens so it never overlaps the text */
@media (max-width: 560px) {
  .ask-bar__input { padding-right: 104px; font-size: 15px; }
  .ask-bar__submit .btn-primary { padding: 9px 14px !important; font-size: 14px !important; }
}

/* ── Ads (Adsterra) ───────────────────────────────────────────── */
.ad-rail {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;            /* shown only when there's room (≥1500px) */
  text-align: center;
}
.ad-rail--left  { left: 16px; }
.ad-rail--right { right: 16px; }
.ad-rail__label {
  display: block;
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 4px;
}
.ad-frame {
  display: block; border: 0; background: transparent;
  border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow);
}
.ad-native {
  max-width: 1100px;
  margin: 0 auto 28px;
  padding: 0 8px;
  min-height: 90px;
}
.ad-native__label {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-mute); text-align: center; margin-bottom: 8px;
}
@media (min-width: 1500px) { .ad-rail { display: block; } }

/* Score gauge */
.gauge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gauge__svg { transform: rotate(-90deg); }
.gauge__track { stroke: rgba(255,255,255,.08); fill: none; }
.gauge__fill {
  fill: none;
  stroke: url(#gaugeGrad);
  stroke-linecap: round;
  transition: stroke-dashoffset .8s cubic-bezier(.4,0,.2,1);
  animation: gauge-fill .8s cubic-bezier(.4,0,.2,1) both;
}
.gauge__value {
  position: absolute;
  font-size: 12px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  line-height: 1;
}

/* Star fill row */
.star-fill {
  display: inline-flex;
  gap: 1px;
  align-items: center;
}
.star-fill__star { color: var(--text-mute); font-size: 12px; }
.star-fill__star--on { color: var(--star); }

/* Verdict banner */
.verdict {
  position: relative;
  border-radius: var(--radius);
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(34,211,238,.06) 0%, rgba(99,102,241,.08) 50%, rgba(168,85,247,.06) 100%);
  border: 1px solid transparent;
  background-clip: padding-box;
  overflow: hidden;
}
.verdict::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
  animation: glow-pulse 3s ease-in-out infinite;
}
.verdict__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(34,211,238,.1);
  border: 1px solid rgba(34,211,238,.25);
  color: var(--brand-1);
  margin-bottom: 12px;
}
.verdict__summary { color: var(--text); line-height: 1.65; margin-bottom: 14px; }
.verdict__picks { display: flex; flex-direction: column; gap: 10px; }
.verdict__pick {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.verdict__pick:hover {
  border-color: rgba(99,102,241,.4);
  box-shadow: var(--glow);
}
.verdict__pick-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-mute);
  flex-shrink: 0;
  padding-top: 1px;
}
.verdict__pick-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-1);
  text-decoration: none;
  transition: color .15s;
}
.verdict__pick-name:hover { color: var(--brand-2); text-shadow: 0 0 16px rgba(34,211,238,.6); }
.verdict__pick-reason { font-size: 13px; color: var(--text-dim); margin-top: 3px; line-height: 1.5; }
.verdict__pick-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.verdict__pick-evidence span {
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-mute);
  font-family: 'JetBrains Mono', monospace;
}

/* Skeleton shimmer */
.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}

/* Interpretation line */
.interpretation {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(99,102,241,.2);
  font-size: 13px;
  color: var(--text-dim);
  animation: slide-up .3s ease-out both;
}
.interpretation__icon { color: var(--brand-2); flex-shrink: 0; }
.interpretation__text { flex: 1; }
.interpretation__edit { font-size: 12px; color: var(--brand-2); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Breakdown popover */
.breakdown {
  position: absolute;
  z-index: 100;
  min-width: 220px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: none;
  animation: fade-in .15s ease-out both;
}
.breakdown__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
}
.breakdown__row:last-child { margin-bottom: 0; }
.breakdown__label { color: var(--text-dim); }
.breakdown__bar-wrap {
  flex: 1;
  height: 5px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
}
.breakdown__bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--grad);
}
.breakdown__score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text);
  font-weight: 600;
  width: 28px;
  text-align: right;
}

/* Score tier badges */
.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tier-elite {
  background: linear-gradient(135deg, rgba(168,85,247,.2), rgba(99,102,241,.2));
  border: 1px solid rgba(168,85,247,.4);
  color: var(--brand-3);
}
.tier-strong {
  background: rgba(34,211,238,.12);
  border: 1px solid rgba(34,211,238,.3);
  color: var(--brand-1);
}
.tier-solid {
  background: rgba(52,211,153,.1);
  border: 1px solid rgba(52,211,153,.25);
  color: var(--ok);
}
.tier-mixed {
  background: rgba(91,100,120,.15);
  border: 1px solid rgba(91,100,120,.3);
  color: var(--text-dim);
}

/* Filter rail */
.filter-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
}
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .15s ease;
}
.filter-toggle:hover { border-color: rgba(99,102,241,.35); color: var(--brand-2); }
.filter-toggle.active {
  border-color: var(--brand-2);
  background: rgba(99,102,241,.12);
  color: var(--brand-2);
}
.filter-toggle:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* Stars slider */
.star-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: linear-gradient(to right, var(--brand-2) 0%, var(--brand-2) var(--pct, 0%), var(--surface-2) var(--pct, 0%), var(--surface-2) 100%);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}
.star-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 10px rgba(99,102,241,.6);
  cursor: pointer;
}
.star-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-2);
  border: none;
  box-shadow: 0 0 10px rgba(99,102,241,.6);
  cursor: pointer;
}

/* Compare table */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.compare-table th {
  background: var(--surface-2);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: var(--text);
  vertical-align: middle;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: rgba(255,255,255,.015); }

/* Rate limit countdown */
.rate-limit-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(248,113,113,.06);
  border: 1px solid rgba(248,113,113,.2);
  font-size: 13px;
  color: var(--text-dim);
  animation: slide-up .3s ease-out both;
}
.rate-limit-banner__icon { color: var(--bad); flex-shrink: 0; }
.rate-limit-banner__countdown {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--warn);
}

/* Empty + error states */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 24px;
  text-align: center;
  animation: fade-in .3s ease-out both;
}
.empty-state__icon { font-size: 48px; opacity: .4; }
.empty-state__title { font-size: 20px; font-weight: 700; color: var(--text); }
.empty-state__body { font-size: 15px; color: var(--text-dim); max-width: 400px; line-height: 1.6; }

/* Podium section */
.podium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.podium .repo-card--rank-1 { order: 2; }
.podium .repo-card--rank-2 { order: 1; }
.podium .repo-card--rank-3 { order: 3; }
@media (min-width: 900px) {
  .podium { grid-template-columns: 1fr 1.08fr 1fr; align-items: end; }
  .podium .repo-card--rank-1 { transform-origin: bottom; transform: scale(1.04); }
}

/* Section titles */
.section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Radar motif (hero background ring) */
.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(99,102,241,.12);
  pointer-events: none;
}
.radar-sweep-arm {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 270deg,
    rgba(34,211,238,.15) 310deg,
    rgba(99,102,241,.25) 340deg,
    rgba(168,85,247,.1) 360deg
  );
  animation: radar-sweep 4s linear infinite;
  pointer-events: none;
}

/* Starfield dots */
.starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.starfield-dot {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--twinkle-dur, 3s) ease-in-out var(--twinkle-del, 0s) infinite;
}

/* Footer ad slot placeholder */
.adslot {
  display: block;
  width: 100%;
  background: rgba(255,255,255,.02);
  border: 1px dashed rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--text-mute);
  font-size: 11px;
  padding: 8px;
  overflow: hidden;
  position: relative;
}
.adslot::before {
  content: "Ad";
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mute);
  opacity: .5;
  display: block;
  margin-bottom: 2px;
}
.adslot-leaderboard { min-height: 90px; max-width: 728px; margin: 0 auto; }
.adslot-sidebar { min-height: 250px; width: 300px; }

/* How-it-works step */
.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 20px;
}
.how-step__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px -4px rgba(99,102,241,.5);
  flex-shrink: 0;
}
.how-step__title { font-size: 15px; font-weight: 700; color: var(--text); }
.how-step__body { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* Nav */
.nav-link {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-link:hover { color: var(--text); border-color: var(--brand-2); }
.nav-link:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }

/* Recent search chips */
.recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .15s ease;
}
.recent-chip:hover { border-color: rgba(99,102,241,.4); color: var(--text); }
.recent-chip:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* Mono text helpers */
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Gradient text */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }

/* Selection */
::selection { background: rgba(99,102,241,.3); color: var(--text); }
