/* ============================================
   FIFA WORLD CUP 2026 — Official Ticketing
   Brand colors: Red, Blue, Gold, Pitch Green
   ============================================ */

:root {
  --fifa-red: #e8112d;
  --fifa-red-dark: #b30d22;
  --fifa-blue: #002d72;
  --fifa-blue-dark: #001a4d;
  --fifa-gold: #ffc72c;
  --fifa-gold-dark: #d9a800;
  --pitch-green: #2d8a3e;
  --pitch-green-dark: #1f5f2c;
  --ink: #0a0e1a;
  --ink-soft: #2a2f3d;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-dark: #0a0e1a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.04);
  --shadow-md: 0 6px 18px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.12);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1240px;
  --font-display: "Inter", "Helvetica Neue", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--ink);
  color: #cbd5e1;
  font-size: 12px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.topbar .lang { display: flex; gap: 16px; align-items: center; }
.topbar a:hover { color: var(--fifa-gold); }
.topbar .flag-row { display: flex; gap: 6px; align-items: center; }
.flag-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: 11px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(8px);
}
.site-header .container {
  display: flex;
  align-items: center;
  height: 76px;
  gap: 32px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  width: 44px; height: 56px;
  flex-shrink: 0;
  background: url("images/wc26-logo.png") center / contain no-repeat;
  /* drop-shadow for the trophy detail to lift it off light/dark backgrounds */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.12));
}
.brand-text {
  display: flex; flex-direction: column; line-height: 1;
}
.brand-text .t1 { font-weight: 900; font-size: 14px; letter-spacing: 1.4px; color: var(--fifa-blue); text-transform: uppercase; }
.brand-text .t2 { font-size: 10px; color: var(--muted); margin-top: 4px; letter-spacing: 2px; font-weight: 700; }

.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
  transition: all .15s ease;
  position: relative;
}
.main-nav a:hover { color: var(--fifa-blue); background: var(--bg-soft); }
.main-nav a.active { color: var(--fifa-blue); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 14px; right: 14px;
  height: 3px;
  background: var(--fifa-red);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background .15s;
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn .badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--fifa-red); color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: 999px;
  padding: 2px 6px; line-height: 1;
}
.cart-btn { position: relative; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700; font-size: 14px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--fifa-red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232,17,45,.35);
}
.btn-primary:hover { background: var(--fifa-red-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); }
.btn-gold { background: var(--fifa-gold); color: var(--ink); }
.btn-gold:hover { background: var(--fifa-gold-dark); }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255,199,44,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(232,17,45,.18), transparent 55%),
    linear-gradient(135deg, #001a4d 0%, #002d72 50%, #0a3a8a 100%);
  color: #fff;
  overflow: hidden;
  padding: 80px 0 120px;
}
.hero::before {
  /* Football hexagon pattern overlay */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.04) 0 1px, transparent 2px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero::after {
  /* Pitch lines decoration on right */
  content: "";
  position: absolute;
  right: -200px; top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  border: 2px solid rgba(255,255,255,.08);
  border-radius: 50%;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--fifa-red);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(232,17,45,.3);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(232,17,45,.3); }
  50%      { box-shadow: 0 0 0 10px rgba(232,17,45,0); }
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--fifa-gold), #ff9d2c);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 32px; margin-top: 48px;
  flex-wrap: wrap;
}
.hero-meta .stat { }
.hero-meta .stat .num {
  font-size: 28px; font-weight: 800; letter-spacing: -.5px;
  color: var(--fifa-gold);
}
.hero-meta .stat .lbl {
  font-size: 12px; color: rgba(255,255,255,.7);
  text-transform: uppercase; letter-spacing: 1.5px;
}

/* Countdown card — stadium-immersive treatment */
.countdown-card {
  /* layered: top stadium-light dots + dark overlay + bright pitch stripes */
  background:
    radial-gradient(circle, #ffe08a 0 2.6px, transparent 3.4px) center 12px / 26px 10px repeat-x,
    linear-gradient(180deg, rgba(7,15,38,.18) 0%, rgba(4,10,28,.62) 100%),
    repeating-linear-gradient(0deg,
      rgba(82,202,104,.92) 0 22px,
      rgba(34,124,54,.92)  22px 44px);
  background-repeat: repeat-x, no-repeat, no-repeat;
  background-size: 26px 10px, 100% 100%, 100% 100%;
  border: 1px solid rgba(255,199,44,.32);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 44px 32px 30px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 30px 60px rgba(0,0,0,.4),
    0 0 0 1px rgba(255,199,44,.08),
    inset 0 1px 0 rgba(255,255,255,.1);
}

/* Tilted Hercules trophy in the top-right, with a pulsing gold halo */
.countdown-card::before {
  content: "";
  position: absolute;
  top: -28px; right: -22px;
  width: 142px; height: 188px;
  background: url("images/wc26-logo.png") center / contain no-repeat;
  transform: rotate(-14deg);
  transform-origin: 70% 30%;
  filter:
    drop-shadow(0 14px 28px rgba(0,0,0,.45))
    drop-shadow(0 0 28px rgba(255,199,44,.45))
    drop-shadow(0 0 8px rgba(255,224,138,.7));
  animation: trophyGlow 4.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Diagonal shimmer that sweeps across the card every few seconds */
.countdown-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 0%,
    transparent 38%,
    rgba(255,255,255,.10) 48%,
    rgba(255,224,138,.16) 50%,
    rgba(255,255,255,.10) 52%,
    transparent 62%,
    transparent 100%);
  background-size: 220% 100%;
  background-repeat: no-repeat;
  background-position: -120% 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  animation: shimmerSweep 5.5s ease-in-out infinite;
}

