:root {
  color-scheme: dark;
  --bg: #050914;
  --bg-2: #07101d;
  --panel: rgba(11, 17, 29, 0.84);
  --panel-2: rgba(16, 24, 39, 0.88);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(198, 255, 46, 0.26);
  --text: #f7f8ff;
  --muted: #aeb7c8;
  --soft: #dce4f2;
  --accent: #c6ff2e;
  --accent-2: #8bdc26;
  --danger: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 14%, rgba(198, 255, 46, 0.12), transparent 20rem),
    radial-gradient(circle at 78% 8%, rgba(50, 105, 169, 0.22), transparent 24rem),
    linear-gradient(145deg, #02050c 0%, #050914 42%, #07101d 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(110deg, transparent 0 43%, rgba(255, 255, 255, 0.06) 43.2%, transparent 43.7%),
    linear-gradient(170deg, transparent 0 70%, rgba(198, 255, 46, 0.08) 70.1%, transparent 70.4%);
  opacity: 0.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.flash {
  position: fixed;
  z-index: 50;
  top: 14px;
  left: 50%;
  width: min(92vw, 520px);
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(10, 18, 30, 0.94);
  box-shadow: var(--shadow);
  color: var(--text);
  transform: translateX(-50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.flash-success {
  border-color: rgba(198, 255, 46, 0.45);
}

.flash-error {
  border-color: rgba(255, 107, 107, 0.45);
}

.flash.fade-out {
  opacity: 0;
  transform: translate(-50%, -8px);
}

.neo-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.neo-logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: rgba(198, 255, 46, 0.08);
  box-shadow: 0 0 24px rgba(198, 255, 46, 0.22);
  color: var(--accent);
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #081105;
  box-shadow: 0 10px 34px rgba(198, 255, 46, 0.22);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
}

.btn-soft {
  border-color: rgba(198, 255, 46, 0.2);
  background: rgba(198, 255, 46, 0.08);
  color: var(--accent);
}

.btn-small {
  min-height: 36px;
  padding: 0 13px;
  font-size: 0.84rem;
}

.glass-panel,
.match-card,
.recommendation-card,
.metric-card,
.table-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.9), rgba(8, 13, 24, 0.86));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.public-nav,
.landing-shell,
.app-main,
.chat-main {
  position: relative;
  z-index: 1;
}

.public-nav {
  display: flex;
  width: min(var(--max), calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 24px 0 10px;
}

.public-nav-actions {
  display: flex;
  gap: 10px;
}

.landing-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  min-height: calc(100vh - 88px);
  align-items: center;
}

.hero-copy,
.hero-side {
  position: relative;
  z-index: 2;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 17px;
}

.hero-ball {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 7px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(198, 255, 46, 0.3);
  font-size: 2rem;
}

.hero-brand h1 {
  margin: 0;
  font-size: clamp(4rem, 19vw, 7.5rem);
  line-height: 0.86;
  font-weight: 900;
}

.hero-brand p,
.eyebrow {
  margin: 8px 0 0;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}

.hero-statement {
  margin-top: clamp(32px, 8vw, 80px);
}

.hero-statement h2 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4.1rem);
  line-height: 1.08;
  font-weight: 900;
}

.hero-statement h2 span,
.landing-quote em {
  color: var(--accent);
  font-style: normal;
}

.hero-statement p {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.mascot-stage {
  display: flex;
  justify-content: center;
  align-items: end;
  min-height: 340px;
  margin: -24px 0;
}

.mascot-stage img {
  width: min(420px, 92vw);
  filter: drop-shadow(0 44px 80px rgba(0, 0, 0, 0.62));
  border-radius: 28px;
  mix-blend-mode: screen;
}

.hand-note {
  margin: 0 0 18px;
  color: var(--text);
  font-family: Caveat, cursive;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  line-height: 1.05;
}

.hand-note span {
  color: var(--accent);
}

.preview-match {
  padding: 18px;
}

.analysis-snippet {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.snippet-head {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--soft);
}

.snippet-head em {
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--accent);
  font-style: normal;
  font-size: 0.78rem;
}

