:root {
  --bg: #070b14;
  --bg-2: #0d1422;
  --panel: #121b2d;
  --panel-2: #172338;
  --panel-3: #1d2d49;
  --line: rgba(148, 163, 184, 0.2);
  --text: #edf3ff;
  --muted: #a9b7cf;
  --primary: #5eead4;
  --primary-2: #3b82f6;
  --accent: #f97316;
  --green: #34d399;
  --red: #f87171;
  --yellow: #fbbf24;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, #0c1220 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-space {
  padding: 96px 0;
}

.alt-bg {
  background: rgba(15, 23, 42, 0.7);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}

.section-header.center {
  text-align: center;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.9rem 1.45rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #04151d;
  box-shadow: 0 18px 30px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.75);
  border-color: var(--line);
  color: var(--text);
}

.text-link {
  color: var(--primary);
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 20, 0.75);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #04151d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.96rem;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.nav-link:hover {
  color: var(--text);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--muted);
}

.hero {
  padding: 72px 0 48px;
}

.page-hero {
  padding: 96px 0 56px;
}

.narrow {
  max-width: 760px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.two-column.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.info-panel {
  padding-right: 12px;
}

.content-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.content-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

.content-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.article-card {
  background: rgba(17, 25, 39, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.article-card a {
  color: var(--primary);
  font-weight: 700;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.chip {
  background: rgba(17, 25, 39, 0.9);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  cursor: pointer;
}

.chip.active {
  background: rgba(94, 234, 212, 0.12);
  color: var(--primary);
  border-color: rgba(94, 234, 212, 0.25);
}

.auth-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-box {
  width: min(640px, 100%);
  background: rgba(17, 25, 39, 0.94);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.auth-header h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 18px;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  background: rgba(9, 14, 23, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--text);
}

.form-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.form-row.between {
  justify-content: space-between;
}

.form-row.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-row {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 500 !important;
  color: var(--muted) !important;
}

.checkbox-row input {
  width: auto;
}

.full-width {
  width: 100%;
}

.auth-switch {
  margin-top: 18px;
  text-align: center;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 700;
}

.dashboard-shell {
  padding-top: 52px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.sidebar {
  background: rgba(17, 25, 39, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 18px;
  position: sticky;
  top: 96px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 18px;
  border-bottom: 1px solid var(--line);
}

.sidebar-header strong,
.sidebar-header span {
  display: block;
}

.sidebar-header span {
  color: var(--muted);
  font-size: 0.82rem;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #09131f;
  font-weight: 900;
}

.avatar.admin {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.sidebar-nav a {
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  color: var(--muted);
  font-weight: 600;
  transition: all 0.2s ease;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
  background: rgba(94, 234, 212, 0.09);
  color: var(--text);
  border: 1px solid rgba(94, 234, 212, 0.2);
}

.main-panel {
  display: grid;
  gap: 26px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.dashboard-topbar h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  background: rgba(17, 25, 39, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  display: grid;
  gap: 10px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-card strong {
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  letter-spacing: -0.04em;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.lower-grid {
  margin-top: 2px;
}

.panel-card-lg {
  background: rgba(17, 25, 39, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-head h2 {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.panel-head a {
  color: var(--primary);
  font-weight: 600;
}

.list-stack,
.notification-stack,
.mini-table {
  display: grid;
  gap: 14px;
}

.list-item,
.mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.list-item:last-child,
.mini-row:last-child {
  border-bottom: none;
}

.list-item strong {
  display: block;
  margin-bottom: 4px;
}

.list-item span,
.notification-item span,
.mini-row span {
  color: var(--muted);
}

.notification-item {
  border-radius: 12px;
  padding: 14px 14px;
  border: 1px solid var(--line);
}

.notification-item.success {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.2);
}

.notification-item.info {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.notification-item.warning {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.2);
}

.notification-item strong {
  display: block;
  margin-bottom: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.badge.alt {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.2);
}

@media (max-width: 980px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .stats-grid,
  .panel-grid,
  .article-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .stats-grid,
  .panel-grid,
  .article-grid,
  .form-row.two-cols {
    grid-template-columns: 1fr;
  }

  .dashboard-topbar {
    display: grid;
    align-items: start;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  max-width: 620px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0;
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-stats strong {
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.hero-stats span {
  color: var(--muted);
}

.hero-panel {
  background: linear-gradient(180deg, rgba(18, 27, 45, 0.95), rgba(10, 15, 26, 0.96));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.panel-top,
.panel-header,
.panel-mini,
.standings-list li,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.live-pill,
.season-tag,
.card-tag,
.news-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.live-pill {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.season-tag {
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
}

.panel-card {
  margin-top: 24px;
  background: rgba(13, 20, 34, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 10px;
}

.panel-header {
  margin-bottom: 12px;
}

.panel-header h2 {
  font-size: 1.1rem;
  margin: 0;
}

.panel-header span,
.panel-mini .mini-label,
.card-tag,
.news-tag {
  color: var(--muted);
}

.standings-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.standings-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.standings-list li:last-child {
  border-bottom: none;
}

.standings-list li > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(94, 234, 212, 0.12);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
}

.panel-mini {
  margin-top: 18px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.panel-mini strong {
  display: block;
}

.panel-mini a {
  color: var(--primary);
  font-weight: 700;
}

.partners {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 21, 0.8);
}

.partners-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.partners-row > span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  color: rgba(237, 243, 255, 0.7);
  font-weight: 600;
}

.feature-grid,
.competition-grid,
.news-grid,
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card,
.competition-card,
.news-card,
.standings-card {
  background: rgba(17, 25, 39, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(94, 234, 212, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 14px;
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.competition-card {
  position: relative;
}

.competition-card.featured {
  background: linear-gradient(180deg, rgba(29, 45, 73, 0.95), rgba(17, 25, 39, 0.95));
  border-color: rgba(94, 234, 212, 0.2);
}

.card-tag,
.news-tag {
  display: inline-block;
  background: rgba(148, 163, 184, 0.09);
  border: 1px solid var(--line);
  color: var(--text);
  margin-bottom: 14px;
}

.competition-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  color: var(--muted);
}

.competition-card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}

.competition-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.table-wrap,
.standings-card {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(14, 21, 33, 0.9);
}

th, td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.75);
}

tbody tr:last-child td {
  border-bottom: none;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.status.live {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
}

.status.scheduled {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
}

.status.pending {
  background: rgba(251, 191, 36, 0.12);
  color: var(--yellow);
}

.news-card a {
  color: var(--primary);
  font-weight: 700;
}

.cta-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.13), rgba(94, 234, 212, 0.08));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 44px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.9);
  padding: 52px 0 20px;
}

.footer-grid {
  align-items: start;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p,
.site-footer li,
.site-footer a,
.footer-bottom {
  color: var(--muted);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer h4 {
  margin-bottom: 14px;
}

.footer-bottom {
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .competition-grid,
  .news-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .nav-wrap {
    min-height: 72px;
  }

  .section-space {
    padding: 72px 0;
  }

  .cta-box,
  .section-header {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 600px) {
  .nav-actions {
    gap: 10px;
  }

  .nav-link {
    display: none;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .cta-actions {
    display: grid;
    width: 100%;
  }

  th, td {
    padding: 14px 12px;
    font-size: 0.87rem;
  }
}
