/* ═══════════════════════════════════════════════════════════════
   Athlete Data Company – Clickable Prototype
   Design: Sports/tech, high contrast, clear hierarchy
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0e14;
  --bg-card: #121922;
  --bg-elevated: #1a2230;
  --text: #e6edf3;
  --text-muted: #8b9cad;
  --accent: #00d4aa;
  --accent-dim: #00a884;
  --accent-athlete: #00d4aa;
  --accent-brand: #6c9fff;
  --accent-admin: #ff6b6b;
  --accent-creator: #c084fc;
  --border: #2a3544;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* ─── Screens (show one at a time) ─── */
.screen {
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: block;
}

.journey-screen.active {
  padding-top: 56px;
}

/* ─── Deck viewer ─── */
.deck-screen .deck-viewer {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
.deck-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.deck-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.deck-btn:hover:not(:disabled) {
  background: var(--border);
  color: var(--accent);
}
.deck-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.deck-page-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-width: 6rem;
  text-align: center;
}
.deck-page-wrap {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
.deck-page-wrap canvas {
  max-width: 100%;
  height: auto;
  display: block;
}
.deck-fallback {
  color: var(--text-muted);
  padding: 2rem;
  text-align: center;
}
.deck-fallback code {
  background: var(--border);
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ─── Landing ─── */
.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 0;
}

.logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(200px, 48vw);
  object-fit: contain;
  border-radius: 8px;
}

.landing-nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
}

.landing-nav a:hover {
  color: var(--text);
}

.nav-btn-deck,
.nav-btn-data,
.nav-btn-admin,
.nav-top-pill {
  margin-left: 1.5rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-top-pill {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

a.nav-top-pill {
  display: inline-block;
  cursor: pointer;
}

.nav-btn-deck:hover,
.nav-btn-data:hover,
.nav-btn-admin:hover,
.nav-top-pill:hover {
  color: var(--text);
}

.nav-btn-deck:focus {
  outline: none;
  color: var(--text);
}

.nav-btn-demo,
.nav-btn-login {
  margin-left: 1.5rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(0, 212, 170, 0.45);
  border-radius: 999px;
  background: rgba(0, 212, 170, 0.08);
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.nav-btn-demo:hover,
.nav-btn-login:hover {
  background: rgba(0, 212, 170, 0.16);
  border-color: var(--accent);
  color: var(--text);
}

/* ─── Request Demo modal ─── */
body.demo-modal-open {
  overflow: hidden;
}

.demo-modal[hidden] {
  display: none !important;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 16, 0.72);
  backdrop-filter: blur(4px);
}

.demo-modal-dialog {
  position: relative;
  width: min(420px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 1.5rem 1.4rem 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #121922 0%, #0b1016 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.demo-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.demo-modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.demo-modal-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.demo-modal-title {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.demo-modal-desc {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.demo-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.demo-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.demo-field span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.demo-field input,
.demo-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  resize: vertical;
}

.demo-field input:focus,
.demo-field textarea:focus {
  outline: none;
  border-color: rgba(0, 212, 170, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.12);
}

.demo-field input::placeholder,
.demo-field textarea::placeholder {
  color: rgba(139, 156, 173, 0.7);
}

.demo-modal-submit {
  margin-top: 0.35rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #04110e;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}

.demo-modal-submit:hover {
  background: #1ae0b8;
}

.demo-modal-success .demo-modal-submit {
  margin-top: 0.5rem;
}

.nav-top-pill:focus {
  outline: none;
  color: var(--text);
}

/* ─── Landing hero viewport (full screen) ─── */
.hero-viewport {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(0, 212, 170, 0.07), transparent),
    radial-gradient(ellipse 50% 35% at 80% 60%, rgba(108, 159, 255, 0.05), transparent),
    var(--bg);
}

.hero-viewport-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('./brand-visibility-ai-powered.png');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  opacity: 0.32;
  filter: grayscale(15%) brightness(1.15) contrast(0.95);
  pointer-events: none;
}

.hero-viewport-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.38) 0%, rgba(10, 14, 20, 0.52) 50%, rgba(10, 14, 20, 0.72) 100%),
    radial-gradient(ellipse 85% 65% at 50% 42%, transparent 35%, rgba(10, 14, 20, 0.35) 100%);
}

.hero-viewport > :not(.hero-viewport-bg) {
  position: relative;
  z-index: 1;
}

.landing-header--hero {
  flex-shrink: 0;
}

.hero-viewport-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem 4rem;
}

.hero--splash {
  padding: 0 2rem;
  position: relative;
}

.hero--splash::before {
  content: '';
  position: absolute;
  inset: -1.5rem -2.5rem;
  z-index: -1;
  background: radial-gradient(ellipse 88% 78% at 50% 48%, rgba(10, 14, 20, 0.58) 0%, rgba(10, 14, 20, 0.22) 58%, transparent 82%);
  pointer-events: none;
}

.hero--splash .hero-title {
  text-shadow: 0 2px 24px rgba(10, 14, 20, 0.85), 0 1px 3px rgba(10, 14, 20, 0.6);
}

.hero--splash .hero-tag,
.hero--splash .hero-sub--splash {
  text-shadow: 0 1px 16px rgba(10, 14, 20, 0.75);
}

.hero-sub--splash {
  margin-bottom: 0;
}