.analysis-snippet h3 {
  margin: 16px 0 8px;
}

.analysis-snippet p {
  color: var(--muted);
  line-height: 1.55;
}

.analysis-snippet a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--text);
  font-weight: 800;
}

.phone-preview {
  display: none;
}

.feature-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin-top: 22px;
}

.feature-rail article {
  min-height: 172px;
  padding: 22px 16px;
  border-bottom: 1px solid var(--line);
}

.feature-rail article:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.feature-icon {
  color: var(--accent);
  font-size: 2.4rem;
}

.feature-rail h3 {
  margin: 12px 0 8px;
  font-size: 0.95rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.feature-rail p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.landing-quote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 34px 0 10px;
}

.landing-quote span {
  color: var(--accent);
  font-size: 6rem;
  line-height: 0.6;
}

.landing-quote h2 {
  margin: 0;
  font-size: clamp(1.35rem, 6vw, 2rem);
}

.landing-quote p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--accent);
  font-family: Caveat, cursive;
  font-size: 2rem;
}

.auth-shell,
.error-page {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-card,
.compact-panel {
  width: min(100%, 440px);
  padding: 28px;
}

.auth-card h1,
.compact-panel h1 {
  margin: 28px 0 8px;
  font-size: 2rem;
}

.auth-card p,
.compact-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.form-stack,
.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid {
  grid-template-columns: 1fr;
}

label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 0 13px;
}

input:focus,
select:focus {
  border-color: rgba(198, 255, 46, 0.62);
  box-shadow: 0 0 0 4px rgba(198, 255, 46, 0.1);
}

.micro-copy {
  font-size: 0.8rem;
}

.auth-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 800;
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 9, 20, 0.82);
  backdrop-filter: blur(18px);
}

.icon-button,
.profile-dot {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.side-menu {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, 0.48);
}

.side-menu.open {
  display: block;
}

.side-menu-panel {
  display: grid;
  width: min(82vw, 320px);
  height: 100%;
  align-content: start;
  gap: 12px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #07101d;
}

.side-menu-panel a {
  padding: 12px 0;
  color: var(--soft);
  font-weight: 800;
}

.app-main {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 18px 16px 108px;
}

.page-hero,
.page-title,
.analysis-section {
  padding: 12px 0 8px;
}

.page-hero {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.page-hero h1,
.page-title h1,
.analysis-section h1 {
  margin: 6px 0 10px;
  font-size: clamp(2rem, 9vw, 3.6rem);
  line-height: 1.05;
}

.page-hero p,
.page-title p,
.analysis-section .lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.status-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(198, 255, 46, 0.08);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 26px;
}

.metric-card {
  padding: 15px 10px;
}

.metric-card span {
  display: block;
  color: var(--accent);
  font-size: 1.7rem;
  font-weight: 900;
}

.metric-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.section-head {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin: 24px 0 12px;
}

.section-head h2 {
  margin: 0 0 4px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-head a {
  color: var(--accent);
  font-weight: 900;
}

.card-stack {
  display: grid;
  gap: 14px;
}

.match-card {
  padding: 16px;
}

.match-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.match-status-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--soft);
  font-size: 0.8rem;
}

.match-status-row span,
.match-status-row em {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-style: normal;
}

.match-status-row em {
  border-color: var(--line-strong);
  color: var(--accent);
  font-weight: 900;
}

.teams-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
}

.teams-row.large {
  margin: 24px 0;
}

.team {
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
  min-width: 0;
}

.team strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.team img,
.team-logo {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), transparent 34%),
    rgba(198, 255, 46, 0.08);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 900;
  object-fit: contain;
}

.teams-row.large .team-logo {
  width: 78px;
  height: 78px;
}

.versus {
  color: var(--text);
  font-weight: 900;
}

.live-score {
  display: inline-flex;
  min-width: 66px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(198, 255, 46, 0.1);
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 900;
}

.match-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.recommendation-list {
  display: grid;
  gap: 12px;
}

