/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0b0c1a;
  --bg-card:     #13142a;
  --bg-card-alt: #191a33;
  --bg-dark:     #080912;
  --surface:     #1c1d38;
  --border:      rgba(189, 193, 255, 0.08);
  --border-hl:   rgba(189, 193, 255, 0.18);
  --text:        #e4e1e9;
  --text-dim:    #9895a5;
  --text-muted:  #6b687a;
  --primary:     #bdc1ff;
  --primary-dim: #8b8fcc;
  --secondary:   #c4c5dd;
  --accent:      #e8b9d4;
  --ct:          #7bb8e0;
  --t:           #e8c87b;
  --green:       #7be0a0;
  --red:         #e07b7b;
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,0.3);
  --transition:  0.2s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.ct-color { color: var(--ct); }
.t-color  { color: var(--t); }

/* ─── Navigation ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 12, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--text); }
.logo-img { width: 28px; height: 28px; object-fit: contain; }
.logo-icon { color: var(--primary); font-size: 16px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-dim); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; font-family: inherit;
  background: var(--primary); color: var(--bg);
  border: none; cursor: pointer;
  transition: all var(--transition);
}
.btn:hover { background: #fff; color: var(--bg); transform: translateY(-1px); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 1px solid var(--border-hl);
}
.btn-outline:hover { background: rgba(189, 193, 255, 0.08); color: #fff; border-color: var(--primary); }
.btn-donate {
  background: var(--accent); color: var(--bg);
}
.btn-donate:hover { background: #f0cde2; }

/* ─── Hero ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(189, 193, 255, 0.06), transparent),
    radial-gradient(ellipse 40% 40% at 70% 70%, rgba(232, 185, 212, 0.04), transparent);
}
.hero-content { position: relative; max-width: 520px; }
.hero-split {
  position: relative;
  display: flex; align-items: center; gap: 36px;
  max-width: 1400px; width: 100%;
}
.hero-video-col { flex: 1 1 75%; min-width: 0; }
.hero-video {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: block;
}
.hero-content { flex: 1 1 25%; }
.hero-badge {
  display: inline-block; padding: 5px 14px;
  background: rgba(189, 193, 255, 0.08);
  border: 1px solid var(--border-hl);
  border-radius: 999px; font-size: 10px; font-weight: 600;
  color: var(--primary); letter-spacing: 0.5px;
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 13px; line-height: 1.6;
  color: var(--text-dim); max-width: 460px;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num { display: block; font-size: 22px; font-weight: 800; color: var(--primary); }
.hero-stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

@media (max-width: 840px) {
  .hero-split {
    flex-direction: column; text-align: center;
  }
  .hero-video-col { flex: none; width: 100%; max-width: 560px; }
  .hero-content { flex: none; max-width: 700px; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
}

@media (max-width: 520px) {
  .hero {
    padding: 80px 12px 48px;
    min-height: auto;
  }
  .hero-video-col {
    max-width: 100%;
    margin: 0 -12px;         /* bleed to screen edges */
    width: calc(100% + 24px);
  }
  .hero-video {
    border-radius: 0;
  }
  .hero-title {
    font-size: 22px;
  }
  .hero-badge {
    font-size: 9px;
    padding: 4px 10px;
    margin-bottom: 14px;
  }
  .hero-sub {
    font-size: 12px;
    margin: 0 auto 24px;
  }
  .hero-stats {
    gap: 16px;
  }
  .hero-stat-num { font-size: 18px; }
  .hero-stat-label { font-size: 9px; }
  .hero-actions { margin-bottom: 28px; }
}

/* ─── Sections ─── */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-dark); }
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; text-align: center;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.section-sub {
  text-align: center; color: var(--text-dim);
  font-size: 16px; max-width: 520px;
  margin: 0 auto 56px;
}

