@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=Roboto+Condensed:wght@400;700&display=swap');

:root {
  /* CMW logo palette — gold, silver, charcoal */
  --cv-charcoal: #0a0c10;
  --cv-charcoal-mid: #12151a;
  --cv-charcoal-light: #1a1e26;
  --cv-slate: #22272f;
  --cv-slate-mid: #2a303a;
  --cv-border: #3a404a;
  --cv-border-gold: rgba(212, 175, 55, 0.35);
  --cv-silver: #b4b8c0;
  --cv-silver-bright: #e8eaed;
  --cv-silver-dim: #787f88;
  --cv-gold: #d4af37;
  --cv-gold-bright: #ffd700;
  --cv-gold-dark: #9a7b1a;
  --cv-gold-deep: #6b5410;
  --cv-blue-rim: #3d5a80;
  --cv-glow-warm: rgba(255, 200, 80, 0.12);
  --cv-glow-cool: rgba(61, 90, 128, 0.18);

  /* legacy token aliases */
  --cv-navy: var(--cv-charcoal);
  --cv-navy-light: var(--cv-charcoal-mid);
  --cv-navy-mid: var(--cv-slate);
  --cv-blue: var(--cv-blue-rim);
  --cv-bg: var(--cv-charcoal-mid);
  --cv-surface: var(--cv-charcoal-light);
  --cv-card: var(--cv-slate);
  --cv-card-hover: var(--cv-slate-mid);
  --cv-accent: var(--cv-gold);
  --cv-accent-hover: var(--cv-gold-bright);
  --cv-accent-dark: var(--cv-gold-dark);
  --cv-gold: var(--cv-gold-bright);
  --cv-muted: var(--cv-silver-dim);
  --cv-text: var(--cv-silver-bright);
  --cv-text-dim: var(--cv-silver);
  --cv-pitch: #141a18;
  --header-h: 64px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --radius: 8px;
  --radius-lg: 12px;
}

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

