* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: #001e3c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2dd4bf, #06b6d4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #0f172a;
  font-size: 14px;
}
img.logo-icon {
  width: auto;
  height: 52px;
  max-width: 280px;
  background: transparent;
  border-radius: 0;
  display: block;
  object-fit: contain;
}

.logo-text {
  font-weight: 900;
  font-size: 20px;
  color: white;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: #2dd4bf;
}

nav {
  display: none;
  gap: 32px;
}

nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.3s;
}

nav a:hover {
  color: #2dd4bf;
}

.header-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 14px;
  transition: all 0.3s;
}

.btn .bi {
  margin-right: 8px;
}

.btn-ghost {
  background: transparent;
  color: white;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #2dd4bf, #06b6d4);
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 212, 191, 0.4);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(0, 30, 60, 0.85) 0%, rgba(0, 43, 79, 0.85) 100%), url("img/fifa-26-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 20px;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 40px;
}

/* Countdown */
.countdown {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.countdown-item {
  text-align: center;
}

.countdown-value {
  font-size: 48px;
  font-weight: 900;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}

.countdown-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 900;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Sections */
section {
  padding: 32px 0;
}

section.bg-light {
  padding: 24px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 20px;
}

/* Sponsors */
.sponsor-block {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 20px;
}

.sponsor-title {
  font-size: 14px;
  font-weight: 900;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 14px;
}

.sponsor-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sponsor-logos::-webkit-scrollbar {
  display: none;
}

.sponsor-logo {
  flex: 0 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  transition: transform 0.2s ease;
}

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

.sponsor-logo img {
  max-width: 100%;
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.section-header h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: #64748b;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 12px;
}

.group-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 40px;
}

.card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
}

.card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: #001e3c;
  color: #2dd4bf;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}

.site-logo-wrap {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.site-logo {
  max-height: 60px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.site-btn {
  width: 100%;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 16px;
}

.card h3 .bi {
  margin-right: 8px;
}

.card ul {
  list-style: none;
}

.card li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: #475569;
  font-weight: 600;
}

.card li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #2dd4bf;
  border-radius: 50%;
  flex-shrink: 0;
}

.flag-icon {
  width: 24px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Group Tables */
.group-table {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.group-table.match-schedule {
  margin-bottom: 16px;
}

.group-header {
  background: #001e3c;
  padding: 20px 24px;
}

.group-header h3 {
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  min-width: 900px;
}

.match-schedule .table-scroll table {
  min-width: 760px;
}

.btn-table {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 900;
  border-radius: 10px;
  line-height: 1;
}

.match-schedule .location-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.match-schedule .location-text {
  white-space: nowrap;
}

.match-schedule .betting-link {
  flex-shrink: 0;
  white-space: nowrap;
}

.match-schedule .betting-link.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* Knockout Bracket */
.group-table.bracket {
  margin-bottom: 16px;
}

.bracket-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bracket-grid {
  display: flex;
  gap: 16px;
  padding: 16px;
  min-width: 1320px;
}

.bracket-round {
  flex: 0 0 260px;
}

.bracket-round-title {
  font-size: 11px;
  font-weight: 900;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

.bracket-round-matches {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bracket-match {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
}

.bracket-meta {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 10px;
}

.bracket-team {
  font-weight: 900;
  color: #0f172a;
  padding: 6px 0;
}

.bracket-team + .bracket-team {
  border-top: 1px dashed #e2e8f0;
}

.bracket-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.bracket-venue {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.group-table.bracket .betting-link {
  flex-shrink: 0;
  white-space: nowrap;
}

.bracket-empty {
  background: #ffffff;
  border: 1px dashed #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 900;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e2e8f0;
}

th.center {
  text-align: center;
}

td {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 600;
  color: #475569;
}

td.center {
  text-align: center;
}

td.team {
  font-weight: 700;
  color: #0f172a;
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-flag {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.team-input {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  background: white;
  transition: all 0.3s ease;
}

.team-input:focus {
  outline: none;
  border-color: #2dd4bf;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

.stat-input {
  width: 50px;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  background: white;
  transition: all 0.2s ease;
}

.stat-input:focus {
  outline: none;
  border-color: #2dd4bf;
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.1);
}
/* Chrome, Safari, Edge, Opera */
.stat-input::-webkit-outer-spin-button,
.stat-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.stat-input[type="number"] {
  -moz-appearance: textfield;
}

tbody tr:hover {
  background: #f8fafc;
}

.table-footer {
  background: #f8fafc;
  padding: 12px 24px;
  border-top: 1px solid #e2e8f0;
  font-size: 11px;
  color: #64748b;
}

/* Betting Section */
.betting-section {
  background: linear-gradient(135deg, #001e3c 0%, #002b4f 100%);
  position: relative;
  overflow: hidden;
}

.betting-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.betting-section .section-header h2 {
  color: white;
}

.betting-section .section-header p {
  color: #cbd5e1;
}

.betting-section .card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.1);
}

.betting-section .card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.betting-section .card-icon {
  background: #2dd4bf;
  color: #0f172a;
}

.betting-section .card h3 {
  color: white;
}

.betting-section .card li {
  color: #cbd5e1;
}

.betting-section .card li::before {
  background: #2dd4bf;
}

/* FAQ */
.faq-item {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-question::after {
  content: "+";
  font-size: 24px;
  font-weight: 900;
  color: #2dd4bf;
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 24px 24px;
  color: #64748b;
  line-height: 1.8;
}

/* Footer */
footer {
  background: #001e3c;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

footer p {
  color: #94a3b8;
  font-size: 14px;
}

/* Responsive */
@media (min-width: 768px) {
  nav {
    display: flex;
  }

  .countdown-grid {
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 60px 0 40px;
  }
  img.logo-icon {
    height: 40px;
    max-width: 200px;
  }
  .site-logo-wrap {
    height: 48px;
  }
  .site-logo {
    max-height: 48px;
  }
  .sponsor-logos {
    flex-direction: column;
    align-items: center;
    overflow-x: visible;
  }

  .sponsor-logo {
    width: 100%;
    max-width: 340px;
    height: 74px;
  }

  .sponsor-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .bracket-scroll {
    overflow-x: hidden;
  }

  .bracket-grid {
    min-width: 0;
    flex-direction: column;
    padding: 16px;
  }

  .bracket-round {
    flex: 1 1 auto;
  }

  .bracket-venue {
    max-width: none;
  }
  .footer-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  footer .logo {
    justify-content: center;
  }

  .countdown {
    padding: 24px 16px;
  }

  .countdown-grid {
    gap: 16px;
  }

  .countdown-value {
    font-size: 36px;
  }

  section {
    padding: 28px 0;
  }

  section.bg-light {
    padding: 20px 0;
  }

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

/* Utility */
.bg-light {
  background: #f8fafc;
}

.text-center {
  text-align: center;
}

.betting-note {
  color: #94a3b8;
  margin-top: 16px;
  font-size: 14px;
}

.mt-4 {
  margin-top: 12px;
}

.disclaimer {
  margin-top: 16px;
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
  text-align: center;
}
