/* 3alTrack unified public identity v2.99.0 */
:root {
  --site-bg: #050a13;
  --site-bg-soft: #08111f;
  --site-panel: #0b1627;
  --site-panel-2: #0f1d31;
  --site-line: rgba(151,181,219,.14);
  --site-text: #f6f9ff;
  --site-muted: #8ea2bc;
  --site-cyan: #44d7ff;
  --site-blue: #2e76ff;
  --site-red: #ff5368;
  --site-shadow: 0 24px 70px rgba(0,0,0,.28);
}

html[data-theme="light"],
html[data-visual-theme="light"] {
  --site-bg: #edf3f8;
  --site-bg-soft: #e7edf5;
  --site-panel: #ffffff;
  --site-panel-2: #f5f8fb;
  --site-line: rgba(20,49,79,.12);
  --site-text: #102239;
  --site-muted: #60748b;
  --site-cyan: #087db8;
  --site-blue: #245fc9;
  --site-red: #e83851;
  --site-shadow: 0 22px 55px rgba(31,63,96,.1);
}

body:not(.home-page):not(.admin-dashboard-page) {
  min-height: 100vh;
  color: var(--site-text);
  background:
    radial-gradient(circle at 82% 8%, rgba(46,118,255,.10), transparent 27%),
    radial-gradient(circle at 10% 36%, rgba(68,215,255,.06), transparent 24%),
    var(--site-bg) !important;
}

body:not(.home-page):not(.admin-dashboard-page) main {
  min-height: calc(100vh - 230px);
}

/* Shared header */
body:not(.home-page):not(.admin-dashboard-page) .topbar {
  position: sticky !important;
  top: 0;
  z-index: 9999;
  width: 100%;
  height: auto !important;
  min-height: 78px;
  padding: 0 max(24px, calc((100% - 1460px) / 2)) !important;
  display: grid !important;
  grid-template-columns: auto minmax(0,1fr) auto auto;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--site-line) !important;
  background: rgba(5,10,19,.94) !important;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
}
html[data-theme="light"] body:not(.home-page):not(.admin-dashboard-page) .topbar,
html[data-visual-theme="light"] body:not(.home-page):not(.admin-dashboard-page) .topbar {
  background: rgba(255,255,255,.93) !important;
  box-shadow: 0 12px 36px rgba(31,63,96,.08);
}
body:not(.home-page):not(.admin-dashboard-page) .brand {
  width: auto !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
body:not(.home-page):not(.admin-dashboard-page) .brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
body:not(.home-page):not(.admin-dashboard-page) .brand-slogan {
  color: var(--site-muted) !important;
  font-size: 11px !important;
  font-weight: 800;
  white-space: nowrap;
}
body:not(.home-page):not(.admin-dashboard-page) .menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px !important;
  min-width: 0;
}
body:not(.home-page):not(.admin-dashboard-page) .menu > a,
body:not(.home-page):not(.admin-dashboard-page) .menu > .nav-dropdown > a,
body:not(.home-page):not(.admin-dashboard-page) .menu > details > summary {
  min-height: 42px;
  padding: 0 12px !important;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--site-muted) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  white-space: nowrap;
}
body:not(.home-page):not(.admin-dashboard-page) .menu > a::after { display: none !important; }
body:not(.home-page):not(.admin-dashboard-page) .menu > a:hover,
body:not(.home-page):not(.admin-dashboard-page) .menu > .nav-dropdown > a:hover,
body:not(.home-page):not(.admin-dashboard-page) .menu > details > summary:hover {
  color: var(--site-text) !important;
  border-color: var(--site-line);
  background: color-mix(in srgb, var(--site-panel) 82%, transparent);
}
body:not(.home-page):not(.admin-dashboard-page) .theme-toggle,
body:not(.home-page):not(.admin-dashboard-page) .menu-toggle {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  padding: 0 !important;
  border: 1px solid var(--site-line) !important;
  border-radius: 13px !important;
  color: var(--site-text) !important;
  background: color-mix(in srgb, var(--site-panel) 80%, transparent) !important;
}
body:not(.home-page):not(.admin-dashboard-page) .nav-dropdown-menu {
  border: 1px solid var(--site-line) !important;
  border-radius: 15px !important;
  background: var(--site-panel) !important;
  box-shadow: var(--site-shadow) !important;
}
body:not(.home-page):not(.admin-dashboard-page) .nav-dropdown-menu a {
  color: var(--site-muted) !important;
  border-radius: 9px;
}
body:not(.home-page):not(.admin-dashboard-page) .nav-dropdown-menu a:hover {
  color: var(--site-text) !important;
  background: color-mix(in srgb, var(--site-cyan) 9%, transparent) !important;
}

