/* ============================================================
   ICTTF - International Classic Table Tennis Federation
   Classic Sports Federation Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* === CSS VARIABLES === */
:root {
  --navy: #0a1628;
  --navy-mid: #112240;
  --navy-light: #1a3a6b;
  --gold: #c9992a;
  --gold-light: #e8b84b;
  --gold-pale: #f5e6c3;
  --red: #c0392b;
  --red-light: #e74c3c;
  --white: #ffffff;
  --off-white: #f8f5ef;
  --gray-light: #e8e4dc;
  --gray-mid: #b0a898;
  --gray-dark: #5a5248;
  --text-dark: #1a1510;
  --text-body: #3a342c;

  --font-display: 'Oswald', sans-serif;
  --font-serif: 'Merriweather', serif;
  --font-body: 'Source Sans 3', sans-serif;

  --shadow-sm: 0 2px 8px rgba(10,22,40,0.12);
  --shadow-md: 0 4px 20px rgba(10,22,40,0.18);
  --shadow-lg: 0 8px 40px rgba(10,22,40,0.25);
  --shadow-gold: 0 4px 20px rgba(201,153,42,0.3);

  --border-gold: 2px solid var(--gold);
  --border-navy: 2px solid var(--navy);

  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--off-white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
.lead { font-size: 1.15rem; font-weight: 300; font-family: var(--font-serif); }

.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-red { color: var(--red); }
.text-white { color: var(--white); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

/* === LAYOUT === */
/*
  Breakpoint reference:
  Desktop  : > 1280px  → padding 0 80px
  Laptop   : 1024–1280 → padding 0 56px
  Tablet   : 768–1023  → padding 0 32px
  Mobile L : 480–767   → padding 0 20px
  Mobile S : < 480     → padding 0 16px
*/
.container        { padding: 0 80px; }
.container-wide   { padding: 0 40px; }
.container-narrow { padding: 0 160px; }

.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

/* === DECORATIVE ELEMENTS === */
.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 1rem 0 2rem;
  border-radius: 2px;
}

.section-divider.center { margin-left: auto; margin-right: auto; }

.ornament {
  display: inline-block;
  width: 40px; height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 12px;
}

/* ============================================================
   TOP RIBBON
   ============================================================ */
.top-ribbon {
  background: var(--navy);
  color: var(--gray-light);
  font-size: 0.78rem;
  font-family: var(--font-body);
  padding: 6px 0;
  border-bottom: 1px solid rgba(201,153,42,0.3);
}

.top-ribbon .container { display: flex; justify-content: space-between; align-items: center; }

.ribbon-left { display: flex; gap: 1.5rem; }
.ribbon-left span { display: flex; align-items: center; gap: 5px; }
.ribbon-right { display: flex; align-items: center; gap: 1rem; }

.ribbon-right a {
  color: var(--gray-light);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.ribbon-right a:hover { color: var(--gold-light); }

.social-mini { display: flex; gap: 0.5rem; margin-left: 1rem; }
.social-mini a {
  width: 22px; height: 22px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  transition: var(--transition);
}
.social-mini a:hover { background: var(--gold); color: var(--navy); }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-emblem {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  letter-spacing: 0.05em;
  box-shadow: 0 0 0 3px rgba(201,153,42,0.25);
  flex-shrink: 0;
}

.logo-text { line-height: 1.1; }
.logo-text .abbr {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
}
.logo-text .full {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--gray-mid);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 0; }

.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
  background: rgba(201,153,42,0.08);
}

.nav-link.has-dropdown::after {
  content: '▾';
  font-size: 0.6rem;
  margin-left: 4px;
  opacity: 0.7;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--navy-mid);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}

/* Desktop: show on hover */
@media (min-width: 1024px) {
  .nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--gray-light);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: rgba(201,153,42,0.12);
  color: var(--gold-light);
  padding-left: 1.6rem;
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--gold-light);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
  pointer-events: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 2px;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201,153,42,0.4);
}