body {
  font-family: 'Roboto', system-ui, sans-serif;
  background: var(--cv-bg);
  color: var(--cv-text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  line-height: 1.5;
}

.font-display { font-family: 'Roboto Condensed', 'Roboto', sans-serif; }
.text-accent { color: var(--cv-accent); }
.text-dim { color: var(--cv-text-dim); }
.text-muted { color: var(--cv-muted); }
.hidden { display: none !important; }

a { color: var(--cv-accent); }

/* Buttons */
.cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: 'Roboto Condensed', sans-serif;
}
.cv-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cv-btn-primary {
  background: linear-gradient(180deg, var(--cv-gold-bright) 0%, var(--cv-gold) 45%, var(--cv-gold-dark) 100%);
  color: #1a1408;
  box-shadow: 0 4px 0 var(--cv-gold-deep), 0 6px 16px rgba(212, 175, 55, 0.35);
}
.cv-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--cv-gold-deep), 0 8px 20px rgba(255, 215, 0, 0.4);
}
.cv-btn-secondary {
  background: var(--cv-navy-mid);
  color: var(--cv-text);
  border: 1px solid var(--cv-border);
}
.cv-btn-outline {
  background: transparent;
  color: var(--cv-accent);
  border: 2px solid var(--cv-accent);
}
.cv-btn-social {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  text-transform: none;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0;
}
.cv-btn-social:hover { background: #f5f5f5; }
.cv-btn-icloud {
  background: linear-gradient(180deg, #4a4a4a 0%, #1c1c1e 100%);
  color: #fff;
  border: 1px solid #3a3a3c;
  text-transform: none;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
}
.cv-btn-icloud:hover { background: linear-gradient(180deg, #5a5a5c 0%, #2c2c2e 100%); }
.cv-btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.cv-btn-block { width: 100%; }

.cv-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--cv-border);
  border-radius: var(--radius);
  color: var(--cv-text);
  font-size: 0.9375rem;
}
.cv-input:focus {
  outline: none;
  border-color: var(--cv-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cv-text-dim);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cv-card-flat {
  background: var(--cv-surface);
  border: 1px solid var(--cv-border);
  border-radius: var(--radius);
  padding: 1rem;
}

/* Landing Nav */
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: var(--header-h);
  background: rgba(10, 12, 16, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cv-border-gold);
}
.brand-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  text-transform: uppercase;
  display: block;
  line-height: 1.1;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.brand-full {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--cv-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
  max-width: 11rem;
  line-height: 1.2;
}

.auth-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
  flex-shrink: 0;
}

/* Landing Hero */
.landing-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--header-h) + 2rem) 2rem 4rem;
  background: linear-gradient(160deg, var(--cv-charcoal) 0%, var(--cv-bg) 55%, #0e1014 100%);
  overflow: hidden;
}
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 25%, var(--cv-glow-warm) 0%, transparent 45%),
    radial-gradient(circle at 25% 75%, var(--cv-glow-cool) 0%, transparent 45%);
}
.landing-hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.landing-hero-text h1 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.landing-hero-text .highlight { color: var(--cv-accent); }
.auth-stats, .landing-hero .auth-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}
.auth-stat-num {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--cv-accent);
}
.auth-stat-label {
  font-size: 0.75rem;
  color: var(--cv-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-phone {
  width: 280px;
  background: var(--cv-card);
  border-radius: 24px;
  border: 3px solid var(--cv-border);
  padding: 1rem;
  box-shadow: var(--shadow), 0 0 60px rgba(212, 175, 55, 0.08);
  transform: perspective(800px) rotateY(-8deg);
}
.hero-phone-screen {
  background: var(--cv-bg);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 9/16;
}
.hero-phone-header {
  background: linear-gradient(90deg, var(--cv-gold-dark), var(--cv-gold-bright));
  padding: 0.75rem;
  text-align: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
}
.hero-phone-body { padding: 0.75rem; }
.hero-mini-stat {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  background: var(--cv-surface);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}
.hero-transfer-badge {
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: linear-gradient(90deg, var(--cv-gold-dark), var(--cv-gold-bright));
  border-radius: 6px;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1a1408;
  letter-spacing: 0.04em;
}

.feature-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-section h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 3rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-item {
  background: var(--cv-surface);
  border: 1px solid var(--cv-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-item:hover {
  transform: translateY(-4px);
  border-color: var(--cv-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(212, 175, 55, 0.08);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.feature-item h3 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.feature-item p { font-size: 0.875rem; color: var(--cv-text-dim); }

.cta-section {
  background: linear-gradient(135deg, var(--cv-charcoal-light) 0%, var(--cv-bg) 100%);
  padding: 5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--cv-border-gold);
}
.landing-footer {
  background: var(--cv-navy);
  padding: 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--cv-muted);
  border-top: 1px solid var(--cv-border);
}

/* Auth split */
.auth-split { display: flex; min-height: 100vh; }
.auth-hero {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cv-charcoal) 0%, var(--cv-bg) 45%, #101218 100%);
}
.auth-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, var(--cv-glow-warm) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, var(--cv-glow-cool) 0%, transparent 50%);
}
.auth-hero-content { position: relative; z-index: 1; max-width: 32rem; }
.auth-hero .logo-large { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.auth-hero .logo-icon {
  width: 4rem; height: 4rem;
  background: linear-gradient(135deg, var(--cv-accent) 0%, var(--cv-accent-dark) 100%);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 900; font-size: 1.5rem; color: #fff;
  box-shadow: 0 8px 32px rgba(0, 200, 83, 0.35);
}
.auth-hero h1 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.auth-hero .tagline { font-size: 1.125rem; color: var(--cv-text-dim); line-height: 1.6; }

.auth-panel {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
  background: var(--cv-navy-light);
  border-left: 1px solid var(--cv-border);
}
.auth-panel h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.auth-panel .subtitle { color: var(--cv-muted); font-size: 0.9375rem; margin-bottom: 2rem; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--cv-muted);
  font-size: 0.8125rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cv-border);
}
.social-stack { display: flex; flex-direction: column; gap: 0.625rem; }
.auth-footer-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--cv-muted);
}
.auth-footer-link a { color: var(--cv-accent); text-decoration: none; font-weight: 500; }
.error-box {
  padding: 0.75rem 1rem;
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  border-radius: var(--radius);
  color: #ff8a80;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.demo-row { display: flex; gap: 0.5rem; margin-top: 1rem; }
.demo-row .cv-btn { flex: 1; font-size: 0.75rem; padding: 0.5rem; text-transform: none; }

/* Language picker */
.lang-picker { position: relative; z-index: 50; }
.lang-picker-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  background: var(--cv-surface);
  border: 1px solid var(--cv-border);
  border-radius: var(--radius);
  color: var(--cv-text);
  font-size: 0.8125rem;
  cursor: pointer;
}
.lang-picker-btn:hover { border-color: var(--cv-accent); }
.lang-flag-img {
  width: 20px; height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
.lang-code {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.lang-chevron { font-size: 0.625rem; color: var(--cv-muted); }
.lang-picker-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  min-width: 7rem;
  margin: 0;
  padding: 0.25rem;
  list-style: none;
  background: var(--cv-surface);
  border: 1px solid var(--cv-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lang-picker-menu.hidden { display: none; }
.lang-picker-option {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.625rem;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.8125rem;
}
.lang-picker-option:hover, .lang-picker-option.active {
  background: rgba(212, 175, 55, 0.14);
  color: var(--cv-gold-bright);
}

/* Game lang switcher in CM titlebar */
.cm-lang-wrap { margin-right: 6px; }
.cm-lang-wrap .lang-picker-btn {
  background: var(--cm-bg-panel, #1a1e26);
  border-color: var(--cm-border-light, #4a5058);
  color: var(--cm-text-silver, #c0c4cc);
  padding: 2px 6px;
  font-size: 10px;
}
.cm-lang-wrap .lang-picker-menu { right: 0; min-width: 6.5rem; }

@media (max-width: 900px) {
  .landing-hero-grid { grid-template-columns: 1fr; }
  .landing-hero-visual { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .auth-split { flex-direction: column; }
  .auth-panel { max-width: none; border-left: none; border-top: 1px solid var(--cv-border); }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .landing-nav { padding: 0 1rem; }
}

/* ─── FM-style landing page ─── */
.fm-landing { background: #0c0e12; }

.fm-nav { gap: 1rem; }
.fm-nav-links {
  display: flex;
  gap: 1.25rem;
  margin-right: auto;
  margin-left: 2rem;
}
.fm-nav-link {
  color: var(--cv-text-dim);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fm-nav-link:hover { color: var(--cv-silver-bright); }

.fm-hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 2.5rem) 2rem 4rem;
  overflow: hidden;
}
.fm-hero-pitch-bg {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(34, 72, 48, 0.35) 0px,
      rgba(34, 72, 48, 0.35) 48px,
      rgba(28, 62, 40, 0.35) 48px,
      rgba(28, 62, 40, 0.35) 96px
    ),
    linear-gradient(180deg, #0a0c10 0%, #0e1418 40%, #0a100c 100%);
  opacity: 0.55;
}
.fm-hero-pitch-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(0,0,0,0) 0%, #0c0e12 70%);
}
.fm-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}
.fm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cv-silver);
  margin-bottom: 1.25rem;
}
.fm-hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.7);
}
.fm-hero-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.fm-hero-title-accent {
  display: block;
  color: var(--cv-silver-bright);
  font-weight: 400;
}
.fm-hero-desc {
  font-size: 1.05rem;
  color: var(--cv-text-dim);
  line-height: 1.65;
  max-width: 32rem;
  margin-bottom: 1.75rem;
}
.fm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.fm-hero-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
}
.fm-hero-pills li {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.65rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  color: var(--cv-silver);
}