/* Shared panels and page shells */


body:not(.home-page):not(.admin-dashboard-page) :is(h1,h2,h3,h4,strong) { color: var(--site-text); }
body:not(.home-page):not(.admin-dashboard-page) :is(p,small,time,.muted,.section-title p) { color: var(--site-muted); }
body:not(.home-page):not(.admin-dashboard-page) :is(input,select,textarea) {
  color: var(--site-text) !important;
  border-color: var(--site-line) !important;
  background: var(--site-panel-2) !important;
}
body:not(.home-page):not(.admin-dashboard-page) :is(input,textarea)::placeholder { color: color-mix(in srgb, var(--site-muted) 72%, transparent); }

/* Category hero logos */
.category-title-with-logo {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 38px !important;
  border: 1px solid var(--site-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 50%, rgba(68,215,255,.11), transparent 25%),
    linear-gradient(145deg, var(--site-panel), var(--site-bg-soft));
  box-shadow: var(--site-shadow);
}
.category-competition-logo {
  width: 106px !important;
  height: 106px !important;
  padding: 9px;
  border: 1px solid var(--site-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
}
.category-competition-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
.category-title-with-logo > span { color: var(--site-cyan) !important; }
.category-title-with-logo h2 { font-size: clamp(34px,5vw,62px) !important; }

/* Image-first news cards with shaded titles */
.category-news-grid,
.page-news-grid {
  gap: 18px !important;
}
.category-news-card {
  position: relative !important;
  display: block !important;
  min-height: 370px !important;
  overflow: hidden !important;
  border: 1px solid var(--site-line) !important;
  border-radius: 23px !important;
  background: #091321 !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
  transition: transform .35s cubic-bezier(.2,.75,.2,1), box-shadow .35s ease, border-color .3s ease;
}
.category-news-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--site-cyan) 45%, transparent) !important;
  box-shadow: 0 25px 55px rgba(0,0,0,.24);
}
.category-news-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  transition: transform .65s cubic-bezier(.2,.75,.2,1);
}
.category-news-card:hover .category-news-image { transform: scale(1.055); }
.category-news-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgba(3,8,17,.24) 50%, rgba(3,8,17,.97) 100%);
}
.category-news-content {
  position: absolute !important;
  z-index: 2;
  inset: auto 0 0 !important;
  padding: 24px !important;
  background: transparent !important;
}
.category-card-meta span { color: #6adeff !important; }
.category-card-meta time { color: rgba(255,255,255,.65) !important; }
.category-news-content h3,
.category-news-content p {
  color: #fff !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.88);
}
.category-news-content p { color: rgba(255,255,255,.74) !important; }

.premium-list-card {
  border-color: var(--site-line) !important;
  border-radius: 22px !important;
  background: var(--site-panel) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.12);
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
}
.premium-list-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--site-cyan) 42%, transparent) !important;
  box-shadow: var(--site-shadow);
}
.premium-list-image { position: relative; overflow: hidden; }
.premium-list-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(3,8,17,.48));
}
.premium-list-content h3 { color: var(--site-text) !important; }
.premium-list-content p { color: var(--site-muted) !important; }
.premium-list-meta span { color: var(--site-cyan) !important; }

