:root {
  color-scheme: dark;
  --bg: #09090b;
  --panel: rgba(24, 24, 27, 0.78);
  --panel-strong: #111827;
  --panel-soft: rgba(39, 39, 42, 0.64);
  --line: rgba(161, 161, 170, 0.15);
  --text: #f8fafc;
  --muted: #a1a1aa;
  --quiet: #71717a;
  --blue: #38bdf8;
  --blue-strong: #0ea5e9;
  --emerald: #34d399;
  --emerald-strong: #10b981;
  --amber: #f59e0b;
  --danger: #fb7185;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(14, 165, 233, 0.13), transparent 30%),
    linear-gradient(135deg, #020617 0%, #09090b 44%, #111827 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: blur(22px);
}

.topbar-inner {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 0;
  color: var(--text);
  background: transparent;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-primary,
.nav-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-button,
.ghost-button,
.primary-button,
.chip,
.icon-button {
  min-height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(39, 39, 42, 0.72);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-button {
  padding: 0 16px;
  font-weight: 760;
}

.nav-button.primary {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(37, 99, 235, 0.95));
  border-color: rgba(56, 189, 248, 0.34);
}

.nav-button.premium-locked,
.analyze-button.premium-locked {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(120, 83, 10, 0.16);
}

.nav-button.premium-locked:hover,
.analyze-button.premium-locked:hover {
  border-color: rgba(251, 191, 36, 0.52);
  background: rgba(120, 83, 10, 0.26);
}

.lock-icon {
  width: 15px;
  height: 15px;
}

.nav-button.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
  border-color: rgba(52, 211, 153, 0.35);
}

.nav-button.active,
.chip.active,
.ghost-button:hover,
.icon-button:hover {
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(14, 165, 233, 0.14);
}

.nav-button:hover,
.primary-button:hover,
.ghost-button:hover,
.chip:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.main {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(520px, 100%);
  border: 1px solid rgba(116, 140, 166, 0.24);
  border-radius: 24px;
  background: #0f1722;
  box-shadow: var(--shadow);
  padding: 32px;
  display: grid;
  gap: 20px;
}

.login-brand {
  min-width: 0;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.login-card .field {
  gap: 7px;
}

.login-card .field label {
  color: #aeb9c7;
  font-size: 12px;
  font-weight: 800;
}

.login-card .field input {
  min-height: 48px;
  border: 1px solid #344457;
  border-radius: 14px;
  padding: 0 15px;
  background: #111c28;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-card .field input:focus {
  border-color: var(--emerald);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1);
}

.login-card .primary-button {
  min-height: 48px;
  border-radius: 14px;
}

.auth-eyebrow {
  display: block;
  color: var(--emerald);
  font-size: 10px;
  font-weight: 900;
}

.auth-error {
  border: 1px solid rgba(251, 113, 133, 0.32);
  background: rgba(244, 63, 94, 0.12);
  color: var(--danger);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800;
}

.login-hint {
  display: grid;
  gap: 6px;
  color: var(--quiet);
  font-size: 12px;
}

.auth-switch {
  justify-self: center;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(56, 189, 248, 0.08);
  font-weight: 800;
}

.auth-message {
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 750;
}

.user-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(52, 211, 153, 0.24);
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
}

.user-pill strong {
  color: #04150f;
  background: var(--emerald);
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 10px;
  text-transform: uppercase;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 24, 27, 0.82);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.price-card.featured {
  border-color: rgba(52, 211, 153, 0.36);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(14, 165, 233, 0.06));
}

.price-card.current {
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.2), var(--shadow-soft);
}

.price-eyebrow {
  color: var(--emerald);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.price-card h2 {
  margin: 10px 0 8px;
  font-size: 30px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.google-auth-button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #394758;
  border-radius: 14px;
  color: var(--text);
  background: #111a25;
  font-weight: 800;
  cursor: pointer;
}

.google-auth-button:hover {
  border-color: #5d7085;
  background: #162230;
}

.google-auth-primary {
  min-height: 50px;
  border-color: #4a5b70;
  background: #fff;
  color: #202124;
}

.google-auth-primary:hover {
  border-color: #fff;
  background: #f4f7fb;
}

.google-mark {
  font-family: Arial, sans-serif;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  background: conic-gradient(from -35deg, #4285f4 0 25%, #34a853 25% 42%, #fbbc05 42% 67%, #ea4335 67% 83%, #4285f4 83% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-gate-close {
  border-radius: 50%;
}

.price-card h2 small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.price-card p {
  color: var(--muted);
  line-height: 1.55;
}

.price-card ul {
  min-height: 132px;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.9;
}

.billing-message {
  min-height: 22px;
  margin-top: 12px;
  text-align: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 28px;
}

.headline {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.82), rgba(17, 24, 39, 0.66));
  border-radius: 8px;
  padding: 18px 28px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-logo {
  width: clamp(110px, 11vw, 150px);
  height: clamp(110px, 11vw, 150px);
  flex: 0 0 auto;
  object-fit: contain;
}

.hero-message {
  min-width: 0;
}

.kicker {
  color: var(--emerald);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(27px, 2.7vw, 40px);
  line-height: 1.02;
  max-width: 720px;
  margin-top: 12px;
  letter-spacing: 0;
}

.hero-copy {
  color: var(--muted);
  max-width: 590px;
  margin-top: 11px;
  line-height: 1.5;
  font-size: 13px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.stat-tile,
.panel,
.match-card,
.table-wrap {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.panel,
.headline,
.table-wrap,
.stat-tile,
.match-card,
.filter-card,
.system-box {
  backdrop-filter: blur(14px);
}

.stat-tile {
  padding: 14px;
  background: linear-gradient(180deg, rgba(39, 39, 42, 0.62), rgba(9, 9, 11, 0.26));
}

.stat-label {
  color: var(--quiet);
  font-size: 12px;
}

.stat-value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 850;
}

.stat-value.good {
  color: var(--emerald);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 22px;
}

.section-head p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

.league-row,
.filter-row,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip {
  color: var(--muted);
  min-height: 34px;
  padding: 0 12px;
  font-weight: 700;
  font-size: 13px;
}

.chip.active {
  color: var(--text);
}

.grid {
  display: grid;
  gap: 14px;
}

.matches-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fixture-days {
  display: grid;
  gap: 18px;
}

.fixture-day {
  display: grid;
  gap: 8px;
}

.fixture-day > h3 {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
  padding: 0 2px;
}

.match-card {
  min-height: 82px;
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.match-card.active,
.match-card:hover {
  border-color: rgba(52, 211, 153, 0.42);
  background: rgba(16, 185, 129, 0.08);
}

.match-card:hover {
  transform: translateY(-1px);
}

.match-card-head {
  min-height: 35px;
  padding: 8px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(39, 39, 42, 0.72);
}

.match-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.league-name {
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.league-name::before {
  content: "";
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
  vertical-align: 1px;
}

.match-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
}

.match-card-body {
  min-height: 47px;
  padding: 10px 16px 11px;
  column-gap: 7px;
}

.team {
  display: flex;
  align-items: center;
  gap: 7px;
  width: auto;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.home-team {
  grid-column: 1;
  justify-self: end;
  text-align: left;
}

.away-team {
  grid-column: 3;
  justify-self: start;
  text-align: left;
}

.match-versus {
  grid-column: 2;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.team-name {
  display: block;
  flex: 0 1 auto;
  width: auto;
  max-width: calc(100% - 51px);
  min-width: 0;
  font-weight: 800;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ppp-badge {
  width: 44px;
  min-width: 44px;
  flex: 0 0 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 5px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.ppp-low {
  color: #ffffff;
  background: #dc2648;
}

.ppp-mid {
  color: #16100a;
  background: #f28c28;
}

.ppp-high {
  color: #04130d;
  background: #25c987;
}

.ppp-empty {
  color: #ffffff;
  background: #52525b;
}

.pricing-page {
  min-height: calc(100vh - 150px);
  display: grid;
  align-content: center;
  gap: 34px;
  padding: 44px 0 80px;
}

.pricing-intro {
  display: grid;
  grid-template-columns: 150px minmax(0, 760px);
  gap: 34px;
  align-items: center;
}

.pricing-intro img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.pricing-intro h1 {
  margin-top: 0;
}

.pricing-intro p {
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.7;
  font-size: 16px;
}

.pricing-status {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-status > div {
  min-height: 118px;
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 9px;
}

.pricing-status > div + div {
  border-left: 1px solid var(--line);
}

.pricing-status span {
  color: var(--quiet);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
}

.pricing-status strong {
  color: var(--text);
  font-size: 17px;
}

.odds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.odd {
  border: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.42);
  border-radius: 8px;
  padding: 9px 8px;
  text-align: center;
}

.odd span {
  display: block;
  color: var(--quiet);
  font-size: 11px;
  margin-bottom: 2px;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.badge {
  border-radius: 999px;
  border: 1px solid rgba(161, 161, 170, 0.16);
  background: rgba(39, 39, 42, 0.48);
  color: var(--muted);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 680;
}

.badge.good {
  color: var(--emerald);
  border-color: rgba(52, 211, 153, 0.24);
  background: rgba(16, 185, 129, 0.1);
}

.badge.repeat-stat,
.repeat-stat {
  color: var(--emerald);
  font-weight: 900;
}

.badge.repeat-stat {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.12);
}

.panel {
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.fixture-detail {
  margin-top: 18px;
}

.metric-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-badges {
  margin: 14px 0;
}

.racha-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.fixture-detail-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.analyze-button {
  min-height: 42px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid rgba(52, 211, 153, 0.38);
  color: #03130e;
  background: linear-gradient(135deg, var(--emerald), #6ee7b7);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.2);
  font-weight: 900;
}

.analyze-button.active {
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
}

.analyze-button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  border-color: var(--line);
  background: rgba(39, 39, 42, 0.62);
  box-shadow: none;
  opacity: 0.78;
}

.analyze-button .icon {
  width: 16px;
  height: 16px;
}

.fixture-analysis {
  margin-bottom: 16px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), rgba(14, 165, 233, 0.06));
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.analysis-heading h3 {
  margin-top: 6px;
  font-size: 20px;
}

.analysis-heading p,
.analysis-disclaimer {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.analysis-limited-sample {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #f0b84b;
  color: #cbd5e1;
  background: rgba(240, 184, 75, 0.08);
  font-size: 12px;
  line-height: 1.5;
}

.analysis-market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.analysis-market {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 9, 11, 0.52);
  padding: 16px;
  overflow: hidden;
}

.analysis-rank {
  position: absolute;
  top: 10px;
  right: 12px;
  color: rgba(52, 211, 153, 0.22);
  font-size: 38px;
  font-weight: 950;
}

.analysis-market-main {
  display: grid;
  gap: 5px;
  padding-right: 38px;
}

.analysis-market-main span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.analysis-market-main strong {
  color: var(--emerald);
  font-size: 30px;
}

.analysis-breakdown {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.analysis-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 7px;
  color: var(--quiet);
  font-size: 12px;
}

.analysis-breakdown strong {
  color: var(--text);
  white-space: nowrap;
}

.recommend-box {
  border: 1px solid rgba(52, 211, 153, 0.22);
  background: rgba(16, 185, 129, 0.09);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--emerald);
  margin-bottom: 14px;
}

.muted-box {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(39, 39, 42, 0.35);
}

.racha-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.racha-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 9, 11, 0.32);
  overflow: hidden;
}

.racha-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.racha-title span {
  color: var(--muted);
  font-size: 12px;
}

.racha-list {
  display: grid;
}

.racha-row {
  display: grid;
  grid-template-columns: 112px minmax(220px, 1.2fr) 70px 76px repeat(4, minmax(128px, 1fr));
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  align-items: center;
}

.racha-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

.racha-head {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--quiet);
  background: rgba(9, 9, 11, 0.82);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.racha-row strong {
  color: var(--text);
}

.racha-stat-cell {
  text-align: center;
}

.racha-averages {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: rgba(39, 39, 42, 0.32);
}

.racha-averages span {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.racha-averages strong {
  border: 1px solid rgba(161, 161, 170, 0.16);
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.35);
  color: var(--text);
  font-size: 12px;
  padding: 6px 10px;
}

.racha-averages strong.repeat-stat {
  color: var(--emerald);
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(16, 185, 129, 0.1);
}

.h2h-block {
  margin-top: 14px;
}

.h2h-summary {
  padding: 14px;
  margin-bottom: 0;
}

.h2h-tabs {
  justify-content: flex-end;
}

.h2h-table {
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.h2h-table table {
  min-width: 1040px;
}

.lab-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
}

.radar-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}

.allstats-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}

.trend-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}

.allstats-filter-grid {
  display: grid;
  gap: 12px;
}

.filter-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(39, 39, 42, 0.42), rgba(9, 9, 11, 0.24));
  padding: 12px;
}