/* Game shell preview */
.fm-shell-preview {
  background: #141820;
  border: 1px solid #2a3038;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.03) inset;
  overflow: hidden;
  font-size: 11px;
}
.fm-shell-titlebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(180deg, #1e222a 0%, #161a20 100%);
  border-bottom: 1px solid #2a3038;
  color: var(--cv-silver);
}
.fm-shell-dots { display: flex; gap: 4px; }
.fm-shell-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a4048;
}
.fm-shell-title {
  flex: 1;
  font-weight: 600;
  color: var(--cv-silver-bright);
  font-size: 0.75rem;
}
.fm-shell-week {
  font-size: 0.6875rem;
  color: var(--cv-muted);
  text-transform: uppercase;
}
.fm-shell-body {
  display: grid;
  grid-template-columns: 118px 1fr;
  min-height: 320px;
}
.fm-shell-sidebar {
  background: #10141a;
  border-right: 1px solid #222830;
  padding: 0.5rem 0;
}
.fm-shell-nav {
  padding: 0.45rem 0.75rem;
  color: var(--cv-muted);
  font-size: 0.6875rem;
  border-left: 3px solid transparent;
}
.fm-shell-nav.active {
  color: var(--cv-silver-bright);
  background: rgba(255,255,255,0.04);
  border-left-color: var(--cv-gold);
}
.fm-shell-main {
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #12161c;
}
.fm-shell-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.fm-panel {
  background: #181c24;
  border: 1px solid #2a3038;
  border-radius: 4px;
  overflow: hidden;
}
.fm-panel-head {
  padding: 0.35rem 0.5rem;
  background: #1e222a;
  border-bottom: 1px solid #2a3038;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cv-silver);
}
.fm-mini-pitch {
  position: relative;
  margin: 0.5rem;
  aspect-ratio: 0.68;
  background: linear-gradient(180deg, #2d5a27 0%, #3a6b32 50%, #2d5a27 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
}
.fm-mini-pitch-line {
  position: absolute;
  inset: 10% 8%;
  border: 1px solid rgba(255,255,255,0.2);
}
.fm-mini-pitch-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28%;
  aspect-ratio: 1;
  margin: -14% 0 0 -14%;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
}
.fm-pitch-player {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: #e8eaed;
  border: 2px solid #1a1e26;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.fm-formation-tag {
  text-align: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--cv-gold);
  padding-bottom: 0.35rem;
}
.fm-match-card {
  padding: 0.5rem;
}
.fm-match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--cv-silver-bright);
  font-size: 0.6875rem;
}
.fm-match-vs { color: var(--cv-muted); font-weight: 400; }
.fm-match-meta {
  text-align: center;
  font-size: 0.5625rem;
  color: var(--cv-muted);
  margin-top: 0.25rem;
}
.fm-inbox-item {
  margin: 0 0.5rem 0.5rem;
  padding: 0.35rem 0.45rem;
  background: rgba(255,255,255,0.03);
  border-left: 2px solid var(--cv-gold);
  font-size: 0.5625rem;
  color: var(--cv-text-dim);
}
.fm-inbox-type {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cv-gold);
  margin-bottom: 2px;
}
.fm-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.625rem;
}
.fm-mini-table th,
.fm-mini-table td {
  padding: 0.3rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid #222830;
}
.fm-mini-table th {
  color: var(--cv-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.5625rem;
}
.fm-row-you {
  background: rgba(212, 175, 55, 0.08);
  color: var(--cv-gold);
}

/* Sections */
.fm-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.fm-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cv-gold);
  margin-bottom: 0.5rem;
}
.fm-section-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.fm-section-desc {
  color: var(--cv-text-dim);
  line-height: 1.6;
  max-width: 36rem;
  margin-bottom: 2rem;
}
.fm-section-desc-center { margin-left: auto; margin-right: auto; text-align: center; }

