*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --slate: #1E2A38; --slate-mid: #2D3E50; --slate-light: #64748B; --slate-muted: #94A3B8; --slate-subtle: #CBD5E1;
  --body-text: #4A5568; --muted: #6B7280; --bg-off: #F9FAFB; --bg-card: #FFFFFF; --border: #E5E7EB;
  --blt: #F0F2F5; --pink: #FDCFE8; --orange: #FDDAB0;
  --shadow-sm: 0 1px 4px rgba(30,42,56,.07); --shadow-md: 0 6px 24px rgba(30,42,56,.09); --shadow-lg: 0 12px 48px rgba(30,42,56,.13);
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--slate); background: var(--bg-off); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; }

/* Fix for Twemoji Flags */
img.emoji {
  width: 20px;
  height: 20px;
  vertical-align: middle;

  margin-bottom: 2px;
}
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ---- SHARED UTILS & TYPOGRAPHY ---- */
.display { font-family: 'Fraunces', serif; }
.label { font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-muted); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
.container--narrow { max-width: 720px; margin: 0 auto; padding: 0 48px; }
.container--mid { max-width: 860px; margin: 0 auto; padding: 0 48px; }

.btn { display: inline-flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 14px; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s ease; text-decoration: none; border: none; white-space: nowrap; }
.btn-primary { background: var(--slate); color: #fff; padding: 13px 32px; box-shadow: 0 4px 14px rgba(30,42,56,0.18); }
.btn-primary:hover { background: var(--slate-mid); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30,42,56,0.22); }
.btn-outline { background: #fff; color: var(--slate); padding: 13px 32px; border: 1.5px solid var(--slate); }
.btn-outline:hover { background: #F8FAFC; transform: translateY(-1px); }
.btn-sm { font-size: 13px; padding: 8px 20px; }
.btn-full { width: 100%; }

/* ===========================
   LANDING PAGE STYLES
=========================== */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); height: 60px; display: flex; align-items: center; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1100px; }
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px; color: var(--slate); }
.nav-logo-icon { width: 26px; height: 26px; background: var(--slate); border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.nav-logo-icon::before { content: ''; position: absolute; width: 6px; height: 10px; background: #fff; border-radius: 3px; transform: rotate(30deg); }
.nav-logo-icon::after { content: ''; position: absolute; width: 14px; height: 2px; background: rgba(255,255,255,0.4); border-radius: 2px; transform: rotate(30deg) translateY(4px); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--body-text); text-decoration: none; transition: color 0.2s; font-weight: 400; }
.nav-links a:hover { color: var(--slate); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-login { font-size: 14px; color: var(--body-text); text-decoration: none; padding: 6px 12px; transition: color 0.2s; }
.nav-login:hover { color: var(--slate); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--slate); border-radius: 2px; transition: all 0.3s ease; }
.mobile-menu { display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; background: #fff; z-index: 99; flex-direction: column; padding: 32px 24px; gap: 0; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 18px; color: var(--slate); text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--border); }
.mobile-menu-btns { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }

.hero { padding: 96px 0 64px; text-align: center; background: #fff; }
.hero-pill { display: inline-flex; align-items: center; background: #F3F4F6; color: var(--muted); font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 14px; border-radius: 20px; margin-bottom: 28px; }
.hero h1 { font-family: 'Fraunces', serif; font-size: clamp(44px, 6vw, 64px); font-weight: 700; line-height: 1.1; color: var(--slate); margin-bottom: 20px; letter-spacing: -0.02em; }
.hero h1 em { font-style: italic; color: var(--slate); }
.hero-sub { font-size: 18px; color: var(--muted); line-height: 1.65; max-width: 500px; margin: 0 auto 36px; font-weight: 400; }
.hero-btns { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

.dashboard-preview { background: var(--bg-off); padding: 56px 0 80px; }
.dashboard-preview .label { text-align: center; display: block; margin-bottom: 24px; }
.dashboard-preview-inner { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.mock-dashboard { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border); }
.mock-dash-topbar { background: var(--slate); padding: 16px 24px; display: flex; align-items: center; gap: 12px; }
.mock-dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dash-title { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; color: #fff; margin-left: auto; opacity: 0.9; }
.mock-dash-body { padding: 28px 24px; }
.mock-format-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.mock-tab { padding: 7px 16px; border-radius: 20px; font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; transition: all 0.2s; }
.mock-tab.active { background: var(--slate); color: #fff; border-color: var(--slate); }
.mock-tab:not(.active) { background: #fff; color: var(--muted); border-color: var(--border); }
.mock-players-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: start; margin-bottom: 24px; }
.mock-player-card { background: var(--bg-off); border-radius: var(--radius-md); padding: 20px; border: 1px solid var(--border); }
.mock-player-avatar { width: 48px; height: 48px; border-radius: 50%; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; color: #fff; }
.mock-player-name { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; color: var(--slate); margin-bottom: 2px; }
.mock-player-country { font-size: 12px; color: var(--muted); }
.mock-vs { display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; color: var(--slate-muted); padding-top: 14px; }
.mock-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.mock-stat-card { background: var(--bg-off); border-radius: var(--radius-sm); padding: 14px; border: 1px solid var(--border); }
.mock-stat-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.mock-stat-val { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; color: var(--slate); line-height: 1; }
.mock-stat-bar { height: 4px; border-radius: 2px; margin-top: 6px; background: var(--border); position: relative; overflow: hidden; }
.mock-stat-bar-fill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 2px; }
.mock-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mock-bar-label { font-size: 11px; color: var(--muted); width: 80px; text-align: right; flex-shrink: 0; }
.mock-bar-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; display: flex; }
.mock-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.mock-bar-val { font-size: 11px; font-weight: 600; color: var(--slate); width: 36px; }
.dashboard-caption { text-align: center; margin-top: 20px; font-size: 13px; color: var(--slate-muted); }

.feature-1 { padding: 96px 0; background: #fff; }
.feature-cols { display: grid; grid-template-columns: 420px 1fr; gap: 80px; align-items: center; }
.feature-cols.reverse { grid-template-columns: 1fr 420px; }
.feature-text { max-width: 420px; }
.feature-text .label { display: block; margin-bottom: 16px; }
.feature-text h2 { font-family: 'Fraunces', serif; font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; line-height: 1.15; color: var(--slate); margin-bottom: 20px; letter-spacing: -0.02em; }
.feature-text h2 em { font-style: italic; }
.feature-text p { font-size: 16px; color: var(--muted); line-height: 1.75; margin-bottom: 28px; }
.feature-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.feature-bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--body-text); line-height: 1.5; }
.feature-bullets li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--slate); flex-shrink: 0; margin-top: 6px; }
.feature-link { font-size: 14px; color: var(--slate); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--slate); padding-bottom: 1px; transition: opacity 0.2s; }
.feature-link:hover { opacity: 0.65; }
.feature-link::after { content: ' →'; }

.mock-feature-1 { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-md); border: 1px solid var(--border); padding: 20px; overflow: hidden; }
.mock-f1-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.mock-f1-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-f1-stat { background: var(--bg-off); border-radius: var(--radius-sm); padding: 16px; border: 1px solid var(--border); }
.mock-f1-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-muted); margin-bottom: 6px; }
.mock-f1-stat-num { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 700; color: var(--slate); line-height: 1; }
.mock-f1-stat-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.mock-ai-wrap { position: relative; height: 380px; display: flex; align-items: flex-start; justify-content: flex-end; }
.mock-ai-back { position: absolute; bottom: 0; left: 0; width: 320px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-md); border: 1px solid var(--border); padding: 18px; z-index: 1; transform: scale(0.96); }
.mock-ai-front { position: absolute; top: 0; right: 0; width: 340px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); border: 1px solid var(--border); padding: 18px; z-index: 2; }
.mock-ai-title { font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-muted); margin-bottom: 14px; }
.mock-chart-area { height: 120px; position: relative; margin-bottom: 8px; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); }
.mock-chart-y-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--slate-muted); margin-top: 4px; }
.mock-venue-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mock-venue-name { font-size: 10px; color: var(--muted); width: 72px; flex-shrink: 0; text-align: right; }
.mock-venue-bar-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.mock-venue-bar { height: 100%; border-radius: 3px; }
.mock-venue-val { font-size: 10px; font-weight: 600; color: var(--slate); width: 28px; }