.allstats-conditions {
  display: grid;
  gap: 12px;
}

.allstats-condition-card {
  display: grid;
  gap: 12px;
}

.condition-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.condition-head strong {
  color: var(--text);
  font-size: 13px;
}

.radar-filters {
  align-self: start;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.radar-results {
  min-width: 0;
}

.radar-table {
  background: rgba(9, 9, 11, 0.28);
  margin-top: 14px;
  max-height: min(74vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  scrollbar-color: rgba(56, 189, 248, 0.45) rgba(9, 9, 11, 0.5);
}

.radar-table table {
  min-width: 980px;
}

.allstats-layout .radar-table table {
  min-width: 1380px;
}

.allstats-table {
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.allstats-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 52px;
  color: #d4d4d8;
  background: #15171d;
  border-bottom: 1px solid rgba(56, 189, 248, 0.26);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.allstats-table th:first-child,
.allstats-table td:first-child {
  position: static;
  background: #12141a;
  box-shadow: none;
}

.allstats-table thead th:first-child {
  background: #171a21;
}

.allstats-table tbody tr:nth-child(even) td {
  background-color: rgba(255, 255, 255, 0.018);
}

.allstats-table tbody tr:hover td {
  background-color: rgba(56, 189, 248, 0.075);
}

.allstats-table tbody tr:nth-child(even) td:first-child {
  background-color: #14171d;
}

.allstats-table tbody tr:hover td:first-child {
  background-color: #18212a;
}

.allstats-table td {
  min-width: 88px;
  vertical-align: middle;
}

.allstats-table td:nth-child(n + 2) {
  text-align: center;
}

.allstats-table th .small-note {
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
}

.allstats-table .team-link {
  display: block;
  min-width: 150px;
  text-align: left;
  text-decoration: none;
}

.allstats-table .team-link:hover {
  color: var(--blue);
}

.allstats-table .profit,
.allstats-table .loss,
.allstats-table .percentage-sum {
  font-size: 14px;
}

.next-system-table {
  border-color: rgba(52, 211, 153, 0.24);
  background: rgba(16, 185, 129, 0.06);
}

.system-empty {
  margin-top: 14px;
}

.table-title {
  padding: 14px 14px 0;
}

.team-link {
  color: var(--text);
  background: transparent;
  border: 0;
  padding: 0;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(52, 211, 153, 0.35);
}

.mini-button {
  border: 1px solid var(--line);
  background: rgba(39, 39, 42, 0.55);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
}

.mini-button.active-mini {
  color: var(--emerald);
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(16, 185, 129, 0.12);
}

.mini-button.danger-active {
  color: var(--danger);
  border-color: rgba(251, 113, 133, 0.36);
  background: rgba(251, 113, 133, 0.12);
}

.system-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(39, 39, 42, 0.38), rgba(9, 9, 11, 0.26));
  padding: 12px;
}

.allstats-active-filter {
  margin-bottom: 14px;
  color: var(--muted);
}

.allstats-active-filter strong {
  color: var(--text);
}

.allstats-percent-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
}

.allstats-percent-box .percent-value {
  grid-row: span 2;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.allstats-percent-box span {
  display: block;
  margin-top: 4px;
}

.allstats-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.allstats-pager > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pager-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mini-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.allstats-filter-summary .summary-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 10px;
}

.allstats-filter-summary table {
  min-width: 0;
}

.allstats-filter-summary th,
.allstats-filter-summary td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.allstats-filter-summary th {
  color: var(--muted);
  text-align: left;
  width: 88px;
}

.allstats-filter-summary td {
  color: var(--text);
  text-align: right;
  font-weight: 800;
}

.system-team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.system-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(52, 211, 153, 0.26);
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  border-radius: 999px;
  padding: 6px 8px 6px 10px;
  font-size: 12px;
  font-weight: 850;
}

.system-team button {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.danger-team {
  color: var(--danger);
  border-color: rgba(251, 113, 133, 0.28);
  background: rgba(251, 113, 133, 0.09);
}

.opponent-picker {
  margin-top: 8px;
}

.opponent-picker select {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.64);
  color: var(--text);
  padding: 0 10px;
}

.selected-row,
.hit-row {
  background: rgba(16, 185, 129, 0.1);
}

.miss-row {
  background: rgba(251, 113, 133, 0.07);
}

.radar-table .hit-row td {
  border-bottom-color: rgba(52, 211, 153, 0.18);
}

.radar-table .miss-row td {
  border-bottom-color: rgba(251, 113, 133, 0.2);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  margin-bottom: 8px;
}

.field input,
.field select,
.compact-select {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.64);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.compact-select {
  min-height: 34px;
}

.field input:focus,
.field select:focus {
  border-color: rgba(56, 189, 248, 0.54);
}

.field input[type="search"] {
  padding-left: 40px;
  background-image:
    radial-gradient(circle at 17px 18px, transparent 5px, #7dd3fc 5.5px, #7dd3fc 7px, transparent 7.5px),
    linear-gradient(45deg, transparent 46%, #7dd3fc 47%, #7dd3fc 55%, transparent 56%);
  background-size: 28px 28px, 8px 8px;
  background-position: 0 3px, 23px 24px;
  background-repeat: no-repeat;
}

.field input[type="search"]::-webkit-search-cancel-button {
  filter: invert(1);
  opacity: 0.55;
}

.team-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.team-search-row .mini-button {
  min-height: 42px;
  white-space: nowrap;
}

.source-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 9, 11, 0.64);
}

.source-switch button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.source-switch button.active {
  background: var(--emerald);
  color: #04120d;
}

.sub-field-label {
  margin-top: 12px;
}

.home-fixture-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.home-fixture-controls > label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.home-fixture-controls .compact-select {
  width: auto;
  min-width: 98px;
}

.home-fixture-controls .league-row {
  margin-left: 4px;
}

.home-seo-heading {
  margin-bottom: 16px;
}

.home-seo-heading h1 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.home-seo-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.trend-add-button {
  min-height: 42px;
  margin-top: 12px;
}

.trend-team-pill {
  max-width: 100%;
}

.trend-team-pill strong {
  color: inherit;
}

.trend-team-pill select {
  min-height: 28px;
  max-width: 112px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 6px;
  color: var(--text);
  background: #171a21;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 800;
}

.range-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.season-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 260px;
  min-height: 118px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 9, 11, 0.36);
}

.primary-button,
.ghost-button {
  width: 100%;
  padding: 0 14px;
  font-weight: 800;
}

.preset-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary-button {
  color: #00111c;
  background: linear-gradient(135deg, var(--blue), #60a5fa);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.chart {
  width: 100%;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(9, 9, 11, 0.42);
  background-size: 100% 25%, 12.5% 100%;
  overflow: hidden;
}

.trend-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.trend-dashboard-head {
  margin-bottom: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(129, 140, 248, 0.18);
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(26, 35, 64, 0.96), rgba(15, 23, 42, 0.9));
}

.trend-dashboard-head span {
  color: #8b9cff;
  font-size: 11px;
  font-weight: 850;
}

.trend-dashboard-head h1 {
  margin-top: 7px;
  font-size: clamp(28px, 3vw, 42px);
}

.trend-dashboard-head p {
  max-width: 720px;
  margin-top: 9px;
  color: #9ca8c2;
  font-size: 14px;
}

.trend-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.trend-kpi-card {
  min-height: 118px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(129, 140, 248, 0.16);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(31, 42, 72, 0.94), rgba(20, 29, 52, 0.94));
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.24);
}

.trend-kpi-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.trend-kpi-copy > span {
  overflow: hidden;
  color: #a9b4cb;
  font-size: 12px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-kpi-copy strong {
  color: #f8fafc;
  font-size: 27px;
}

.trend-kpi-copy small {
  color: #7dd3fc;
  font-size: 11px;
}

.trend-kpi-copy em {
  color: #73809b;
  font-size: 11px;
  font-style: normal;
}

.trend-gauge {
  display: grid;
  justify-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.trend-gauge-ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(var(--gauge-color) var(--gauge), #35405a 0);
}

.trend-gauge-ring::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #17213b;
}

.trend-gauge-ring strong {
  position: relative;
  z-index: 1;
  color: #f8fafc;
  font-size: 13px;
}

.trend-gauge > span {
  color: #74819b;
  font-size: 10px;
  font-weight: 760;
}

.trend-overview-grid {
  display: grid;
  grid-template-columns: minmax(500px, 1.35fr) minmax(340px, 0.65fr);
  gap: 14px;
  margin-bottom: 14px;
}

.trend-radar-card,
.trend-summary-card,
.trend-donut-card {
  min-width: 0;
  border: 1px solid rgba(129, 140, 248, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(27, 38, 67, 0.95), rgba(17, 25, 46, 0.96));
  overflow: hidden;
}

.trend-radar {
  height: 500px;
  padding: 0 4px 8px;
}

.trend-radar svg {
  width: 100%;
  height: 100%;
}

.trend-radar text {
  fill: #9ba7c0;
  font-size: 13px;
  font-weight: 750;
}

.trend-summary-rows {
  display: grid;
  padding: 12px 16px 18px;
}

.trend-summary-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: 10px minmax(120px, 1fr) repeat(4, auto);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: #8f9ab2;
  font-size: 12px;
}

.trend-summary-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.trend-summary-row strong {
  color: #edf2ff;
}

.trend-summary-ppp {
  color: var(--emerald);
  font-weight: 900;
}

.trend-donut-card {
  padding: 14px;
}

.trend-donut-card-top {
  margin-bottom: 14px;
}

.trend-donut-card-top .trend-donut-teams {
  grid-template-columns: 1fr;
  max-height: none;
  padding: 0;
}

.trend-overview-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.trend-donut-teams {
  display: grid;
  gap: 14px;
  max-height: 430px;
  overflow-y: auto;
  padding: 6px 4px 4px 0;
}

.trend-donut-team {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background: rgba(9, 15, 30, 0.34);
}

.trend-donut-team-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.trend-donut-team-head > i {
  width: 8px;
  height: 28px;
  flex: 0 0 8px;
  border-radius: 3px;
}

.trend-donut-team-head > div {
  min-width: 0;
}

.trend-donut-team-head strong,
.trend-donut-team-head span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-donut-team-head strong {
  color: #edf2ff;
  font-size: 13px;
}

.trend-donut-team-head span {
  margin-top: 2px;
  color: #8f9ab2;
  font-size: 10px;
}

.trend-donut-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(62px, 1fr));
  gap: 8px;
}

.trend-donut-card-top .trend-donut-team {
  min-width: 0;
}

.trend-donut-card-top .trend-donut-grid {
  grid-template-columns: repeat(7, minmax(72px, 1fr));
}

.trend-stat-donut {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
}

.trend-stat-donut-ring {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(var(--donut-color) var(--donut), rgba(71, 85, 105, 0.38) 0);
}

.trend-stat-donut-split .trend-stat-donut-ring {
  background: var(--donut-split);
}

.trend-stat-donut-ring::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #151e35;
}

.trend-stat-donut-ring strong {
  position: relative;
  z-index: 1;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.trend-stat-donut-split .trend-stat-donut-ring strong {
  display: grid;
  gap: 1px;
  font-size: 10px;
  line-height: 1;
}

.trend-stat-donut-split .trend-stat-donut-ring strong b {
  font: inherit;
}

.trend-stat-donut-split .trend-stat-donut-ring strong b:first-child {
  color: #c4b5fd;
}

.trend-stat-donut-split .trend-stat-donut-ring strong b:last-child {
  color: #f9a8d4;
}

.trend-stat-donut > span {
  color: #9ba7c0;
  font-size: 10px;
  font-weight: 750;
  text-align: center;
  line-height: 1.2;
}

.trend-stat-donut > small {
  min-height: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #8792aa;
  font-size: 8px;
  line-height: 1;
}

.trend-stat-donut > small i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.trend-stat-donut > small .over {
  background: #a78bfa;
}

.trend-stat-donut > small .under {
  margin-left: 2px;
  background: #f472b6;
}

.trend-team-card,
.trend-chart-card {
  border: 1px solid rgba(129, 140, 248, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(27, 38, 67, 0.95), rgba(17, 25, 46, 0.96));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.trend-team-card {
  padding: 14px;
}

.trend-team-head,
.trend-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.trend-team-head h3,
.trend-chart-head h3 {
  font-size: 15px;
}

.trend-chart-head {
  padding: 14px 14px 0;
}

.trend-expand-button {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 7px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.65);
  font-size: 11px;
  font-weight: 780;
}

.trend-expand-button:hover {
  color: #fff;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(14, 165, 233, 0.14);
}

.trend-expand-button svg {
  width: 15px;
  height: 15px;
}

.trend-chart-head span {
  display: block;
  margin-top: 4px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 760;
}

.trend-team-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.trend-team-stats .stat-tile {
  padding: 10px;
  box-shadow: none;
}

.trend-team-stats .stat-value {
  font-size: 18px;
}

.trend-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.trend-chart {
  height: 300px;
  margin: 10px 14px 0;
  border: 1px solid rgba(129, 140, 248, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    rgba(14, 23, 43, 0.7);
  background-size: 100% 25%, 10% 100%;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trend-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.trend-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 9, 11, 0.32);
}

.trend-filter-list .chip {
  min-height: 32px;
  font-size: 12px;
}

.trend-team-pill input[type="color"] {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  overflow: hidden;
}

.trend-point-label {
  paint-order: stroke;
  stroke: rgba(9, 9, 11, 0.92);
  stroke-width: 3px;
  stroke-linejoin: round;
}

body.modal-open {
  overflow: hidden;
}

.trend-chart-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(10px);
}