.fm-modules {
  padding: 4.5rem 0;
  background: #0e1014;
  border-top: 1px solid #222830;
}
.fm-module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #2a3038;
  border: 1px solid #2a3038;
  border-radius: 6px;
  overflow: hidden;
}
.fm-module-card {
  background: #141820;
  padding: 1.5rem;
  transition: background 0.15s;
}
.fm-module-card:hover { background: #181e28; }
.fm-module-icon {
  width: 36px;
  height: 36px;
  color: var(--cv-silver);
  margin-bottom: 1rem;
}
.fm-module-icon svg { width: 100%; height: 100%; }
.fm-module-card h3 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--cv-silver-bright);
}
.fm-module-card p {
  font-size: 0.8125rem;
  color: var(--cv-text-dim);
  line-height: 1.5;
}

.fm-leagues {
  padding: 4.5rem 0;
  background: #0c0e12;
  border-top: 1px solid #1e2228;
}
.fm-leagues-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}
.fm-league-pyramid {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.fm-league-pyramid li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: #141820;
  border: 1px solid #222830;
  border-radius: 4px;
  font-size: 0.875rem;
}
.fm-league-pyramid li.fm-tier-start {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.06);
}
.fm-tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #1e222a;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cv-gold);
  flex-shrink: 0;
}
.fm-league-pyramid em {
  margin-left: auto;
  font-size: 0.6875rem;
  font-style: normal;
  text-transform: uppercase;
  color: var(--cv-gold);
  font-weight: 600;
}
.fm-stats-panel {
  background: #141820;
  border: 1px solid #2a3038;
  border-radius: 6px;
  overflow: hidden;
}
.fm-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #222830;
  font-size: 0.8125rem;
  color: var(--cv-text-dim);
}
.fm-stat-row:last-child { border-bottom: none; }
.fm-stat-row strong {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.125rem;
  color: var(--cv-silver-bright);
}