@keyframes trophyGlow {
  0%, 100% {
    filter:
      drop-shadow(0 14px 28px rgba(0,0,0,.45))
      drop-shadow(0 0 22px rgba(255,199,44,.4))
      drop-shadow(0 0 6px rgba(255,224,138,.55));
  }
  50% {
    filter:
      drop-shadow(0 14px 28px rgba(0,0,0,.45))
      drop-shadow(0 0 50px rgba(255,199,44,.7))
      drop-shadow(0 0 14px rgba(255,224,138,.85));
  }
}
@keyframes shimmerSweep {
  0%   { background-position: -120% 0; }
  60%  { background-position:  120% 0; }
  100% { background-position:  120% 0; }
}

/* Make sure card content sits above the trophy and shimmer layers */
.countdown-card > * { position: relative; z-index: 1; }

.countdown-title {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--fifa-gold);
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  padding-left: 18px;
  display: inline-block;
}
.countdown-title::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fifa-red);
  box-shadow: 0 0 0 0 rgba(232,17,45,.6);
  animation: pulse 1.6s ease-in-out infinite;
}
.countdown-sub {
  font-size: 22px; font-weight: 800; letter-spacing: -.3px;
  margin-bottom: 26px;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  position: relative;
}
.countdown-cell {
  background: none;
  padding: 4px 0 8px;
  text-align: center;
  position: relative;
}
.countdown-cell:not(:last-child)::after {
  content: ":";
  position: absolute;
  right: -8px; top: 4px;
  font-size: 44px;
  font-weight: 900;
  color: rgba(255,199,44,.45);
  line-height: 1;
  pointer-events: none;
}
.countdown-cell .v {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.62) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  text-shadow: 0 0 18px rgba(255,255,255,.18);
}
.countdown-cell .l {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.6px;
  color: rgba(255,255,255,.7);
  margin-top: 10px;
  font-weight: 700;
}

.countdown-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,199,44,.25);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,.85);
  font-weight: 600;
}
.host-pills { display: flex; gap: 6px; }
.host-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--fifa-gold);
  color: var(--ink);
  border-radius: 999px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  box-shadow: 0 0 0 4px rgba(255,199,44,.16), 0 6px 16px rgba(255,199,44,.25);
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 36px; gap: 24px; flex-wrap: wrap;
}
.section-eyebrow {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--fifa-red);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--fifa-red);
}
.section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800; letter-spacing: -1px;
  line-height: 1.05;
  max-width: 720px;
}
.section-link {
  font-weight: 700; font-size: 14px;
  color: var(--fifa-blue);
  display: inline-flex; align-items: center; gap: 6px;
}
.section-link:hover { color: var(--fifa-red); }

/* ---------- Featured matches ---------- */
.bg-soft { background: var(--bg-soft); }

.match-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.match-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.match-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.match-card-top {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--fifa-blue), var(--fifa-blue-dark));
  color: #fff;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 600;
}
.match-card-top .stage {
  background: var(--fifa-gold); color: var(--ink);
  padding: 3px 10px; border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase; letter-spacing: 1px;
}
.match-card-body {
  padding: 24px 20px;
  flex: 1;
  display: flex; flex-direction: column; gap: 16px;
}
.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.team {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
}
.team-flag {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 28px;
  background: var(--bg-soft);
  border: 2px solid var(--line);
  font-weight: 800;
  overflow: hidden;
}
.team-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-name { font-weight: 700; font-size: 14px; }
.team-code { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.vs {
  font-weight: 800; color: var(--fifa-red);
  font-size: 18px; letter-spacing: 1px;
}
.match-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--muted);
}
.match-meta span { display: inline-flex; align-items: center; gap: 6px; }
.match-card-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-soft);
}
.match-price { font-weight: 800; font-size: 18px; color: var(--fifa-blue); }
.match-price small { font-size: 11px; color: var(--muted); font-weight: 500; display: block; }