.trend-chart-modal-dialog {
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  position: relative;
}

.trend-chart-modal-close {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #fff;
  background: rgba(9, 9, 11, 0.86);
  font-size: 25px;
  line-height: 1;
}

.trend-chart-modal .trend-chart-card,
.trend-chart-modal .trend-radar-card {
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow: auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.trend-chart-modal .trend-chart {
  height: min(68vh, 680px);
}

.trend-chart-modal .trend-radar {
  height: min(72vh, 720px);
}

.trend-chart-modal .trend-chart-head {
  padding: 20px 70px 0 22px;
}

.trend-chart-modal .trend-chart-head h3 {
  font-size: 21px;
}

.trend-chart-modal .trend-chart-head span {
  font-size: 13px;
}

.clear-trend-button {
  margin-top: 12px;
}

.table-wrap {
  position: relative;
  overflow: auto;
}

.table-toolbar {
  min-width: 100%;
  min-height: 42px;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px 6px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 17, 22, 0.96);
  backdrop-filter: blur(14px);
}

.table-toolbar > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.table-toolbar > div {
  display: flex;
  gap: 6px;
}

.table-toolbar button {
  width: 32px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(39, 39, 42, 0.8);
  font-size: 18px;
  font-weight: 850;
}

.table-toolbar button:hover {
  border-color: rgba(56, 189, 248, 0.46);
  background: rgba(14, 165, 233, 0.14);
}

.table-toolbar svg {
  width: 16px;
  height: 16px;
}

.table-wrap.table-expanded {
  position: fixed;
  inset: 14px;
  z-index: 90;
  max-width: none;
  max-height: none;
  margin: 0;
  border-color: rgba(56, 189, 248, 0.36);
  background: #0b0d12;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72);
}

.table-wrap.table-expanded .table-toolbar {
  position: sticky;
}

.blog-placeholder {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  text-align: center;
}

.blog-placeholder > div {
  max-width: 620px;
}

.blog-placeholder .icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--blue);
}

.blog-placeholder span {
  display: block;
  color: var(--emerald);
  font-size: 11px;
  font-weight: 900;
}

.blog-placeholder h1 {
  margin: 12px auto 0;
}

.blog-placeholder p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  background: rgba(9, 9, 11, 0.35);
}

.sort-head {
  padding: 0;
  min-height: auto;
  color: inherit;
  background: transparent;
  border: 0;
  text-transform: inherit;
  letter-spacing: inherit;
  font-size: inherit;
  font-weight: 850;
}

.sort-head:hover {
  color: var(--blue);
}

td {
  color: #e5e7eb;
}

.profit {
  color: var(--emerald);
  font-weight: 800;
}

.percentage-sum {
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}

.loss {
  color: var(--danger);
  font-weight: 800;
}

.confidence {
  min-width: 150px;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(63, 63, 70, 0.8);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--emerald), var(--blue));
}

.empty {
  border: 1px dashed rgba(161, 161, 170, 0.25);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: rgba(39, 39, 42, 0.22);
}

.icon {
  width: 17px;
  height: 17px;
  display: inline-block;
}

.file-input {
  display: none;
}

.small-note {
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.5;
}

.preset-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.preset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.preset {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.36);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 12px;
}

.preset.active-preset {
  color: var(--emerald);
  border-color: rgba(52, 211, 153, 0.34);
  background: rgba(16, 185, 129, 0.12);
}

.preset.selected-preset {
  border-color: rgba(56, 189, 248, 0.48);
  background: rgba(14, 165, 233, 0.12);
}

.load-preset-button {
  margin-top: 10px;
}