/* ─── Features Grid ─── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 840px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover { border-color: var(--border-hl); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(189, 193, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--primary); margin-bottom: 18px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ─── Preview Gallery ─── */
.preview-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
.preview-card-wide { grid-row: 1 / 3; }
@media (max-width: 720px) {
  .preview-grid { grid-template-columns: 1fr; }
  .preview-card-wide { grid-row: auto; }
}

.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px; overflow: hidden;
}
.preview-label {
  margin-top: 16px; font-size: 12px;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.5px; font-weight: 600;
}

/* ── Scoreboard Mock ── */
.mock-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; font-size: 13px; color: var(--text-dim);
}
.mock-score { font-size: 22px; font-weight: 800; }
.mock-table { font-size: 13px; }
.mock-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  padding: 8px 12px; border-radius: 6px;
  align-items: center;
}
.mock-row-header { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.ct-row { border-left: 2px solid var(--ct); }
.highlight-row { background: rgba(123, 184, 224, 0.06); }
.name-cell { font-weight: 600; }
.accent-val { color: var(--green); font-weight: 700; }
.mock-cell { padding: 2px 0; }

/* ── KPI Mock ── */
.kpi-mock { display: flex; flex-direction: column; gap: 18px; }
.kpi-val { font-size: 22px; font-weight: 800; color: var(--text); }
.kpi-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-left: 8px; }
.kpi-bar {
  margin-top: 6px; height: 4px;
  background: rgba(189, 193, 255, 0.08);
  border-radius: 99px; overflow: hidden;
}
.kpi-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ── Radar Mock ── */
.radar-mock {
  display: flex; align-items: center; justify-content: center;
  min-height: 260px;
}

/* ─── Demo Replay ─── */
.demo-wrapper {
  max-width: 640px; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.demo-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.demo-info { display: flex; gap: 16px; align-items: center; }
.demo-map { font-weight: 700; color: var(--text); }
.demo-round { color: var(--text-dim); }
.demo-score { font-weight: 700; font-size: 15px; }
.demo-controls { display: flex; align-items: center; gap: 8px; }
.demo-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(189, 193, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 6px; color: var(--text-dim);
  cursor: pointer; transition: all var(--transition);
}
.demo-btn:hover { background: rgba(189, 193, 255, 0.12); color: var(--text); }
.demo-speed { font-size: 12px; color: var(--text-muted); font-weight: 600; min-width: 36px; text-align: center; }

.demo-canvas-wrap { position: relative; background: #080914; }
#demo-canvas { display: block; width: 100%; height: auto; }

.demo-killfeed {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 4px;
  pointer-events: none;
}
.killfeed-entry {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  font-size: 11px; font-weight: 600;
  white-space: nowrap;
  animation: feedIn 0.3s ease;
}
@keyframes feedIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.killfeed-weapon { color: var(--text-muted); font-size: 10px; }

.demo-timeline-wrap { padding: 12px 20px 16px; }
.demo-timeline {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: rgba(189, 193, 255, 0.1);
  border-radius: 99px; outline: none;
  cursor: pointer;
}
.demo-timeline::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px;
  background: var(--primary); border-radius: 50%;
  cursor: pointer;
}
.demo-timeline::-moz-range-thumb {
  width: 14px; height: 14px;
  background: var(--primary); border-radius: 50%;
  cursor: pointer; border: none;
}
.demo-time {
  text-align: center; font-size: 11px;
  color: var(--text-muted); margin-top: 8px;
}

/* ─── Aim Panel ─── */
.aim-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.aim-panel-header {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.aim-panel-title {
  font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text);
}
.aim-score-badge {
  background: rgba(123, 224, 160, 0.1);
  color: var(--green);
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 6px;
}
.aim-cards {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr 1fr 1fr;
  gap: 0;
}
.aim-card {
  padding: 20px;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.aim-card:last-child { border-right: none; }
.aim-card-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.aim-card-hero {
  display: flex; align-items: baseline; gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.aim-card-val {
  font-size: 28px; font-weight: 800; color: var(--text);
}
.aim-card-val.cyan  { color: var(--ct); }
.aim-card-val.green { color: var(--green); }
.aim-card-val.yellow { color: var(--t); }
.aim-card-val.red   { color: var(--red); }
.aim-card-unit {
  font-size: 11px; color: var(--text-muted);
}
.aim-card-delta {
  font-size: 11px; font-weight: 600;
}
.aim-card-delta.down { color: var(--red); }
.aim-card-delta.up   { color: var(--green); }
.aim-card-rank {
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px;
  margin-bottom: 8px; display: inline-block;
}
.aim-card-rank.good { background: rgba(123, 224, 160, 0.1); color: var(--green); }
.aim-tag {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px;
  white-space: nowrap;
}
.aim-tag.pro     { background: rgba(123, 184, 224, 0.12); color: var(--ct); }
.aim-tag.avg     { background: rgba(232, 200, 123, 0.12); color: var(--t); }
.aim-tag.high-am { background: rgba(232, 200, 123, 0.12); color: var(--t); }
.aim-tag.below   { background: rgba(224, 123, 123, 0.12); color: var(--red); }
.aim-card-range {
  font-size: 10px; color: var(--text-muted);
  margin-bottom: 10px;
}
.aim-bar-full {
  height: 6px; border-radius: 99px;
  background: rgba(189, 193, 255, 0.08);
  margin-top: 10px; overflow: hidden;
}
.aim-bar-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--primary));
}