.social-proof { background: var(--bg-off); padding: 80px 0; }
.stats-row { display: flex; align-items: stretch; justify-content: center; gap: 0; margin-bottom: 56px; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.stat-block { flex: 1; text-align: center; padding: 36px 24px; border-right: 1px solid var(--border); }
.stat-block:last-child { border-right: none; }
.stat-num { font-family: 'Fraunces', serif; font-size: 44px; font-weight: 700; color: var(--slate); line-height: 1; display: block; margin-bottom: 8px; }
.stat-label-text { font-size: 13px; color: var(--muted); }
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.testimonial-card { background: #fff; border-radius: var(--radius-md); padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.testimonial-quote { font-size: 15px; color: var(--body-text); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-quote::before { content: '"'; font-family: 'Fraunces', serif; font-size: 32px; color: var(--border); line-height: 0; vertical-align: -12px; margin-right: 4px; }
.testimonial-name { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; color: var(--slate); }
.testimonial-role { font-size: 12px; color: var(--slate-muted); margin-top: 2px; }

.pricing-preview { background: #fff; padding: 80px 0; text-align: center; }
.pricing-preview .label { display: block; margin-bottom: 12px; }
.pricing-preview h2 { font-family: 'Fraunces', serif; font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--slate); margin-bottom: 14px; letter-spacing: -0.02em; }
.pricing-preview .section-sub { font-size: 16px; color: var(--muted); max-width: 440px; margin: 0 auto 52px; line-height: 1.65; }
.pricing-cards { display: flex; gap: 24px; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.pricing-card { background: #fff; border-radius: var(--radius-md); padding: 36px; width: 360px; text-align: left; border: 1px solid var(--border); position: relative; transition: transform 0.2s; }
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured { border: 2px solid var(--slate); box-shadow: var(--shadow-lg); }
.pricing-badge { position: absolute; top: -1px; right: 24px; background: var(--slate); color: #fff; font-family: 'Syne', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 0 0 6px 6px; }
.pricing-plan-label { font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-muted); margin-bottom: 16px; display: block; }
.pricing-card.featured .pricing-plan-label { color: var(--slate); }
.pricing-price { display: flex; align-items: flex-start; gap: 2px; margin-bottom: 6px; }
.price-currency { font-size: 22px; font-weight: 500; color: var(--slate); padding-top: 8px; }
.price-amount { font-family: 'Fraunces', serif; font-size: 52px; font-weight: 700; color: var(--slate); line-height: 1; }
.price-period { font-size: 14px; color: var(--muted); align-self: flex-end; padding-bottom: 8px; }
.pricing-billing { font-size: 12px; color: var(--slate-muted); margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--body-text); line-height: 1.5; }
.pricing-features li .check { width: 16px; height: 16px; border-radius: 50%; background: var(--slate); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.pricing-features li .check::after { content: ''; width: 6px; height: 4px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); display: block; }
.pricing-features li.locked { opacity: 0.38; }
.pricing-features li.locked .check { background: var(--border); }
.pricing-features li.locked .check::after { content: ''; width: 8px; height: 1.5px; background: var(--slate-muted); border: none; transform: none; display: block; border-radius: 1px; margin: 0 auto; }
.pricing-note { font-size: 13px; color: var(--slate-muted); margin-top: 32px; }

.faq { background: var(--bg-off); padding: 80px 0; }
.faq .label { text-align: center; display: block; margin-bottom: 12px; }
.faq h2 { font-family: 'Fraunces', serif; font-size: 36px; font-weight: 700; color: var(--slate); text-align: center; margin-bottom: 48px; letter-spacing: -0.02em; }
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 20px 0; text-align: left; gap: 16px; }
.faq-q span { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 600; color: var(--slate); line-height: 1.4; }
.faq-icon { width: 20px; height: 20px; flex-shrink: 0; border: 1.5px solid var(--slate); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.25s; color: var(--slate); font-size: 14px; font-weight: 400; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { font-size: 15px; color: var(--muted); line-height: 1.7; padding: 0 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 20px; }

.cta-band { background: linear-gradient(110deg, var(--pink) 0%, var(--orange) 100%); padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; top: -60px; right: -60px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,0.18); pointer-events: none; }
.cta-band::after { content: ''; position: absolute; bottom: -80px; left: -40px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,0.12); pointer-events: none; }
.cta-band h2 { font-family: 'Fraunces', serif; font-size: clamp(32px, 5vw, 52px); font-weight: 700; color: var(--slate); line-height: 1.1; margin-bottom: 16px; letter-spacing: -0.02em; position: relative; z-index: 1; }
.cta-band h2 em { font-style: italic; }
.cta-band p { font-size: 18px; color: var(--body-text); max-width: 440px; margin: 0 auto 36px; line-height: 1.6; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }
.cta-band-sub { font-size: 13px; color: var(--muted); margin-top: 14px; position: relative; z-index: 1; }

.footer { background: var(--slate); padding: 64px 0 0; color: var(--slate-subtle); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 10px; display: block; }
.footer-tagline { font-size: 14px; color: var(--slate-muted); line-height: 1.5; }
.footer-update { font-size: 12px; color: #4A5568; margin-top: 8px; }
.footer-col-label { font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate-muted); margin-bottom: 16px; display: block; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--slate-subtle); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2D3E50; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom-text { font-size: 13px; color: #4A5568; }

/* ===========================
   APP PAGE STYLES
=========================== */
#hdr { position: sticky; top: 0; z-index: 300; background: var(--slate); height: 56px; display: flex; align-items: center; padding: 0 20px; gap: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.2); }
.hdr-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 18px; color: #fff; }
.hdr-ball { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.3); position: relative; flex-shrink: 0; }
.hdr-ball::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(28deg); width: 4px; height: 9px; background: #fff; border-radius: 2px; }
.hdr-sep { width: 1px; height: 20px; background: rgba(255,255,255,.15); flex-shrink: 0; }
.hdr-back { font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.hdr-back:hover { color: rgba(255,255,255,.85); }
.hdr-back::before { content: '← '; }
.hdr-center { flex: 1; text-align: center; font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); pointer-events: none; }
.hdr-acts { display: flex; align-items: center; gap: 8px; }
.btn-export { font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.18); cursor: pointer; padding: 6px 14px; border-radius: 6px; transition: all .2s; }
.btn-export:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-pro { font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700; background: linear-gradient(110deg,#FDCFE8,#FDDAB0); color: var(--slate); border: none; cursor: pointer; padding: 7px 16px; border-radius: 20px; transition: opacity .2s,transform .15s; }
.btn-pro:hover { opacity: .88; transform: translateY(-1px); }

#fmt-bar { position: sticky; top: 56px; z-index: 200; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 20px; gap: 2px; height: 46px; box-shadow: var(--sh-sm); }
.fmt-btn { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 6px; cursor: pointer; color: var(--muted); border: none; background: none; transition: all .18s; letter-spacing: .02em; }
.fmt-btn:hover { color: var(--slate); background: var(--bg-off); }
.fmt-btn.active { background: var(--slate); color: #fff; }
.fmt-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; flex-shrink: 0; }
#cnt-lbl { margin-left: auto; font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 600; color: var(--slate-muted); letter-spacing: .04em; }

#main { max-width: 1160px; margin: 0 auto; padding: 20px 20px 80px; }
#slots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.slot { border-radius: var(--radius-md); min-height: 108px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; transition: all .2s; }
.slot-e { background: #fff; border: 1.5px dashed var(--border); cursor: pointer; }
.slot-e:hover { border-color: var(--slate); background: var(--bg-off); }
.slot-lk { background: repeating-linear-gradient(45deg, var(--bg-off), var(--bg-off) 8px, #fff 8px, #fff 16px); border: 1.5px dashed var(--border); cursor: pointer; opacity: .65; }
.slot-lk:hover { opacity: .9; border-color: var(--slate-light); }
.slot-add-ic { width: 30px; height: 30px; border-radius: 50%; border: 1.5px dashed var(--slate-muted); display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--slate-muted); margin-bottom: 7px; transition: all .2s; }
.slot-e:hover .slot-add-ic { border-color: var(--slate); color: var(--slate); }
.slot-add-tx { font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 600; color: var(--slate-muted); }
.slot-e:hover .slot-add-tx { color: var(--slate); }
.slot-lk-ic { font-size: 18px; margin-bottom: 5px; }
.slot-lk-tx { font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700; color: var(--slate-muted); letter-spacing: .06em; text-transform: uppercase; }
.slot-f { background: #fff; border: 1.5px solid; align-items: flex-start; justify-content: flex-start; padding: 12px; cursor: default; }
.slot-inner { display: flex; align-items: flex-start; gap: 10px; width: 100%; }
.slot-av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2.5px solid; background: var(--bg-off); display: block; flex-shrink: 0; }
.slot-av-fb { width: 52px; height: 52px; border-radius: 50%; display: none; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 800; color: #fff; border: 2.5px solid; flex-shrink: 0; }
.slot-info { flex: 1; min-width: 0; padding-top: 2px; }
.slot-nm { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; color: var(--slate); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-ct { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.slot-rl { font-family: 'Syne', sans-serif; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; letter-spacing: .04em; text-transform: uppercase; display: inline-block; }
.slot-rm { position: absolute; top: 7px; right: 7px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); opacity: 0; transition: opacity .15s, background .15s; z-index: 2; }
.slot-f:hover .slot-rm { opacity: 1; }
.slot-rm:hover { background: #FEE2E2; color: #B5291C; }

#st-empty, #st-one { display: none; text-align: center; padding: 64px 24px; }
#st-empty.show, #st-one.show { display: block; }
.st-ico { font-size: 44px; margin-bottom: 18px; }
.st-ttl { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 700; color: var(--slate); margin-bottom: 10px; }
.st-sub { font-size: 15px; color: var(--muted); max-width: 360px; margin: 0 auto; line-height: 1.65; }

/* THE MOBILE FIX FOR SQUISHED STATS IS HERE */
#stats-area { display: none; overflow-x: auto; width: 100%; }
#stats-area.show { display: block; }
.sec-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.sec-hdr { padding: 14px 22px 12px; border-bottom: 1px solid var(--blt); display: flex; align-items: center; gap: 10px; }
.sec-ico { width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--bg-off); display: flex; align-items: center; justify-content: center; font-size: 14px; border: 1px solid var(--border); flex-shrink: 0; }
.sec-ttl { font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700; color: var(--slate); letter-spacing: .06em; text-transform: uppercase; }

.bf-grid { padding: 4px 0; }
.bf-phdr { display: grid; grid-template-columns: 88px 1fr 110px 1fr 88px; padding: 10px 22px; background: var(--bg-off); border-bottom: 1px solid var(--blt); gap: 6px; align-items: center; }
.bf-phdr-l { display: flex; align-items: center; gap: 7px; justify-content: flex-end; }
.bf-phdr-r { display: flex; align-items: center; gap: 7px; }
.bf-phdr-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid; }
.bf-phdr-fb { width: 26px; height: 26px; border-radius: 50%; display: none; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-size: 7px; font-weight: 800; color: #fff; flex-shrink: 0; }
.bf-phdr-nm { 
  font-family: 'Syne', sans-serif; 
  font-size: 13px; 
  font-weight: 700; 
  white-space: nowrap; /* This stops the line break! */
}
.bf-vs { display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 16px; font-weight: 700; color: var(--slate-muted); }
.bf-row { display: grid; grid-template-columns: 88px 1fr 110px 1fr 88px; align-items: center; padding: 9px 22px; border-bottom: 1px solid var(--blt); gap: 6px; min-height: 50px; }
.bf-row:last-child { border-bottom: none; }
.bf-val { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; line-height: 1; }
.bf-val.l { text-align: right; }
.bf-val.r { text-align: left; }
.bf-val.win::after { content: '↑'; font-family: 'Syne', sans-serif; font-size: 10px; font-weight: 700; vertical-align: super; margin-left: 2px; opacity: .7; }
.bf-bar-l { display: flex; align-items: center; justify-content: flex-end; height: 22px; }
.bf-bar-r { display: flex; align-items: center; justify-content: flex-start; height: 22px; }
.bf-bar { height: 7px; transition: width .45s cubic-bezier(.4,0,.2,1); }
.bf-bar.bl { border-radius: 3px 0 0 3px; }
.bf-bar.br { border-radius: 0 3px 3px 0; }
.bf-mid { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bf-lbl { font-family: 'Syne', sans-serif; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--slate-muted); }
.bf-div { width: 1px; height: 24px; background: var(--border); }

.mp-grid { padding: 4px 0; }
.mp-phdr { display: flex; padding: 10px 22px; gap: 16px; background: var(--bg-off); border-bottom: 1px solid var(--blt); align-items: center; flex-wrap: wrap; }
.mp-phdr-sp { 
  width: 140px; /* Increased to match .mp-nm */
  flex-shrink: 0; 
}
.mp-phdr-items { display: flex; gap: 18px; flex-wrap: wrap; }
.mp-phdr-item { display: flex; align-items: center; gap: 6px; }
.mp-phdr-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 2px solid; }
.mp-phdr-fb { width: 22px; height: 22px; border-radius: 50%; display: none; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-size: 7px; font-weight: 800; color: #fff; flex-shrink: 0; }
.mp-phdr-nm { font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700; color: var(--slate); }
.mp-row { padding: 11px 22px; border-bottom: 1px solid var(--blt); }
.mp-row:last-child { border-bottom: none; }
.mp-lbl { font-family: 'Syne', sans-serif; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-muted); margin-bottom: 9px; }
.mp-bars { display: flex; flex-direction: column; gap: 7px; }
.mp-item { display: flex; align-items: center; gap: 10px; }
.mp-nm { 
  font-size: 12px; 
  color: var(--muted); 
  width: 140px; 
  flex-shrink: 0; 
  text-align: right; 
  white-space: nowrap; /* This stops the line break! */
}
.mp-track { flex: 1; height: 7px; background: var(--blt); border-radius: 4px; overflow: hidden; }
.mp-fill { height: 100%; border-radius: 4px; transition: width .45s cubic-bezier(.4,0,.2,1); }
.mp-val { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 700; color: var(--slate); width: 60px; flex-shrink: 0; }
.mp-item.win .mp-val::after { content: ' ↑'; font-family: 'Syne', sans-serif; font-size: 10px; font-weight: 700; opacity: .6; }

#radar-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.radar-hdr { padding: 14px 22px 12px; border-bottom: 1px solid var(--blt); display: flex; align-items: center; gap: 10px; }
.radar-body { padding: 20px 24px; display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
#radar-wrap { width: 280px; height: 280px; flex-shrink: 0; }
.radar-leg { display: flex; flex-direction: column; gap: 10px; }
.radar-item { display: flex; align-items: center; gap: 8px; }
.radar-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.radar-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 2px solid; flex-shrink: 0; }
.radar-av-fb { width: 22px; height: 22px; border-radius: 50%; display: none; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-size: 7px; font-weight: 800; color: #fff; flex-shrink: 0; }
.radar-nm { font-size: 13px; color: var(--body-text); font-weight: 500; }
.radar-note { font-family: 'Syne', sans-serif; font-size: 10px; color: var(--slate-muted); margin-top: 14px; letter-spacing: .04em; }

/* ===========================
   MODALS (APP + LANDING)
=========================== */
.modal-overlay, #search-modal, #pw-modal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(10, 15, 20, 0.62); backdrop-filter: blur(5px); align-items: center; justify-content: center; }
.modal-overlay.open, #search-modal.open, #pw-modal.open { display: flex; }
#search-modal { align-items: flex-start; padding-top: 72px; }
.srch-panel { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 540px; max-height: calc(100vh - 130px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); overflow: hidden; animation: popIn .2s ease; }
@keyframes popIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }
.srch-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.srch-ic { font-size: 16px; color: var(--slate-muted); }
#srch-inp { flex: 1; border: none; outline: none; background: none; font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--slate); }
#srch-inp::placeholder { color: var(--slate-muted); }
.srch-x { background: var(--bg-off); border: none; cursor: pointer; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); transition: background .15s; }
.srch-x:hover { background: var(--border); }
#srch-list { flex: 1; overflow-y: auto; padding: 6px 0; }
.srch-grp-lbl { font-family: 'Syne', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--slate-muted); padding: 8px 18px 3px; }
.srch-row { display: flex; align-items: center; gap: 11px; padding: 9px 18px; cursor: pointer; transition: background .12s; }
.srch-row:hover { background: var(--bg-off); }
.srch-row.done { opacity: .35; pointer-events: none; }
.srch-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--bg-off); flex-shrink: 0; border: 2px solid var(--border); }
.srch-av-fb { width: 38px; height: 38px; border-radius: 50%; display: none; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0; }
.srch-info { flex: 1; min-width: 0; }
.srch-nm { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; color: var(--slate); }
.srch-mt { font-size: 11px; color: var(--muted); margin-top: 1px; }
.srch-rl { font-family: 'Syne', sans-serif; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; color: #1A7A4A; background: #DCFCE7; }
.srch-add { font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700; color: var(--slate-muted); background: var(--bg-off); border: 1px solid var(--border); border-radius: 5px; padding: 4px 10px; transition: all .15s; flex-shrink: 0; }
.srch-row:hover .srch-add { background: var(--slate); color: #fff; border-color: var(--slate); }
.srch-none { text-align: center; padding: 40px 20px; font-size: 14px; color: var(--slate-muted); }

.pw-panel { background: #fff; border-radius: 20px; padding: 36px 32px; max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); position: relative; animation: popIn .22s ease; }
.pw-x { position: absolute; top: 14px; right: 14px; background: var(--bg-off); border: none; cursor: pointer; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); transition: background .15s; }
.pw-x:hover { background: var(--border); }
.pw-ico { font-size: 34px; margin-bottom: 14px; }
.pw-ttl { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 700; color: var(--slate); margin-bottom: 10px; line-height: 1.2; }
.pw-sub { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.pw-bens { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.pw-bens li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--body-text); line-height: 1.5; }
.pw-chk { width: 17px; height: 17px; border-radius: 50%; background: var(--slate); flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.pw-chk::after { content: ''; width: 6px; height: 4px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); display: block; }
.pw-price { background: var(--bg-off); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 14px; font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; color: var(--slate); margin-bottom: 16px; }
.pw-btns { display: flex; flex-direction: column; gap: 8px; }
.btn-upgrade { width: 100%; background: var(--slate); color: #fff; border: none; font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; padding: 13px; border-radius: var(--radius-sm); cursor: pointer; transition: background .2s; }
.btn-upgrade:hover { background: var(--slate-mid); }
.btn-later { width: 100%; background: none; border: none; cursor: pointer; font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 500; color: var(--slate-muted); padding: 8px; border-radius: var(--radius-sm); transition: color .15s; }
.btn-later:hover { color: var(--body-text); }
.pw-micro { font-size: 11px; color: var(--slate-muted); text-align: center; margin-top: 8px; }

/* RESPONSIVE APP */
@media(max-width:860px){
  #main { padding: 14px 14px 60px; }
  #slots-grid { grid-template-columns: 1fr 1fr; }
  .hdr-center { display: none; }
  .bf-row, .bf-phdr { grid-template-columns: 64px 1fr 90px 1fr 64px; padding: 8px 14px; }
  .bf-val { font-size: 16px; }
  .mp-nm { width: 64px; }
  .mp-phdr-sp { width: 64px; }
}
@media(max-width:540px){
  #fmt-bar { padding: 0 10px; }
  .fmt-btn { padding: 5px 9px; font-size: 12px; }
  .bf-row, .bf-phdr { grid-template-columns: 50px 1fr 82px 1fr 50px; padding: 7px 10px; }
  .bf-val { font-size: 13px; }
  .bf-lbl { font-size: 9px; }
  .btn-export { display: none; }
  .mp-nm { width: 50px; font-size: 10px; }
  .mp-phdr-sp { width: 50px; }
  .radar-body { flex-direction: column; align-items: center; }
}

/* RESPONSIVE LANDING */
@media (max-width: 900px) {
  .container, .container--narrow, .container--mid { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-actions .btn-sm { display: none; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 16px; }
  .hero-btns { flex-direction: column; align-items: center; gap: 10px; }
  .hero-btns .btn { width: 100%; max-width: 320px; }
  .dashboard-preview-inner { padding: 0 16px; }
  .mock-players-row { grid-template-columns: 1fr; }
  .mock-vs { display: none; }
  .mock-stats-grid { grid-template-columns: 1fr 1fr; }
  .feature-cols, .feature-cols.reverse { grid-template-columns: 1fr; gap: 40px; }
  .feature-cols.reverse .feature-text { order: 1; }
  .feature-cols.reverse .mock-ai-wrap { order: 2; }
  .feature-text { max-width: 100%; }
  .mock-ai-wrap { height: 280px; }
  .mock-ai-front { width: 260px; }
  .mock-ai-back { width: 240px; }
  .stats-row { flex-direction: column; }
  .stat-block { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-block:last-child { border-bottom: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-cards { flex-direction: column; align-items: center; }
  .pricing-card { width: 100%; max-width: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .modal { padding: 32px 24px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .mock-f1-stats { grid-template-columns: 1fr 1fr; }
}