.recommendation-card {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  overflow: hidden;
}

.recommendation-card p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.8rem;
}

.recommendation-card h3 {
  margin: 0;
  font-size: 1rem;
}

.recommendation-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}

.recommendation-card > span {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 900;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag-row span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.76rem;
}

.is-blurred > div {
  filter: blur(3px);
  opacity: 0.55;
}

.is-blurred::after {
  content: "Pro";
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #081105;
  font-weight: 900;
}

.chat-teaser {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 18px;
}

.chat-teaser h2,
.chat-teaser p {
  margin: 0;
}

.chat-teaser p {
  color: var(--muted);
}

.mini-bot {
  display: inline-grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(198, 255, 46, 0.08);
  color: var(--accent);
}

.analysis-top {
  padding: 18px;
}

.analysis-hero {
  padding: 16px;
}

.analysis-kicker,
.analysis-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.analysis-meta-row {
  flex-wrap: wrap;
  margin-top: 14px;
}

.analysis-meta-row span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.analysis-meta-row strong {
  margin-left: 5px;
  color: var(--accent);
}

.scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.score-team {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.score-team strong {
  max-width: 100%;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.score-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
}

.score-center {
  display: grid;
  justify-items: center;
  min-width: 76px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(198, 255, 46, 0.08);
}

.score-center strong {
  color: var(--accent);
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 900;
}

.score-center span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.analysis-copy {
  padding: 22px 2px 14px;
}

.analysis-copy h1 {
  max-width: 780px;
  margin: 6px 0 12px;
  font-size: clamp(1.65rem, 6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.12;
}

.analysis-copy .lead {
  max-width: 820px;
  margin: 0;
  color: var(--soft);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.75;
}

.stats-panel {
  padding: 16px;
}

.section-head.compact {
  margin: 0 0 14px;
}

.stats-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.stats-table-head,
.stats-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.15fr minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 11px 12px;
}

.stats-table-head {
  background: rgba(198, 255, 46, 0.08);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stats-row {
  border-top: 1px solid var(--line);
}

.stats-row strong {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

.stats-row span {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.analysis-notes {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.analysis-notes .glass-panel {
  padding: 16px;
}

.analysis-notes h2 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 500;
}

.analysis-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.68;
}

.subtle-upgrade {
  background: rgba(198, 255, 46, 0.045);
}

.confidence-ring {
  display: grid;
  justify-items: center;
  margin: 6px auto 0;
  width: 128px;
  height: 128px;
  place-content: center;
  border: 7px solid var(--accent);
  border-radius: 50%;
  background: rgba(198, 255, 46, 0.07);
}

.confidence-ring span {
  font-size: 2rem;
  font-weight: 900;
}

.confidence-ring p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.insight-grid,
.pricing-grid {
  display: grid;
  gap: 14px;
}

.insight-grid .glass-panel,
.pricing-card,
.profile-card {
  padding: 18px;
}

.insight-grid h2,
.pricing-card h2,
.profile-card h1 {
  margin: 0 0 9px;
}

.insight-grid p,
.pricing-card p,
.profile-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.locked-panel {
  position: relative;
}

.locked-panel p {
  filter: blur(3px);
}

.locked-panel::after {
  content: "Pro";
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #081105;
  font-weight: 900;
}

.risk-card {
  border-color: rgba(255, 255, 255, 0.16);
}

.upgrade-strip {
  display: grid;
  gap: 16px;
  align-items: center;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(198, 255, 46, 0.08);
}

.empty-state {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.api-warning {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 16px;
  border-color: rgba(255, 206, 86, 0.26);
}

.empty-state h2,
.empty-state p,
.api-warning h2,
.api-warning p {
  margin: 0;
}

.empty-state p,
.api-warning p {
  color: var(--muted);
  line-height: 1.5;
}

.upgrade-strip h2,
.upgrade-strip p {
  margin: 0;
}

.upgrade-strip p,
.disclaimer {
  color: var(--muted);
  line-height: 1.5;
}

.disclaimer {
  margin: 18px 0 0;
  font-size: 0.9rem;
}

.chat-page {
  overflow: hidden;
}

.chat-main {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  width: min(100%, 760px);
  height: calc(100vh - 71px);
  margin: 0 auto;
  padding: 14px 14px 92px;
}

.chat-intro {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 6px 2px 12px;
}

.chat-intro h1,
.chat-intro p {
  margin: 0;
}

.chat-intro p {
  color: var(--muted);
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 13px;
}

.quick-prompts button {
  flex: 1 1 calc(50% - 8px);
  min-height: 36px;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(198, 255, 46, 0.08);
  color: var(--accent);
  padding: 0 12px;
  font-weight: 800;
  white-space: normal;
}

.chat-window {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  padding: 6px 0 12px;
}

.message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px;
  line-height: 1.45;
}

.message p {
  margin: 0;
}

.message-bot {
  justify-self: start;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
}

.message-user {
  justify-self: end;
  background: var(--accent);
  color: #081105;
  font-weight: 700;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 10px;
  padding: 10px 0 0;
}

.chat-form input {
  min-height: 52px;
  border-radius: 999px;
}

.chat-form button {
  min-height: 52px;
  border-radius: 50%;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline article {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
}

.timeline article > span {
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(198, 255, 46, 0.3);
}

.timeline h3,
.timeline p,
.timeline small {
  margin: 0;
}

.timeline p,
.timeline small {
  color: var(--muted);
}

.profile-card {
  display: grid;
  justify-items: center;
  text-align: center;
}

.profile-avatar {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(198, 255, 46, 0.08);
  color: var(--accent);
  font-weight: 900;
  font-size: 1.4rem;
}

.profile-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.profile-actions form,
.pricing-card form {
  display: grid;
}

.pricing-card {
  display: grid;
  gap: 14px;
}

.pricing-card strong {
  color: var(--accent);
  font-size: 2.4rem;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--accent);
  font-weight: 900;
}

.pricing-card.featured {
  border-color: var(--line-strong);
}

.admin-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
}

.admin-nav a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-weight: 800;
  font-size: 0.84rem;
}

.admin-action {
  display: grid;
  margin: 12px 0 20px;
}

.table-card {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td {
  color: var(--soft);
}

td small {
  color: var(--muted);
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inline-form select {
  width: auto;
  min-width: 120px;
}

.bottom-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 760px);
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: rgba(5, 9, 20, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.38);
}

.bottom-nav a {
  display: grid;
  min-height: 70px;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: #7f8a9c;
  font-size: 0.72rem;
  font-weight: 800;
}

.bottom-nav span {
  font-size: 1.22rem;
}

.bottom-nav a.active {
  color: var(--accent);
}

.phone-frame {
  position: relative;
  width: 285px;
  min-height: 580px;
  padding: 44px 16px 18px;
  border: 8px solid rgba(255, 255, 255, 0.13);
  border-radius: 46px;
  background: #060b14;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.64);
}

.phone-frame::before {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 92px;
  height: 22px;
  border-radius: 0 0 16px 16px;
  background: #02050c;
  content: "";
  transform: translateX(-50%);
}

.phone-status {
  position: absolute;
  top: 17px;
  left: 34px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.phone-top,
.phone-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-top {
  padding-bottom: 18px;
}

.phone-top strong {
  color: var(--text);
}

.chat-bubble {
  margin: 11px 0;
  padding: 12px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.chat-bubble.bot {
  margin-right: 35px;
  background: var(--panel-2);
}

.chat-bubble.user {
  margin-left: 42px;
  background: var(--accent);
  color: #081105;
  font-weight: 800;
}

.phone-card {
  margin-top: 16px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.phone-card h4 {
  margin: 0 0 12px;
}

.phone-card div {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}

.phone-card strong {
  color: var(--text);
}

.phone-card a {
  display: grid;
  margin-top: 14px;
  min-height: 36px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.phone-nav {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  padding-top: 10px;
  color: #7f8a9c;
}

@media (min-width: 520px) {
  .match-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid,
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analysis-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .public-nav {
    padding-top: 34px;
  }

  .hero-grid {
    grid-template-columns: 0.96fr 0.82fr 0.9fr 0.62fr;
    gap: 10px;
  }

  .hero-copy {
    grid-column: 1 / 3;
    grid-row: 1;
    align-self: center;
  }

  .mascot-stage {
    grid-column: 2 / 3;
    grid-row: 1;
    align-self: end;
    margin-bottom: -42px;
    pointer-events: none;
  }

  .mascot-stage img {
    width: 520px;
    max-width: none;
  }

  .hero-side {
    grid-column: 3 / 4;
    grid-row: 1;
    align-self: center;
    margin-top: 28px;
  }

  .phone-preview {
    display: block;
    grid-column: 4 / 5;
    grid-row: 1;
    align-self: center;
  }

  .feature-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: -10px;
  }

  .feature-rail article {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .feature-rail article:last-child {
    border-right: 0;
  }

  .landing-quote {
    grid-template-columns: auto auto 1fr;
  }

  .landing-quote p {
    grid-column: auto;
    justify-self: center;
  }

  .bottom-nav {
    display: none;
  }

  .app-main {
    padding-bottom: 46px;
  }

  .app-header {
    padding-right: calc((100vw - min(980px, 100vw - 32px)) / 2);
    padding-left: calc((100vw - min(980px, 100vw - 32px)) / 2);
  }

  .metric-card {
    padding: 20px;
  }

  .match-actions {
    display: flex;
    justify-content: flex-end;
  }

  .chat-main {
    height: calc(100vh - 71px);
    padding-bottom: 20px;
  }

  .upgrade-strip {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 430px) {
  .public-nav-actions .btn-ghost {
    display: none;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .feature-rail {
    grid-template-columns: 1fr;
  }

  .feature-rail article {
    border-right: 0;
  }

  .page-hero {
    display: grid;
  }

  .metric-grid {
    gap: 8px;
  }
}

/* Premium product refinement for the authenticated app */
:root {
  --bg: #07080a;
  --bg-2: #0c0f12;
  --panel: rgba(14, 17, 21, 0.88);
  --panel-2: rgba(18, 22, 27, 0.9);
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(190, 232, 88, 0.28);
  --text: #f2f4f0;
  --muted: #8c958f;
  --soft: #c9d0c9;
  --accent: #bee858;
  --accent-2: #8fbd3d;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --radius-sm: 6px;
}

body.app-page,
body.chat-page {
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 220px),
    #07080a;
}

body.app-page::before,
body.chat-page::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 1px);
  background-size: 100% 72px, 72px 100%;
  opacity: 0.22;
}

.app-page .glass-panel,
.app-page .match-card,
.app-page .recommendation-card,
.app-page .metric-card,
.app-page .table-card,
.chat-page .glass-panel,
.chat-page .message,
.chat-page .chat-form input {
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(15, 18, 22, 0.78);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.app-page .neo-logo {
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.app-page .neo-logo-mark {
  width: 28px;
  height: 28px;
  border-width: 1px;
  box-shadow: none;
  font-size: 0.82rem;
}

.app-page .app-header {
  min-height: 56px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(7, 8, 10, 0.86);
  border-bottom-color: var(--line);
}

.app-page .icon-button,
.app-page .profile-dot {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
  color: var(--soft);
  font-size: 0.86rem;
}

.app-page .side-menu-panel {
  gap: 4px;
  background: #0b0d10;
}

.app-page .side-menu-panel a {
  padding: 10px 0;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.app-main {
  width: min(100%, 900px);
  padding: 16px 16px 96px;
}

.page-hero,
.page-title,
.analysis-section {
  padding: 10px 0 14px;
}

.app-page .eyebrow,
.chat-page .eyebrow {
  margin-top: 0;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.page-hero h1,
.page-title h1,
.analysis-section h1 {
  margin: 4px 0 6px;
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  font-weight: 500;
  line-height: 1.18;
}

.page-hero p,
.page-title p,
.analysis-section .lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.btn {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 500;
}

.btn-primary {
  background: var(--accent);
  box-shadow: none;
  color: #111607;
}

.btn-soft,
.btn-ghost {
  background: rgba(255, 255, 255, 0.026);
  border-color: var(--line);
  color: var(--soft);
}

.btn-small {
  min-height: 32px;
  padding: 0 11px;
  font-size: 0.78rem;
}

.status-pill,
.tag-row span,
.match-status-row span,
.match-status-row em,
.analysis-meta-row span {
  min-height: 24px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
}

.status-pill {
  padding: 0 9px;
  background: rgba(190, 232, 88, 0.08);
}

.metric-grid {
  gap: 8px;
  margin: 10px 0 20px;
}

.metric-card {
  padding: 12px;
}

.metric-card span {
  font-size: 1.22rem;
  font-weight: 500;
}

.metric-card p {
  font-size: 0.72rem;
}

.section-head {
  margin: 20px 0 10px;
  align-items: center;
}

.section-head h2 {
  margin-bottom: 2px;
  font-size: 1rem;
  font-weight: 500;
}

.section-head p,
.section-head a {
  font-size: 0.82rem;
}

.section-head a {
  color: var(--soft);
  font-weight: 500;
  white-space: nowrap;
}

.card-stack,
.recommendation-list,
.analysis-notes {
  gap: 10px;
}

.match-card {
  padding: 13px;
}

.match-meta {
  font-size: 0.78rem;
}

.match-status-row {
  margin-top: 8px;
  font-size: 0.74rem;
}

.match-status-row span,
.match-status-row em {
  padding: 0 7px;
}

.match-status-row em {
  font-weight: 600;
}

.teams-row {
  gap: 9px;
  margin: 14px 0;
}

.team {
  gap: 7px;
}

.team strong,
.score-team strong {
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.25;
}

.team img,
.team-logo {
  width: 44px;
  height: 44px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.72rem;
  font-weight: 600;
}

.versus {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.live-score {
  min-width: 54px;
  min-height: 34px;
  border-radius: 7px;
  background: rgba(190, 232, 88, 0.08);
  font-size: 0.98rem;
  font-weight: 500;
}

.match-actions {
  gap: 8px;
}

.recommendation-card {
  padding: 13px;
  align-items: flex-start;
}

.recommendation-card p {
  font-size: 0.74rem;
}

.recommendation-card h3 {
  color: var(--soft);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.35;
}

.recommendation-card small {
  font-size: 0.8rem;
  line-height: 1.55;
}

.recommendation-card > span {
  font-size: 0.9rem;
  font-weight: 500;
}

.tag-row {
  gap: 6px;
  margin-top: 9px;
}

.tag-row span {
  padding: 4px 7px;
}

.chat-teaser,
.upgrade-strip,
.empty-state,
.api-warning,
.stats-panel,
.analysis-hero,
.analysis-notes .glass-panel,
.insight-grid .glass-panel,
.pricing-card,
.profile-card {
  padding: 14px;
}

.chat-teaser h2 {
  font-size: 1.05rem;
  font-weight: 500;
}

.chat-teaser p {
  font-size: 0.84rem;
}

.api-warning {
  gap: 6px;
  margin: 10px 0 14px;
}

.empty-state h2,
.api-warning h2,
.upgrade-strip h2 {
  font-size: 0.98rem;
  font-weight: 500;
}

.empty-state p,
.api-warning p,
.upgrade-strip p,
.disclaimer {
  font-size: 0.84rem;
  line-height: 1.55;
}

.analysis-hero {
  margin-top: 2px;
}

.analysis-kicker,
.analysis-meta-row {
  color: var(--muted);
  font-size: 0.74rem;
}

.analysis-meta-row {
  margin-top: 12px;
}

.analysis-meta-row span {
  padding: 0 8px;
}

.analysis-meta-row strong {
  font-weight: 500;
}

.scoreboard {
  gap: 9px;
  margin-top: 14px;
}

.score-team {
  gap: 7px;
}

.score-logo {
  width: 48px;
  height: 48px;
  padding: 5px;
}

.score-center {
  min-width: 64px;
  padding: 8px 9px;
  border-radius: 7px;
  background: rgba(190, 232, 88, 0.07);
}

.score-center strong {
  font-size: 1.22rem;
  font-weight: 500;
}

.score-center span {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.analysis-copy {
  padding: 16px 0 12px;
}

.analysis-copy h1 {
  max-width: 740px;
  margin: 4px 0 8px;
  font-size: clamp(1.18rem, 4.8vw, 1.65rem);
  font-weight: 500;
  line-height: 1.28;
}

.analysis-copy .lead {
  max-width: 760px;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.72;
}

.section-head.compact {
  margin-bottom: 10px;
}

.stats-table {
  border-radius: 7px;
}

.stats-table-head,
.stats-row {
  grid-template-columns: minmax(0, 1fr) 1.05fr minmax(0, 1fr);
  padding: 9px 10px;
}

.stats-table-head {
  background: rgba(255, 255, 255, 0.025);
  color: var(--soft);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.stats-row strong {
  font-size: 0.84rem;
  font-weight: 500;
}

.stats-row span {
  font-size: 0.76rem;
}

.analysis-notes {
  margin-top: 10px;
}

.analysis-notes h2 {
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.analysis-notes p {
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.65;
}

.chat-main {
  width: min(100%, 720px);
  height: calc(100vh - 56px);
  padding: 12px 14px 82px;
}

.chat-intro {
  padding: 4px 0 10px;
}

.chat-intro h1 {
  font-size: 1.12rem;
  font-weight: 500;
}

.quick-prompts {
  gap: 6px;
  padding-bottom: 10px;
}

.quick-prompts button {
  min-height: 32px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.026);
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 500;
}

.message {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.message-user {
  background: #d7f28a;
  color: #141907;
  font-weight: 400;
}

.chat-form {
  grid-template-columns: 1fr 42px;
  gap: 8px;
}

.chat-form input {
  min-height: 42px;
  border-radius: 8px;
}

.chat-form button {
  min-height: 42px;
  border-radius: 8px;
}

input,
select {
  min-height: 40px;
  border-radius: 7px;
  font-size: 0.88rem;
}

label {
  font-size: 0.82rem;
  font-weight: 500;
}

.profile-avatar {
  width: 62px;
  height: 62px;
  font-size: 1rem;
  font-weight: 500;
}

.pricing-card {
  gap: 12px;
}

.pricing-card strong {
  font-size: 1.75rem;
  font-weight: 500;
}

.pricing-card li {
  color: var(--soft);
  font-size: 0.86rem;
}

.pricing-card li::before {
  font-weight: 600;
}

.bottom-nav {
  width: min(100%, 720px);
  border-radius: 12px 12px 0 0;
  background: rgba(7, 8, 10, 0.94);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.28);
}

.bottom-nav a {
  min-height: 58px;
  color: #8a928c;
  font-size: 0.66rem;
  font-weight: 500;
}

.bottom-nav span {
  font-size: 1rem;
}

@media (min-width: 900px) {
  .app-main {
    padding-bottom: 36px;
  }

  .app-header {
    padding-right: calc((100vw - min(900px, 100vw - 32px)) / 2);
    padding-left: calc((100vw - min(900px, 100vw - 32px)) / 2);
  }

  .metric-card {
    padding: 14px;
  }

  .chat-main {
    height: calc(100vh - 56px);
    padding-bottom: 16px;
  }
}

@media (max-width: 430px) {
  body.app-page,
  body.chat-page {
    font-size: 13.5px;
  }

  .app-main {
    padding-right: 12px;
    padding-left: 12px;
  }

  .page-hero h1,
  .page-title h1,
  .analysis-section h1 {
    font-size: 1.28rem;
  }

  .analysis-copy h1 {
    font-size: 1.12rem;
  }

  .team img,
  .team-logo {
    width: 40px;
    height: 40px;
  }

  .score-logo {
    width: 44px;
    height: 44px;
  }
}