/* Dot strip chart */
.aim-strip {
  position: relative; height: 24px;
  background: rgba(189, 193, 255, 0.04);
  border-radius: 4px; margin-bottom: 10px;
}
.aim-dot {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
}
.aim-dot.accent { background: var(--primary); }
.aim-avg-line {
  position: absolute; top: -2px; bottom: -2px;
  width: 2px; background: var(--primary);
  font-size: 8px; font-weight: 700;
  color: var(--primary);
  padding-top: 26px; text-align: center;
  transform: translateX(-50%);
}

/* Pill tags */
.aim-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pill {
  font-size: 9px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px;
}
.pill.green  { background: rgba(123, 224, 160, 0.12); color: var(--green); }
.pill.yellow { background: rgba(232, 200, 123, 0.12); color: var(--t); }
.pill.orange { background: rgba(224, 168, 123, 0.12); color: #e0a87b; }
.pill.red    { background: rgba(224, 123, 123, 0.12); color: var(--red); }

@media (max-width: 900px) {
  .aim-cards { grid-template-columns: repeat(3, 1fr); }
  .aim-card { border-bottom: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .aim-cards { grid-template-columns: 1fr 1fr; }
}

/* ─── Round-by-Round ─── */
.rbr-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 840px) {
  .rbr-layout { grid-template-columns: 1fr; }
}
.rbr-rounds {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 560px; overflow-y: auto;
  padding-right: 8px;
}
.rbr-rounds::-webkit-scrollbar { width: 4px; }
.rbr-rounds::-webkit-scrollbar-thumb { background: var(--border-hl); border-radius: 99px; }

.rbr-round {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
  cursor: default;
}
.rbr-round:hover { border-color: var(--border-hl); }
.rbr-round-active { border-color: var(--primary); }

.rbr-round-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: 12px; font-weight: 600;
  flex-wrap: wrap;
}
.rbr-rnum { font-weight: 800; color: var(--text); font-size: 14px; }
.rbr-side {
  font-size: 10px; font-weight: 800;
  padding: 1px 6px; border-radius: 3px;
}
.rbr-side.t-side  { background: rgba(232, 200, 123, 0.15); color: var(--t); }
.rbr-side.ct-side { background: rgba(123, 184, 224, 0.15); color: var(--ct); }
.rbr-buy { color: var(--text-dim); font-size: 11px; }
.rbr-result {
  font-size: 10px; font-weight: 800;
  padding: 1px 8px; border-radius: 3px;
  margin-left: auto;
}
.rbr-result.win  { background: rgba(123, 224, 160, 0.15); color: var(--green); }
.rbr-result.loss { background: rgba(224, 123, 123, 0.15); color: var(--red); }
.rbr-stats-summary { font-size: 11px; color: var(--text-muted); }