.hero-hub-anim {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-hub-svg {
  display: block;
  overflow: visible;
  width: min(367px, 100%);
  height: auto;
  aspect-ratio: 168 / 108;
  max-width: 100%;
}

@media (max-width: 640px) {
  .landing-header,
  .landing-header--hero {
    padding: 0.85rem 1rem;
  }

  .logo {
    font-size: 1.05rem;
  }

  .logo-img {
    height: 40px;
    max-width: min(160px, 52vw);
  }

  .landing-nav .nav-btn-deck,
  .landing-nav .nav-btn-data {
    margin-left: 0.75rem;
    font-size: 0.875rem;
  }

  .nav-btn-demo,
  .nav-btn-login {
    margin-left: 0.65rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }

  .hero-viewport-body {
    padding: 0.25rem 1rem 3.25rem;
    align-items: center;
  }

  .hero--splash {
    padding: 0 0.25rem;
    width: 100%;
    max-width: 100%;
  }

  .hero--splash::before {
    inset: -0.75rem -0.5rem;
  }

  .hero-hub-anim {
    margin-bottom: 1.25rem;
    width: 100%;
    max-width: min(100%, 300px);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-hub-svg {
    width: 100%;
    max-width: 300px;
  }

  .hero--splash .hero-tag {
    margin-top: 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .hero--splash .hero-title {
    font-size: clamp(1.55rem, 7.5vw, 2rem);
    margin-bottom: 0.65rem;
  }

  .hero-sub--splash {
    font-size: 0.9rem;
    line-height: 1.55;
    padding: 0 0.15rem;
  }

  .hero-viewport-bg {
    background-position: center 28%;
    opacity: 0.26;
  }

  .hero-scroll-hint {
    bottom: 0.5rem;
  }

  .landing-below-cards {
    padding: 2rem 1.15rem 1.5rem;
  }

  .landing-below-cards--follow {
    padding-top: 2rem;
  }

  .landing-below-headline {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem);
  }

  .landing-below-subhead {
    font-size: clamp(1.2rem, 4.5vw, 1.5rem);
  }

  .landing-below-desc {
    font-size: 0.9375rem;
  }

  .match-panel {
    padding: 1rem;
  }

  .match-panel-deal {
    gap: 0.65rem;
    padding: 0.65rem;
  }

  .match-panel-brand,
  .match-panel-athlete {
    justify-content: center;
  }

  .match-panel-athlete {
    flex-direction: row;
    text-align: left;
  }

  .match-metric {
    grid-template-columns: 6.5rem 1fr auto;
    gap: 0.4rem;
  }

  .persona-buttons {
    padding: 0 0.25rem;
  }

  .hero {
    padding: 2.5rem 1rem 2rem;
  }

  .register-journey-as {
    font-size: 0.95rem;
    margin-top: 0;
  }
}

@media (max-width: 380px) {
  .hero-hub-svg {
    max-width: 260px;
  }

  .hero--splash .hero-title {
    font-size: 1.45rem;
  }

  .nav-btn-demo,
  .nav-btn-login {
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
  }
}

.hero--splash .hero-tag {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.hub-orbit-ring {
  opacity: 0.35;
  transform-origin: 84px 52px;
  animation: hubRingSpin 24s linear infinite;
}

@keyframes hubRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hub-stream {
  stroke-dasharray: 4 6;
  animation: hubStreamFlow 1.8s linear infinite;
}

.hub-stream--b { animation-delay: 0.4s; }
.hub-stream--c { animation-delay: 0.8s; }

@keyframes hubStreamFlow {
  to { stroke-dashoffset: -20; }
}

.hub-packet--a { animation: hubPacketA 2.4s ease-in-out infinite; }
.hub-packet--b { animation: hubPacketB 2.4s ease-in-out infinite 0.5s; }
.hub-packet--c { animation: hubPacketC 2.4s ease-in-out infinite 1s; }

@keyframes hubPacketA {
  0%, 100% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  45% { transform: translate(0, -42px); opacity: 1; }
  55% { opacity: 0; }
}

@keyframes hubPacketB {
  0%, 100% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  45% { transform: translate(-50px, 26px); opacity: 1; }
  55% { opacity: 0; }
}

@keyframes hubPacketC {
  0%, 100% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  45% { transform: translate(50px, 26px); opacity: 1; }
  55% { opacity: 0; }
}

.hub-node { animation: hubNodePulse 3s ease-in-out infinite; }
.hub-node--brand { animation-delay: 0.6s; }
.hub-node--fan { animation-delay: 1.2s; }

.hub-node-icon {
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.35));
}

@keyframes hubNodePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.hub-core-ring {
  transform-origin: center;
  animation: hubCorePulse 2.2s ease-out infinite;
}

.hub-core-ring--delay {
  animation-delay: 1.1s;
}

@keyframes hubCorePulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.65); opacity: 0; }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: var(--font);
  cursor: pointer;
  transition: color 0.15s;
}

.hero-scroll-hint:hover {
  color: var(--accent);
}

.hero-scroll-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-scroll-icon {
  display: flex;
  animation: heroScrollBounce 2s ease-in-out infinite;
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.65; }
  50% { transform: translateY(6px); opacity: 1; }
}

@media (max-height: 640px) {
  .hero-viewport-body {
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: clamp(1.65rem, 4vw, 2.25rem);
  }

  .hero-hub-anim {
    margin-bottom: 1rem;
  }

  .hero-hub-svg {
    max-width: 260px;
  }

  .hero--splash .hero-tag {
    margin-top: 0.35rem;
  }

  .hero-scroll-hint {
    bottom: 0.5rem;
  }
}

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  text-align: center;
}

.hero-tag {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 3rem;
}

.register-journey-as {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: -1rem 0 1.5rem;
  text-align: center;
}

.persona-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  justify-content: center;
  margin: 2rem auto 0;
  width: 100%;
  max-width: 960px;
}

.persona-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.35rem;
  min-width: 0;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.persona-btn {
  min-height: 150px; /* reduce vertical footprint for 1-page layout */
}

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

.persona-btn .persona-icon {
  font-size: 1.75rem;
}

.persona-btn .persona-desc {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
}

.persona-btn.athlete:hover { border-color: var(--accent-athlete); }
.persona-btn.brand:hover   { border-color: var(--accent-brand); }
.persona-btn.admin:hover   { border-color: var(--accent-admin); }
.persona-btn.creator:hover { border-color: var(--accent-creator); }
.persona-btn.fan:hover { border-color: var(--accent-dim); }