.fm-schedule {
  padding: 4.5rem 0;
  background: #0e1014;
  border-top: 1px solid #222830;
  text-align: center;
}
.fm-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #2a3038;
  border: 1px solid #2a3038;
  border-radius: 6px;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}
.fm-timeline-item {
  background: #141820;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.fm-timeline-item time {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cv-silver-bright);
}
.fm-timeline-item span {
  font-size: 0.75rem;
  color: var(--cv-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fm-timeline-highlight {
  background: rgba(45, 90, 39, 0.25);
  border-top: 2px solid #4caf50;
}
.fm-timeline-highlight time { color: #81c784; }

.fm-cta {
  padding: 4rem 0;
  background: linear-gradient(180deg, #12161c 0%, #0c0e12 100%);
  border-top: 1px solid #222830;
}
.fm-cta-inner {
  text-align: center;
}
.fm-cta-inner h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.fm-cta-inner p {
  color: var(--cv-text-dim);
  margin-bottom: 1.5rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.fm-landing .cv-btn-primary {
  background: linear-gradient(180deg, #c9a227 0%, #9a7b1a 100%);
  box-shadow: 0 3px 0 #5a4810, 0 4px 12px rgba(0,0,0,0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fm-landing .cv-btn-outline {
  border-color: rgba(255,255,255,0.25);
  color: var(--cv-silver-bright);
}
.fm-landing .cv-btn-outline:hover {
  border-color: var(--cv-silver-bright);
  background: rgba(255,255,255,0.04);
}

@media (max-width: 1024px) {
  .fm-hero-inner { grid-template-columns: 1fr; }
  .fm-shell-preview { max-width: 520px; margin: 0 auto; }
  .fm-nav-links { display: none; }
  .fm-leagues-grid { grid-template-columns: 1fr; }
  .fm-module-grid { grid-template-columns: 1fr 1fr; }
  .fm-timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .fm-module-grid { grid-template-columns: 1fr; }
  .fm-shell-body { grid-template-columns: 90px 1fr; }
  .fm-shell-panels { grid-template-columns: 1fr; }
  .fm-timeline { grid-template-columns: 1fr; }
  .fm-hero { padding-left: 1rem; padding-right: 1rem; }
}