.rbr-round-body {
  padding: 8px 16px 14px;
  border-top: 1px solid var(--border);
}
.rbr-kill-entry {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-dim);
  padding: 3px 0;
}
.rbr-arrow { color: var(--green); font-weight: 800; }
.rbr-vel  { color: var(--ct); font-size: 10px; margin-left: auto; }
.rbr-ttk  { color: var(--text-muted); font-size: 10px; }

.rbr-events {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px;
}
.rbr-event {
  font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
}
.rbr-event.flash { background: rgba(232, 200, 123, 0.1); color: var(--t); }
.rbr-event.plant { background: rgba(224, 123, 123, 0.1); color: var(--red); }

.rbr-movement {
  margin-top: 8px; font-size: 10px; color: var(--text-muted);
  display: flex; flex-direction: column; gap: 2px;
}
.rbr-move-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-right: 4px;
}
.rbr-move-dot.t-dot  { background: var(--t); }
.rbr-move-dot.ct-dot { background: var(--ct); }

/* Round minimap */
.rbr-minimap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.rbr-minimap-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 700;
  display: flex; flex-direction: column; gap: 8px;
}
.rbr-minimap-filters {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.rbr-filter {
  font-size: 9px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px;
  background: rgba(189, 193, 255, 0.04);
  color: var(--text-muted);
  text-transform: uppercase;
}
.rbr-filter.active {
  background: rgba(189, 193, 255, 0.1);
  color: var(--primary);
}

.rbr-minimap-canvas-wrap {
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
#rbr-minimap {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-sm);
}

.rbr-eventlog {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.rbr-log-entry {
  font-size: 11px;
}
.log-kill  { color: var(--green); }
.log-flash { color: var(--t); }
.log-smoke { color: var(--text-dim); }

/* ─── Steps ─── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 640px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card { text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(189, 193, 255, 0.08);
  border: 1px solid var(--border-hl);
  font-size: 20px; font-weight: 800;
  color: var(--primary); margin-bottom: 18px;
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; max-width: 280px; margin: 0 auto; }

/* ─── Behavioral Assessment ─── */
.behav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) { .behav-grid { grid-template-columns: 1fr; } }

.behav-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.behav-card-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.behav-side-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.ct-dot-lg { background: var(--ct); }
.t-dot-lg  { background: var(--t); }
.behav-side-label {
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.5px; color: var(--text);
}
.behav-badge {
  margin-left: auto;
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 6px;
  background: rgba(123, 184, 224, 0.1); color: var(--ct);
}
.behav-badge.t-badge {
  background: rgba(232, 200, 123, 0.1); color: var(--t);
}
.behav-radar-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 16px; min-height: 260px;
}
.behav-radar-wrap canvas {
  display: block; width: 100%; height: auto;
}