/* ---------- Ticket categories ---------- */
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ticket-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 2px solid var(--line);
  position: relative;
  transition: all .2s ease;
  display: flex; flex-direction: column; gap: 18px;
}
.ticket-card:hover { border-color: var(--fifa-blue); transform: translateY(-4px); }
.ticket-card.featured {
  border-color: var(--fifa-gold);
  background: linear-gradient(180deg, #fff 0%, #fffbe8 100%);
}
.ticket-card.featured::before {
  content: attr(data-most);
  position: absolute;
  top: -10px; left: 24px;
  background: var(--fifa-gold); color: var(--ink);
  font-size: 11px; font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ticket-tier {
  font-size: 14px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted);
}
.ticket-name { font-size: 22px; font-weight: 800; }
.ticket-price {
  display: flex; align-items: baseline; gap: 6px;
}
.ticket-price .cur { font-size: 16px; font-weight: 700; color: var(--muted); }
.ticket-price .val { font-size: 38px; font-weight: 900; letter-spacing: -1px; }
.ticket-price .from { font-size: 12px; color: var(--muted); margin-left: 4px; }
.ticket-features {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
  flex: 1;
}
.ticket-features li {
  display: flex; align-items: start; gap: 10px;
}
.ticket-features li::before {
  content: ""; width: 16px; height: 16px; flex-shrink: 0;
  margin-top: 3px;
  background: var(--pitch-green);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / contain no-repeat;
}

/* ---------- Venues ---------- */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.venue-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  color: #fff;
  cursor: pointer;
  transition: transform .25s ease;
}
.venue-card:hover { transform: translateY(-4px); }
.venue-card .bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1e3a8a, #1e1b4b);
  overflow: hidden;
}
.venue-card .bg .photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  z-index: 0;
  transition: transform .6s ease;
}
.venue-card:hover .bg .photo { transform: scale(1.06); }
.venue-card .bg::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 30% 70%, rgba(255,199,44,.18), transparent 55%),
    linear-gradient(180deg, transparent 30%, rgba(0,0,0,.85) 100%);
}
.venue-card .country-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.venue-card .country-badge .flag-img {
  width: 18px; height: 12px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.3);
}
.venue-card .info {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 24px;
}
.venue-card .city { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; opacity: .8; margin-bottom: 6px; }
.venue-card .name { font-size: 22px; font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
.venue-card .stats {
  display: flex; gap: 14px;
  font-size: 12px; color: rgba(255,255,255,.85);
}
.venue-card .stats span { display: inline-flex; align-items: center; gap: 4px; }

/* Stadium illustration */
.stadium-svg {
  position: absolute; top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70%; opacity: .4;
}

/* ---------- Promo strip ---------- */
.promo-strip {
  background:
    linear-gradient(135deg, var(--fifa-red) 0%, var(--fifa-red-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.promo-strip::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 10px, transparent 10px 20px);
}
.promo-strip .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 40px 24px;
  position: relative;
  z-index: 2;
}
.promo-strip h3 { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.promo-strip p { opacity: .9; margin-top: 6px; }

/* ---------- News / Stories ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}
.story-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.story-card .thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--fifa-blue), var(--fifa-red));
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.story-card .thumb::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,199,44,.25), transparent 60%),
    linear-gradient(180deg, transparent 35%, rgba(0,0,0,.45) 100%);
}
.story-card .thumb .tag {
  position: absolute; top: 12px; left: 12px;
  background: #fff; color: var(--ink);
  padding: 4px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
}
.story-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.story-card h4 { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.story-card .summary {
  font-size: 13px; color: var(--muted); line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-card .meta { font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 14px; }
.story-card.large h4 { font-size: 24px; }
.story-card.large .summary { -webkit-line-clamp: 3; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h5 {
  color: #fff; font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 16px;
}
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-grid a:hover { color: var(--fifa-gold); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 12px;
  color: #94a3b8;
  flex-wrap: wrap;
}
.footer-bottom .legal { display: flex; gap: 20px; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  transition: background .15s;
}
.socials a:hover { background: var(--fifa-red); color: #fff; }

/* ---------- Sub-page hero ---------- */
.subhero {
  background:
    linear-gradient(135deg, var(--fifa-blue) 0%, var(--fifa-blue-dark) 100%);
  color: #fff;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.subhero::before {
  content: "";
  position: absolute; right: -100px; top: -100px;
  width: 400px; height: 400px;
  border: 80px solid rgba(255,199,44,.08);
  border-radius: 50%;
}
.subhero .breadcrumb {
  font-size: 13px; opacity: .8; margin-bottom: 16px;
}
.subhero .breadcrumb a:hover { color: var(--fifa-gold); }
.subhero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900; letter-spacing: -1.5px; line-height: 1;
}
.subhero p { margin-top: 14px; font-size: 16px; opacity: .85; max-width: 640px; }

/* ---------- Filter bar ---------- */
.filter-bar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin: -36px auto 40px;
  max-width: var(--container);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 12px;
  position: relative; z-index: 5;
}
.filter-field { display: flex; flex-direction: column; gap: 6px; }
.filter-field label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted);
}
.filter-field select, .filter-field input {
  border: none;
  font-size: 14px; font-weight: 600;
  background: transparent;
  padding: 4px 0;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}