.premium-lead-card {
  border: 1px solid var(--site-line) !important;
  border-radius: 25px !important;
  box-shadow: var(--site-shadow);
}
.premium-lead-overlay {
  background: linear-gradient(180deg, transparent, rgba(3,8,17,.94)) !important;
}
.premium-lead-overlay h2,
.premium-lead-overlay p { color: #fff !important; text-shadow: 0 2px 14px rgba(0,0,0,.85); }

/* League cards and logos */
.leagues-clean-grid { gap: 18px !important; }
.league-clean-card {
  min-height: 260px;
  border: 1px solid var(--site-line) !important;
  border-radius: 24px !important;
  background: linear-gradient(145deg, var(--site-panel), var(--site-panel-2)) !important;
  box-shadow: 0 15px 42px rgba(0,0,0,.13);
  transition: transform .34s ease, border-color .3s ease, box-shadow .34s ease;
}
.league-clean-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--site-cyan) 44%, transparent) !important;
  box-shadow: var(--site-shadow);
}
.league-clean-logo {
  width: 86px !important;
  height: 86px !important;
  padding: 10px !important;
  border: 1px solid var(--site-line);
  border-radius: 21px !important;
  background: #fff !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
}
.league-clean-logo img { width: 100% !important; height: 100% !important; object-fit: contain !important; }
.league-clean-card h3 { color: var(--site-text) !important; }
.league-clean-card p { color: var(--site-muted) !important; }
.league-clean-open { color: var(--site-cyan) !important; }

/* Article and match identity */
.article-pro-page .article-main-card,
.article-pro-page :is(.article-title,.article-inline-header h1,.article-body h1,.article-body h2,.article-body h3) { color: var(--site-text) !important; }
.article-pro-page :is(.article-body,.article-body p,.article-meta,.article-author) { color: var(--site-muted) !important; }
.article-pro-page .article-body a { color: var(--site-cyan) !important; }


/* Information pages */
.info-hero,
.info-section,
.info-card,
.info-mini-card,
.info-quote-card {
  border-color: var(--site-line) !important;
  background: var(--site-panel) !important;
  color: var(--site-text) !important;
}
.info-hero h1,
.info-card h2,
.info-section h2,
.info-mini-card strong { color: var(--site-text) !important; }
.info-hero p,
.info-section p,
.info-card p,
.info-mini-card p { color: var(--site-muted) !important; }

/* Shared footer */
.pro-footer-v7 {
  width: 100%;
  margin-top: 70px !important;
  border-top: 1px solid var(--site-line) !important;
  color: var(--site-text) !important;
  background: #040913 !important;
}
html[data-theme="light"] .pro-footer-v7,
html[data-visual-theme="light"] .pro-footer-v7 {
  background: #e4ebf3 !important;
}
.pro-footer-top {
  width: min(1460px, calc(100% - 48px));
  margin-inline: auto;
  padding: 42px 0 !important;
}
.pro-footer-brand strong,
.pro-footer-links a { color: var(--site-text) !important; }
.pro-footer-brand small { color: var(--site-muted) !important; }
.pro-footer-links a:hover { color: var(--site-cyan) !important; }
.pro-footer-bottom {
  border-top: 1px solid var(--site-line) !important;
  color: var(--site-muted) !important;
}

/* Light-mode hardening for legacy pages */
html[data-theme="light"] body:not(.home-page):not(.admin-dashboard-page),
html[data-visual-theme="light"] body:not(.home-page):not(.admin-dashboard-page) {
  color: #102239 !important;
  background: #edf3f8 !important;
}