@media (max-width: 680px) {
  .persona-buttons {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
}

/* ─── Landing: content below persona cards ─── */
.landing-below-cards {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.landing-below-cards--follow {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  margin-top: 0;
}

.landing-below-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.landing-below-copy {
  text-align: left;
}

.landing-below-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.landing-below-kicker--shine {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 18px rgba(255, 255, 255, 0.45);
}

.landing-below-headline {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.landing-below-subhead {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.landing-below-highlight {
  color: var(--accent);
}

.landing-below-desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 36rem;
}

.landing-below-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.landing-below-media--brand {
  margin-top: 1.7rem;
}

.landing-below-media--match {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.match-panel {
    padding: 1.25rem 1.35rem 1.35rem;
    background: linear-gradient(145deg, var(--bg-card) 0%, #0d1219 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .match-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
  }

  .match-panel-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(0, 212, 170, 0.35);
    border-radius: 4px;
    background: rgba(0, 212, 170, 0.08);
  }

  .match-panel-live {
    font-size: 0.7rem;
    color: var(--text-muted);
  }

  .match-panel-live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.35rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    vertical-align: middle;
  }

  .match-panel-deal {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem;
    margin-bottom: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
  }

  .match-panel-brand,
  .match-panel-athlete {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
  }

  .match-panel-athlete {
    flex-direction: row-reverse;
    text-align: right;
  }

  .match-panel-brand strong,
  .match-panel-athlete strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .match-panel-brand span,
  .match-panel-athlete span {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
  }

  .match-panel-avatar {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: var(--font-mono);
  }

  .match-panel-avatar--brand {
    background: rgba(108, 159, 255, 0.15);
    color: var(--accent-brand);
    border: 1px solid rgba(108, 159, 255, 0.35);
  }

  .match-panel-avatar--athlete {
    background: rgba(0, 212, 170, 0.12);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 170, 0.35);
  }

  .match-panel-score {
    text-align: center;
  }

  .match-panel-score-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    font-family: var(--font-mono);
  }

  .match-panel-score-lbl {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
  }

  .match-panel-metrics {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1rem;
  }

  .match-metric {
    display: grid;
    grid-template-columns: 7.5rem 1fr auto;
    gap: 0.5rem;
    align-items: center;
  }

  .match-metric-lbl {
    font-size: 0.68rem;
    color: var(--text-muted);
  }

  .match-metric-bar {
    height: 5px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
  }

  .match-metric-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--accent);
  }

  .match-metric-bar--brand span {
    background: var(--accent-brand);
  }

  .match-metric-bar--low span {
    background: #4ade80;
  }

  .match-metric-val {
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text);
    min-width: 2rem;
    text-align: right;
  }

  .match-panel-rank {
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
  }

  .match-panel-rank-title {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
  }

  .match-panel-rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .match-panel-rank-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(42, 53, 68, 0.6);
  }

  .match-panel-rank-list li:last-child {
    border-bottom: none;
  }

  .match-panel-rank-list li strong {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.8rem;
  }

.landing-below-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.landing-below-media-img--profile {
  object-position: center 16%;
}

@media (max-width: 900px) {
  .landing-below-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .landing-below-inner--reverse .landing-below-media,
  .landing-below-inner--reverse .landing-below-copy {
    order: unset;
  }

  .landing-below-copy {
    text-align: center;
  }

  .landing-below-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .landing-below-media {
    order: -1;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .landing-below-media--brand {
    margin-top: 0;
  }

  .match-panel-deal {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .match-panel-athlete {
    flex-direction: row;
    text-align: left;
  }

  .match-metric {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .match-metric-lbl {
    grid-column: 1 / -1;
  }

  .match-metric-bar {
    grid-column: 1;
  }

  .match-metric-val {
    grid-column: 2;
    grid-row: 2;
  }
}

.vision {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.vision h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.vision-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.vision-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.vision-card h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.vision-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.personas-preview {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.personas-preview h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.personas-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.persona-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.persona-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  min-width: 200px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.persona-card:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
}

.persona-card .card-icon { font-size: 1.5rem; }
.persona-card .card-title { font-weight: 600; }
.persona-card .card-route { font-size: 0.75rem; color: var(--text-muted); }

.persona-cards-fan {
  margin-top: 1rem;
}

.personas-preview .persona-cards-fan {
  justify-content: flex-start;
  width: 100%;
}

.persona-card.fan-card {
  cursor: default;
}

.persona-card .card-route-underline {
  text-decoration: underline;
}

.landing-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ─── Landing: Brand partners + Strategic advisors ─── */
.landing-trust,
.landing-advisors {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.landing-advisors-inner {
  text-align: center;
}

.landing-advisors .landing-trust-kicker {
  margin-bottom: 0;
}

.landing-trust-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 18px rgba(255, 255, 255, 0.45);
}

.landing-trust-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

.landing-trust-desc {
  margin: 0 auto 2rem;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.partner-logos-wrap {
  position: relative;
}

.partner-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  filter: blur(8px);
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
}

.partner-coming-soon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  z-index: 1;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 212, 170, 0.35);
  pointer-events: none;
}

.partner-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 9.5rem;
  max-width: 16rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.partner-logo--brand {
  min-width: 11rem;
}

.partner-logo--brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: #fff;
}

.partner-logo--link:hover {
  border-color: var(--accent);
  background: rgba(0, 212, 170, 0.06);
  transform: translateY(-1px);
}

.partner-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(108, 159, 255, 0.14);
  border: 1px solid rgba(108, 159, 255, 0.35);
  color: var(--accent-brand);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.partner-logo--link .partner-logo-mark {
  background: rgba(0, 212, 170, 0.12);
  border-color: rgba(0, 212, 170, 0.4);
  color: var(--accent);
}

.partner-logo-name {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  line-height: 1.25;
}

.advisor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 1.5rem auto 0;
  text-align: left;
}

.advisor-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-top: 3px solid var(--accent);
}

.advisor-card:nth-child(2) {
  border-top-color: var(--accent-brand);
}

.advisor-photo {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--border);
  background: var(--bg-elevated);
}

.advisor-avatar {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), #0ea88a);
}

.advisor-avatar--alt {
  background: linear-gradient(135deg, var(--accent-brand), #4f7de8);
}

.advisor-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}