.btn-navy {
  background: var(--navy);
  color: var(--gold-light);
  border: 1px solid rgba(201,153,42,0.3);
}
.btn-navy:hover {
  background: var(--navy-light);
  color: var(--gold-light);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover {
  background: var(--red-light);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  background: var(--gold-pale);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-lg { padding: 0.85rem 2rem; font-size: 0.9rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.72rem; }
.btn-xl { padding: 1rem 2.5rem; font-size: 1rem; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(26,58,107,0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(201,153,42,0.08) 0%, transparent 50%),
    linear-gradient(135deg, var(--navy) 0%, #0d1f3c 50%, #102035 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(255,255,255,0.02) 49px, rgba(255,255,255,0.02) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(255,255,255,0.02) 49px, rgba(255,255,255,0.02) 50px);
  pointer-events: none;
}

.hero-accent {
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,153,42,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,153,42,0.15);
  border: 1px solid rgba(201,153,42,0.4);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero h1 span { color: var(--gold-light); }

.hero .lead {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat {}
.hero-stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.hero-stat .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.2rem;
}

/* Hero Image Side */
.hero-visual {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-visual::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 200px;
  background: linear-gradient(90deg, var(--navy), transparent);
  z-index: 1;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: grayscale(20%);
}

.hero-visual-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26,58,107,0.4), rgba(10,22,40,0.8));
}

.tt-icon-large {
  font-size: 12rem;
  opacity: 0.08;
  color: var(--gold);
  user-select: none;
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(201,153,42,0.5));
}

/* ============================================================
   BREAKING NEWS / TICKER
   ============================================================ */
.news-ticker {
  background: var(--gold);
  padding: 0.6rem 0;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.ticker-label {
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
}

.ticker-track {
  overflow: hidden;
  flex: 1;
}

.ticker-items {
  display: flex;
  gap: 3rem;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}

.ticker-items:hover { animation-play-state: paused; }

.ticker-items span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ticker-items span::before {
  content: '●';
  font-size: 0.5rem;
  color: var(--navy);
  opacity: 0.5;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p {
  color: var(--gray-dark);
  font-size: 1.05rem;
  font-family: var(--font-serif);
  font-weight: 300;
}

.section-header-left { text-align: left; margin: 0 0 3rem; max-width: none; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  font-size: 3rem;
}

.card-body { padding: 1.5rem; }

.card-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-text {
  font-size: 0.9rem;
  color: var(--gray-dark);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.card-meta {
  font-size: 0.78rem;
  color: var(--gray-mid);
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* News Card */
.news-card { display: flex; flex-direction: column; }
.news-card .card-img { height: 220px; }

/* Nation Card */
.nation-card {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--gray-light);
  background: var(--white);
  transition: var(--transition);
  cursor: pointer;
}

.nation-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

.nation-flag {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.nation-card h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.nation-card small {
  font-size: 0.72rem;
  color: var(--gray-mid);
}

/* Player Card */
.player-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 1.5rem;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.player-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: var(--transition);
}

.player-card:hover::before { transform: scaleX(1); }
.player-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.player-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 3px solid var(--gold-pale);
}

.player-rank {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
}

.player-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.player-nation {
  font-size: 0.78rem;
  color: var(--gray-mid);
  margin-bottom: 1rem;
}

.player-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-light);
}

.player-stats .stat { text-align: center; }
.player-stats .stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
}
.player-stats .stat .lbl {
  display: block;
  font-size: 0.65rem;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   BACKGROUND SECTIONS
   ============================================================ */
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.75); }

.bg-navy-mid { background: var(--navy-mid); color: var(--white); }
.bg-navy-mid h1,.bg-navy-mid h2,.bg-navy-mid h3 { color: var(--white); }

.bg-off-white { background: var(--off-white); }
.bg-white { background: var(--white); }

.bg-gold-stripe {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
}

.bg-pattern {
  background-color: var(--off-white);
  background-image:
    radial-gradient(var(--gray-light) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%),
    repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(201,153,42,0.02) 30px, rgba(201,153,42,0.02) 31px);
}

.page-hero-content { position: relative; z-index: 2; }

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero .lead { color: rgba(255,255,255,0.65); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: var(--gold-light); }
.breadcrumb .sep { opacity: 0.4; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table thead {
  background: var(--navy);
  color: var(--white);
}

.data-table thead th {
  padding: 0.9rem 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-align: left;
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--gray-light);
  transition: var(--transition);
}

.data-table tbody tr:hover { background: rgba(201,153,42,0.04); }

.data-table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
}