html[data-theme="light"] body:not(.home-page):not(.admin-dashboard-page) :is(h1,h2,h3,h4,strong),
html[data-visual-theme="light"] body:not(.home-page):not(.admin-dashboard-page) :is(h1,h2,h3,h4,strong) { color: #102239; }
html[data-theme="light"] body:not(.home-page):not(.admin-dashboard-page) :is(p,small,time),
html[data-visual-theme="light"] body:not(.home-page):not(.admin-dashboard-page) :is(p,small,time) { color: #60748b; }

@media (max-width: 1100px) {
  body:not(.home-page):not(.admin-dashboard-page) .topbar {
    grid-template-columns: auto 1fr auto auto;
    padding-inline: 24px !important;
  }
  body:not(.home-page):not(.admin-dashboard-page) .menu { gap: 0 !important; }
  body:not(.home-page):not(.admin-dashboard-page) .menu > a,
  body:not(.home-page):not(.admin-dashboard-page) .menu > .nav-dropdown > a,
  body:not(.home-page):not(.admin-dashboard-page) .menu > details > summary { padding-inline: 8px !important; font-size: 12px !important; }
}

@media (max-width: 900px) {
  body:not(.home-page):not(.admin-dashboard-page) .topbar {
    grid-template-columns: minmax(0,1fr) auto auto;
    min-height: 70px;
    padding-inline: 18px !important;
  }
  body:not(.home-page):not(.admin-dashboard-page) .menu {
    position: fixed !important;
    top: 70px !important;
    right: 14px !important;
    left: 14px !important;
    display: none;
    max-height: calc(100vh - 90px);
    padding: 12px !important;
    overflow-y: auto;
    border: 1px solid var(--site-line);
    border-radius: 20px;
    background: var(--site-panel) !important;
    box-shadow: var(--site-shadow);
  }
  body:not(.home-page):not(.admin-dashboard-page) .menu.active { display: grid !important; }
  body:not(.home-page):not(.admin-dashboard-page) .menu > a,
  body:not(.home-page):not(.admin-dashboard-page) .menu > .nav-dropdown > a,
  body:not(.home-page):not(.admin-dashboard-page) .menu > details > summary {
    justify-content: flex-start;
    width: 100%;
  }
  body:not(.home-page):not(.admin-dashboard-page) .menu-toggle { display: flex !important; }
  .category-title-with-logo { min-height: 190px; padding: 28px !important; }
  .category-competition-logo { width: 86px !important; height: 86px !important; }
}

@media (max-width: 640px) {
  .pro-footer-top { width: min(100% - 30px, 1460px); }
  .category-news-card { min-height: 340px !important; }
  .category-news-content { padding: 20px !important; }
}

/* Newsroom cards use the same image-overlay language as the homepage. */
.newsroom-premium-panel .premium-list-grid,
.newsroom-premium-panel .newsroom-grid,
.newsroom-premium-panel #newsGrid {
  gap: 18px !important;
}
.newsroom-premium-panel .premium-list-card {
  position: relative !important;
  display: block !important;
  min-height: 370px !important;
  overflow: hidden !important;
  background: #091321 !important;
}
.newsroom-premium-panel .premium-list-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
.newsroom-premium-panel .premium-list-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform .65s cubic-bezier(.2,.75,.2,1);
}
.newsroom-premium-panel .premium-list-card:hover .premium-list-image img { transform: scale(1.055); }
.newsroom-premium-panel .premium-list-image::after {
  background: linear-gradient(180deg, transparent 17%, rgba(3,8,17,.25) 49%, rgba(3,8,17,.97) 100%);
}
.newsroom-premium-panel .premium-list-content {
  position: absolute !important;
  z-index: 2;
  inset: auto 0 0 !important;
  padding: 24px !important;
  background: transparent !important;
}
.newsroom-premium-panel .premium-list-content h3,
.newsroom-premium-panel .premium-list-content p,
.newsroom-premium-panel .premium-list-meta small {
  color: #fff !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.88);
}
.newsroom-premium-panel .premium-list-content p { color: rgba(255,255,255,.72) !important; }
.newsroom-premium-panel .premium-list-meta span { color: #6adeff !important; }

/* v3.14.0: competition identity on every league match card */
.worldcup-match-competition-v3140{display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;min-height:42px!important;margin:0 0 12px!important;padding:5px 10px!important;border-bottom:1px solid rgba(255,255,255,.07)!important;color:var(--text,#fff)!important}
.worldcup-match-competition-v3140 img,.worldcup-match-competition-v3140>span{width:34px!important;height:34px!important;flex:0 0 34px!important;padding:4px!important;border-radius:10px!important;background:rgba(255,255,255,.06)!important;object-fit:contain!important;display:grid!important;place-items:center!important}
.worldcup-match-competition-v3140 strong{font-size:11px!important;font-weight:900!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html[data-theme="light"] .worldcup-match-competition-v3140,html[data-visual-theme="light"] .worldcup-match-competition-v3140{color:#10253b!important;border-color:rgba(15,23,42,.08)!important}