.system-context {
  border: 1px solid rgba(52, 211, 153, 0.24);
  background: rgba(16, 185, 129, 0.09);
  color: var(--muted);
  border-radius: 8px;
  padding: 11px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.system-context strong {
  color: var(--emerald);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 1100px) {
  .hero,
  .lab-layout,
  .radar-layout,
  .allstats-layout,
  .trend-layout,
  .racha-grid {
    grid-template-columns: 1fr;
  }

  .radar-filters {
    position: static;
    max-height: none;
  }

  .matches-grid {
    grid-template-columns: 1fr;
  }

  .trend-overview-grid,
  .trend-charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1400px) {
  .allstats-layout,
  .trend-layout {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  }

  .main {
    width: min(100% - 20px, 1440px);
  }

  .table-wrap {
    scrollbar-gutter: stable;
  }
}

@media (max-width: 1100px) {
  .allstats-layout,
  .trend-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    background: #09090b;
  }

  .topbar {
    background: rgba(9, 9, 11, 0.94);
  }

  .topbar-inner {
    height: auto;
    min-height: 0;
    padding: 9px 0 7px;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .brand {
    min-width: 0;
    gap: 9px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    overflow: visible;
    padding: 1px 0 3px;
  }

  .nav-primary,
  .nav-account {
    width: 100%;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .nav-account {
    justify-content: flex-start;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding-top: 6px;
  }

  .nav-actions::-webkit-scrollbar,
  .nav-primary::-webkit-scrollbar,
  .nav-account::-webkit-scrollbar,
  .league-row::-webkit-scrollbar {
    display: none;
  }

  .nav-button,
  .nav-actions > .chip {
    width: auto;
    min-width: max-content;
    min-height: 36px;
    padding: 0 11px;
    font-size: 12px;
    scroll-snap-align: start;
  }

  .nav-button .icon {
    width: 15px;
    height: 15px;
  }

  .main {
    width: min(100% - 24px, 1440px);
    padding: 16px 0 34px;
  }

  .hero-stats,
  .metric-grid,
  .pricing-grid,
  .matches-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-bottom: 20px;
  }

  .headline {
    min-height: 0;
    padding: 14px 16px;
    align-items: center;
    gap: 13px;
  }

  .hero-logo {
    width: 64px;
    height: 64px;
  }

  .kicker {
    font-size: 9px;
    line-height: 1.2;
  }

  h1 {
    margin-top: 6px;
    font-size: 24px;
    line-height: 1.05;
  }

  .hero-copy {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.35;
  }

  .pricing-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .trend-dashboard-head {
    padding: 18px;
    margin-bottom: 12px;
  }

  .trend-dashboard-head h1 {
    font-size: 27px;
  }

  .trend-kpi-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .trend-kpi-strip::-webkit-scrollbar {
    display: none;
  }

  .trend-kpi-card {
    min-width: 245px;
    scroll-snap-align: start;
  }

  .trend-overview-grid {
    grid-template-columns: 1fr;
  }

  .trend-radar {
    height: 430px;
    overflow-x: auto;
  }

  .trend-radar svg {
    min-width: 690px;
  }

  .trend-summary-row {
    grid-template-columns: 10px minmax(110px, 1fr) auto auto;
  }

  .trend-summary-row > span:not(:first-of-type):not(.trend-summary-ppp) {
    display: none;
  }

  .trend-donut-card {
    padding: 12px;
  }

  .trend-donut-teams {
    max-height: none;
  }

  .trend-donut-card-top .trend-donut-teams {
    grid-template-columns: 1fr;
  }

  .trend-donut-grid {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
    gap: 14px 8px;
  }

  .trend-donut-card-top .trend-donut-grid {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
  }

  .trend-stat-donut-ring {
    width: 72px;
    height: 72px;
  }

  .trend-chart {
    height: 250px;
    overflow-x: auto;
  }

  .trend-chart svg {
    min-width: 720px;
  }

  .trend-expand-button span {
    display: none;
  }

  .trend-chart-modal {
    padding: 10px;
  }

  .trend-chart-modal-dialog,
  .trend-chart-modal .trend-chart-card,
  .trend-chart-modal .trend-radar-card {
    max-height: calc(100vh - 20px);
  }

  .trend-chart-modal .trend-chart,
  .trend-chart-modal .trend-radar {
    height: 70vh;
  }

  .trend-chart-modal .trend-chart svg {
    min-width: 900px;
  }

  .trend-chart-modal .trend-radar svg {
    min-width: 720px;
  }

  .pricing-intro img {
    width: 96px;
    height: 96px;
  }

  .pricing-status {
    grid-template-columns: 1fr;
  }

  .pricing-status > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 12px;
  }

  .section-head h2 {
    font-size: 20px;
  }

  .league-row {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 0 5px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .league-row .chip {
    min-width: max-content;
    scroll-snap-align: start;
  }

  .matches-grid {
    gap: 10px;
  }

  .match-card {
    min-height: 82px;
    padding: 0;
    box-shadow: none;
    grid-template-columns: none;
    grid-template-rows: auto 1fr;
  }

  .match-card-head {
    padding-inline: 10px;
  }

  .match-card-body {
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
    column-gap: 7px;
    padding-inline: 12px;
  }

  .match-card .ppp-badge {
    width: 42px;
    min-width: 42px;
    flex-basis: 42px;
    padding: 4px 5px;
    font-size: 10px;
  }

  .match-card .team-name {
    font-size: 14px;
  }

  .fixture-detail {
    margin-top: 14px;
    padding: 16px;
  }

  .fixture-detail .section-head {
    gap: 14px;
  }

  .fixture-detail-actions {
    justify-items: start;
  }

  .racha-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .racha-tabs .chip {
    min-width: max-content;
  }

  .racha-list {
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .racha-row {
    min-width: 1240px;
  }

  .table-wrap {
    max-width: calc(100vw - 24px);
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .home-fixture-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .home-fixture-controls .league-row {
    width: 100%;
    margin-left: 0;
  }

  .table-wrap.table-expanded {
    inset: 6px;
    max-width: none;
  }

  table {
    font-size: 12px;
  }

  .fixture-detail-actions {
    width: 100%;
    justify-items: stretch;
  }

  .fixture-detail-actions .racha-tabs {
    justify-content: flex-start;
  }

  .analysis-market-grid {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    width: min(100% - 24px, 1440px);
  }
}

/* StatFair modern redesign candidate */
:root {
  --bg: #07090d;
  --panel: #10141b;
  --panel-strong: #141a23;
  --panel-soft: #0c1016;
  --line: #242b36;
  --line-strong: #343e4d;
  --text: #f3f6fa;
  --muted: #9aa6b6;
  --quiet: #687486;
  --blue: #27a8e8;
  --blue-strong: #1488c7;
  --emerald: #25cf91;
  --emerald-strong: #16aa75;
  --amber: #f2ae3d;
  --danger: #f05f70;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.18);
}

html {
  background: var(--bg);
  scrollbar-color: #344052 #0a0d12;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 320px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(25, 168, 232, 0.055), transparent);
}

button,
input,
select {
  letter-spacing: 0;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(39, 168, 232, 0.82);
  outline-offset: 2px;
}

.topbar {
  border-bottom: 1px solid rgba(52, 62, 77, 0.72);
  background: rgba(7, 9, 13, 0.94);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1520px, calc(100% - 32px));
  min-height: 66px;
  padding: 8px 0;
  gap: 22px;
}

.brand {
  min-width: 205px;
  gap: 10px;
}

.brand-mark {
  width: 38px;
  height: 38px;
}

.brand-title {
  display: block;
  font-size: 17px;
  line-height: 1.05;
  font-weight: 800;
}

.brand-subtitle {
  display: block;
  max-width: 150px;
  margin-top: 3px;
  color: #7f8a9a;
  font-size: 10px;
  line-height: 1.2;
}

.nav-actions {
  gap: 4px;
}

.nav-button,
.nav-actions > .chip {
  min-height: 38px;
  padding: 0 12px;
  border-color: transparent;
  border-radius: 6px;
  color: #aab4c2;
  background: transparent;
  font-size: 12px;
  font-weight: 720;
  box-shadow: none;
}

.nav-button:hover,
.nav-actions > .chip:hover {
  transform: none;
  color: var(--text);
  border-color: var(--line);
  background: #10141b;
}

.nav-button.active,
.nav-button.primary,
.nav-button.success,
.nav-actions > .chip.active {
  color: #eefaff;
  border-color: rgba(39, 168, 232, 0.45);
  background: rgba(39, 168, 232, 0.12);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.nav-button.premium-locked,
.analyze-button.premium-locked {
  color: #d7b76e;
  border-color: transparent;
  background: transparent;
}

.user-pill {
  min-height: 32px;
  padding: 0 8px;
  border-color: var(--line);
  border-radius: 6px;
  color: #d7dee8;
  background: #0e1218;
  font-size: 11px;
  font-weight: 500;
}

.user-pill .user-name {
  min-width: 0;
  overflow: hidden;
  color: #d7dee8;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-pill .user-status {
  flex: 0 0 auto;
  border-radius: 4px;
  background: rgba(37, 207, 145, 0.16);
  color: var(--emerald);
  font-weight: 800;
}

.main {
  width: min(1520px, calc(100% - 32px));
  padding: 22px 0 52px;
}

.hero {
  margin-bottom: 22px;
}

.headline {
  min-height: 132px;
  padding: 18px 24px;
  gap: 20px;
  border-color: var(--line);
  border-radius: 6px;
  background: #0d1118;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-logo {
  width: 92px;
  height: 92px;
}

.kicker {
  color: var(--emerald);
  font-size: 10px;
  letter-spacing: 0.08em;
}

h1 {
  max-width: 780px;
  margin-top: 8px;
  font-size: clamp(26px, 2.25vw, 36px);
  line-height: 1.08;
  font-weight: 800;
}

.hero-copy {
  margin-top: 8px;
  color: #909bad;
  font-size: 12px;
}

.view-lab .hero,
.view-allstats .hero {
  margin-bottom: 14px;
}

.view-lab .headline,
.view-allstats .headline {
  min-height: 82px;
  padding: 12px 18px;
  gap: 14px;
}

.view-lab .hero-logo,
.view-allstats .hero-logo {
  width: 56px;
  height: 56px;
}

.view-lab .kicker,
.view-allstats .kicker {
  font-size: 9px;
}

.view-lab h1,
.view-allstats h1 {
  margin-top: 4px;
  font-size: 22px;
}

.view-lab .hero-copy,
.view-allstats .hero-copy {
  margin-top: 4px;
  font-size: 10px;
}

.section-head {
  min-height: 44px;
  margin-bottom: 12px;
  align-items: center;
}

.section-head h2 {
  font-size: 20px;
  font-weight: 800;
}

.section-head p {
  margin-top: 4px;
  color: #8c97a7;
  font-size: 12px;
}

.stat-tile,
.panel,
.match-card,
.table-wrap,
.filter-card,
.system-box,
.price-card,
.login-card {
  border-color: var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: none;
  backdrop-filter: none;
}

.chip,
.ghost-button,
.primary-button,
.icon-button,
.mini-button,
.analyze-button {
  border-radius: 6px;
  box-shadow: none;
}

.chip {
  min-height: 32px;
  padding: 0 10px;
  color: #929dac;
  border-color: var(--line);
  background: #0d1117;
  font-size: 11px;
  font-weight: 740;
}

.chip:hover {
  transform: none;
  color: var(--text);
  border-color: #3c4655;
  background: #141a22;
}

.chip.active {
  color: #dff6ff;
  border-color: rgba(39, 168, 232, 0.48);
  background: rgba(39, 168, 232, 0.12);
}

.league-row,
.filter-row,
.chips {
  gap: 6px;
}

.home-fixture-controls {
  gap: 6px;
}

.home-fixture-controls > label {
  color: #758194;
  font-size: 10px;
  text-transform: uppercase;
}

.fixture-days {
  gap: 16px;
}

.fixture-day {
  gap: 7px;
}

.fixture-day > h3 {
  padding: 0;
  color: #8793a4;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.matches-grid {
  gap: 10px;
}

.match-card {
  min-height: 78px;
  border-color: #252d38;
  background: #0e1218;
  box-shadow: none;
  transition: border-color 140ms ease, background 140ms ease;
}

.match-card:hover,
.match-card.active {
  transform: none;
  border-color: rgba(39, 168, 232, 0.5);
  background: #111821;
}

.match-card.active {
  box-shadow: inset 3px 0 0 var(--blue);
}

.match-card-head {
  min-height: 31px;
  padding: 6px 11px;
  border-color: #262e39;
  background: #151a22;
}

.league-name {
  font-size: 11px;
  font-weight: 780;
}

.league-name::before {
  width: 5px;
  height: 5px;
  margin-right: 7px;
  box-shadow: none;
}

.match-date {
  color: #8c97a5;
  font-size: 10px;
}

.match-card-body {
  min-height: 45px;
  padding: 9px 13px 10px;
}

.team-name {
  font-size: 13px;
  font-weight: 780;
  max-width: 220px;
}

.match-versus {
  color: #596476;
  font-size: 9px;
}

.ppp-badge {
  width: 40px;
  min-width: 40px;
  flex-basis: 40px;
  padding: 4px;
  border-radius: 4px;
  font-size: 10px;
}

.ppp-low {
  background: #c63f52;
}

.ppp-mid {
  color: #171107;
  background: #e6a63c;
}

.ppp-high {
  background: #25bd85;
}

.ppp-empty {
  background: #3f4857;
}

.fixture-detail {
  border-color: var(--line);
  border-radius: 6px;
  background: #0c1016;
  box-shadow: none;
}

.stat-tile {
  padding: 12px;
  border-color: var(--line);
  background: #10151d;
}

.stat-label {
  color: #788497;
  font-size: 10px;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 5px;
  font-size: 21px;
}

.lab-layout {
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 12px;
}

.radar-layout,
.allstats-layout,
.trend-layout {
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 12px;
}

.radar-filters {
  top: 80px;
  max-height: calc(100vh - 94px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d1117;
  scrollbar-color: #394457 #0d1117;
}

.filter-card,
.system-box {
  padding: 10px;
  border-color: #252d38;
  background: #11161e;
}

.form-grid,
.allstats-filter-grid {
  gap: 11px;
}

.field label {
  margin-bottom: 6px;
  color: #7e899a;
  font-size: 10px;
  text-transform: uppercase;
}

.field input,
.field select,
.compact-select,
.opponent-picker select {
  min-height: 38px;
  padding: 0 10px;
  border-color: #293240;
  border-radius: 5px;
  color: #e8edf4;
  background-color: #090d12;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
}

.compact-select {
  min-height: 32px;
}

.field input:hover,
.field select:hover,
.compact-select:hover {
  border-color: #3a4657;
}

.field input:focus,
.field select:focus,
.compact-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(39, 168, 232, 0.1);
}

.field input[type="search"] {
  padding-left: 36px;
  background-color: #090d12;
}

.source-switch {
  gap: 2px;
  padding: 3px;
  border-color: #293240;
  border-radius: 6px;
  background: #080c11;
}

.source-switch button {
  min-height: 34px;
  border-radius: 4px;
  font-size: 11px;
}

.source-switch button.active {
  color: #06140f;
  background: var(--emerald);
}

.season-picker {
  min-height: 108px;
  padding: 7px;
  gap: 6px;
  border-color: #293240;
  border-radius: 5px;
  background: #090d12;
}

.primary-button,
.ghost-button {
  min-height: 38px;
  border-color: #2d3745;
  border-radius: 5px;
  font-size: 11px;
}

.primary-button {
  color: #031018;
  background: var(--blue);
}

.primary-button:hover {
  transform: none;
  background: #43b5eb;
}

.ghost-button {
  color: #c4ccd7;
  background: #121821;
}

.ghost-button:hover {
  transform: none;
  border-color: #455164;
  background: #18202b;
}

.mini-button {
  padding: 5px 9px;
  border-color: #2d3745;
  border-radius: 5px;
  color: #aeb8c5;
  background: #121821;
  font-size: 10px;
}

.system-team {
  gap: 6px;
  padding: 5px 7px 5px 9px;
  border-color: rgba(37, 207, 145, 0.26);
  border-radius: 5px;
  color: #62dbaa;
  background: rgba(37, 207, 145, 0.08);
  font-size: 10px;
}

.system-team button {
  border-radius: 3px;
}

.trend-dashboard-head {
  margin-bottom: 12px;
  padding: 18px 20px;
  border-color: var(--line);
  border-radius: 6px;
  background: #10151d;
  box-shadow: none;
}

.trend-dashboard-head span {
  color: var(--blue);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.trend-dashboard-head h1 {
  margin-top: 5px;
  font-size: clamp(25px, 2.4vw, 34px);
}

.trend-dashboard-head p {
  margin-top: 6px;
  color: #8e99aa;
  font-size: 12px;
}

.trend-radar-card,
.trend-summary-card,
.trend-donut-card,
.trend-team-card,
.trend-chart-card {
  border-color: var(--line);
  border-radius: 6px;
  background: #10151d;
  box-shadow: none;
}

.trend-donut-card {
  padding: 12px;
}

.trend-donut-team {
  padding: 10px;
  gap: 10px;
  border-color: #252e3a;
  border-radius: 5px;
  background: #0c1118;
}

.trend-donut-team-head > i {
  width: 4px;
  height: 25px;
  flex-basis: 4px;
}

.trend-donut-team-head strong {
  font-size: 12px;
}

.trend-stat-donut-ring {
  width: 58px;
  height: 58px;
}

.trend-stat-donut-ring::after {
  inset: 6px;
  background: #10151d;
}

.trend-stat-donut-ring strong {
  font-size: 11px;
}

.trend-stat-donut > span {
  color: #8d98a9;
  font-size: 9px;
}

.trend-chart-head {
  padding: 14px 15px 0;
}

.trend-chart-head h3 {
  font-size: 14px;
}

.trend-chart-head span {
  color: #798699;
  font-size: 10px;
}

.trend-expand-button {
  border-color: #2b3543;
  border-radius: 5px;
  color: #9ba7b6;
  background: #0d1219;
}

.trend-radar text {
  fill: #8794a7;
  font-size: 11px;
}

.chart,
.trend-chart {
  border-color: #222b37;
  border-radius: 5px;
  background-color: #0a0f15;
}

.table-wrap,
.radar-table {
  border-color: var(--line);
  border-radius: 6px;
  background: #0c1016;
  box-shadow: none;
  scrollbar-color: #354257 #0c1016;
}

.radar-table {
  margin-top: 10px;
}

.table-toolbar {
  min-height: 38px;
  padding: 5px 7px 5px 11px;
  border-color: #27303c;
  background: rgba(13, 17, 23, 0.96);
}

.table-toolbar > span {
  color: #6f7b8c;
  font-size: 9px;
}

.table-toolbar button {
  width: 30px;
  height: 28px;
  border-color: #2b3542;
  border-radius: 4px;
  background: #151b24;
}

table {
  color: #dbe2eb;
}

th,
td {
  padding: 10px 12px;
  border-bottom-color: #202833;
  font-size: 12px;
}

th {
  color: #7f8b9c;
  background: #10151c;
  font-size: 9px;
  letter-spacing: 0.045em;
}

.allstats-table thead th {
  height: 44px;
  color: #aab4c2;
  background: #121820;
  border-bottom-color: #303b49;
  box-shadow: none;
}

.allstats-table th:first-child,
.allstats-table td:first-child {
  background: #0f141b;
  box-shadow: none;
}

.allstats-table thead th:first-child {
  background: #141a22;
}

.allstats-table tbody tr:nth-child(even) td {
  background-color: rgba(255, 255, 255, 0.012);
}

.allstats-table tbody tr:hover td,
.allstats-table tbody tr:hover td:first-child {
  background-color: rgba(39, 168, 232, 0.065);
}

.team-link {
  color: #e4ebf4;
  font-weight: 760;
  text-decoration: none;
}

.team-link:hover {
  color: #5bc1f0;
}

.profit {
  color: #38d79c;
}

.loss {
  color: #f36d7d;
}

.percentage-sum {
  color: #4db8eb;
}

.bar {
  height: 6px;
  background: #252e3a;
}

.bar span {
  background: var(--emerald);
}

.empty {
  padding: 24px;
  border-color: #303946;
  border-radius: 6px;
  color: #7d899a;
  background: #0c1016;
}

.pricing-page {
  align-content: start;
  padding-top: 24px;
}

.price-card {
  padding: 22px;
}

.price-card.featured {
  border-color: rgba(37, 207, 145, 0.38);
  background: #111a1b;
}

.login-card {
  background: #10151d;
}

.blog-placeholder .icon {
  color: var(--blue);
}

@media (max-width: 1100px) {
  .lab-layout,
  .radar-layout,
  .allstats-layout,
  .trend-layout {
    grid-template-columns: 1fr;
  }

  .radar-filters {
    position: relative;
    top: auto;
    max-height: 480px;
  }
}

@media (max-width: 760px) {
  body::before {
    display: none;
  }

  .topbar {
    background: rgba(7, 9, 13, 0.98);
  }

  .topbar-inner {
    width: min(100% - 20px, 1520px);
    padding: 7px 0 6px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-title {
    font-size: 15px;
  }

  .nav-actions {
    gap: 3px;
  }

  .nav-button,
  .nav-actions > .chip {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 5px;
    font-size: 11px;
  }

  .main {
    width: min(100% - 20px, 1520px);
    padding-top: 13px;
  }

  .headline {
    min-height: 0;
    padding: 13px 14px;
    gap: 12px;
  }

  .hero-logo {
    width: 68px;
    height: 68px;
  }

  h1 {
    margin-top: 4px;
    font-size: 22px;
  }

  .hero-copy {
    margin-top: 5px;
    font-size: 11px;
  }

  .section-head {
    align-items: flex-start;
  }

  .section-head h2 {
    font-size: 18px;
  }

  .match-card {
    min-height: 74px;
  }

  .match-card-head {
    min-height: 30px;
  }

  .match-card-body {
    padding-inline: 10px;
  }

  .team-name {
    font-size: 12px;
    max-width: 105px;
  }

  .ppp-badge {
    width: 38px;
    min-width: 38px;
    flex-basis: 38px;
  }

  .radar-filters {
    max-height: 430px;
    padding: 12px;
  }

  .trend-dashboard-head {
    padding: 15px;
  }

  .trend-dashboard-head h1 {
    font-size: 25px;
  }

  .trend-donut-card {
    padding: 9px;
  }

  .trend-donut-grid,
  .trend-donut-card-top .trend-donut-grid {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
  }

  .trend-stat-donut-ring {
    width: 66px;
    height: 66px;
  }

  .table-wrap {
    max-width: calc(100vw - 20px);
  }
}

/* Home dashboard aligned with the approved visual reference */
.view-home {
  padding-top: 18px;
}

.view-home .brand-subtitle {
  display: none;
}

.home-dashboard {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.home-dashboard-sidebar,
.home-fixtures-workspace {
  border: 1px solid #26303d;
  border-radius: 7px;
  background: #0d1219;
}

.home-dashboard-sidebar {
  position: sticky;
  top: 84px;
  min-height: 430px;
  padding: 18px;
}

.home-dashboard-title {
  padding-bottom: 16px;
  border-bottom: 1px solid #252e3a;
}

.home-dashboard-title h2 {
  font-size: 18px;
  font-weight: 800;
}

.home-fixture-controls {
  width: 100%;
  display: grid;
  justify-content: stretch;
  gap: 10px;
  padding-top: 18px;
}

.home-fixture-controls > label {
  margin-top: 0;
  color: #8995a6;
  font-size: 10px;
  font-weight: 750;
  text-transform: none;
}

.home-fixture-controls .compact-select {
  width: 100%;
  min-height: 38px;
}

.home-fixture-controls .league-row {
  width: 100%;
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
}

.home-fixture-controls .league-row .chip {
  width: 100%;
  min-height: 40px;
  justify-content: flex-start;
  padding: 0 13px;
  font-size: 12px;
}

.home-fixtures-workspace {
  min-width: 0;
  padding: 12px;
}

.home-fixtures-workspace .fixture-days {
  gap: 10px;
}

.home-fixtures-workspace .fixture-day {
  gap: 0;
  overflow: hidden;
  border: 1px solid #242e3a;
  border-radius: 6px;
  background: #0a0f15;
}

.home-fixtures-workspace .fixture-day > h3 {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid #283341;
  color: #d9e1eb;
  background: #121923;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: capitalize;
}

.home-fixtures-workspace .matches-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.home-fixtures-workspace .match-card {
  min-height: 92px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #202a35;
  background: #0d131b;
}

.home-fixtures-workspace .match-card:nth-child(odd) {
  border-right: 1px solid #202a35;
}

.home-fixtures-workspace .match-card:hover,
.home-fixtures-workspace .match-card.active {
  background: #111a25;
}

.home-fixtures-workspace .match-card.active {
  box-shadow: inset 3px 0 0 var(--blue);
}

.home-fixtures-workspace .match-card-head {
  min-height: 32px;
  padding: 6px 11px;
  border-bottom-color: #202a35;
  background: #101721;
}

.home-fixtures-workspace .league-name {
  color: #9ca8b8;
  font-size: 11px;
}

.home-fixtures-workspace .match-date {
  color: #eef3f8;
  font-size: 12px;
  font-weight: 800;
}

.home-fixtures-workspace .match-card-body {
  min-height: 59px;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  padding: 10px 12px 12px;
  column-gap: 7px;
}

.home-fixtures-workspace .team {
  width: 100%;
}

.home-fixtures-workspace .home-team {
  justify-self: stretch;
  justify-content: flex-start;
}

.home-fixtures-workspace .away-team {
  justify-self: stretch;
  justify-content: flex-end;
}

.home-fixtures-workspace .away-team .team-name {
  order: 1;
  text-align: right;
}

.home-fixtures-workspace .away-team .ppp-badge {
  order: 2;
}

.home-fixtures-workspace .team-name {
  max-width: none;
  font-size: 14px;
  font-weight: 760;
}

.home-fixtures-workspace .match-versus {
  font-size: 11px;
}

.home-fixtures-workspace .ppp-badge {
  width: 48px;
  min-width: 48px;
  flex-basis: 48px;
  padding: 6px 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.view-home > .fixture-detail {
  margin-top: 14px;
}

@media (max-width: 1000px) {
  .home-dashboard {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .home-fixtures-workspace .matches-grid {
    grid-template-columns: 1fr;
  }

  .home-fixtures-workspace .match-card:nth-child(odd) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .view-home {
    padding-top: 12px;
  }

  .home-dashboard {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-dashboard-sidebar {
    position: static;
    min-height: 0;
    padding: 13px;
  }

  .home-dashboard-title {
    padding-bottom: 10px;
  }

  .home-fixture-controls {
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding-top: 12px;
  }

  .home-fixture-controls .league-row {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2px;
  }

  .home-fixture-controls .league-row .chip {
    justify-content: center;
    min-height: 36px;
  }

  .home-fixtures-workspace {
    padding: 8px;
  }

  .home-fixtures-workspace .fixture-day > h3 {
    min-height: 38px;
    padding-inline: 11px;
    font-size: 11px;
  }

  .home-fixtures-workspace .match-card {
    min-height: 86px;
  }

  .home-fixtures-workspace .team-name {
    max-width: calc(100% - 47px);
    font-size: 12px;
  }

  .home-fixtures-workspace .ppp-badge {
    width: 42px;
    min-width: 42px;
    flex-basis: 42px;
    font-size: 10px;
  }
}

/* Reference-accurate sports dashboard */
.view-home .main {
  max-width: 1540px;
}

.home-dashboard {
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 14px;
}

.home-dashboard-sidebar,
.home-fixtures-workspace {
  border-color: #293545;
  background: linear-gradient(180deg, #0e151f 0%, #0a1018 100%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.home-dashboard-sidebar {
  padding: 19px;
}

.home-dashboard-title h2 {
  font-size: 19px;
}

.home-dashboard-title::after {
  content: "";
  width: 40px;
  height: 2px;
  display: block;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--blue);
}

.home-days-segment {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid #2a3748;
  border-radius: 6px;
  background: #111925;
}

.home-days-segment button {
  min-height: 40px;
  border: 0;
  border-right: 1px solid #2a3748;
  color: #aeb9c8;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.home-days-segment button:last-child {
  border-right: 0;
}

.home-days-segment button.active {
  color: #fff;
  background: linear-gradient(180deg, #178bd0, #11629b);
  box-shadow: inset 0 0 0 1px rgba(74, 198, 255, 0.5);
}

.home-fixture-controls .league-row {
  padding-top: 8px;
  border-top: 1px solid #202a37;
}

.home-fixture-controls .league-row .chip {
  border-color: #293647;
  background: #111a27;
}

.home-fixture-controls .league-row .chip.active {
  border-color: #168bd0;
  color: #fff;
  background: linear-gradient(180deg, #167dbe, #125e91);
}

.home-fixtures-workspace {
  padding: 12px;
}

.home-date-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #2a3747;
  border-radius: 7px;
  background: #111925;
}

.home-date-tab {
  min-height: 61px;
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 0;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-right: 1px solid #2a3747;
  color: #a9b4c4;
  background: transparent;
  text-align: center;
  font: inherit;
  cursor: pointer;
}

.home-date-tab:last-child {
  border-right: 0;
}

.home-date-tab strong {
  color: #cbd4df;
  font-size: 13px;
  font-weight: 760;
  text-transform: capitalize;
}

.home-date-tab span {
  color: #7f8ca0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.home-date-tab.active {
  color: #39b8f2;
  background: linear-gradient(180deg, rgba(17, 139, 209, 0.2), rgba(11, 70, 107, 0.22));
  box-shadow: inset 0 -2px 0 #25aee9;
}

.home-date-tab.active strong,
.home-date-tab.active span {
  color: #37baf4;
}

.home-fixtures-workspace .fixture-days {
  gap: 12px;
}

.home-fixtures-workspace .fixture-day {
  overflow: visible;
  border: 0;
  background: transparent;
}

.home-fixtures-workspace .fixture-day > h3 {
  min-height: 30px;
  padding: 0 5px;
  border: 0;
  color: #8996a8;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.home-fixtures-workspace .matches-grid {
  gap: 10px;
}

.home-fixtures-workspace .match-card,
.home-fixtures-workspace .match-card:nth-child(odd) {
  min-height: 108px;
  overflow: hidden;
  border: 1px solid #283545;
  border-radius: 7px;
  background: linear-gradient(180deg, #101925 0%, #0d151f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.home-fixtures-workspace .match-card:hover {
  border-color: #3c5369;
  background: linear-gradient(180deg, #142130 0%, #101a26 100%);
  transform: translateY(-1px);
}

.home-fixtures-workspace .match-card.active {
  border-color: #1e9dda;
  background: linear-gradient(180deg, #122333 0%, #0e1a27 100%);
  box-shadow: inset 3px 0 0 #1ca9e8, 0 0 0 1px rgba(28, 169, 232, 0.12);
}

.home-fixtures-workspace .match-card-head {
  min-height: 38px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 24px;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid #283545;
  background: rgba(8, 13, 20, 0.42);
}

.home-fixtures-workspace .match-date {
  height: 100%;
  display: grid;
  place-items: center;
  border-right: 1px solid #283545;
  font-size: 13px;
}

.home-fixtures-workspace .league-name {
  padding: 0 11px;
  color: #aeb9c7;
  font-size: 12px;
}

.match-favorite {
  color: #8996a7;
  font-size: 21px;
  line-height: 1;
}

.home-fixtures-workspace .match-card-body {
  min-height: 68px;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  padding: 10px 8px;
  column-gap: 5px;
}

.home-fixtures-workspace .team {
  min-width: 0;
  gap: 7px;
}

.home-fixtures-workspace .home-team {
  display: grid;
  grid-template-columns: 52px 30px minmax(0, 1fr);
}

.home-fixtures-workspace .away-team {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 52px;
}

.home-fixtures-workspace .home-team .ppp-badge,
.home-fixtures-workspace .home-team .team-crest,
.home-fixtures-workspace .home-team .team-name,
.home-fixtures-workspace .away-team .team-crest,
.home-fixtures-workspace .away-team .team-name,
.home-fixtures-workspace .away-team .ppp-badge {
  order: initial;
}

.home-fixtures-workspace .team-crest {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  border: 1px solid #35455a;
  border-radius: 50%;
  color: #dce7f4;
  background: linear-gradient(145deg, #263950, #152333);
  font-size: 9px;
  font-weight: 900;
}

.home-fixtures-workspace .team-crest-image {
  overflow: hidden;
  border-color: transparent;
  background: #f7f9fc;
}

.home-fixtures-workspace .team-crest-image img {
  width: 94%;
  height: 94%;
  object-fit: contain;
}

.home-fixtures-workspace .team-name {
  min-width: 0;
  overflow: hidden;
  color: #e8edf4;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-fixtures-workspace .away-team .team-name {
  text-align: right;
}

.home-fixtures-workspace .ppp-badge {
  width: 52px;
  min-width: 52px;
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 4px;
  border-color: #3a485a;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
}

.home-fixtures-workspace .match-versus {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(62, 210, 170, 0.34);
  border-radius: 50%;
  color: #f2f7fb;
  background: #101d28;
  box-shadow: 0 0 0 4px rgba(62, 210, 170, 0.06), 0 8px 20px rgba(0, 0, 0, 0.25);
  font-size: 15px;
  line-height: 1;
}

.fixture-venue-tabs {
  flex-wrap: nowrap;
}

.fixture-venue-tabs .chip {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 11px;
}

@media (max-width: 1000px) {
  .home-dashboard {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .home-date-tabs {
    grid-template-columns: repeat(3, minmax(105px, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    align-items: flex-start;
  }

  .nav-actions {
    padding-bottom: 3px;
  }

  .home-dashboard {
    grid-template-columns: 1fr;
  }

  .home-dashboard-sidebar {
    padding: 14px;
  }

  .home-fixture-controls {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .home-date-tabs {
    grid-template-columns: repeat(3, minmax(96px, 1fr));
    overflow-x: auto;
  }

  .home-date-tab {
    min-height: 52px;
  }

  .home-fixtures-workspace .matches-grid {
    grid-template-columns: 1fr;
  }

  .home-fixtures-workspace .match-card,
  .home-fixtures-workspace .match-card:nth-child(odd) {
    min-height: 104px;
  }

  .home-fixtures-workspace .match-card-body {
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
    padding-inline: 7px;
  }

  .home-fixtures-workspace .home-team {
    grid-template-columns: 42px 26px minmax(0, 1fr);
    gap: 5px;
  }

  .home-fixtures-workspace .away-team {
    grid-template-columns: 26px minmax(0, 1fr) 42px;
    gap: 5px;
  }

  .home-fixtures-workspace .team-crest {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: 8px;
  }

  .home-fixtures-workspace .ppp-badge {
    width: 42px;
    min-width: 42px;
    min-height: 38px;
    font-size: 11px;
  }

  .home-fixtures-workspace .team-name {
    max-width: none;
    font-size: 11px;
  }
}

/* Home screen: faithful implementation of the approved dashboard reference */
.shell:has(.view-home) .topbar {
  min-height: 72px;
  border-bottom-color: #263140;
  background: #080d14;
}

.shell:has(.view-home) .topbar-inner {
  min-height: 72px;
}

.shell:has(.view-home) .brand-mark {
  width: 44px;
  height: 44px;
}

.shell:has(.view-home) .brand-title {
  font-size: 20px;
}

.view-home {
  width: min(100% - 24px, 1560px);
  padding-top: 12px;
}

.home-dashboard {
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 14px;
}

.home-dashboard-sidebar {
  top: 84px;
  min-height: 742px;
  padding: 20px;
  border-color: #2a3545;
  border-radius: 7px;
  background: #0e151f;
}

.home-dashboard-title {
  padding-bottom: 18px;
}

.home-dashboard-title h2 {
  font-size: 20px;
}

.home-dashboard-title p {
  margin: 7px 0 0;
  color: #8793a6;
  font-size: 12px;
}

.home-dashboard-title::after {
  display: none;
}

.home-fixture-controls {
  gap: 11px;
  padding-top: 21px;
}

.home-fixture-controls > label {
  margin-top: 9px;
  color: #98a4b6;
  font-size: 11px;
}

.home-fixture-controls > label:first-child {
  margin-top: 0;
}

.home-days-segment button {
  min-height: 43px;
  font-size: 14px;
}

.home-fixture-controls .league-row {
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.home-fixture-controls .league-row .chip {
  min-height: 43px;
  padding: 0 14px;
  border-radius: 5px;
  font-size: 13px;
}

.home-fixture-controls .compact-select {
  min-height: 43px;
  border-color: #2b3748;
  border-radius: 5px;
  color: #d6dde7;
  background-color: #111925;
  font-size: 13px;
}

.home-sidebar-note {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #293444;
  border-radius: 5px;
  color: #8e9aac;
  background: #151e2b;
  font-size: 10px;
  line-height: 1.45;
}

.home-sidebar-note > span {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  color: #07111b;
  background: #399fe0;
  font-size: 10px;
  font-weight: 900;
}

.home-fixtures-workspace {
  min-height: 742px;
  padding: 12px;
  border-color: #2a3545;
  background: #0e151f;
}

.home-date-tabs {
  position: relative;
  grid-template-columns: repeat(7, minmax(92px, 1fr));
  margin-bottom: 20px;
  margin-right: 37px;
  overflow: visible;
}

.home-date-tab {
  min-height: 63px;
}

.home-date-tab strong {
  font-size: 14px;
}

.home-date-tab span {
  font-size: 11px;
}

.home-date-next {
  position: absolute;
  top: 6px;
  right: -38px;
  width: 34px;
  height: 51px;
  border: 1px solid #2b3747;
  border-radius: 6px;
  color: #aab5c5;
  background: #111925;
  font-size: 25px;
  cursor: pointer;
}

.home-fixtures-list {
  padding: 12px 0 0;
  border-top: 1px solid #222d3b;
}

.home-fixtures-workspace .matches-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-fixtures-workspace .match-card,
.home-fixtures-workspace .match-card:nth-child(odd) {
  min-height: 104px;
}

.home-fixtures-workspace .match-card-head {
  min-height: 37px;
  grid-template-columns: 79px minmax(0, 1fr) 28px;
}

.home-fixtures-workspace .match-date {
  font-size: 14px;
}

.home-fixtures-workspace .league-name {
  font-size: 13px;
}

.home-fixtures-workspace .match-card-body {
  min-height: 65px;
}

.home-fixtures-workspace .team-name {
  font-size: 14px;
}

.home-fixtures-workspace .team-crest {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

.home-fixtures-workspace .home-team {
  grid-template-columns: 58px 40px minmax(0, 1fr);
}

.home-fixtures-workspace .away-team {
  grid-template-columns: 40px minmax(0, 1fr) 58px;
}

.home-fixtures-workspace .ppp-badge {
  width: 58px;
  min-width: 58px;
  min-height: 48px;
  font-size: 15px;
}

.home-more-fixtures {
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
  border: 0;
  color: #2ab6ef;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.home-more-fixtures span {
  padding-left: 6px;
  font-size: 18px;
}

.home-summary-grid {
  display: grid;
  grid-template-columns: 1.28fr 0.86fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.home-summary-panel {
  min-height: 195px;
  padding: 18px;
  border: 1px solid #2a3545;
  border-radius: 7px;
  background: #0e151f;
}

.home-summary-panel h3 {
  margin: 0 0 18px;
  color: #e2e8f0;
  font-size: 14px;
}

.home-summary-panel h3 span {
  color: #7d899a;
  font-weight: 500;
}

.home-summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #202b38;
  border-radius: 5px;
}

.home-summary-metrics > div {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: 13px;
  border-right: 1px solid #2b3645;
}

.home-summary-metrics > div:last-child {
  border-right: 0;
}

.home-summary-metrics span {
  color: #9aa6b6;
  font-size: 10px;
}

.home-summary-metrics strong {
  color: #26cd83;
  font-size: 23px;
}

.home-summary-metrics strong.warning {
  color: #f0b23a;
}

.home-result-content {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 18px;
}

.home-result-donut {
  width: 102px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    #20c878 0 calc(var(--win) * 1%),
    #667281 calc(var(--win) * 1%) calc((var(--win) + var(--draw)) * 1%),
    #ff5d6c calc((var(--win) + var(--draw)) * 1%) 100%
  );
  -webkit-mask: radial-gradient(circle, transparent 0 51%, #000 52%);
  mask: radial-gradient(circle, transparent 0 51%, #000 52%);
}

.home-result-legend {
  display: grid;
  gap: 13px;
}

.home-result-legend > span {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
  color: #a8b3c1;
  font-size: 12px;
}

.home-result-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.home-result-legend i.won {
  background: #20c878;
}

.home-result-legend i.draw {
  background: #667281;
}

.home-result-legend i.lost {
  background: #ff5d6c;
}

.home-result-legend strong {
  color: #cfd7e2;
  font-size: 11px;
}

.home-league-bars {
  display: grid;
  gap: 17px;
}

.home-league-bars > div {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(80px, 1.15fr) 18px;
  align-items: center;
  gap: 10px;
  color: #aab5c4;
  font-size: 12px;
}

.home-league-bars i {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: #1c2834;
}

.home-league-bars b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #21c678;
}

.home-league-bars strong {
  color: #e2e8ef;
  text-align: right;
}

.view-home > .fixture-detail {
  margin-top: 14px;
}

@media (max-width: 1120px) {
  .home-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-summary-general {
    grid-column: 1 / -1;
  }

  .home-date-tabs {
    grid-template-columns: repeat(7, minmax(82px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  .shell:has(.view-home) .topbar,
  .shell:has(.view-home) .topbar-inner {
    min-height: 94px;
  }

  .view-home {
    width: min(100% - 20px, 1560px);
  }

  .home-dashboard {
    grid-template-columns: 1fr;
  }

  .home-dashboard-sidebar,
  .home-fixtures-workspace {
    min-height: 0;
  }

  .home-dashboard-sidebar {
    position: static;
  }

  .home-fixture-controls {
    grid-template-columns: 1fr;
  }

  .home-fixture-controls .league-row {
    grid-column: auto;
  }

  .home-date-tabs {
    grid-template-columns: repeat(7, 112px);
    margin-right: 0;
    overflow-x: auto;
  }

  .home-date-next {
    display: none;
  }

  .home-fixtures-workspace .matches-grid {
    grid-template-columns: 1fr;
  }

  .home-fixtures-workspace .home-team {
    grid-template-columns: 42px 30px minmax(0, 1fr);
  }

  .home-fixtures-workspace .away-team {
    grid-template-columns: 30px minmax(0, 1fr) 42px;
  }

  .home-fixtures-workspace .team-crest {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .home-fixtures-workspace .match-versus {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .home-fixtures-workspace .ppp-badge {
    width: 42px;
    min-width: 42px;
    min-height: 38px;
  }

  .home-summary-grid {
    grid-template-columns: 1fr;
  }

  .home-summary-general {
    grid-column: auto;
  }

  .home-summary-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-summary-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .home-summary-metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid #2b3645;
  }
}

/* Unified StatFair product language across every workspace */
.view-allstats,
.view-trend,
.view-lab,
.view-blog,
.view-pricing {
  width: min(100% - 24px, 1560px);
  padding-top: 12px;
}

.view-allstats .hero,
.view-lab .hero,
.trend-dashboard-head,
.blog-placeholder,
.pricing-intro {
  border: 1px solid #2a3545;
  border-radius: 7px;
  background: #0e151f;
  box-shadow: none;
}

.view-allstats .hero,
.view-lab .hero {
  min-height: 92px;
}

.view-allstats .headline,
.view-lab .headline {
  min-height: 90px;
  padding: 16px 20px;
}

.view-allstats .hero-logo,
.view-lab .hero-logo {
  width: 54px;
  height: 54px;
}

.view-allstats h1,
.view-lab h1,
.trend-dashboard-head h1 {
  color: #edf2f7;
  font-size: 26px;
  letter-spacing: 0;
}

.view-allstats .kicker,
.view-lab .kicker,
.trend-dashboard-head > span {
  color: #36b8f0;
}

.view-allstats .hero-copy,
.view-lab .hero-copy,
.trend-dashboard-head p {
  color: #8d99aa;
}

.lab-layout,
.allstats-layout,
.trend-layout {
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.radar-filters {
  top: 84px;
  max-height: calc(100vh - 98px);
  padding: 16px;
  border: 1px solid #2a3545;
  border-radius: 7px;
  background: #0e151f;
  box-shadow: none;
}

.radar-filters h2 {
  color: #edf2f7;
  font-size: 19px;
}

.radar-filters p {
  color: #8d99aa;
}

.filter-card,
.allstats-condition-card {
  border: 1px solid #283444;
  border-radius: 6px;
  background: #111925;
  box-shadow: none;
}

.filter-card label,
.allstats-condition-card label,
.radar-filters label {
  color: #919dae;
  font-size: 10px;
}

.view-allstats select,
.view-allstats input,
.view-trend select,
.view-trend input,
.view-lab select,
.view-lab input {
  border-color: #2b3748;
  border-radius: 5px;
  color: #dce3ec;
  background-color: #0b1119;
}

.view-allstats .segmented,
.view-trend .segmented,
.view-lab .segmented {
  overflow: hidden;
  border: 1px solid #2b3748;
  border-radius: 5px;
  background: #101824;
}

.view-allstats .segmented button,
.view-trend .segmented button,
.view-lab .segmented button {
  border-color: #2b3748;
  color: #9aa6b7;
  background: transparent;
}

.view-allstats .segmented button.active,
.view-trend .segmented button.active,
.view-lab .segmented button.active,
.view-allstats .source-switch button.active,
.view-trend .source-switch button.active,
.view-lab .source-switch button.active,
.view-allstats .chip.active,
.view-trend .chip.active,
.view-lab .chip.active {
  border-color: #168bd0;
  color: #fff;
  background: linear-gradient(180deg, #178bd0, #11629b);
  box-shadow: inset 0 0 0 1px rgba(79, 198, 255, 0.32);
}

.view-allstats .source-switch,
.view-trend .source-switch,
.view-lab .source-switch {
  border-color: #2b3748;
  border-radius: 5px;
  background: #101824;
}

.view-allstats .source-switch button,
.view-trend .source-switch button,
.view-lab .source-switch button {
  color: #9aa6b7;
  background: transparent;
}

.radar-results > .metric-grid,
.lab-layout .metric-grid,
.allstats-layout .metric-grid,
.trend-kpi-strip {
  gap: 10px;
}

.stat-tile,
.trend-kpi-card,
.allstats-percent-box {
  min-height: 74px;
  border: 1px solid #293545;
  border-radius: 6px;
  background: #101721;
  box-shadow: none;
}

.stat-label,
.trend-kpi-copy > span,
.allstats-percent-box span {
  color: #7f8c9d;
  font-size: 9px;
}

.stat-value,
.trend-kpi-copy strong,
.allstats-percent-box .percent-value {
  color: #e8eef5;
}

.panel,
.table-wrap,
.radar-table,
.trend-radar-card,
.trend-summary-card,
.trend-donut-card,
.trend-team-card,
.trend-chart-card {
  border: 1px solid #2a3545;
  border-radius: 7px;
  background: #0e151f;
  box-shadow: none;
}

.table-toolbar,
.table-title,
.trend-chart-head,
.trend-team-head {
  border-bottom-color: #293545;
  background: #111925;
}

.table-toolbar > span,
.table-title,
.trend-chart-head h3,
.trend-team-head h3 {
  color: #dce4ed;
}

table {
  background: #0d141d;
}

th {
  height: 42px;
  color: #8d99aa;
  background: #111925;
  border-bottom-color: #2a3545;
}

td {
  border-bottom-color: #222d3b;
  color: #cad3df;
}

tbody tr:hover td,
.allstats-table tbody tr:hover td,
.allstats-table tbody tr:hover td:first-child {
  background-color: rgba(36, 166, 225, 0.08);
}

.trend-dashboard-head {
  min-height: 118px;
  padding: 20px;
}

.trend-donut-card-top,
.trend-overview-grid,
.trend-charts-grid {
  gap: 14px;
}

.trend-donut-team {
  border-color: #293545;
  border-radius: 6px;
  background: #101721;
}

.trend-stat-donut-ring {
  background-color: #1a2532;
}

.empty {
  border: 1px dashed #334052;
  border-radius: 6px;
  color: #8793a5;
  background: #0c121a;
}

.pricing-page {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 12px;
}

.pricing-intro {
  min-height: 132px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
}

.pricing-intro img {
  width: 74px;
  height: 74px;
}

.pricing-intro h1 {
  color: #edf2f7;
  font-size: 27px;
}

.pricing-intro p {
  color: #8d99aa;
}

.pricing-grid {
  gap: 14px;
}

.price-card {
  min-height: 350px;
  border: 1px solid #2a3545;
  border-radius: 7px;
  background: #0e151f;
  box-shadow: none;
}

.price-card.featured {
  border-color: #198bc7;
  background: linear-gradient(180deg, rgba(19, 54, 71, 0.42), #0e171e);
  box-shadow: inset 0 3px 0 #22a9e2;
}

.price-card .primary-button,
.price-card .ghost-button {
  border-radius: 5px;
}

.price-card .primary-button {
  color: #fff;
  background: linear-gradient(180deg, #178bd0, #11629b);
}

.blog-placeholder {
  min-height: calc(100vh - 108px);
  display: grid;
  place-content: center;
  margin: 0;
}

.blog-placeholder .icon {
  color: #2db5ee;
}

@media (max-width: 1100px) {
  .lab-layout,
  .allstats-layout,
  .trend-layout {
    grid-template-columns: 1fr;
  }

  .radar-filters {
    position: relative;
    top: auto;
    max-height: 480px;
  }
}

@media (max-width: 760px) {
  .view-allstats,
  .view-trend,
  .view-lab,
  .view-blog,
  .view-pricing {
    width: min(100% - 20px, 1560px);
  }

  .view-allstats .headline,
  .view-lab .headline,
  .trend-dashboard-head,
  .pricing-intro {
    padding: 15px;
  }

  .view-allstats h1,
  .view-lab h1,
  .trend-dashboard-head h1,
  .pricing-intro h1 {
    font-size: 22px;
  }

  .pricing-intro img {
    width: 58px;
    height: 58px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Simplified daily fixture controls */
.home-dashboard-sidebar {
  min-height: 0;
}

.home-fixture-controls {
  padding-top: 16px;
}

.home-fixture-controls .league-row {
  position: sticky;
  top: 84px;
}

.home-fixtures-workspace {
  min-height: 620px;
}

.home-fixtures-workspace .match-card-head {
  grid-template-columns: 79px minmax(0, 1fr);
}

.home-fixtures-workspace .league-name {
  padding-right: 14px;
}

.match-favorite,
.home-days-segment,
.home-more-fixtures {
  display: none;
}

.home-fixtures-workspace .home-team,
.home-fixtures-workspace .away-team {
  display: flex;
  align-items: center;
}

.home-fixtures-workspace .home-team {
  justify-content: flex-start;
}

.home-fixtures-workspace .away-team {
  justify-content: flex-end;
}

.home-fixtures-workspace .team-identity {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-fixtures-workspace .home-team .team-identity {
  margin-left: 0;
}

.home-fixtures-workspace .away-team .team-identity {
  justify-content: flex-end;
}

.home-fixtures-workspace .away-team .team-name,
.home-fixtures-workspace .away-team .team-crest,
.home-fixtures-workspace .away-team .ppp-badge,
.home-fixtures-workspace .home-team .team-name,
.home-fixtures-workspace .home-team .team-crest,
.home-fixtures-workspace .home-team .ppp-badge {
  order: initial;
}

.home-fixtures-workspace .team-name {
  max-width: 175px;
}

.home-fixtures-workspace .away-team .team-name {
  text-align: left;
}

.home-fixtures-workspace .home-team .ppp-badge {
  margin-right: 8px;
}

.home-fixtures-workspace .away-team .ppp-badge {
  margin-left: 8px;
}

@media (max-width: 760px) {
  .home-fixtures-workspace {
    min-height: 0;
  }

  .home-fixture-controls {
    display: block;
  }

  .home-fixture-controls > label {
    display: block;
    margin-bottom: 8px;
  }

  .home-fixture-controls .league-row {
    position: static;
  }

  .home-fixtures-workspace .match-card-head {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .home-fixtures-workspace .team-identity {
    gap: 5px;
  }

  .home-fixtures-workspace .team-name {
    max-width: 82px;
  }

  .home-fixtures-workspace .home-team .ppp-badge {
    margin-right: 5px;
  }

  .home-fixtures-workspace .away-team .ppp-badge {
    margin-left: 5px;
  }
}
/* Home competition selector and match analysis refinements */
.worldcup-register-notice {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(240, 184, 75, 0.48);
  border-radius: 7px;
  color: #f5d889;
  background: linear-gradient(90deg, rgba(128, 85, 12, 0.28), rgba(31, 28, 20, 0.78));
  text-align: left;
  cursor: pointer;
}

.worldcup-register-notice:hover {
  border-color: #f0b84b;
  background: linear-gradient(90deg, rgba(151, 101, 15, 0.36), rgba(38, 32, 20, 0.88));
}

.worldcup-register-notice .icon {
  width: 24px;
  height: 24px;
  justify-self: center;
}

.worldcup-register-notice span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.worldcup-register-notice strong {
  color: #fff0c3;
  font-size: 13px;
}

.worldcup-register-notice small {
  color: #aa9d7d;
  font-size: 11px;
}

.worldcup-register-notice b {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 13px;
  border-radius: 5px;
  color: #211707;
  background: #f0b84b;
  font-size: 11px;
}

.about-page {
  width: min(920px, 100%);
  margin: 0 auto;
}

.daily-tool-page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-bottom: 48px;
}

.daily-tool-header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line);
}

.daily-tool-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(52, 211, 153, 0.38);
  border-radius: 8px;
  color: #55e6ba;
  background: rgba(16, 185, 129, 0.1);
}

.cards-tool-header .daily-tool-icon {
  border-color: rgba(244, 185, 66, 0.4);
  color: #f4c45f;
  background: rgba(244, 185, 66, 0.1);
}

.daily-tool-icon .icon {
  width: 27px;
  height: 27px;
}

.daily-tool-header > div:nth-child(2) > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.daily-tool-header h1 {
  margin: 4px 0;
  font-size: 28px;
}

.daily-tool-header p {
  margin: 0;
  color: var(--muted);
}

.daily-simulation-badge {
  display: inline-flex;
  margin-top: 9px;
  padding: 4px 7px;
  border: 1px solid rgba(244, 196, 95, 0.38);
  border-radius: 4px;
  color: #f4c45f !important;
  background: rgba(244, 196, 95, 0.08);
  font-size: 10px !important;
  font-weight: 900;
}

.daily-tool-summary {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 20px 0 12px;
  color: var(--muted);
}

.daily-tool-summary strong {
  color: var(--emerald);
  font-size: 24px;
}

.cards-simulation-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

.cards-simulation-toolbar p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.cards-league-select {
  width: min(360px, 100%);
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.cards-league-select select {
  min-height: 44px;
  border: 1px solid #3a4b5f;
  border-radius: 12px;
  padding: 0 38px 0 13px;
  color: var(--text);
  background: #111b27;
}

.daily-rank-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.daily-rank {
  color: #06120e;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--emerald);
  font-size: 11px;
  font-weight: 900;
}

.daily-confidence,
.card-confidence {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 11px;
}

.daily-confidence strong {
  color: var(--emerald);
}

.card-confidence {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0a1119;
}

.card-confidence strong,
.card-market-result .no-signal {
  color: var(--muted);
}

.card-confidence.recommended {
  border-color: rgba(52, 211, 153, 0.3);
}

.card-confidence.recommended strong {
  color: var(--emerald);
}

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

.daily-pick-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(420px, 1.4fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e151f;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.daily-pick-match {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.daily-pick-time {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.daily-pick-league {
  margin-left: 10px;
  color: var(--muted);
  font-size: 12px;
}

.daily-pick-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.daily-pick-teams > span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.daily-pick-teams > span:last-child {
  justify-content: flex-end;
  text-align: right;
}

.daily-pick-teams strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-pick-teams > b {
  color: #7f8c9d;
  text-align: center;
}

.daily-pick-teams .team-crest {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  overflow: hidden;
  border: 1px solid #35455a;
  border-radius: 50%;
  color: #dce7f4;
  background: #f7f9fc;
  font-size: 9px;
  font-weight: 900;
}

.daily-pick-teams .team-crest img {
  width: 94%;
  height: 94%;
  object-fit: contain;
}

.daily-pick-markets {
  display: grid;
  align-content: center;
  padding: 14px 18px;
}

.daily-market {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
}

.daily-market + .daily-market {
  border-top: 1px solid var(--line);
}

.daily-market-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #06120e;
  background: var(--emerald);
  font-weight: 900;
}

.cards-tool-page .daily-market-number {
  background: #f4c45f;
}

.daily-market small {
  color: var(--muted);
  font-weight: 800;
}

.daily-market h3 {
  margin: 3px 0 10px;
  color: var(--emerald);
  font-size: 20px;
}

.cards-tool-page .daily-market h3 {
  color: #f4c45f;
}

.daily-market .analysis-breakdown {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.daily-no-pick {
  color: var(--muted);
  line-height: 1.5;
}

.daily-disclaimer {
  margin: 16px 0 0;
  color: var(--quiet);
  font-size: 12px;
}

.card-model-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e151f;
  box-shadow: var(--shadow-soft);
}

.card-model-match {
  display: grid;
  grid-template-columns: 130px minmax(360px, 1fr) minmax(190px, 0.55fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.card-model-match .daily-pick-teams {
  margin-top: 0;
}

.card-referee {
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.card-referee span,
.card-referee small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.card-referee strong {
  display: block;
  margin: 3px 0;
  color: #f4c45f;
  line-height: 1.3;
}

.card-referee.confirmed strong {
  color: var(--emerald);
}

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

.card-market-grid.single-recommendation {
  grid-template-columns: 1fr;
}

.card-market-grid.single-recommendation .card-market-panel {
  min-height: 210px;
}

.card-market-panel {
  min-width: 0;
  padding: 22px;
}

.card-market-panel + .card-market-panel {
  border-left: 1px solid var(--line);
}

.card-market-kicker,
.card-formula-heading span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.card-market-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0 12px;
  margin-top: 8px;
}

.card-market-result strong {
  color: #f4c45f;
  font-size: 21px;
}

.card-market-result b {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.card-market-result small {
  color: var(--muted);
}

.card-line-chart {
  position: relative;
  height: 8px;
  margin-top: 32px;
  border-radius: 4px;
  background: linear-gradient(90deg, #43a6e8 0 50%, #f4c45f 50% 100%);
}

.card-line-chart > i {
  position: absolute;
  top: -6px;
  width: 2px;
  height: 20px;
  background: #fff;
}

.card-line-point {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 3px solid #0e151f;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.card-line-point span {
  position: absolute;
  left: 50%;
  bottom: 15px;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  transform: translateX(-50%);
}

.card-line-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

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

.card-team-bars,
.card-context-bars {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.card-chart-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

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

.card-chart-track {
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: #1c2734;
}

.card-chart-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #f4c45f;
}

.card-chart-row.away .card-chart-track i {
  background: #43a6e8;
}

.card-chart-row.referee .card-chart-track i {
  background: var(--emerald);
}

.card-chart-row.h2h .card-chart-track i {
  background: #a78bfa;
}

.card-formula-panel {
  display: grid;
  grid-template-columns: minmax(210px, 0.45fr) minmax(0, 1fr);
  gap: 24px;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
  background: #0b121b;
}

.card-formula-heading strong,
.card-formula-heading small {
  display: block;
}

.card-formula-heading strong {
  margin: 5px 0 8px;
  font-size: 18px;
}

.card-formula-heading small {
  color: var(--muted);
  line-height: 1.45;
}

.card-context-bars {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.card-model-empty {
  padding: 28px 22px;
}

@media (max-width: 760px) {
  .daily-tool-header {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .daily-tool-icon {
    width: 44px;
    height: 44px;
  }

  .daily-lookback {
    grid-column: 1 / -1;
  }

  .daily-pick-card {
    grid-template-columns: 1fr;
  }

  .daily-pick-match {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .daily-pick-teams .team-crest {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .daily-market .analysis-breakdown {
    grid-template-columns: 1fr;
  }

  .card-model-match {
    grid-template-columns: 1fr;
  }

  .card-referee {
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .card-market-grid {
    grid-template-columns: 1fr;
  }

  .card-market-panel + .card-market-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .card-formula-panel {
    grid-template-columns: 1fr;
  }

  .card-context-bars {
    grid-template-columns: 1fr;
  }

  .cards-simulation-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

.about-intro {
  padding: 34px 0 26px;
  border-bottom: 1px solid var(--line);
}

.about-intro img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.about-intro > span {
  display: block;
  margin-top: 16px;
  color: var(--emerald);
  font-size: 11px;
  font-weight: 900;
}

.about-intro h1 {
  max-width: 720px;
  margin: 8px 0 12px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

.about-intro p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.about-grid article {
  min-height: 150px;
  padding: 22px;
  background: var(--panel);
}

.about-grid h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.about-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.home-league-selector {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #2a3545;
  border-radius: 7px;
  background: #0e151f;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.auth-gate-overlay {
  min-height: 0;
  position: fixed;
  inset: 0;
  z-index: 120;
  padding: 20px;
  background: rgba(4, 8, 13, 0.84);
  backdrop-filter: blur(10px);
}

.auth-gate-overlay .login-card {
  position: relative;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-color: rgba(39, 175, 234, 0.42);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.72);
}

.auth-gate-close {
  width: 34px;
  height: 34px;
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  border: 1px solid #334154;
  border-radius: 5px;
  color: #dce5ee;
  background: #151d28;
  font-size: 22px;
  cursor: pointer;
}

.auth-limit-message {
  margin: 10px 0 0;
  padding: 11px 12px;
  border-left: 3px solid #27afea;
  color: #c9d4e1;
  background: rgba(39, 175, 234, 0.09);
  font-size: 13px;
  line-height: 1.5;
}

.guest-counter {
  color: #8e9bad;
  font-size: 11px;
  font-weight: 800;
}

.guest-locked-analysis {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid rgba(39, 175, 234, 0.28);
  border-radius: 8px;
  background: #0b1119;
  cursor: pointer;
}

.guest-locked-content {
  pointer-events: none;
  user-select: none;
  filter: blur(9px);
  opacity: 0.42;
  transform: scale(1.012);
}

.guest-locked-content .fixture-detail {
  margin: 0;
  border: 0;
}

.guest-locked-analysis::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(7, 12, 18, 0.08), rgba(7, 12, 18, 0.62));
  pointer-events: none;
}

.guest-analysis-lock {
  min-height: 58px;
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border: 1px solid rgba(39, 175, 234, 0.55);
  border-radius: 7px;
  color: #eef6fc;
  background: rgba(11, 21, 31, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  text-align: left;
  cursor: pointer;
}

.guest-analysis-lock .icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #39baf3;
}

.guest-analysis-lock span {
  display: grid;
  gap: 3px;
}

.guest-analysis-lock strong {
  font-size: 13px;
}

.guest-analysis-lock small {
  color: #91a0b2;
  font-size: 10px;
}

.guest-locked-analysis:hover .guest-analysis-lock {
  border-color: #39baf3;
  background: #102536;
}

.trend-worldcup-access {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 9px 12px;
  border: 1px solid rgba(240, 184, 75, 0.48);
  border-radius: 6px;
  color: #f5d47f;
  background: rgba(128, 85, 12, 0.18);
}

.trend-worldcup-access strong {
  font-size: 13px;
}

.trend-worldcup-access span {
  color: #a99972;
  font-size: 10px;
}

@media (max-width: 760px) {
  .guest-locked-analysis {
    min-height: 420px;
  }

  .guest-analysis-lock {
    top: 10px;
    left: 10px;
    right: 10px;
  }
}

.home-league-selector > div:first-child {
  min-width: 165px;
}

.home-league-selector > div:first-child > span {
  color: #77869a;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.home-league-selector h2 {
  margin-top: 4px;
  font-size: 16px;
}

.home-league-selector .league-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.home-league-selector .chip {
  min-height: 38px;
  padding: 0 14px;
  border-color: #2c394a;
  border-radius: 5px;
  color: #aab5c4;
  background: #111a27;
}

.home-league-selector .chip.active:not(.world-cup-chip) {
  border-color: #168bd0;
  color: #fff;
  background: #126b9f;
}

.home-league-selector .world-cup-chip {
  order: -1;
  border-color: rgba(240, 184, 75, 0.52);
  color: #f6d27e;
  background: rgba(128, 85, 12, 0.22);
}

.home-league-selector .world-cup-chip.active {
  border-color: #f0b84b;
  color: #171007;
  background: #f0b84b;
  box-shadow: 0 0 0 1px rgba(240, 184, 75, 0.16), 0 8px 22px rgba(240, 184, 75, 0.12);
}

.view-home .home-dashboard {
  display: block;
}

.view-home .home-fixtures-workspace {
  min-height: 0;
}

.home-workspace-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 2px 4px 14px;
  padding: 0 0 13px;
}

.home-workspace-title p {
  margin: 0;
}

.home-summary-leagues-only {
  grid-template-columns: minmax(0, 1fr);
}

.home-summary-leagues-only .home-leagues-panel {
  grid-column: 1 / -1;
}

.result-pie-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid #293647;
  border-radius: 7px;
  background: #0c131c;
}

.result-pie {
  width: 112px;
  height: 112px;
  position: relative;
  flex: 0 0 112px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.result-pie::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: #0c131c;
  box-shadow: 0 0 0 1px #263344;
}

.result-pie > span {
  position: absolute;
  inset: 25px;
  z-index: 1;
  display: grid;
  place-content: center;
  color: #7f8da1;
  font-size: 9px;
  text-align: center;
  text-transform: uppercase;
}

.result-pie > span strong {
  color: #edf3f9;
  font-size: 22px;
  line-height: 1;
}

.result-pie-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.result-pie-copy > strong {
  margin-bottom: 2px;
  color: #e8eef6;
  font-size: 13px;
}

.result-pie-copy > span {
  display: grid;
  grid-template-columns: 9px minmax(90px, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: #8997aa;
  font-size: 11px;
}

.result-pie-copy i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.result-pie-copy b {
  color: #dce4ee;
  font-size: 11px;
}

.h2h-block > .result-pie-card {
  max-width: 520px;
}

.performance-pie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.performance-pie-grid .result-pie-card {
  min-width: 0;
  margin: 0;
}

.performance-pie-grid .result-pie {
  width: 96px;
  height: 96px;
  flex-basis: 96px;
}

.performance-pie-grid .result-pie::after {
  inset: 21px;
}

.performance-pie-grid .result-pie > span {
  inset: 21px;
}

.performance-pie-grid .result-pie > span strong {
  font-size: 19px;
}

.h2h-block > .h2h-pie-grid {
  max-width: none;
  margin-bottom: 14px;
}

.racha-grid {
  align-items: start;
}

/* Movable, genuinely zoomable tables */
.table-toolbar [data-table-zoom-value] {
  margin-left: 7px;
  color: #36b8f3;
  font-size: 10px;
}

.table-wrap table {
  transform-origin: top left;
}

.table-wrap th[draggable="true"] {
  cursor: grab;
  user-select: none;
}

.table-wrap th[draggable="true"]:active {
  cursor: grabbing;
}

.table-wrap th.column-dragging {
  opacity: 0.42;
}

.table-wrap th.column-drag-target {
  box-shadow: inset 3px 0 0 #27afea;
  background: #172331;
}

.column-resize-handle {
  width: 10px;
  position: absolute;
  top: 0;
  right: -5px;
  bottom: 0;
  z-index: 8;
  cursor: col-resize;
  touch-action: none;
}

.column-resize-handle::after {
  content: "";
  width: 2px;
  position: absolute;
  top: 20%;
  right: 4px;
  bottom: 20%;
  border-radius: 2px;
  background: transparent;
}

.table-wrap th:hover > .column-resize-handle::after,
.resizing-table-column .column-resize-handle::after {
  background: #27afea;
}

.resizing-table-column,
.resizing-table-column * {
  cursor: col-resize !important;
  user-select: none !important;
}

.allstats-table-wrap {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.allstats-table-wrap .table-toolbar {
  position: static;
}

.allstats-table-wrap .allstats-table thead th {
  top: 0;
}

@media (max-width: 760px) {
  .view-trend .trend-layout {
    display: block;
    margin-top: 10px;
  }

  .view-trend .radar-filters {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 13px;
    scrollbar-gutter: auto;
  }

  .view-trend .form-grid {
    gap: 12px;
  }

  .view-trend .trend-filter-list {
    max-height: none;
    overflow: visible;
    padding: 7px;
    gap: 6px;
  }

  .view-trend .trend-filter-list .chip {
    min-height: 34px;
    padding: 0 9px;
    font-size: 11px;
  }

  .view-trend .trend-add-button,
  .view-trend .clear-trend-button {
    width: 100%;
  }

  .view-trend .system-team-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .view-trend .trend-team-pill {
    width: 100%;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 100px 22px;
    border-radius: 6px;
  }

  .view-trend .trend-team-pill strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .view-trend .trend-team-pill select {
    width: 100%;
    max-width: none;
  }

  .view-trend .radar-results {
    margin-top: 12px;
  }

  .view-trend .trend-dashboard-head {
    min-height: 0;
  }

  .view-trend .trend-radar,
  .view-trend .trend-chart {
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }

  .nav-primary {
    width: 100%;
    overflow-x: auto;
  }

  .nav-account {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    overflow: visible;
  }

  .nav-account .user-pill {
    min-width: 0;
  }

  .nav-account .guest-counter {
    text-align: center;
    white-space: normal;
  }

  .nav-account #loginPromptButton {
    white-space: nowrap;
  }

  .worldcup-register-notice {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .worldcup-register-notice b {
    grid-column: 1 / -1;
    width: 100%;
  }

  .about-intro {
    padding-top: 18px;
  }

  .about-intro h1 {
    font-size: 27px;
  }

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

  .home-league-selector {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 13px;
  }

  .home-league-selector .league-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .home-league-selector .chip {
    flex: 0 0 auto;
  }

  .home-workspace-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .result-pie-card {
    align-items: flex-start;
    gap: 13px;
    padding: 12px;
  }

  .result-pie {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
  }

  .result-pie::after {
    inset: 20px;
  }

  .result-pie > span {
    inset: 20px;
  }

  .result-pie > span strong {
    font-size: 18px;
  }

  .performance-pie-grid {
    grid-template-columns: 1fr;
  }
}

.league-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.league-badge {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 22px;
}

.cards-league-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cards-league-control > .league-badge {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.season-preparation-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.season-preparation-banner > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #5eead4;
  background: rgba(45, 212, 191, 0.14);
  flex: 0 0 42px;
}

.season-preparation-banner .icon {
  width: 23px;
  height: 23px;
}

.season-preparation-banner strong,
.season-preparation-banner p {
  display: block;
  margin: 0;
}

.season-preparation-banner p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}