.behav-bars {
  padding: 12px 20px 18px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.behav-bar-row {
  display: grid;
  grid-template-columns: 22px 90px 1fr 48px 48px;
  align-items: center; gap: 8px;
  font-size: 11px;
}
.behav-bar-icon { font-size: 14px; text-align: center; }
.behav-bar-label {
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.3px; color: var(--text-dim);
}
.behav-bar-track {
  height: 6px; border-radius: 99px;
  background: rgba(189, 193, 255, 0.06);
  overflow: hidden;
}
.behav-bar-fill {
  height: 100%; border-radius: 99px;
  transition: width 0.6s ease;
}
.bar-red   { background: var(--red); }
.bar-green { background: var(--green); }
.bar-cyan  { background: var(--ct); }
.bar-gray  { background: var(--text-muted); }
.behav-bar-val {
  font-weight: 700; text-align: right; color: var(--text-muted);
}
.bar-red-text   { color: var(--red); }
.bar-green-text { color: var(--green); }
.bar-cyan-text  { color: var(--ct); }
.behav-bar-stat {
  font-size: 10px; color: var(--text-muted); text-align: right;
}

/* ─── Utility & Economy ─── */
.util-stack {
  display: flex; flex-direction: column; gap: 24px;
}
.util-wide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.util-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 8px;
}
.util-card-title {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-dim);
}
.util-legend {
  display: flex; gap: 16px;
}
.util-legend-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700;
  color: var(--text-muted);
}
.legend-dot {
  width: 8px; height: 8px; border-radius: 2px;
}
.flash-dot { background: var(--t); }
.he-dot    { background: var(--red); }
.molly-dot { background: #e07b4b; }
.util-canvas-wrap {
  background: var(--bg-dark);
  padding: 8px;
}
.util-canvas-wrap canvas {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-sm);
}

/* ─── AI Sparring ─── */
.ai-card {
  max-width: 780px; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ai-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  flex-wrap: wrap; gap: 12px;
}
.ai-identity {
  display: flex; align-items: center; gap: 12px;
}
.ai-avatar {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(189, 193, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 22px;
}
.ai-name {
  font-size: 15px; font-weight: 800;
  letter-spacing: 0.3px; color: var(--text);
}
.ai-status {
  font-size: 10px; font-weight: 600;
  color: var(--green); letter-spacing: 0.3px;
  margin-top: 2px;
}
.ai-controls {
  display: flex; align-items: center; gap: 8px;
}
.ai-provider-badge, .ai-model-badge {
  font-size: 11px; font-weight: 700;
  padding: 5px 14px; border-radius: 6px;
  border: 1px solid var(--border-hl);
  color: var(--text-dim);
  background: transparent;
}
.ai-icon-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-muted);
  cursor: default;
}
.ai-glow-line {
  height: 2px;
  background: linear-gradient(90deg,
    var(--primary) 0%,
    var(--accent) 30%,
    var(--green) 60%,
    var(--ct) 100%);
  opacity: 0.6;
}
.ai-body {
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.ai-empty-state p {
  font-size: 14px; color: var(--text-muted);
  text-align: center;
}
.ai-topics {
  display: flex; gap: 8px;
  padding: 0 24px 16px;
  flex-wrap: wrap;
}
.ai-topic {
  font-size: 11px; font-weight: 700;
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(189, 193, 255, 0.2);
  color: var(--primary);
  background: transparent;
  letter-spacing: 0.3px;
}
.ai-input-bar {
  display: flex; align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  gap: 8px;
}
.ai-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13px; font-family: inherit;
  color: var(--text-dim);
  outline: none;
}
.ai-send-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ct);
  color: var(--bg);
  border: none;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: default;
  opacity: 0.7;
}

/* ─── Download ─── */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 720px) { .download-grid { grid-template-columns: 1fr; } }
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px; text-align: center;
}
.download-icon { font-size: 36px; margin-bottom: 16px; }
.download-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.download-card p { font-size: 13px; color: var(--text-dim); margin-top: 14px; line-height: 1.5; }
.download-code {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px; text-align: left;
  overflow-x: auto; font-size: 13px;
  font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  color: var(--primary);
}

/* ─── Support ─── */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 800px; margin: 0 auto; }
@media (max-width: 640px) { .support-grid { grid-template-columns: 1fr; } }
.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px; text-align: center;
}
.support-card h3 { font-size: 18px; margin-bottom: 12px; }
.support-card p { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; line-height: 1.6; }
.support-alt { margin-top: 14px; font-size: 12px; color: var(--text-muted); }
.donate-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-dim); font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-muted); }
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ─── Utility ─── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