/* ---------- Match list (page) ---------- */
.match-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 110px 1fr 220px 160px;
  align-items: center;
  gap: 24px;
  margin-bottom: 12px;
  transition: all .15s ease;
}
.match-row:hover { border-color: var(--fifa-blue); box-shadow: var(--shadow-md); }
.match-row .date {
  text-align: center;
  border-right: 1px dashed var(--line);
  padding-right: 24px;
}
.match-row .date .day { font-size: 32px; font-weight: 800; line-height: 1; color: var(--fifa-red); }
.match-row .date .month { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; color: var(--muted); }
.match-row .date .time { font-size: 13px; font-weight: 700; margin-top: 6px; }
.match-row .teams-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.match-row .teams-row .team-flag { width: 40px; height: 40px; font-size: 20px; }
.match-row .teams-row .team { flex-direction: row; gap: 12px; }
.match-row .stage-info { font-size: 13px; color: var(--muted); }
.match-row .stage-info strong { color: var(--ink); display: block; font-size: 14px; }
.match-row .row-cta {
  display: flex; flex-direction: column; align-items: end; gap: 6px;
}

/* Ended-match styling: match-card and match-row */
.match-card.ended,
.match-row.ended { background: #f7f8fb; }
.match-card.ended .match-card-foot,
.match-row.ended .row-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.match-row.ended .row-cta { flex-direction: row; }
.match-result {
  display: flex; flex-direction: column; gap: 2px;
  font-weight: 800; color: var(--ink);
}
.match-result .rs {
  font-size: 22px; letter-spacing: 1px;
  color: var(--fifa-blue);
}
.match-result small {
  font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted);
}
.badge-ended {
  background: #e2e8f0; color: #475569;
  font-size: 11px; font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 1px; text-transform: uppercase;
  white-space: nowrap;
}

/* TBD knockout team cell */
.team-tbd .team-flag {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  color: #fff; font-weight: 800; font-size: 18px;
}
.team-tbd .team-name { color: var(--muted); font-style: italic; }
.team-tbd .team-code {
  font-size: 11px; letter-spacing: .5px;
  color: var(--fifa-blue); font-weight: 700;
}

/* Group day separator */
.day-sep {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 24px 0 12px;
  display: flex; align-items: center; gap: 12px;
}
.day-sep::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* ---------- Tickets page ---------- */
.tickets-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 60px;
}
.ticket-info-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
}
.ticket-info-card .num {
  font-size: 40px; font-weight: 900; letter-spacing: -1px;
  color: var(--fifa-red); line-height: 1;
}
.ticket-info-card h4 { font-size: 18px; font-weight: 700; margin: 8px 0 6px; }
.ticket-info-card p { color: var(--muted); font-size: 14px; }

.tier-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.tier-table th, .tier-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.tier-table th {
  background: var(--bg-soft);
  font-weight: 800; font-size: 12px;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--muted);
}
.tier-table td { font-size: 14px; }
.tier-table tr:last-child td { border-bottom: none; }
.tier-table .price { font-weight: 800; color: var(--fifa-blue); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-grid::before {
  content: "";
  position: absolute; top: 28px; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--line) 0%, var(--line) 100%);
  background-image: repeating-linear-gradient(90deg, var(--fifa-red) 0 6px, transparent 6px 12px);
}
.process-step { position: relative; text-align: center; }
.process-step .step-num {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: #fff;
  border: 3px solid var(--fifa-red);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 900;
  color: var(--fifa-red);
  position: relative; z-index: 2;
}
.process-step h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.process-step p { font-size: 13px; color: var(--muted); }

/* ---------- Checkout ---------- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.checkout-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.checkout-section h3 {
  font-size: 18px; font-weight: 800;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.checkout-section h3 .num {
  width: 28px; height: 28px;
  background: var(--fifa-red); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.full { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-soft);
}
.form-field input, .form-field select {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.form-field input:focus, .form-field select:focus { border-color: var(--fifa-blue); }
.payment-tabs {
  display: flex; gap: 10px;
  margin-bottom: 24px;
}
.payment-tabs button {
  flex: 1;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.payment-tabs button.active { border-color: var(--fifa-blue); background: rgba(0,45,114,.04); color: var(--fifa-blue); }

.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky; top: 100px;
}
.summary-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 20px; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item .ttl { font-weight: 700; font-size: 14px; }
.cart-item .meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.cart-item .price { font-weight: 800; color: var(--fifa-blue); }
.qty-ctl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 8px;
  overflow: hidden;
}
.qty-ctl button { width: 26px; height: 26px; font-weight: 700; }
.qty-ctl button:hover { background: var(--bg-soft); }
.qty-ctl span { padding: 0 12px; font-size: 13px; font-weight: 700; }
.summary-line {
  display: flex; justify-content: space-between;
  padding: 8px 0; font-size: 14px;
}
.summary-total {
  display: flex; justify-content: space-between;
  padding: 16px 0;
  margin-top: 8px;
  border-top: 2px solid var(--ink);
  font-size: 18px; font-weight: 800;
}
.summary-total .v { color: var(--fifa-red); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 30px; right: 30px;
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 14px;
  z-index: 100;
  display: flex; align-items: center; gap: 10px;
  transform: translateX(120%);
  transition: transform .3s ease;
}
.toast.show { transform: translateX(0); }
.toast .ok-dot {
  width: 22px; height: 22px;
  background: var(--pitch-green);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 900;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .match-grid { grid-template-columns: repeat(2, 1fr); }
  .ticket-grid { grid-template-columns: repeat(2, 1fr); }
  .venue-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .tickets-hero-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-grid::before { display: none; }
  .checkout-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .match-row { grid-template-columns: 90px 1fr; }
  .match-row .stage-info, .match-row .row-cta { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .site-header .container { gap: 12px; }
  .main-nav { display: none; }
  .topbar .lang { display: none; }
  .hero { padding: 50px 0 80px; }
  .hero-meta { gap: 18px; }
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
  /* Hide colon separators when numbers wrap to 2x2 */
  .countdown-cell:not(:last-child)::after { display: none; }
  .countdown-cell .v { font-size: 44px; }
  .match-grid, .ticket-grid, .venue-grid, .story-grid, .footer-grid { grid-template-columns: 1fr; }
  .promo-strip .container { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   Language switch — sliding pill
   ============================================ */
.lang-switch {
  position: relative;
  display: inline-flex;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  user-select: none;
  isolation: isolate;
}
.lang-switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: var(--fifa-red);
  border-radius: 999px;
  z-index: -1;
  box-shadow: 0 2px 6px rgba(232,17,45,.45);
  transition: transform .42s cubic-bezier(.34,1.3,.64,1);
}
.lang-switch[data-active="zh"]::before { transform: translateX(100%); }
.lang-switch button {
  padding: 5px 14px;
  color: rgba(255,255,255,.65);
  border-radius: 999px;
  transition: color .25s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}
