:root {
  --bg-dark: #1e1e1e;
  --bg-dark-glass: rgba(30, 30, 30, 0.94);
  --card-dark: #282828;
  --surface-dark: #232323;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --primary: #ff9900;
  --primary-hover: #ffad33;
  --primary-dim: rgba(255, 153, 0, 0.14);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6, 182, 212, 0.14);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.14);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.16);
  --yellow: #eab308;
  --yellow-dim: rgba(234, 179, 8, 0.14);
  --tg-blue: #38a8e8;
  --text-main: #fafafa;
  --text-muted: #a3a3a3;
  --text-dim: #737373;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Archivo Black', Impact, 'Arial Black', sans-serif;
  --font-condensed: 'Roboto Condensed', 'Inter', sans-serif;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select {
  font-family: inherit;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-dark-glass);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 153, 0, 0.35), transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.brand-wordmark .accent {
  color: var(--primary);
}

.brand-region {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #141414;
  font-weight: 700;
}

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

.btn-secondary {
  background: var(--card-dark);
  color: #fff;
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: rgba(255, 153, 0, 0.45);
}

.btn-outline-primary {
  background: rgba(255, 153, 0, 0.08);
  color: var(--primary);
  border-color: rgba(255, 153, 0, 0.35);
}

.btn-outline-primary:hover {
  background: rgba(255, 153, 0, 0.16);
}

.btn-telegram {
  background: var(--tg-blue);
  color: #fff;
  border-radius: 9999px;
  padding: 0.48rem 0.95rem;
  font-weight: 600;
}

.btn-telegram:hover {
  background: #2296d8;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  background: var(--card-dark);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (min-width: 960px) {
  .mobile-only {
    display: none !important;
  }
}

.desktop-only {
  display: none;
}

@media (min-width: 720px) {
  .desktop-only {
    display: inline-flex;
  }
}

/* Mobile Nav Drawer */
.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: #181818;
  padding: 1rem;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-links {
  display: grid;
  gap: 0.4rem;
}

.mobile-drawer-links a {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-drawer-links a:hover,
.mobile-drawer-links a.active {
  background: var(--card-dark);
  color: #fff;
}

/* Main */
main {
  flex: 1;
  padding-bottom: 5rem;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 1.25rem;
}

.breadcrumb a:hover {
  color: #fff;
}

/* Stadium Hero */
.stadium-hero {
  position: relative;
  margin-top: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 10%, rgba(255, 153, 0, 0.22), transparent 50%),
    radial-gradient(circle at 82% 88%, rgba(16, 185, 129, 0.16), transparent 55%),
    linear-gradient(135deg, #211d15 0%, #19211c 100%);
}

.stadium-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 120px 120px;
  pointer-events: none;
}

.stadium-hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 153, 0, 0.35);
  background: rgba(255, 153, 0, 0.1);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-display-title {
  margin: 1rem 0 0.85rem;
  max-width: 960px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.7vw, 4rem);
  line-height: 0.94;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #ff9900 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 680px;
  color: #d4d4d8;
  font-size: 0.98rem;
  margin: 0 0 1.35rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Section Headers */
.section-block {
  margin-top: 2.5rem;
}

.section-kicker {
  display: inline-block;
  border-left: 3px solid var(--primary);
  padding-left: 0.65rem;
  margin-bottom: 1rem;
}

.section-kicker.cyan {
  border-left-color: var(--cyan);
}

.section-kicker .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-kicker.cyan .label {
  color: var(--cyan);
}

.section-kicker h2 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* Status Tabs */
.tab-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
}

.tab-btn {
  position: relative;
  background: none;
  border: 0;
  padding: 0.85rem 0.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  color: #fff;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
}

/* League Filter Chips */
.filter-chips {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 0;
  overflow-x: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-dark);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.chip:hover {
  color: #fff;
  border-color: rgba(255, 153, 0, 0.35);
}

.chip.active {
  background: rgba(255, 153, 0, 0.14);
  border-color: rgba(255, 153, 0, 0.5);
  color: var(--primary);
}

/* League Group & Match Row Cards */
.league-group {
  margin-bottom: 1.5rem;
}

.league-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.league-group-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.league-badge-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.match-list {
  display: grid;
  gap: 0.65rem;
}

.match-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--card-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.match-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 153, 0, 0.32);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.match-card.is-live {
  border-left: 3px solid var(--red);
}

.match-card.is-upcoming {
  border-left: 3px solid var(--primary);
}

@media (min-width: 760px) {
  .match-card {
    grid-template-columns: 96px minmax(0, 1fr) 236px;
    gap: 1rem;
  }
}

.match-time-col {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 760px) {
  .match-time-col {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 0.15rem;
  }
}

.match-time-main {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
}

.match-time-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.match-teams-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.team-side {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.team-side.home {
  justify-content: flex-end;
  text-align: right;
}

.team-side.away {
  justify-content: flex-start;
  text-align: left;
}

@media (max-width: 520px) {
  .team-side.home {
    justify-content: flex-start;
    text-align: left;
    flex-direction: row-reverse;
  }
}

.team-name {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crest-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 2px;
}

.score-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.34);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
}

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

.state-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.48rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
}

.state-pill.live {
  border-color: rgba(239, 68, 68, 0.35);
  background: var(--red-dim);
  color: #f87171;
  animation: pulseSoft 2s infinite;
}

.state-pill.pred-ready {
  border-color: rgba(255, 153, 0, 0.35);
  background: var(--primary-dim);
  color: #ffd180;
}