.advisor-name {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.advisor-header .advisor-name {
  margin-bottom: 0;
}

.advisor-linkedin {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6c9fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(108, 159, 255, 0.35);
}

.advisor-linkedin:hover {
  color: var(--accent);
  border-bottom-color: rgba(0, 212, 170, 0.5);
}

.advisor-role {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.advisor-card:nth-child(2) .advisor-role {
  color: var(--accent-brand);
}

.advisor-bio {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

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

  .partner-logo {
    min-width: calc(50% - 0.5rem);
    flex: 1 1 calc(50% - 0.5rem);
    max-width: none;
  }
}

/* ─── Journey header ─── */
.journey-header {
  display: none; /* shown by JS when a journey screen is active */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.journey-header .back-to-landing {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.9375rem;
  cursor: pointer;
  padding: 0.25rem 0;
}

.journey-header .back-to-landing:hover {
  color: var(--accent);
}

.journey-persona {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.875rem;
}

.journey-breadcrumb {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.journey-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
}

/* ─── Persona side navigation ─── */
.journey-sidebar {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  width: 236px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 1.25rem 0.85rem;
  overflow-y: auto;
  z-index: 90;
  flex-direction: column;
}

.journey-sidebar.journey-sidebar--visible {
  display: flex;
}

.journey-sidebar-main {
  flex: 1;
  min-height: 0;
}

.journey-sidebar-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.journey-nav-assistant {
  color: var(--accent-brand);
}

.journey-nav-assistant:hover {
  color: #9bb8ff;
  background: rgba(108, 159, 255, 0.12);
}

.journey-nav-assistant-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #6c9fff, #4f7de8);
  color: #fff;
  box-shadow: 0 0 12px rgba(108, 159, 255, 0.35);
}

.journey-nav-assistant-icon svg {
  display: block;
}

.journey-sidebar-group-label {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0 0.65rem;
  margin-bottom: 0.6rem;
}

.journey-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.2rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.journey-nav-item:hover {
  background: var(--bg);
  color: var(--text);
}

.journey-nav-item.journey-nav-item--active {
  background: rgba(0, 212, 170, 0.14);
  color: var(--accent);
}

.journey-nav-item .journey-nav-icon {
  font-size: 1.05rem;
  width: 1.4rem;
  text-align: center;
  flex-shrink: 0;
}

.journey-nav-item .journey-nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #0a0e14;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
}

.journey-sidebar-scrim {
  display: none;
  position: fixed;
  inset: 56px 0 0 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 85;
}

/* Shift journey content right to make room for the sidebar */
body.has-sidebar .journey-screen.active { padding-left: 236px; }

/* ─── Requests list (sponsorship / brand requests / shortlist) ─── */
.requests-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.requests-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.request-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}

.request-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.request-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.request-card-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

.request-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem 1.25rem;
  margin-bottom: 0.85rem;
}

.request-meta-item .rm-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.request-meta-item .rm-value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.request-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.request-status--review { background: rgba(108, 159, 255, 0.16); color: #6c9fff; }
.request-status--negotiation { background: rgba(240, 180, 41, 0.16); color: #f0b429; }
.request-status--accepted { background: rgba(0, 212, 170, 0.16); color: var(--accent); }
.request-status--rejected { background: rgba(255, 107, 107, 0.16); color: #ff6b6b; }

.request-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.requests-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .journey-menu-toggle { display: inline-block; }
  body.has-sidebar .journey-screen.active { padding-left: 0; }
  .journey-sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    width: 260px;
    box-shadow: 2px 0 18px rgba(0, 0, 0, 0.35);
  }
  .journey-sidebar.journey-sidebar--visible { display: flex; }
  .journey-sidebar.journey-sidebar--open { transform: translateX(0); }
  .journey-sidebar-scrim.journey-sidebar-scrim--open { display: block; }
}

/* ─── Journey screens common ─── */
.screen-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.screen-inner.narrow { max-width: 420px; }

.screen-inner h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.screen-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

/* ─── Forms ─── */
.proto-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.proto-form input[type="text"],
.proto-form input[type="email"],
.proto-form input[type="number"],
.proto-form input[type="password"],
.proto-form input[type="url"],
.proto-form select,
.proto-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9375rem;
}

.proto-form input:focus,
.proto-form select:focus,
.proto-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.proto-form input.readonly {
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-section legend {
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0 0.5rem;
  color: var(--accent);
}

.profile-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.profile-header-row h1 {
  margin-bottom: 0.35rem;
}

.profile-header-row .screen-desc {
  margin-bottom: 0;
}

.profile-completion {
  min-width: 200px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 212, 170, 0.35);
  border-radius: 12px;
  background: rgba(0, 212, 170, 0.08);
}

.profile-completion-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.profile-completion-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.profile-completion-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}

.profile-completion-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.profile-completion-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #6c9fff);
  transition: width 0.25s ease;
}

.button-group .btn-secondary.is-selected {
  border-color: var(--accent);
  background: rgba(0, 212, 170, 0.14);
  color: var(--text);
}

@media (max-width: 720px) {
  .profile-header-row {
    flex-direction: column;
  }

  .profile-completion {
    width: 100%;
    min-width: 0;
  }
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  position: relative;
}

.upload-zone.small { padding: 0.75rem; }

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.checkbox-row { margin-bottom: 1rem; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.button-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ─── Buttons ─── */
.btn-primary,
.btn-secondary,
.btn-outline {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
}

.btn-primary:hover {
  background: var(--accent-dim);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

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

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(0, 212, 170, 0.1);
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.875rem;
  cursor: pointer;
  margin-top: 0.5rem;
  padding: 0;
}

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

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8125rem; }
.full-width { width: 100%; }

/* ─── Plan cards ─── */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.plan-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition);
}

.plan-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(0, 212, 170, 0.08);
}

.plan-card input { display: none; }
.plan-name { font-weight: 600; }
.plan-price { font-size: 0.875rem; color: var(--accent); }
.plan-desc { font-size: 0.75rem; color: var(--text-muted); }