.data-table tbody tr:first-child td:first-child { color: var(--gold); font-weight: 700; }

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 50%;
}

.rank-1 { background: var(--gold); color: var(--navy); }
.rank-2 { background: #b0bec5; color: var(--navy); }
.rank-3 { background: #cd7f32; color: var(--white); }
.rank-other { background: var(--gray-light); color: var(--gray-dark); }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--navy);
  border-top: 1px solid rgba(201,153,42,0.2);
  border-bottom: 1px solid rgba(201,153,42,0.2);
}

.stats-bar-inner {
  display: flex;
  divide-x: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 2rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.stat-item:last-child { border-right: none; }

.stat-item .number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  display: block;
}

.stat-item .label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: block;
  margin-top: 0.4rem;
}

.stat-item .sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  display: block;
  margin-top: 0.15rem;
}

/* ============================================================
   FEATURES / SERVICES
   ============================================================ */
.feature-box {
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
}

.feature-box::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: var(--transition);
}

.feature-box:hover { box-shadow: var(--shadow-md); }
.feature-box:hover::before { transform: scaleY(1); }

.feature-icon {
  width: 56px; height: 56px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: 2px;
}

.feature-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--gray-dark);
  margin-bottom: 1rem;
}

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.pricing-card.featured {
  background: var(--navy);
  border-color: var(--gold);
  color: var(--white);
  transform: scale(1.02);
}

.pricing-card.featured h3 { color: var(--white); }
.pricing-card.featured .price-amount { color: var(--gold-light); }
.pricing-card.featured .price-feature { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.1); }

.pricing-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin: 1rem 0;
}

.price-amount sup {
  font-size: 1.2rem;
  vertical-align: top;
  margin-top: 0.5rem;
}

.price-period {
  font-size: 0.8rem;
  color: var(--gray-mid);
}

.price-features {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.price-feature {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-dark);
}

.price-feature::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   EVENT CARDS
   ============================================================ */
.event-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  display: flex;
  overflow: hidden;
  transition: var(--transition);
}

.event-card:hover { box-shadow: var(--shadow-md); }

.event-date-block {
  background: var(--navy);
  color: var(--white);
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  text-align: center;
  flex-shrink: 0;
}

.event-date-block .day {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.event-date-block .month {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 0.2rem;
}

.event-details {
  padding: 1.25rem 1.5rem;
  flex: 1;
}

.event-details h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.event-meta-row {
  display: flex;
  gap: 1.25rem;
  font-size: 0.78rem;
  color: var(--gray-mid);
}

.event-meta-row span { display: flex; align-items: center; gap: 4px; }

/* ============================================================
   STORE / PRODUCTS
   ============================================================ */
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
  overflow: hidden;
}

.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.product-img {
  height: 200px;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--gray-mid);
  transition: var(--transition);
  position: relative;
}

.product-card:hover .product-img { background: var(--gold-pale); }

.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
}

.product-info { padding: 1.25rem; }
.product-name { font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.25rem; }
.product-brand { font-size: 0.78rem; color: var(--gray-mid); margin-bottom: 0.75rem; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; }
.product-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}
.product-old-price {
  font-size: 0.88rem;
  color: var(--gray-mid);
  text-decoration: line-through;
  margin-left: 0.4rem;
}

/* ============================================================
   FAQ / ACCORDION
   ============================================================ */
.accordion-item {
  border: 1px solid var(--gray-light);
  border-bottom: none;
  background: var(--white);
}

.accordion-item:last-child { border-bottom: 1px solid var(--gray-light); }

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--navy);
  transition: var(--transition);
  user-select: none;
}

.accordion-header:hover { background: rgba(201,153,42,0.04); color: var(--gold); }

.accordion-icon {
  width: 24px; height: 24px;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: var(--transition);
  border-radius: 50%;
}

.accordion-item.open .accordion-icon { transform: rotate(45deg); }

.accordion-body {
  padding: 0 1.5rem;
  font-size: 0.9rem;
  color: var(--gray-dark);
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s ease;
}

.accordion-item.open .accordion-body {
  max-height: 400px;
  padding-bottom: 1.25rem;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-body);
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: 2px;
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,153,42,0.1);
}

.form-control::placeholder { color: var(--gray-mid); }

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control { cursor: pointer; }