.state-pill .kicker {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.state-pill .val {
  display: block;
  font-weight: 700;
  color: #fff;
}

.state-pill.live .val {
  color: #fca5a5;
}

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

/* Grid Cards (Why Tiki / Features / Leagues) */
.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

.card {
  background: var(--card-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dim);
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.card-icon.cyan {
  background: var(--cyan-dim);
  color: var(--cyan);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

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

/* Match Detail Hero */
.match-hero-card {
  margin-top: 1rem;
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 153, 0, 0.2), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(16, 185, 129, 0.16), transparent 55%),
    #1c201d;
}

.match-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.match-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.hero-crest-wrap {
  width: 78px;
  height: 78px;
  margin: 0 auto 0.75rem;
  border-radius: 9999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hero-crest-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-team-title {
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 2vw, 1.35rem);
}

.hero-score-big {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.live-minute-badge {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
}

.follow-bar {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--card-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.follow-btn.following {
  background: var(--primary-dim);
  border-color: rgba(255, 153, 0, 0.6);
  color: var(--primary);
}

/* Segmented Tabs (Overview / Stats / Lineups) */
.segmented-tabs {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #171717;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.25rem;
  gap: 0.25rem;
}

.seg-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.7rem 0.5rem;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
}

.seg-btn.active {
  background: var(--primary);
  color: #141414;
}

/* AI Prediction Card */
.ai-card {
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 153, 0, 0.24);
  background: linear-gradient(180deg, rgba(255, 153, 0, 0.06) 0%, var(--card-dark) 45%);
}

.ai-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.ai-tile {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1rem;
}

.ai-tile .lbl {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ai-tile .val {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
}

.ai-tile .val.gold {
  color: var(--primary);
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 0.45rem;
}

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary), #fbbf24);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(234, 179, 8, 0.4);
  background: var(--yellow-dim);
  color: #facc15;
}

.trust-badge.high {
  border-color: rgba(34, 197, 94, 0.4);
  background: var(--green-dim);
  color: #4ade80;
}

/* Stat Comparison Bars */
.stat-row {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.stat-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.stat-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  height: 7px;
}

.stat-bar-left {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px 0 0 4px;
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
}

.stat-bar-left > span {
  background: var(--primary);
  height: 100%;
}

.stat-bar-right {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 4px 4px 0;
  display: flex;
  justify-content: flex-start;
  overflow: hidden;
}

.stat-bar-right > span {
  background: var(--cyan);
  height: 100%;
}

/* Green Tactical Pitch */
.tactical-pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 290px;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 255, 255, 0.2);
  background:
    repeating-linear-gradient(
      90deg,
      #255c2b 0px,
      #255c2b 44px,
      #2b6832 44px,
      #2b6832 88px
    );
  overflow: hidden;
  margin-top: 1rem;
}

.pitch-midline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.28);
}

.pitch-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.28);
}

.pitch-node {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.pitch-dot {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.pitch-dot.home {
  background: #2563eb;
}

.pitch-dot.away {
  background: #dc2626;
}

.pitch-label {
  margin-top: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

/* League Standings Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--card-dark);
}

table.league-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

table.league-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

table.league-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

table.league-table tr.zone-acl td:first-child,
table.league-table tr.zone-ucl td:first-child {
  border-left: 3px solid var(--green);
}

table.league-table tr.zone-acl2 td:first-child,
table.league-table tr.zone-uel td:first-child {
  border-left: 3px solid #3b82f6;
}

table.league-table tr.zone-rel td:first-child {
  border-left: 3px solid var(--red);
}

.form-pills {
  display: inline-flex;
  gap: 3px;
}

.form-pill {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  font-size: 0.66rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-pill.W { background: var(--green); color: #052e16; }
.form-pill.D { background: #52525b; color: #fff; }
.form-pill.L { background: var(--red); color: #fff; }

/* Form Inputs & FAQ */
.input {
  width: 100%;
  padding: 0.62rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: #171717;
  color: #fff;
  font-size: 0.9rem;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--card-dark);
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.faq-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: #fff;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 1rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-body {
  display: none;
  padding: 0 1.15rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.faq-item.open .faq-body {
  display: block;
}

/* Telegram Chat Simulator */
.tg-chat-box {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(56, 168, 232, 0.35);
  background: #111827;
  overflow: hidden;
}

.tg-chat-header {
  padding: 0.85rem 1rem;
  background: #17212b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tg-chat-body {
  padding: 1rem;
  min-height: 240px;
  max-height: 360px;
  overflow-y: auto;
  display: grid;
  gap: 0.65rem;
  background: #0e1621;
}

.tg-bubble {
  max-width: 86%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-size: 0.86rem;
  white-space: pre-wrap;
}

.tg-bubble.bot {
  background: #182533;
  color: #f3f4f6;
  justify-self: start;
}

.tg-bubble.user {
  background: #2b5278;
  color: #fff;
  justify-self: end;
}

/* Sticky Bottom Telegram Prompt */
.tg-sticky-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  width: min(92vw, 440px);
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(56, 168, 232, 0.35);
  background: rgba(17, 24, 39, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.tg-sticky-banner.hidden {
  display: none;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: min(100%, 440px);
  background: var(--card-dark);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #171717;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 1.75rem 0;
}

.footer-grid h4 {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-grid a:hover {
  color: var(--primary);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--green);
  margin-right: 0.35rem;
}

.status-dot.cyan {
  background: var(--cyan);
}