/* ─── Dashboard ─── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-card.completeness { border-color: var(--accent); }

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.stat-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.dashboard-section {
  margin-bottom: 2rem;
}

.dashboard-section h2 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.athlete-home {
  max-width: 1100px;
}

.athlete-profile-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1.35rem;
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(0, 212, 170, 0.08), rgba(13, 18, 25, 0.95));
}

.athlete-edit-profile-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
}

.athlete-profile-identity {
  display: flex;
  gap: 1.15rem;
  min-width: 0;
  flex: 1;
}

.athlete-profile-photo {
  width: 112px;
  height: 112px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(0, 212, 170, 0.45);
  flex-shrink: 0;
  background: var(--bg-elevated);
}

.athlete-profile-meta {
  padding-right: 7.5rem;
}

.athlete-profile-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.athlete-profile-name-row h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 212, 170, 0.14);
  border: 1px solid rgba(0, 212, 170, 0.35);
}

.athlete-profile-role {
  margin: 0 0 0.55rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.athlete-profile-bio {
  margin: 0 0 0.85rem;
  max-width: 42rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.athlete-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.athlete-profile-tags span {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.athlete-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.athlete-social-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.athlete-social-link:hover {
  text-decoration: underline;
}

.athlete-profile-score-stack {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
}

.brand-profile-score-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.brand-profile-score-row .athlete-score-chip .star-rating {
  justify-content: center;
}

@media (max-width: 1100px) {
  .brand-profile-score-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .brand-profile-score-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.athlete-score-chip {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  min-width: 0;
  text-align: center;
}

.athlete-score-chip .star-rating {
  justify-content: center;
}

.athlete-score-chip.completeness {
  border-color: rgba(0, 212, 170, 0.45);
}

.athlete-score-chip strong {
  display: block;
  font-size: 1.2rem;
  color: var(--accent);
}

.athlete-score-chip span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.star-rating {
  display: flex;
  gap: 0.12rem;
  margin-top: 0.4rem;
  line-height: 1;
}

.star-rating .star {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.15);
}

.star-rating .star.filled {
  color: #f5c542;
  text-shadow: 0 0 8px rgba(245, 197, 66, 0.35);
}

.star-rating .star.half {
  background: linear-gradient(90deg, #f5c542 55%, rgba(255, 255, 255, 0.15) 55%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 4px rgba(245, 197, 66, 0.35));
}

.star-rating .star.empty {
  color: rgba(255, 255, 255, 0.15);
}

.star-rating-label {
  display: block;
  margin-top: 0.25rem;
  font-style: normal;
  font-size: 0.7rem;
  color: #f5c542;
  font-weight: 600;
}

.athlete-career-graph-panel {
  margin-bottom: 1rem;
}

.career-graph {
  width: 100%;
  overflow-x: auto;
}

.career-graph-svg {
  display: block;
  width: 100%;
  min-width: 520px;
  height: auto;
}

.athlete-panel {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
}

.athlete-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.athlete-panel-head h2 {
  margin: 0;
}

.athlete-panel-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.athlete-home-grid,
.athlete-home-split {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.athlete-home-split {
  grid-template-columns: 1.15fr 0.85fr;
}

.athlete-mini-stats {
  margin-bottom: 0;
}

.event-stats-table-wrap {
  overflow-x: auto;
}

.event-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.event-stats-table th,
.event-stats-table td {
  padding: 0.7rem 0.65rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.event-stats-table th {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.event-stats-table td:last-child {
  white-space: normal;
  color: var(--text-muted);
  min-width: 160px;
}

.event-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.event-feed li {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.event-feed li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.event-feed strong {
  display: block;
  margin-bottom: 0.2rem;
}

.event-feed span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.event-feed em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.inquiry-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.inquiry-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.inquiry-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  flex-shrink: 0;
}

.badge.success {
  background: rgba(0, 212, 170, 0.2);
  color: var(--accent);
}

@media (max-width: 900px) {
  .athlete-profile-score-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .athlete-home-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .athlete-profile-identity {
    flex-direction: column;
  }

  .athlete-profile-score-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .athlete-profile-meta {
    padding-right: 0;
  }
}

/* ─── Discovery ─── */
.screen-inner.discovery-screen {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

/* Discovery Filter reference + chat discovery */
.discovery-filter-reference {
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0 0 1rem;
  padding: 0;
}

.discovery-filter-reference--flat {
  margin-bottom: 1.15rem;
}

.discovery-filter-reference > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.discovery-filter-reference > summary::-webkit-details-marker {
  display: none;
}

.discovery-filter-reference-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 170, 0.45);
  background: rgba(0, 212, 170, 0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.discovery-filter-reference-note {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.discovery-filter-reference-body {
  margin-top: 0.85rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.discovery-ref-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.discovery-ref-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.discovery-ref-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.discovery-ref-tags span {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.75rem;
}

.discovery-chat-discover {
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.discovery-chat-discover--simple {
  gap: 0.9rem;
}

.discovery-example-line {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.discovery-example-line span {
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.discovery-chat-discover-messages {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
}

.discovery-chat-discover-messages[hidden] {
  display: none !important;
}

.discovery-chat-discover .chat-msg-bot {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  max-width: 92%;
}

.discovery-chat-discover .chat-msg-user {
  align-self: flex-end;
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.35);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  max-width: 85%;
}

.discovery-chat-discover .chat-msg p {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.discovery-chat-discover .chat-msg p:last-child {
  margin-bottom: 0;
}

.discovery-q-ref {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.discovery-q-hint {
  color: var(--text-muted) !important;
  font-size: 0.8rem !important;
}

.discovery-chat-discover-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.discovery-chat-discover-input-wrap {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 170, 0.35);
  background: linear-gradient(165deg, rgba(0, 212, 170, 0.08) 0%, rgba(18, 25, 34, 0.95) 55%);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 170, 0.06);
}

.discovery-brief-field {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.discovery-brief-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.discovery-chat-textarea {
  resize: vertical;
  min-height: 5.5rem;
  line-height: 1.45;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 212, 170, 0.28);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
}

.discovery-chat-textarea::placeholder {
  color: #7a8b9c;
  opacity: 1;
}

.discovery-chat-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.18);
}

.discovery-brief-submit {
  flex-shrink: 0;
  align-self: flex-end;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  font-weight: 700;
}

.discovery-chat-discover .chat-msg-bot ul {
  margin: 0.45rem 0 0.65rem;
  padding-left: 1.1rem;
}

.discovery-chat-discover .chat-msg-bot li {
  margin-bottom: 0.2rem;
  font-size: 0.86rem;
}

.discovery-rec-list {
  margin: 0.4rem 0 0.75rem;
  padding-left: 1.2rem;
}

.discovery-rec-list li {
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
}

.discovery-rec-role {
  color: var(--accent);
  font-size: 0.8rem;
}

.discovery-portfolio {
  margin: 0 0 1rem;
}

.discovery-portfolio-card {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 170, 0.4);
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.12) 0%, rgba(18, 25, 34, 0.9) 100%);
}