.lang-switch button.active { color: #fff; }
.lang-switch button:hover:not(.active) { color: rgba(255,255,255,.95); }
.lang-switch .glyph {
  font-size: 13px;
  font-weight: 800;
}

/* Light variant inside header for sub-pages where topbar isn't visible (mobile) */
.site-header .lang-switch {
  background: rgba(0,45,114,.06);
  border-color: rgba(0,45,114,.12);
}
.site-header .lang-switch button { color: var(--muted); }
.site-header .lang-switch button.active { color: #fff; }

/* CJK refinement: Chinese needs slightly tighter letter-spacing on display type */
html[data-lang="zh"] {
  font-feature-settings: "palt" 1;
}
html[data-lang="zh"] .hero h1,
html[data-lang="zh"] .section-title,
html[data-lang="zh"] .subhero h1 {
  letter-spacing: -.5px;
  line-height: 1.1;
}
html[data-lang="zh"] .brand-text .t1 { letter-spacing: 1px; }
html[data-lang="zh"] .brand-text .t2 { letter-spacing: .5px; }
html[data-lang="zh"] .section-eyebrow,
html[data-lang="zh"] .countdown-title,
html[data-lang="zh"] .ticket-tier,
html[data-lang="zh"] .hero-meta .stat .lbl,
html[data-lang="zh"] .countdown-cell .l,
html[data-lang="zh"] .filter-field label,
html[data-lang="zh"] .form-field label,
html[data-lang="zh"] .footer-grid h5,
html[data-lang="zh"] .tier-table th {
  letter-spacing: 1px;
}
html[data-lang="zh"] .day-sep { letter-spacing: 0; }

/* preserve newlines in title (vn.title uses \n) */
.subhero h1 { white-space: pre-line; }

@media (max-width: 640px) {
  .topbar .lang { display: flex; gap: 8px; }
  .topbar .lang a { display: none; }
  .topbar .lang .lang-switch { display: inline-flex; }
}

/* ============================================
   User menu (header) + Auth pages
   ============================================ */

.user-menu { position: relative; display: inline-block; }
.user-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-weight: 700; font-size: 13px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.user-pill:hover { border-color: var(--fifa-blue); }
.user-pill .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fifa-red), var(--fifa-blue));
  color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  letter-spacing: .5px;
}
.user-pill .name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}
.user-pill .chev {
  width: 12px; height: 12px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg) translateY(-2px);
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  z-index: 60;
}
.user-menu.open .user-dropdown { display: block; }
.user-dropdown a, .user-dropdown button {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  text-align: left;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--bg-soft); }
.user-dropdown .sep { height: 1px; background: var(--line); margin: 6px 0; }
.user-dropdown .signout { color: var(--fifa-red); }