.form-hint {
  font-size: 0.78rem;
  color: var(--gray-mid);
  margin-top: 0.35rem;
}

/* ============================================================
   GOVERNANCE / TEAM
   ============================================================ */
.leader-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}

.leader-card:hover { box-shadow: var(--shadow-md); }

.leader-photo {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  border: 4px solid var(--gold-pale);
  overflow: hidden;
}

.leader-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.leader-role {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.leader-nation {
  font-size: 0.82rem;
  color: var(--gray-mid);
}

/* ============================================================
   RATING TABLE SPECIFIC
   ============================================================ */
.rating-change {
  font-size: 0.78rem;
  font-weight: 700;
}
.rating-change.up { color: #27ae60; }
.rating-change.down { color: var(--red); }
.rating-change.same { color: var(--gray-mid); }

.flag-name { display: flex; align-items: center; gap: 0.5rem; }
.flag-name .flag { font-size: 1.2rem; }

/* ============================================================
   DONATION PAGE
   ============================================================ */
.donate-tier {
  background: var(--white);
  border: 2px solid var(--gray-light);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.donate-tier:hover,
.donate-tier.selected {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.donate-tier .amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--navy);
  margin: 0.75rem 0;
}

.donate-tier .tier-name {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
}

.footer-top { padding: 4rem 0 3rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .site-logo { margin-bottom: 1.25rem; }

.footer-about {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

.footer-social { display: flex; gap: 0.6rem; }

.footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  border-radius: 2px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--navy);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(201,153,42,0.2);
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--gold-light);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-contact-item .icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
}
.footer-links a:hover { color: var(--gold-light); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-small { font-size: 0.85rem; }
.text-muted { color: var(--gray-mid); }

.fw-bold { font-weight: 700; }
.fw-600 { font-weight: 600; }

.d-none { display: none; }
.d-flex { display: flex; }
.d-block { display: block; }

.w-100 { width: 100%; }

.hidden { display: none !important; }

/* ============================================================
   SEARCH FILTER BAR
   ============================================================ */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-bar input,
.filter-bar select {
  padding: 0.6rem 1rem;
  border: 1px solid var(--gray-light);
  font-family: var(--font-body);
  font-size: 0.88rem;
  background: var(--white);
  color: var(--text-body);
  outline: none;
  transition: var(--transition);
  border-radius: 2px;
}

.filter-bar input:focus,
.filter-bar select:focus { border-color: var(--gold); }

.filter-bar input { flex: 1; min-width: 200px; }

/* ============================================================
   TABS
   ============================================================ */
.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--gray-light);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-dark);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  margin-bottom: -2px;
}

.tab-btn:hover { color: var(--navy); }

.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================================
   WORLD CUP / CHAMPIONSHIP
   ============================================================ */
.championship-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2847 50%, var(--navy-mid) 100%);
  border: 1px solid rgba(201,153,42,0.2);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.championship-banner::before {
  content: '🏆';
  position: absolute;
  font-size: 8rem;
  opacity: 0.06;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.bracket-round { margin-bottom: 2rem; }

.bracket-round h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-light);
}