.discovery-portfolio-kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.discovery-portfolio-main {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--text);
}

.discovery-portfolio-budget {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.discovery-portfolio-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.athlete-cards--recommend {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .athlete-cards--recommend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .athlete-cards--recommend { grid-template-columns: 1fr; }
}

.athlete-card--recommend {
  position: relative;
  min-height: 210px;
}

.athlete-card-letter {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 170, 0.15);
  border: 1px solid rgba(0, 212, 170, 0.45);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.athlete-card-rec-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.35rem 0 0.2rem;
}

.athlete-match-pct {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
}

.athlete-fee {
  font-weight: 600;
  color: var(--text);
  font-size: 0.85rem;
}

.athlete-rec-role {
  margin: 0.15rem 0 0.35rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.discovery-chat-discover-input-wrap .discovery-chat-input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
}

.discovery-chat-discover-input-wrap .discovery-chat-input:focus {
  outline: none;
  border-color: var(--accent);
}

.discovery-chat-discover-input-wrap .btn-primary {
  flex-shrink: 0;
  white-space: nowrap;
}

.discovery-active-criteria {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0;
  border-top: none;
}

.discovery-active-criteria[hidden] {
  display: none !important;
}

.discovery-active-criteria-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.discovery-active-criteria-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.discovery-criteria-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text);
}

.discovery-criteria-tag em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.discovery-header {
  margin-bottom: 0.75rem;
}

.discovery-header h1 { margin: 0 0 0.25rem; }
.discovery-header .screen-desc { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }

.discovery-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: start;
  position: relative;
  min-height: 0;
}

@media (max-width: 768px) {
  .discovery-assistant-flyout {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    bottom: 0.75rem;
  }
}

.results-area {
  min-width: 0;
  width: 100%;
}

.results-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.discovery-search-anim {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  color: #7dffa3;
  max-height: 180px;
  overflow: hidden;
}

.discovery-search-anim.is-active {
  border-color: rgba(0, 212, 170, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.15), 0 8px 28px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, rgba(0, 212, 170, 0.08) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.discovery-search-anim-lines {
  max-height: 120px;
  overflow-y: auto;
}

.discovery-search-anim-line {
  opacity: 0;
  animation: discoveryAnimFade 0.25s ease forwards;
  white-space: nowrap;
  margin-bottom: 0.2rem;
}

@keyframes discoveryAnimFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 0.95; transform: translateY(0); }
}

.discovery-chat-discover.is-searching {
  opacity: 0.72;
  pointer-events: none;
}

.discovery-chat-discover.is-searching .discovery-chat-discover-messages {
  max-height: 140px;
}

.results-area.is-searching .athlete-cards {
  min-height: 120px;
}

.discovery-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  padding: 0 0.2rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.discovery-empty {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.search-input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9375rem;
}

.results-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.athlete-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: minmax(100px, auto);
  gap: 0.85rem;
  padding-bottom: 1rem;
  width: 100%;
}