/* ----- Auth shell (split layout) ----- */
.auth-shell {
  min-height: calc(100vh - 76px - 36px); /* viewport minus header + topbar */
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  background: var(--bg);
}
.auth-visual {
  position: relative;
  background:
    radial-gradient(900px 500px at 80% 20%, rgba(255,199,44,.18), transparent 60%),
    linear-gradient(135deg, #001a4d 0%, #002d72 60%, #0a3a8a 100%);
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 56px 48px;
}
.auth-visual::before {
  /* football pitch lines */
  content: "";
  position: absolute;
  inset: -10% -25% -10% 30%;
  border: 2px solid rgba(255,255,255,.1);
  border-radius: 24px;
  background:
    /* center circle */
    radial-gradient(circle at 50% 50%, transparent 80px, rgba(255,255,255,.1) 80px, rgba(255,255,255,.1) 82px, transparent 83px),
    /* center spot */
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.25) 0 4px, transparent 5px),
    /* center line */
    linear-gradient(to bottom, transparent calc(50% - 1px), rgba(255,255,255,.1) calc(50% - 1px), rgba(255,255,255,.1) calc(50% + 1px), transparent calc(50% + 1px));
  pointer-events: none;
}
.auth-visual::after {
  /* soft hex pattern dots */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,.05) 0 1px, transparent 2px);
  background-size: 26px 26px;
  pointer-events: none;
}
.auth-visual .v-content { position: relative; z-index: 2; max-width: 460px; }
.auth-visual .v-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.auth-visual h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 900; letter-spacing: -1px; line-height: 1.05;
  margin-bottom: 18px;
}
.auth-visual h2 .accent {
  background: linear-gradient(90deg, var(--fifa-gold), #ff9d2c);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.auth-visual p {
  font-size: 15px; opacity: .85; max-width: 420px;
}
.auth-visual .v-foot {
  position: relative; z-index: 2;
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,.7);
  letter-spacing: 1px; text-transform: uppercase;
  font-weight: 700;
}
.auth-visual .v-foot .stat .num {
  font-size: 22px; font-weight: 900; color: var(--fifa-gold);
  letter-spacing: -.5px;
  display: block;
  margin-bottom: 2px;
  text-transform: none;
}