.match-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.match-players {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.match-player {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.match-player.winner { font-weight: 700; color: var(--navy); }

.match-player .score {
  font-family: var(--font-display);
  color: var(--gold);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  animation: fadeInUp 0.6s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ============================================================
   SCROLL REVEAL (class toggled by JS)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   Desktop  : > 1280px  (default styles above apply)
   Laptop   : 1024px – 1280px
   Tablet   : 768px  – 1023px
   Mobile L : 480px  – 767px
   Mobile S : < 480px
   ============================================================ */

/* ----- LAPTOP: 1024px – 1280px ----- */
@media (max-width: 1280px) {
  .container        { padding: 0 56px; }
  .container-wide   { padding: 0 32px; }
  .container-narrow { padding: 0 96px; }
}

/* ----- TABLET: 768px – 1023px ----- */
@media (max-width: 1023px) {
  .container        { padding: 0 32px; }
  .container-wide   { padding: 0 20px; }
  .container-narrow { padding: 0 48px; }

  .section    { padding: 4rem 0; }
  .section-lg { padding: 5rem 0; }

  /* Hero */
  .hero-visual { display: none; }

  /* Grids */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  /* Stats bar */
  .stats-bar-inner { flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,0.08); }

  /* Navigation — hide desktop nav, show hamburger */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-mid);
    flex-direction: column;
    padding: 0.5rem 0 1rem;
    box-shadow: var(--shadow-lg);
    border-top: 2px solid var(--gold);
    z-index: 999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.open { display: flex; }

  .nav-item { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-item:last-child { border-bottom: none; }

  .nav-link {
    padding: 0.85rem 1.5rem;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* Caret for dropdown items */
  .nav-link.has-dropdown::after {
    content: '▾';
    font-size: 0.75rem;
    opacity: 0.7;
    transition: transform 0.25s ease;
    display: inline-block;
  }
  .nav-item.dd-open > .nav-link.has-dropdown::after {
    transform: rotate(180deg);
  }

  /* Mobile dropdown — hidden by default, shown via JS .dd-open */
  .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: rgba(0,0,0,0.22) !important;
    border: none !important;
    border-left: 3px solid var(--gold) !important;
    margin-left: 1.5rem;
    margin-right: 0;
    display: none; /* JS toggles this to block */
    padding: 0.25rem 0;
    border-top: none !important;
  }
  .nav-item.dd-open > .dropdown-menu {
    display: block !important;
  }
  .dropdown-menu a {
    padding: 0.65rem 1rem 0.65rem 1.25rem;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .dropdown-menu a:hover,
  .dropdown-menu a:active {
    background: rgba(201,153,42,0.15);
    color: var(--gold-light);
    padding-left: 1.5rem;
  }
  .dropdown-menu a:last-child { border-bottom: none; }

  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  /* Top ribbon */
  .top-ribbon .container { flex-direction: column; gap: 0.35rem; text-align: center; }
  .ribbon-left { justify-content: center; flex-wrap: wrap; }

  /* Pricing */
  .pricing-card.featured { transform: none; }
}

/* ----- MOBILE LARGE: 480px – 767px ----- */
@media (max-width: 767px) {
  .container        { padding: 0 20px; }
  .container-wide   { padding: 0 16px; }
  .container-narrow { padding: 0 20px; }

  .section    { padding: 3rem 0; }
  .section-sm { padding: 2rem 0; }
  .section-lg { padding: 4rem 0; }

  /* Typography */
  h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
  h3 { font-size: clamp(1.1rem, 4vw, 1.5rem); }

  /* Grids → single column */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom-inner { flex-direction: column; gap: 0.6rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  /* Hero */
  .hero { min-height: auto; padding: 3.5rem 0 4rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.25rem; }
  .hero-stat .num { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Stats bar */
  .stats-bar-inner { flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; }
  .stat-item .number { font-size: 2rem; }

  /* Event cards */
  .event-card { flex-direction: column; }
  .event-date-block { flex-direction: row; gap: 0.75rem; padding: 0.75rem 1rem; min-width: auto; }

  /* Filter bar */
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar input,
  .filter-bar select { width: 100%; }

  /* Tables */
  .data-table thead th,
  .data-table tbody td { padding: 0.65rem 0.6rem; font-size: 0.82rem; }

  /* Page hero */
  .page-hero { padding: 2.5rem 0; }
}

/* ----- MOBILE SMALL: < 480px ----- */
@media (max-width: 479px) {
  .container        { padding: 0 16px; }
  .container-narrow { padding: 0 16px; }

  .section { padding: 2.5rem 0; }

  /* Grids → fully single column */
  .grid-4 { grid-template-columns: 1fr; }

  /* Footer → single column */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Stats bar → stacked */
  .stats-bar-inner { flex-direction: column; }
  .stat-item { flex: none; width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:last-child { border-bottom: none; }

  /* Hero */
  .hero { padding: 3rem 0; }
  .hero .lead { font-size: 1rem; }

  /* Buttons */
  .btn-xl { padding: 0.85rem 1.5rem; font-size: 0.88rem; }

  /* Ticker */
  .ticker-label { font-size: 0.65rem; padding: 0.35rem 0.75rem; }

  /* Pricing grid → stack */
  .grid-3 .pricing-card { margin-bottom: 1rem; }

  /* Logo full name hidden on very small */
  .logo-text .full { display: none; }
}