@media (max-width: 1200px) {
  .athlete-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .athlete-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .athlete-cards { grid-template-columns: 1fr; }
  .screen-inner.discovery-screen {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.athlete-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-width: 0;
  min-height: 0;
  overflow: visible;
  position: relative;
  z-index: 0;
}

.athlete-card:hover {
  border-color: var(--accent-brand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.athlete-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.athlete-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent);
  flex-shrink: 0;
}

.athlete-card-info {
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.athlete-card-info strong {
  display: block;
  font-size: 0.875rem;
  word-break: break-word;
  overflow-wrap: break-word;
}
.athlete-card-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  word-break: break-word;
  overflow-wrap: break-word;
}

.athlete-card-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.athlete-card-scores .athlete-card-social-score {
  color: var(--accent);
  font-weight: 600;
}

.athlete-card-scores .verified {
  color: var(--accent);
}

.athlete-card-meta {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.ipl-stats-list {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  line-height: 1.7;
}

.ipl-stats-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.athlete-card .btn-view-athlete {
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
  padding: 0.4rem 0.65rem;
  font-size: 0.8125rem;
}

.discovery-pagination {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.discovery-pagination-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.discovery-pagination-info {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.discovery-pagination-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.discovery-page-btn {
  min-width: 2.25rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.8125rem;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.discovery-page-btn:hover:not(:disabled) {
  border-color: var(--accent-brand);
  background: rgba(108, 159, 255, 0.08);
}

.discovery-page-btn--active {
  border-color: var(--accent-brand);
  background: rgba(108, 159, 255, 0.15);
  color: var(--accent-brand);
  font-weight: 600;
}

.discovery-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ─── Discovery Assistant flyout (near left-menu icon) ─── */
.discovery-assistant-flyout {
  position: fixed;
  left: 248px;
  bottom: 1rem;
  width: min(400px, calc(100vw - 268px));
  height: min(560px, calc(100vh - 72px));
  max-height: calc(100vh - 72px);
  z-index: 130;
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(108, 159, 255, 0.12);
}

.discovery-assistant-flyout.discovery-chat-panel--open,
.discovery-assistant-flyout[aria-hidden="false"] {
  display: flex;
}

.discovery-assistant-flyout[hidden] {
  display: none !important;
}

/* ─── Discovery chat panel ─── */
.discovery-chat-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.discovery-chat-panel[aria-hidden="true"] {
  display: none;
}

.discovery-chat-header {
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.discovery-chat-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.discovery-chat-header h3 {
  margin: 0;
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discovery-chat-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), background var(--transition);
}

.discovery-chat-close:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.discovery-chat-icon,
.discovery-assistant-icon {
  color: var(--accent-brand);
  flex-shrink: 0;
}

.discovery-chat-icon { font-size: 0.75rem; }

.discovery-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  min-height: 140px;
}

.chat-msg {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
}

.chat-msg:last-child { margin-bottom: 0; }

.chat-msg-bot {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
}

.chat-msg-bot p { margin: 0 0 0.5rem; }
.chat-msg-bot p:last-of-type { margin-bottom: 0; }
.chat-msg-bot ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.chat-msg-bot li { margin-bottom: 0.2rem; }

.chat-msg-user {
  margin-left: 1.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(108, 159, 255, 0.12);
  border: 1px solid rgba(108, 159, 255, 0.25);
  font-size: 0.8125rem;
}

.chat-msg-user p { margin: 0; }

.discovery-chat-send-btn {
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-brand);
  background: var(--accent-brand);
  color: #fff;
  font-size: 0.8125rem;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.discovery-chat-send-btn:hover {
  opacity: 0.9;
}

.discovery-chat-suggestions {
  padding: 0 1.25rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.chat-suggestion-chip {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.chat-suggestion-chip:hover {
  border-color: var(--accent-brand);
  color: var(--text);
  background: rgba(108, 159, 255, 0.08);
}

.discovery-chat-input-wrap {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.discovery-chat-input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.875rem;
  font-family: var(--font);
}

.discovery-chat-input::placeholder { color: var(--text-muted); }
.discovery-chat-input:focus {
  outline: none;
  border-color: var(--accent-brand);
}

.discovery-chat-ai-btn {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent-brand);
  color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), opacity var(--transition);
}

.discovery-chat-ai-btn:hover {
  background: #5a8aef;
}

/* ─── Thinking animation ─── */
.discovery-thinking {
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.discovery-thinking .thinking-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.discovery-thinking .thinking-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-brand);
  animation: thinking-bounce 0.6s ease-in-out infinite;
}

.discovery-thinking .thinking-dots span:nth-child(1) { animation-delay: 0s; }
.discovery-thinking .thinking-dots span:nth-child(2) { animation-delay: 0.15s; }
.discovery-thinking .thinking-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes thinking-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.thinking-step {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.35rem 0;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.thinking-step--active {
  color: var(--accent-brand);
  opacity: 1;
}

/* ─── AI suggestion cards (minimal) ─── */
.ai-suggestion-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ai-suggestion-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.ai-suggestion-card:hover {
  border-color: var(--accent-brand);
  background: rgba(108, 159, 255, 0.06);
}

.ai-suggestion-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent);
  flex-shrink: 0;
}

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

.ai-suggestion-card-info strong { display: block; font-size: 0.9375rem; }
.ai-suggestion-card-info span { font-size: 0.8125rem; color: var(--text-muted); }
.ai-suggestion-card-scores { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }
.ai-suggestion-card-scores .verified { color: var(--accent); }

/* ─── Expanded card overlay ─── */
body.ai-overlay-open { overflow: hidden; }

.ai-card-expanded-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.ai-card-expanded-overlay[hidden] { display: none !important; }

.ai-card-expanded {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 1.5rem;
}

.ai-card-expanded-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.ai-card-expanded-close:hover {
  color: var(--text);
  background: var(--border);
}

.ai-expanded-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ai-expanded-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.ai-expanded-header h4 { margin: 0 0 0.25rem; font-size: 1.125rem; }
.ai-expanded-header p { margin: 0; font-size: 0.875rem; color: var(--text-muted); }

.ai-expanded-section {
  margin-bottom: 1rem;
}

.ai-expanded-section h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-brand);
  margin: 0 0 0.5rem;
}

.ai-expanded-section p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ai-card-expanded .btn-primary { margin-top: 0.5rem; }

.discovery-chat-wrap {
  position: relative;
  min-width: 0;
}

/* ─── Brand athlete profile view ─── */
.profile-view-screen .screen-inner { max-width: 800px; }

.discovery-back-bar {
  margin: 0 0 1rem;
}

.discovery-back-bar .btn-secondary {
  font-size: 0.8125rem;
}

.profile-view-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.profile-view-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

.profile-view-meta h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

.profile-view-meta p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}

.profile-view-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-view-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.pv-stat {
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

.pv-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.pv-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pv-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.profile-view-section {
  margin-bottom: 1.5rem;
}

.profile-view-section h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.profile-view-section p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.chart-placeholder {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.chart-placeholder.large { min-height: 200px; }

/* ─── Status timeline ─── */
.status-timeline {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
}

.status-timeline h3 {
  font-size: 0.9375rem;
  margin: 0 0 0.75rem;
}

.status-timeline ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.status-timeline li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.status-timeline .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.status-timeline .dot.done {
  background: var(--accent);
}

.status-timeline .dot.active {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.3);
}

/* ─── Admin ─── */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-tabs .tab {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.875rem;
  cursor: pointer;
}

.admin-tabs .tab.active {
  background: var(--accent-admin);
  color: var(--bg);
  border-color: var(--accent-admin);
}

.admin-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  color: var(--text-muted);
  font-weight: 500;
}

.admin-table tbody tr:hover {
  background: var(--bg-card);
}

/* ─── DATA screen (scoring-engine table) ─── */
.data-screen {
  max-width: none;
  width: 100%;
  padding-bottom: 3rem;
}

.data-screen-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.data-screen-header h1 {
  margin-bottom: 0.35rem;
}