.auth-form-wrap {
  padding: 56px 64px;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.auth-form {
  width: 100%; max-width: 520px;
  margin: 0 auto;
}
.auth-form h1 {
  font-size: 30px; font-weight: 900; letter-spacing: -.5px;
  margin-bottom: 6px;
}
.auth-form .sublead {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.auth-form .sublead a {
  color: var(--fifa-blue);
  font-weight: 700;
}
.auth-form .sublead a:hover { color: var(--fifa-red); }

.auth-section {
  margin-bottom: 24px;
  padding-bottom: 4px;
}
.auth-section + .auth-section { padding-top: 24px; border-top: 1px dashed var(--line); }
.auth-section-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.auth-section-head .sn {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--fifa-red); color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
}
.auth-section-head h3 {
  font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 800; color: var(--ink-soft);
}
.auth-section .hint {
  font-size: 12px; color: var(--muted); margin-top: -8px; margin-bottom: 14px;
}

.auth-form .form-row {
  margin-bottom: 14px;
}
.auth-form .form-field input,
.auth-form .form-field select {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
}
.auth-form .form-field input:focus,
.auth-form .form-field select:focus {
  border-color: var(--fifa-blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0,45,114,.08);
}
.auth-form .form-field .field-hint {
  font-size: 11px; color: var(--muted); margin-top: 4px;
}

.auth-error, .auth-success {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 18px;
  display: none;
}
.auth-error  { background: #fff0f1; color: var(--fifa-red);    border: 1px solid rgba(232,17,45,.2); }
.auth-success{ background: #ecfdf5; color: var(--pitch-green); border: 1px solid rgba(45,138,62,.2); }
.auth-error.show, .auth-success.show { display: block; }

.auth-form .submit-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 8px;
}
.auth-form .submit-row .btn { padding: 14px 32px; font-size: 14px; }
.auth-form .terms {
  font-size: 12px; color: var(--muted);
  margin-top: 14px;
  line-height: 1.5;
}

@media (max-width: 920px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual {
    padding: 32px 28px;
    min-height: 220px;
  }
  .auth-visual::before { inset: -20% -40% -40% -10%; }
  .auth-visual h2 { font-size: 26px; }
  .auth-visual .v-foot { gap: 18px; }
  .auth-form-wrap { padding: 36px 24px 56px; }
}
@media (max-width: 640px) {
  .user-pill .name { display: none; }
  .user-pill { padding: 4px; }
}

/* ============================================
   Teams page
   ============================================ */
.team-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.team-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.team-stat .num {
  font-size: 32px; font-weight: 900; letter-spacing: -1px;
  color: var(--fifa-red); line-height: 1;
}
.team-stat .lbl {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 700;
}

.group-block { margin-bottom: 28px; }
.group-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 14px;
}
.group-head .letter {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--fifa-blue); color: #fff;
  display: grid; place-items: center;
  font-size: 18px; font-weight: 900;
}
.group-head h3 {
  font-size: 14px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-soft);
}
.group-head .group-count {
  margin-left: auto;
  font-size: 12px; color: var(--muted);
  letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 700;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; align-items: center; gap: 14px;
  transition: all .18s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.team-card:hover {
  border-color: var(--fifa-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.team-card .flag-circ {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-soft);
  border: 2px solid var(--line);
  position: relative;
}
.team-card .flag-circ img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.team-card .flag-fb {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  color: var(--muted);
  z-index: 0;
}
.team-card .info { flex: 1; min-width: 0; }
.team-card .nm {
  font-weight: 700; font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.team-card .meta {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1.2px;
  margin-top: 4px;
  font-weight: 600;
}
.team-card .badge-row {
  display: flex; gap: 4px;
  margin-top: 6px;
}
.team-card .tbadge {
  font-size: 9px; font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.team-card .tbadge.host    { background: rgba(0,45,114,.1);   color: var(--fifa-blue); }
.team-card .tbadge.debut   { background: rgba(45,138,62,.12); color: var(--pitch-green); }
.team-card .tbadge.holder  { background: rgba(255,199,44,.18); color: var(--fifa-gold-dark); }

@media (max-width: 1024px) {
  .team-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Hospitality page
   ============================================ */
.hosp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hosp-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  /* No overflow:hidden here — the .featured::before badge sits at top:-10px
     and would otherwise get clipped. The .head element below provides its
     own rounded top corners so the coloured banner still reads as expected. */
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hosp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hosp-card.featured { border-color: var(--fifa-gold); }
.hosp-card.featured::before {
  content: attr(data-most);
  position: absolute;
  top: -10px; left: 24px;
  background: var(--fifa-gold); color: var(--ink);
  font-size: 11px; font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}
.hosp-card .head {
  padding: 28px 28px 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
  border-radius: 18px 18px 0 0;   /* match outer radius minus 2px border */
}
.hosp-card .head::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 60%);
  pointer-events: none;
}
.hosp-card .head h3 {
  font-size: 24px; font-weight: 900; letter-spacing: -.5px;
}
.hosp-card .head p {
  font-size: 13px; opacity: .85;
  margin-top: 6px;
}
.hosp-card .body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.hosp-card .price-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--line);
}
.hosp-card .price-list .col { text-align: center; }
.hosp-card .price-list .lbl {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.hosp-card .price-list .val {
  font-size: 17px; font-weight: 800;
  color: var(--ink);
  letter-spacing: -.5px;
}
.hosp-card ul.perks {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
  flex: 1;
  margin-bottom: 22px;
}
.hosp-card ul.perks li {
  display: flex; align-items: start; gap: 10px;
}
.hosp-card ul.perks li::before {
  content: ""; width: 16px; height: 16px; flex-shrink: 0;
  margin-top: 3px;
  background: var(--pitch-green);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / contain no-repeat;
}

@media (max-width: 1024px) {
  .hosp-grid { grid-template-columns: 1fr; }
}

/* ============================================
   FIFA-official polish (auth pages + chrome)
   ============================================ */

/* Topbar — adds official-partner stamp + FIFA mark indicator */
.topbar .container { position: relative; }
.topbar .container::before {
  /* FIFA wordmark, recoloured to topbar grey via mask. Sits to the
     left of the centred tagline. The two left/calc values are tuned
     so [icon][gap][text] reads as a single visually-centred group. */
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% - 166px);
  transform: translateY(-50%);
  width: 40px;
  height: 12px;
  background: #cbd5e1;
  -webkit-mask: url("images/fifa-wordmark.svg") center / contain no-repeat;
          mask: url("images/fifa-wordmark.svg") center / contain no-repeat;
  pointer-events: none;
}
.topbar .container::after {
  content: "OFFICIAL FIFA TICKETING PARTNER";
  position: absolute;
  top: 50%;
  left: calc(50% - 114px);
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #cbd5e1;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 1100px) {
  .topbar .container::before,
  .topbar .container::after { display: none; }
}

/* Header — sharper FIFA-style accent bar under sticky header */
.site-header {
  border-bottom: 0;
  box-shadow: 0 1px 0 var(--line), 0 3px 0 var(--fifa-blue), 0 4px 0 var(--fifa-red), 0 5px 0 var(--fifa-gold);
}

/* ---------- Auth left panel (FIFA-corporate redesign) ----------
   Layout: 4-row grid — header bar, centred hero, bullet list, copyright. */
.auth-visual {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 28px;
  padding: 36px 52px 28px;
  background:
    radial-gradient(700px 380px at 85% 0%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(165deg, #0e2a6b 0%, #08205a 55%, #04123a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.auth-visual::before { display: none; }
.auth-visual::after {
  /* low-contrast FIFA wordmark watermark in the lower-right */
  content: "FIFA";
  position: absolute;
  right: -16px; bottom: -42px;
  font-size: clamp(180px, 22vw, 260px);
  font-weight: 900;
  letter-spacing: -8px;
  color: rgba(255,255,255,.035);
  pointer-events: none;
  line-height: 1;
  z-index: 1;
}
.auth-visual > * { position: relative; z-index: 2; }

/* Row 1 — wordmark + divider + tagline */
.auth-visual .v-header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.auth-visual .v-wordmark {
  display: block;
  width: 86px;
  height: 28px;
  background: #fff;
  -webkit-mask: url("images/fifa-wordmark.svg") left center / contain no-repeat;
          mask: url("images/fifa-wordmark.svg") left center / contain no-repeat;
}
.auth-visual .v-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,.22);
}
.auth-visual .v-tagline {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}

/* Row 2 — centred hero block */
.auth-visual .v-hero {
  align-self: center;
  max-width: 460px;
}
.auth-visual .v-hero h2 {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.04;
  display: block;
}
.auth-visual .v-hero h2 .line { display: block; }
.auth-visual .v-hero h2 .accent {
  display: inline-block;
  border-bottom: 4px solid var(--fifa-gold);
  padding-bottom: 4px;
  margin-top: 4px;
}
.auth-visual .v-hero p {
  margin-top: 22px;
  font-size: 15px;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
  max-width: 400px;
}

/* Row 3 — checklist with FIFA-blue circle + gold tick */
.auth-visual .v-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  letter-spacing: .3px;
}
.auth-visual .v-points li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-visual .v-points li::before {
  content: "";
  flex-shrink: 0;
  width: 20px; height: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='11' fill='%23ffc72c'/><path fill='none' stroke='%23062047' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M7 12.5l3.5 3.5L17 9'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Row 4 — corporate footer */
.auth-visual .v-foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Compact layout on stacked mobile */
@media (max-width: 920px) {
  .auth-visual {
    grid-template-rows: auto auto;
    gap: 18px;
    padding: 28px 28px 22px;
  }
  .auth-visual .v-points,
  .auth-visual .v-foot { display: none; }
  .auth-visual .v-hero h2 { font-size: 28px; }
  .auth-visual::after { display: none; }
}

/* Form-side — official FIFA ID treatment */
.auth-form .official-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--fifa-red);
  margin-bottom: 14px;
}
.auth-form .official-tag::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--fifa-red);
}
.auth-form h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.8px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.auth-form .sublead { font-size: 13.5px; }