.data-screen-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.data-search-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.data-search {
  min-width: 14rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
}

.data-search:focus {
  outline: none;
  border-color: rgba(0, 212, 170, 0.55);
}

.data-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.data-engine-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.data-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.data-view-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(15, 24, 32, 0.75);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.data-view-tab:hover {
  color: var(--text);
  border-color: rgba(0, 212, 170, 0.4);
}

.data-view-tab--active {
  color: var(--text);
  border-color: rgba(0, 212, 170, 0.65);
  background: rgba(0, 212, 170, 0.14);
}

.data-engine-pill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.data-engine-pill--identity {
  border-color: rgba(139, 156, 173, 0.45);
  color: #b7c4d4;
}

.data-engine-pill--perf {
  border-color: rgba(108, 159, 255, 0.5);
  color: #8eb4ff;
  background: rgba(108, 159, 255, 0.08);
}

.data-engine-pill--test {
  border-color: rgba(108, 159, 255, 0.45);
  color: #9ec0ff;
  background: rgba(108, 159, 255, 0.06);
}

.data-engine-pill--odi {
  border-color: rgba(0, 212, 170, 0.5);
  color: #5ee9c7;
  background: rgba(0, 212, 170, 0.08);
}

.data-engine-pill--t20i {
  border-color: rgba(192, 132, 252, 0.5);
  color: #d2a8ff;
  background: rgba(192, 132, 252, 0.08);
}

.data-engine-pill--social {
  border-color: rgba(0, 212, 170, 0.5);
  color: #5ee9c7;
  background: rgba(0, 212, 170, 0.08);
}

.data-engine-pill--brand {
  border-color: rgba(192, 132, 252, 0.5);
  color: #d2a8ff;
  background: rgba(192, 132, 252, 0.08);
}

.data-table-wrap {
  overflow: auto;
  max-height: calc(100vh - 220px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.data-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
}

.data-table th,
.data-table td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid rgba(42, 53, 68, 0.65);
}

.data-th-group {
  position: sticky;
  top: 0;
  z-index: 3;
  text-align: center;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.data-col-row th {
  position: sticky;
  top: 2.15rem;
  z-index: 2;
  background: #0f1820;
  color: var(--text-muted);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.7rem;
  max-width: 9.5rem;
  white-space: normal;
  line-height: 1.25;
  vertical-align: bottom;
}

.data-th-group--identity,
.data-td--identity { background: rgba(139, 156, 173, 0.06); }
.data-th-group--identity { background: #151e28; color: #b7c4d4; }

.data-th-group--perf,
.data-td--perf { background: rgba(108, 159, 255, 0.05); }
.data-th-group--perf { background: #121c2c; color: #8eb4ff; }

.data-th-group--social,
.data-td--social { background: rgba(0, 212, 170, 0.05); }
.data-th-group--social { background: #0f221f; color: #5ee9c7; }

.data-th-group--brand,
.data-td--brand { background: rgba(192, 132, 252, 0.05); }
.data-th-group--brand { background: #1a1526; color: #d2a8ff; }

.data-th--identity { background: #151e28; }
.data-th--perf,
.data-th--perf-domestic { background: #121c2c; }
.data-th--social { background: #0f221f; }
.data-th--brand { background: #1a1526; }
.data-th--matches,
.data-th-group--matches { background: #151e28; color: #b7c4d4; }
.data-th--test-bat,
.data-th-group--test-bat,
.data-th--perf-test-bat,
.data-th-group--perf-test-bat { background: #121c2c; color: #8eb4ff; }
.data-th--test-bowl,
.data-th-group--test-bowl,
.data-th--perf-test-bowl,
.data-th-group--perf-test-bowl { background: #0f221f; color: #5ee9c7; }
.data-th--odi-bat,
.data-th-group--odi-bat,
.data-th--perf-odi-bat,
.data-th-group--perf-odi-bat { background: #1a2230; color: #9ec0ff; }
.data-th--odi-bowl,
.data-th-group--odi-bowl,
.data-th--perf-odi-bowl,
.data-th-group--perf-odi-bowl { background: #12261f; color: #7af0cf; }
.data-th--t20i-bat,
.data-th-group--t20i-bat,
.data-th--perf-t20i-bat,
.data-th-group--perf-t20i-bat { background: #1a1526; color: #d2a8ff; }
.data-th--t20i-bowl,
.data-th-group--t20i-bowl,
.data-th--perf-t20i-bowl,
.data-th-group--perf-t20i-bowl { background: #241820; color: #f0b4c8; }
.data-th-group--perf-domestic,
.data-th--perf-domestic { background: #121c2c; color: #8eb4ff; }

.data-td--test-bat,
.data-td--perf-test-bat { background: rgba(108, 159, 255, 0.05); }
.data-td--test-bowl,
.data-td--perf-test-bowl { background: rgba(0, 212, 170, 0.05); }
.data-td--odi-bat,
.data-td--perf-odi-bat { background: rgba(108, 159, 255, 0.04); }
.data-td--odi-bowl,
.data-td--perf-odi-bowl { background: rgba(0, 212, 170, 0.04); }
.data-td--t20i-bat,
.data-td--perf-t20i-bat { background: rgba(192, 132, 252, 0.05); }
.data-td--t20i-bowl,
.data-td--perf-t20i-bowl { background: rgba(240, 180, 200, 0.05); }
.data-td--matches { background: rgba(139, 156, 173, 0.05); }
.data-td--perf-domestic { background: rgba(108, 159, 255, 0.06); }

.data-table tbody tr:hover td {
  filter: brightness(1.12);
}

.data-td[data-na] {
  color: #7a8796;
  font-style: italic;
}

.data-empty {
  text-align: center;
  padding: 2rem !important;
  color: var(--text-muted);
  font-family: var(--font);
}

.data-footnote {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 70rem;
}

@media (max-width: 720px) {
  .data-search {
    min-width: 0;
    width: 100%;
  }
  .data-table-wrap {
    max-height: calc(100vh - 260px);
  }
}