/* Step pills — give them a FIFA-blue tone with a connecting rail */
.auth-section { position: relative; }
.auth-section-head .sn {
  background: var(--fifa-blue);
  box-shadow: 0 0 0 4px rgba(0,45,114,.08);
}
.auth-section-head h3 {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--fifa-blue);
}

/* Security strip above submit */
.auth-form .secure-strip {
  display: flex; gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(0,45,114,.04), rgba(255,199,44,.06));
  border: 1px solid rgba(0,45,114,.08);
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 8px 0 18px;
}
.auth-form .secure-strip span {
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: .3px;
}
.auth-form .secure-strip span::before {
  content: "";
  width: 14px; height: 14px;
  background: var(--pitch-green);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / contain no-repeat;
  flex-shrink: 0;
}

/* Submit button — FIFA-blue to red gradient with subtle shimmer */
.auth-form .submit-row .btn-primary {
  background: linear-gradient(90deg, var(--fifa-blue) 0%, var(--fifa-red) 100%);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  padding: 16px 36px;
  box-shadow: 0 6px 20px rgba(0,45,114,.25);
}
.auth-form .submit-row .btn-primary:hover {
  background: linear-gradient(90deg, var(--fifa-blue-dark) 0%, var(--fifa-red-dark) 100%);
}

/* CN typography refinements for the new auth elements */
html[data-lang="zh"] .auth-form .official-tag,
html[data-lang="zh"] .auth-visual .v-stamp,
html[data-lang="zh"] .auth-visual .v-seals { letter-spacing: 1.2px; }

/* ============================================
   Floating music player — vinyl disc (homepage)
   ============================================ */
.music-player {
  position: fixed;
  top: 18px;
  right: 26px;
  z-index: 100;
  width: 48px; height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  outline: none;
  transition: transform .2s ease;
}
.music-player:hover { transform: scale(1.08); }
.music-player:focus-visible { outline: 2px solid var(--fifa-gold); outline-offset: 3px; }

.music-player .disc {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  position: relative;
  /* Layered radial gradients: outer black grooves, gold label, white spindle hole */
  background:
    radial-gradient(circle at 50% 50%, #fff 0 1.8px, transparent 2.4px),
    radial-gradient(circle at 50% 50%, var(--fifa-gold) 0 9px, transparent 9.6px),
    radial-gradient(circle at 50% 50%, #1a1a1a 0 12px, transparent 12.6px),
    repeating-radial-gradient(circle at 50% 50%,
      #181818 0 1.4px,
      #0b0b0b 1.4px 2.8px);
  box-shadow:
    0 6px 16px rgba(0,0,0,.45),
    0 0 0 2px rgba(255,199,44,.18),
    inset 0 0 8px rgba(0,0,0,.6);
  /* a subtle highlight to suggest a glossy surface */
}
.music-player .disc::before {
  /* glossy highlight arc */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 80% 30% at 35% 25%, rgba(255,255,255,.18), transparent 70%);
  pointer-events: none;
}
.music-player .disc::after {
  /* play / pause glyph in the centre, sits over the gold label */
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: rgba(0,0,0,.85);
  font-weight: 900;
  line-height: 1;
  padding-left: 1px;          /* optical centring of the triangle */
  pointer-events: none;
}

/* Spin only when audio is actually playing */
.music-player.playing .disc {
  animation: discSpin 4.8s linear infinite;
}
.music-player.playing .disc::after {
  content: "⏸";
  font-size: 8px;
  padding-left: 0;
}
@keyframes discSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .music-player { top: 14px; right: 14px; width: 42px; height: 42px; }
}
