/* =========================================================
   Sunday Funday User Professional UI - Common shell/nav/hero
   Page-specific styles live in dashboard.css, predictions.css, standings.css
   ========================================================= */
:root {
  --primary-color: #013369;
  --secondary-color: #d50a0a;
  --accent-color: #f6c453;
  --theme-accent-blend: color-mix(in srgb, var(--accent-color) 72%, var(--secondary-color));
  --theme-gradient-135: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 66%, var(--theme-accent-blend) 100%);
  --theme-gradient-90: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 68%, var(--theme-accent-blend) 100%);
  --theme-gradient-180: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 68%, var(--theme-accent-blend) 100%);
  --theme-accent-soft: color-mix(in srgb, var(--accent-color) 15%, transparent);
  --theme-accent-border: color-mix(in srgb, var(--accent-color) 42%, transparent);
  --sf-bg: #0b1020;
  --sf-surface: rgba(18,24,38,0.94);
  --sf-surface-2: rgba(26,34,50,0.96);
  --sf-surface-3: rgba(31,41,55,0.82);
  --sf-text: #f8fafc;
  --sf-muted: #b6c2d3;
  --sf-border: rgba(255,255,255,0.11);
  --sf-shadow: 0 26px 78px rgba(0,0,0,0.48);
  --sf-shadow-card: 0 18px 44px rgba(0,0,0,0.34);
  --sf-radius-xl: 30px;
  --sf-radius-lg: 24px;
  --sf-radius-md: 18px;
  --sf-navbar-height: 78px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
.sf-skip-link {
  position: fixed;
  z-index: 200000;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  border: 2px solid #fff;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  font-weight: 900;
  transform: translateY(-180%);
  transition: transform .15s ease;
}
.sf-skip-link:focus { color: #fff; transform: translateY(0); }
.sf-main-content:focus { outline: none; }
body.sf-user-body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--sf-text);
  background:
    radial-gradient(circle at 8% -6%, color-mix(in srgb, var(--primary-color) 28%, transparent), transparent 34rem),
    radial-gradient(circle at 98% 0%, color-mix(in srgb, var(--secondary-color) 24%, transparent), transparent 32rem),
    radial-gradient(circle at 52% 108%, color-mix(in srgb, var(--accent-color) 18%, transparent), transparent 30rem),
    linear-gradient(180deg, #090d18, #101827 62%, #0b1020);
}
body.sf-user-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148,163,184,0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.075) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.52), transparent 72%);
}
body.sf-user-body::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
}
html.sf-lite-client body.sf-user-body {
  background-attachment: scroll;
  background:
    linear-gradient(180deg, #090d18, #101827 62%, #0b1020);
}
html.sf-lite-client body.sf-user-body::before {
  opacity: .45;
}
html.sf-lite-client .sf-hero-orb,
html.sf-lite-client .final-orb,
html.sf-lite-client .admin-orb,
html.sf-lite-client .profile-hero::before,
html.sf-lite-client .final-pro-page::before {
  display: none !important;
}
html.sf-lite-client .sf-mega-menu,
html.sf-lite-client .pro-card,
html.sf-lite-client .dashboard-panel,
html.sf-lite-client .prediction-section-card,
html.sf-lite-client .prediction-filter-panel,
html.sf-lite-client .leaderboard-shell,
html.sf-lite-client .profile-panel,
html.sf-lite-client .admin-panel {
  backdrop-filter: none !important;
}
a { text-decoration: none; }
.sf-footer a { color: #bfdbfe; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.sf-footer a:hover { color: #fff; }
.btn,
.sf-mobile-top-btn,
.sf-mobile-nav-item,
.sf-top-icon-link,
.navbar-toggler { min-height: 44px; }
.sf-app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.sf-main-content {
  flex: 1 0 auto;
  min-height: calc(100vh - var(--sf-navbar-height) - 100px);
  padding: clamp(0.85rem, 2vw, 1.5rem) 0 clamp(1.5rem, 3vw, 2.6rem);
}
.sf-main-content > .container-fluid { max-width: 1680px; }

/* Navbar */
.sf-navbar {
  position: sticky !important;
  top: 0;
  z-index: 10030 !important;
  min-height: var(--sf-navbar-height);
  border-bottom: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 92%, #111827), color-mix(in srgb, var(--secondary-color) 86%, #111827)) !important;
  box-shadow: 0 18px 45px color-mix(in srgb, var(--primary-color) 20%, rgba(15,23,42,0.14));
}
.sf-navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,0.24), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(255,255,255,0.12), transparent 30%);
}
.sf-navbar .container-fluid { position: relative; z-index: 2; }
.sf-brand { display: inline-flex; align-items: center; gap: .72rem; color: #fff !important; min-width: 0; }
.sf-brand-logo-shell { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 17px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.18); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 10px 24px rgba(0,0,0,0.16); }
.sf-brand-logo-shell img { width: 40px; height: 40px; object-fit: contain; }
.sf-brand-copy { display: flex; flex-direction: column; line-height: 1.02; min-width: 0; }
.sf-brand-title { font-size: clamp(1.12rem, 2vw, 1.5rem); font-weight: 950; letter-spacing: -.05em; white-space: nowrap; }
.sf-brand-subtitle { margin-top: .2rem; color: rgba(255,255,255,0.72); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.sf-navbar-toggler { border: 1px solid rgba(255,255,255,0.22) !important; border-radius: 16px; padding: .7rem .75rem; background: rgba(255,255,255,0.10); box-shadow: none !important; }
.sf-navbar-toggler .navbar-toggler-icon { filter: invert(1) grayscale(1) brightness(2); }
.sf-nav-list { gap: .15rem; }
.sf-nav-pill { display: inline-flex !important; align-items: center; gap: .45rem; color: rgba(255,255,255,0.86) !important; margin: 0 .12rem; padding: .64rem .82rem !important; border: 1px solid transparent; border-radius: 999px; font-size: .92rem; font-weight: 820; letter-spacing: -.02em; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.sf-nav-pill:hover, .sf-nav-pill:focus { color: #fff !important; background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.16); transform: translateY(-1px); }
.sf-nav-pill.active, .show > .sf-nav-pill { color: #fff !important; background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.22); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14); }
.sf-admin-return { background: linear-gradient(135deg, #fbbf24, #f59e0b) !important; color: #111827 !important; }
.sf-user-dropdown { display: inline-flex !important; align-items: center; gap: .58rem; max-width: 280px; padding: .44rem .75rem .44rem .48rem !important; border: 1px solid rgba(255,255,255,0.18) !important; border-radius: 999px !important; background: rgba(255,255,255,0.13) !important; color: #fff !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.14); }
.sf-nav-avatar-shell { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,0.16); border: 2px solid rgba(255,255,255,0.24); overflow: hidden; }
.sf-nav-avatar-shell img { width: 100%; height: 100%; object-fit: cover; }
.sf-nav-user-copy { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.sf-nav-user-copy strong { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; }
.sf-nav-user-copy small { color: rgba(255,255,255,0.72); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.sf-mega-menu { z-index: 100000 !important; min-width: 310px; margin-top: .75rem !important; padding: .55rem; border: 1px solid var(--sf-border); border-radius: 22px; background: color-mix(in srgb, var(--sf-surface) 96%, transparent); backdrop-filter: blur(18px); box-shadow: var(--sf-shadow); overflow: hidden; }
.sf-mega-menu { background: rgba(18,24,38,0.96) !important; border-color: rgba(255,255,255,0.10) !important; }
.sf-menu-heading { display: flex; gap: .7rem; align-items: center; padding: .72rem .78rem .82rem; }
.sf-menu-heading-icon, .sf-menu-card-icon { display: grid; place-items: center; border-radius: 15px; background: var(--theme-gradient-135); color: #fff; }
.sf-menu-heading-icon { width: 42px; height: 42px; flex: 0 0 42px; }
.sf-menu-heading strong { display: block; color: var(--sf-text); font-weight: 950; letter-spacing: -.025em; }
.sf-menu-heading small { display: block; margin-top: .18rem; color: var(--sf-muted); font-size: .75rem; font-weight: 720; }
.sf-menu-card { display: grid !important; grid-template-columns: 44px 1fr; gap: .75rem; align-items: center; min-height: 64px; margin-bottom: .38rem; padding: .72rem .78rem !important; border-radius: 18px; color: var(--sf-text) !important; transition: transform .16s ease, background .16s ease; }
.sf-menu-card:hover, .sf-menu-card:focus, .sf-menu-card.active { background: color-mix(in srgb, var(--primary-color) 12%, transparent) !important; transform: translateX(2px); }
.sf-menu-card-icon { width: 44px; height: 44px; }
.sf-menu-card-icon.warning { background: linear-gradient(135deg,#f59e0b,#fbbf24); color: #111827; }
.sf-menu-card-icon.success { background: linear-gradient(135deg,#16a34a,#22c55e); }
.sf-menu-card-icon.danger { background: linear-gradient(135deg,#ef4444,#b91c1c); }
.sf-menu-card-copy strong { display: block; color: var(--sf-text); font-weight: 930; letter-spacing: -.025em; }
.sf-menu-card-copy small { display: block; margin-top: .18rem; color: var(--sf-muted); font-size: .74rem; font-weight: 720; }
.sf-logout-card:hover { background: rgba(239,68,68,.11) !important; }
.sf-alert-stack { position: fixed; z-index: 110000; top: calc(var(--sf-navbar-height) + 16px); right: 18px; width: min(430px, calc(100vw - 36px)); }
.sf-alert-stack .alert { border-radius: 18px; border: 1px solid var(--sf-border); box-shadow: var(--sf-shadow-card); }

/* Theme accent semantics: the third team color is used for highlights, focus, progress tails and decorative depth. */
::selection { background: color-mix(in srgb, var(--accent-color) 58%, transparent); color: var(--sf-text); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-color) 62%, transparent);
  outline-offset: 3px;
}
.form-control:focus, .form-select:focus {
  border-color: color-mix(in srgb, var(--accent-color) 58%, var(--primary-color)) !important;
  box-shadow: 0 0 0 .24rem color-mix(in srgb, var(--accent-color) 18%, transparent) !important;
}
.sf-chip.is-accent, .theme-accent-chip {
  border-color: var(--theme-accent-border);
  background: var(--theme-accent-soft);
  color: color-mix(in srgb, var(--accent-color) 66%, var(--sf-text));
}
.sf-progress-fill, .accuracy-fill, .progress-bar {
  background-image: var(--theme-gradient-90);
}

/* Common */
.sf-page { color: var(--sf-text); }
.pro-card, .dashboard-panel, .prediction-section-card, .prediction-filter-panel, .leaderboard-shell {
  border: 1px solid var(--sf-border) !important;
  border-radius: var(--sf-radius-xl) !important;
  background: var(--sf-surface) !important;
  box-shadow: var(--sf-shadow-card);
  backdrop-filter: blur(14px);
  padding: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--sf-text);
}
.pro-card-header, .dashboard-panel-header, .prediction-section-header, .leaderboard-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem;
}
.prediction-section-header.compact { margin-bottom: .8rem; }
.section-eyebrow, .predictions-eyebrow { margin: 0 0 .22rem; color: color-mix(in srgb, var(--accent-color) 72%, var(--sf-text)); font-size: .74rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.section-title, .dashboard-panel h2, .prediction-section-header h2, .leaderboard-title { color: var(--sf-text); font-size: clamp(1.15rem,2vw,1.45rem); font-weight: 950; letter-spacing: -.04em; }
.section-subtitle, .leaderboard-subtitle { color: var(--sf-muted); font-size: .9rem; font-weight: 650; }
.sf-chip, .prediction-helper-pill, .prediction-points-pill, .prediction-status-pill, .result-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: .38rem .7rem; border: 1px solid var(--sf-border); border-radius: 999px; background: var(--sf-surface-2); color: var(--sf-text); font-size: .78rem; font-weight: 900; white-space: nowrap; }
.sf-btn-primary, .btn-primary { border: none !important; background: var(--theme-gradient-135) !important; color: #fff !important; font-weight: 900; box-shadow: 0 14px 28px color-mix(in srgb, var(--primary-color) 22%, transparent); }
.sf-btn-ghost { border: 1px solid rgba(255,255,255,.28) !important; background: rgba(255,255,255,.12) !important; color: #fff !important; font-weight: 900; }
.form-control, .form-select, .btn { border-radius: 15px; }
.empty-state-pro { width: 100%; display: grid; place-items: center; text-align: center; padding: 2rem; border: 1px dashed var(--sf-border); border-radius: var(--sf-radius-lg); background: var(--sf-surface-2); color: var(--sf-muted); }
.empty-state-pro.small { padding: 1.25rem; }
.empty-state-pro i { font-size: 2.2rem; color: var(--primary-color); margin-bottom: .8rem; }
.empty-state-pro h5, .empty-state-pro h3 { color: var(--sf-text); font-weight: 950; }

/* Hero */
.sf-hero { position: relative; overflow: hidden; border-radius: var(--sf-radius-xl); padding: 2px; background: var(--theme-gradient-135); box-shadow: var(--sf-shadow); isolation: isolate; }
.sf-hero::before { content: ""; position: absolute; inset: 1px; border-radius: calc(var(--sf-radius-xl) - 1px); background: radial-gradient(circle at 15% 0%, rgba(255,255,255,.26), transparent 30%), linear-gradient(135deg, rgba(15,23,42,.12), rgba(15,23,42,.02)); pointer-events: none; }
.sf-grid-overlay { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.32) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.32) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); pointer-events: none; }
.sf-hero-orb { position: absolute; width: 260px; height: 260px; border-radius: 999px; filter: blur(10px); opacity: .36; pointer-events: none; }
.sf-hero-orb-a { right: -70px; top: -95px; background: rgba(255,255,255,.55); }
.sf-hero-orb-b { left: 22%; bottom: -145px; background: rgba(255,255,255,.22); }
.sf-hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .55fr); gap: clamp(1rem,3vw,2rem); align-items: center; padding: clamp(1.15rem,3vw,2.4rem); color: #fff; }
.sf-hero-main { display: flex; align-items: center; gap: clamp(1rem,2vw,1.5rem); min-width: 0; }
.sf-hero-logo-shell { width: clamp(92px,12vw,138px); height: clamp(92px,12vw,138px); flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 34px; background: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 24px 55px rgba(0,0,0,.18); backdrop-filter: blur(14px); }
.sf-hero-logo-shell img { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 15px 24px rgba(0,0,0,.26)); animation: sfFloatLogo 4.8s ease-in-out infinite; }
.fallback-icon { display: none; font-size: 2.7rem; color: #fff; }
.logo-fallback .fallback-icon { display: block; }
@keyframes sfFloatLogo { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.sf-hero-kicker { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .85rem; padding: .42rem .78rem; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(14px); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.sf-live-dot { width: 9px; height: 9px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.16); }
.sf-hero-title { margin: 0; color: #fff; font-size: clamp(2.15rem,5vw,4.4rem); line-height: .98; font-weight: 950; letter-spacing: -.065em; text-shadow: 0 18px 42px rgba(0,0,0,.25); }
.sf-hero-subtitle { max-width: 800px; margin: .9rem 0 0; color: rgba(255,255,255,.86); font-size: clamp(.98rem,2vw,1.18rem); line-height: 1.55; font-weight: 650; }
.sf-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.sf-hero-side-panel { min-height: 148px; display: flex; flex-direction: column; justify-content: center; padding: 1rem; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: rgba(15,23,42,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.10); backdrop-filter: blur(16px); }
.sf-panel-label, .sf-panel-note { color: rgba(255,255,255,.76); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.sf-panel-value { margin: .2rem 0; color: #fff; font-size: clamp(1.35rem,3vw,2.1rem); font-weight: 950; letter-spacing: -.045em; }
.sf-preview-banner { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; padding: .85rem 1rem; border: 1px solid rgba(245,158,11,.25); border-radius: 18px; background: rgba(245,158,11,.13); color: var(--sf-text); font-weight: 800; }
.sf-preview-banner i { color: #f59e0b; }
.sf-preview-banner a { margin-left: auto; color: var(--primary-color); font-weight: 950; }


/* Footer */
/* Footer */
.sf-footer { flex-shrink: 0; margin-top: 1.4rem; padding: 1.25rem 0; border-top: 1px solid var(--sf-border); background: color-mix(in srgb, var(--sf-surface) 92%, transparent); color: var(--sf-muted); backdrop-filter: blur(14px); }
.sf-footer-brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--sf-text); font-weight: 950; letter-spacing: -.035em; }
.sf-footer-meta { color: var(--sf-muted); font-weight: 760; }


/* Common responsive shell */
@media (max-width: 991px) {
  :root { --sf-navbar-height: 70px; }
  .sf-navbar { min-height: 70px; }
  .sf-navbar .navbar-collapse { margin-top: .9rem; padding: .85rem; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: rgba(15,23,42,.18); backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgba(255,255,255,.10); }
  .sf-nav-pill { justify-content: center; width: 100%; margin: .12rem 0; border-radius: 16px; }
  .sf-mega-menu { position: static !important; width: 100%; min-width: 0; margin-top: .35rem !important; }
  .sf-hero-content { grid-template-columns: 1fr; }
  .sf-hero-main { align-items: flex-start; }
  .sf-hero-side-panel { min-height: 0; }
}
@media (max-width: 768px) {
  .sf-main-content > .container-fluid { padding-left: .75rem; padding-right: .75rem; }
  .sf-brand-logo-shell { width: 42px; height: 42px; flex-basis: 42px; border-radius: 15px; }
  .sf-brand-logo-shell img { width: 34px; height: 34px; }
  .sf-brand-subtitle { display: none; }
  .sf-hero-main { flex-direction: column; }
  .sf-hero-logo-shell { width: 86px; height: 86px; border-radius: 26px; }
  .sf-hero-title { font-size: clamp(2rem,12vw,3.2rem); }
}
@media (max-width: 430px) {
  .sf-brand-title { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
  .sf-hero-content { padding: 1rem; }
}

.locked-league,.dashboard-action-card.disabled-card{position:relative;opacity:.78}.locked-league:after,.dashboard-action-card.disabled-card:after{content:"\f023";font-family:"Font Awesome 6 Free";font-weight:900;position:absolute;right:14px;top:14px;width:34px;height:34px;display:grid;place-items:center;border-radius:13px;background:rgba(15,23,42,.72);color:#fff}.sf-participation-modal .modal-content{border:1px solid rgba(255,255,255,.12);border-radius:28px;background:var(--sf-surface,rgba(255,255,255,.96));color:var(--sf-text,#111827);box-shadow:0 30px 90px rgba(15,23,42,.28);overflow:hidden}.sf-participation-modal .modal-header{background:var(--theme-gradient-135);color:#fff}.sf-participation-modal .modal-title{font-weight:950;letter-spacing:-.04em}.modal-kicker{font-size:.72rem;font-weight:950;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.75)}.admin-contact-card,.admin-contact-grid span{display:flex;align-items:center;gap:.55rem;padding:.8rem;border:1px solid var(--sf-border,rgba(15,23,42,.1));border-radius:16px;background:var(--sf-surface-2,rgba(248,250,252,.96));font-weight:850}.admin-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:.6rem}@media(max-width:560px){.admin-contact-grid{grid-template-columns:1fr}}

/* =========================================================
   Notification Bell Pro
   ========================================================= */
.sf-notification-nav { position: relative; }
.sf-notification-bell {
  position: relative;
  width: 46px;
  height: 46px;
  display: inline-grid !important;
  place-items: center;
  margin-right: .45rem;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 12px 24px rgba(0,0,0,.10);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.sf-notification-bell:hover,
.sf-notification-bell:focus {
  transform: translateY(-1px);
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
}
.sf-notification-bell.has-unread i { animation: sfBellRing 1.8s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes sfBellRing {
  0%, 58%, 100% { transform: rotate(0deg); }
  8% { transform: rotate(14deg); }
  16% { transform: rotate(-12deg); }
  24% { transform: rotate(8deg); }
  32% { transform: rotate(-6deg); }
  42% { transform: rotate(3deg); }
}
.sf-notification-badge {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .34rem;
  border: 2px solid rgba(255,255,255,.90);
  border-radius: 999px;
  background: linear-gradient(135deg,#ef4444,#b91c1c);
  color: #fff;
  font-size: .68rem;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(185,28,28,.34);
}
.sf-notification-menu {
  width: min(430px, calc(100vw - 24px));
  max-height: min(78vh, 680px);
  overflow: auto;
}
.sf-notification-heading {
  display: grid !important;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
}
.sf-notification-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 .55rem;
  border-radius: 999px;
  background: linear-gradient(135deg,#ef4444,#b91c1c);
  color: #fff;
  font-size: .78rem;
  font-weight: 950;
}
.sf-notification-item {
  position: relative;
  display: grid !important;
  grid-template-columns: 42px 1fr;
  gap: .75rem;
  align-items: start;
  min-height: 72px;
  margin: .28rem 0;
  padding: .78rem !important;
  border: 1px solid transparent;
  border-radius: 18px !important;
  white-space: normal !important;
}
.sf-notification-item.is-unread {
  border-color: color-mix(in srgb, var(--primary-color) 24%, transparent);
  background: color-mix(in srgb, var(--primary-color) 8%, transparent) !important;
}
.sf-notification-item.is-unread::before {
  content: "";
  position: absolute;
  left: .35rem;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--secondary-color);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--secondary-color) 14%, transparent);
}
.sf-notification-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--theme-gradient-135);
  color: #fff;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--primary-color) 20%, transparent);
}
.sf-notification-item.success .sf-notification-icon { background: linear-gradient(135deg,#16a34a,#22c55e); }
.sf-notification-item.warning .sf-notification-icon { background: linear-gradient(135deg,#f59e0b,#f97316); }
.sf-notification-item.danger .sf-notification-icon { background: linear-gradient(135deg,#ef4444,#b91c1c); }
.sf-notification-item.king .sf-notification-icon { background: linear-gradient(135deg,#fbbf24,#b45309); }
.sf-notification-item.important .sf-notification-icon { background: linear-gradient(135deg,#8b5cf6,#2563eb); }
.sf-notification-copy {
  display: grid;
  gap: .18rem;
  min-width: 0;
}
.sf-notification-copy strong {
  color: var(--sf-text, #111827);
  font-size: .92rem;
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -.025em;
}
.sf-notification-copy small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--sf-muted, #64748b);
  font-size: .78rem;
  line-height: 1.35;
  font-weight: 700;
}
.sf-notification-copy em {
  color: var(--primary-color);
  font-size: .68rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sf-notification-actions {
  display: flex;
  gap: .5rem;
  padding: .35rem .2rem .1rem;
}
.sf-notification-actions form { margin: 0; }
.sf-notification-view-all,
.sf-notification-read-all {
  min-height: 38px;
  border-radius: 999px !important;
  font-size: .78rem;
  font-weight: 900 !important;
}
.sf-notification-view-all {
  background: var(--theme-gradient-135) !important;
  color: #fff !important;
  border: 0 !important;
}
.sf-notification-read-all {
  border: 1px solid var(--sf-border, rgba(15,23,42,.10)) !important;
  background: var(--sf-surface-2, #f8fafc) !important;
  color: var(--sf-text, #111827) !important;
}
.sf-notification-empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: .35rem;
  padding: 1.4rem .9rem;
  color: var(--sf-muted, #64748b);
}
.sf-notification-empty i { font-size: 2rem; color: var(--primary-color); }
.sf-notification-empty strong { color: var(--sf-text, #111827); font-weight: 950; }
.sf-notification-empty small { max-width: 300px; font-weight: 700; }
.sf-notification-copy strong,
.sf-notification-empty strong { color: #f8fafc !important; }
@media (max-width: 991px) {
  .sf-notification-bell { width: 100%; justify-content: center; display: inline-flex !important; gap: .5rem; border-radius: 16px !important; }
  .sf-notification-bell::after { content: "Notificaciones"; font-weight: 850; }
  .sf-notification-menu { width: 100%; max-height: none; }
  .sf-notification-actions { flex-direction: column; }
  .sf-notification-actions .btn { width: 100%; }
}

/* =========================================================
   Mobile Sportsbook Navigation · Bottom App Bar
   ========================================================= */
.sf-mobile-top-actions,
.sf-mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
  :root { --sf-mobile-bottom-height: 86px; --sf-navbar-height: 62px; }

  body.sf-user-body[data-has-user="true"] {
    padding-bottom: calc(var(--sf-mobile-bottom-height) + env(safe-area-inset-bottom, 0px));
  }

  .sf-navbar {
    min-height: var(--sf-navbar-height);
    border-bottom-color: rgba(255,255,255,0.08);
    background: rgba(8, 15, 30, 0.96) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 34px rgba(0,0,0,0.24);
  }

  .sf-navbar::before {
    background:
      radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--primary-color) 28%, transparent), transparent 32%),
      radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--secondary-color) 20%, transparent), transparent 34%);
  }

  .sf-navbar .container-fluid {
    min-height: var(--sf-navbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-left: .85rem !important;
    padding-right: .85rem !important;
  }

  .sf-brand { gap: .55rem; }
  .sf-brand-logo-shell { width: 44px; height: 44px; flex-basis: 44px; border-radius: 16px; }
  .sf-brand-logo-shell img { width: 36px; height: 36px; }
  .sf-brand-title { font-size: 1.02rem; letter-spacing: -.045em; }
  .sf-brand-subtitle { display: none; }

  .sf-navbar-toggler,
  #sfMainNav { display: none !important; }

  .sf-mobile-top-actions {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
  }

  .sf-mobile-top-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 17px;
    background: rgba(255,255,255,.08);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 22px rgba(0,0,0,.18);
  }

  .sf-mobile-top-btn i { font-size: 1.02rem; }
  .sf-mobile-top-btn span {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border: 2px solid #08101f;
    border-radius: 999px;
    background: #ef174f;
    color: #fff;
    font-size: .66rem;
    font-weight: 950;
    line-height: 1;
  }

  .sf-mobile-profile-btn { overflow: hidden; padding: 0; }
  .sf-mobile-profile-btn img { width: 100%; height: 100%; object-fit: cover; }

  .sf-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100040;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .12rem;
    height: calc(var(--sf-mobile-bottom-height) + env(safe-area-inset-bottom, 0px));
    padding: .55rem .55rem calc(.55rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255,255,255,.08);
    background:
      radial-gradient(circle at 50% -35%, color-mix(in srgb, var(--primary-color) 30%, transparent), transparent 34%),
      linear-gradient(180deg, rgba(10,18,35,.96), rgba(7,12,24,.99));
    box-shadow: 0 -18px 48px rgba(0,0,0,.36);
    backdrop-filter: blur(22px);
  }

  .sf-mobile-bottom-nav::before {
    content: "";
    position: absolute;
    left: 50%;
    top: .28rem;
    transform: translateX(-50%);
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
  }

  .sf-mobile-nav-item {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .28rem;
    padding: .42rem .25rem;
    border: 1px solid transparent;
    border-radius: 22px;
    color: rgba(226,232,240,.64);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: -.02em;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .sf-mobile-nav-item:hover,
  .sf-mobile-nav-item:focus {
    color: #fff;
    transform: translateY(-1px);
  }

  .sf-mobile-nav-item.active {
    color: #f8fafc;
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  }

  .sf-mobile-nav-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255,255,255,.07);
    color: currentColor;
  }

  .sf-mobile-nav-item.active .sf-mobile-nav-icon {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 84%, #16e8f3), color-mix(in srgb, var(--secondary-color) 76%, #16e8f3));
    color: #fff;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--primary-color) 28%, transparent);
  }

  .sf-mobile-final-item.active .sf-mobile-nav-icon,
  .sf-mobile-final-item .sf-mobile-nav-icon {
    background: linear-gradient(135deg, #f59e0b, #facc15);
    color: #101827;
  }

  .sf-mobile-logo-chip {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-top: -.18rem;
    border-radius: 999px;
    background:
      radial-gradient(circle at 30% 20%, rgba(255,255,255,.32), transparent 35%),
      linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 74%, #12d6e8), color-mix(in srgb, var(--secondary-color) 64%, #12d6e8));
    border: 3px solid rgba(255,255,255,.18);
    box-shadow: 0 12px 26px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.2);
  }

  .sf-mobile-logo-chip img { width: 34px; height: 34px; object-fit: contain; }
  .sf-mobile-logo-item.active .sf-mobile-logo-chip { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(0,0,0,.30), 0 0 0 5px color-mix(in srgb, var(--primary-color) 18%, transparent); }

  .sf-footer {
    display: block;
    padding-bottom: 96px;
    text-align: center;
  }
  .sf-alert-stack { top: calc(var(--sf-navbar-height) + 10px); right: 10px; width: calc(100vw - 20px); }
}

@media (max-width: 380px) {
  .sf-mobile-bottom-nav { padding-left: .35rem; padding-right: .35rem; }
  .sf-mobile-nav-item { font-size: .66rem; }
  .sf-mobile-nav-icon { width: 34px; height: 34px; }
  .sf-mobile-logo-chip { width: 45px; height: 45px; }
}

/* Ajustes finales mobile sportsbook y accesos superiores */
.sf-top-icon-link{width:42px;height:42px;display:grid!important;place-items:center;border:1px solid var(--sf-border);border-radius:16px;background:var(--sf-surface-2);color:var(--sf-text)!important;margin:0 .18rem;transition:transform .18s ease,background .18s ease,color .18s ease}.sf-top-icon-link:hover,.sf-top-icon-link.active{transform:translateY(-1px);background:var(--theme-gradient-135);color:#fff!important}.sf-mobile-top-actions .dropdown{display:inline-flex}.sf-mobile-top-actions .dropdown-menu{min-width:310px}.sf-mobile-top-btn{border:1px solid var(--sf-border)!important}.sf-mobile-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}.sf-mobile-nav-item span:last-child{font-size:.72rem}.sf-menu-heading.compact{padding-top:.55rem;padding-bottom:.35rem}@media(min-width:992px){.sf-mobile-top-actions{display:none!important}}@media(max-width:991px){.sf-user-dropdown{display:none!important}.sf-footer{padding-bottom:96px}.sf-main-content{padding-bottom:82px}.sf-top-quick-link{display:none!important}}

/* Evento Final visible y claro en navegación principal */
.sf-final-nav-pill {
  position: relative;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(255,255,255,0.10)) !important;
  border-color: rgba(245, 158, 11, 0.36) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 10px 24px rgba(245, 158, 11, 0.16);
}
.sf-final-nav-pill i { color: #fbbf24; }
.sf-final-nav-pill.active,
.show > .sf-final-nav-pill {
  background: linear-gradient(135deg, #f59e0b, var(--secondary-color)) !important;
  border-color: rgba(255,255,255,0.34) !important;
  color: #fff !important;
}
.sf-final-nav-main .dropdown-menu { min-width: 340px; }

@media (max-width: 991px) {
  .sf-mobile-final-quickbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 82px;
    z-index: 1051;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: .55rem;
    pointer-events: none;
  }
  .sf-mobile-final-chip {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: .62rem;
    min-height: 54px;
    padding: .58rem .75rem;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 19px;
    background: linear-gradient(135deg, #f59e0b, var(--secondary-color));
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 18px 42px rgba(15,23,42,.28);
    backdrop-filter: blur(14px);
  }
  .sf-mobile-final-chip.secondary {
    background: var(--theme-gradient-135);
  }
  .sf-mobile-final-chip.active {
    outline: 2px solid rgba(255,255,255,0.42);
    outline-offset: 2px;
  }
  .sf-mobile-final-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,0.18);
  }
  .sf-mobile-final-chip strong,
  .sf-mobile-final-chip small {
    display: block;
    line-height: 1.05;
  }
  .sf-mobile-final-chip strong { font-size: .78rem; font-weight: 950; }
  .sf-mobile-final-chip small { margin-top: .2rem; color: rgba(255,255,255,.78); font-size: .66rem; font-weight: 780; }
  .sf-main-content { padding-bottom: 132px; }
  .sf-footer { padding-bottom: 146px; }
}

@media (max-width: 420px) {
  .sf-mobile-final-quickbar { grid-template-columns: 1fr; bottom: 80px; }
  .sf-mobile-final-chip { min-height: 48px; }
}

/* =========================================================
   Dashboard: insignias de conferencia / confederación
   ========================================================= */
.team-group-tab-logo {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--sf-border);
  overflow: hidden;
}
.team-group-tab-logo img { width: 88%; height: 88%; object-fit: contain; }
.team-group-tab-logo > i { display: none; color: var(--primary-color); }
.team-group-tab-logo.logo-missing > i { display: block; }
.team-group-heading-lockup { display: flex; align-items: center; gap: .8rem; }
.team-group-heading-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid var(--sf-border);
  background: var(--sf-surface-2);
  overflow: hidden;
  color: var(--primary-color);
}
.team-group-heading-logo img { width: 82%; height: 82%; object-fit: contain; }
.team-group-heading-logo > i { display: none; }
.team-group-heading-logo.logo-missing > i { display: block; }
.team-group-heading-copy { display: grid; gap: .1rem; }
.team-group-heading-copy > span { color: var(--sf-muted); font-size: .82rem; font-weight: 750; }
.sf-team-profile-card { position: relative; }
@media (max-width: 576px) {
  .team-group-heading-logo { width: 46px; height: 46px; flex-basis: 46px; }
}

/* =========================================================
   Navbar móvil: menús desplegables verticales sin deformar layout
   ========================================================= */
@media (max-width: 991.98px) {
  .sf-navbar .container-fluid { position: relative; }
  .sf-mobile-top-actions { position: static !important; }
  .sf-mobile-top-actions .dropdown { position: static !important; }
  .sf-mobile-top-actions .dropdown-menu.sf-mega-menu {
    position: absolute !important;
    inset: auto 12px auto 12px !important;
    top: calc(100% + 8px) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: min(68vh, 620px);
    overflow-y: auto !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 100500 !important;
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(2, 8, 23, .46);
  }
  .sf-mobile-top-actions .dropdown-menu.sf-user-menu,
  .sf-mobile-top-actions .sf-mobile-final-dropdown .dropdown-menu {
    display: none;
  }
  .sf-mobile-top-actions .dropdown-menu.show {
    display: block !important;
  }
  .sf-mobile-top-actions .sf-menu-card {
    min-height: 72px;
    white-space: normal;
  }
  .sf-mobile-top-actions .sf-menu-card-copy strong,
  .sf-mobile-top-actions .sf-menu-card-copy small {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .sf-mobile-top-actions .sf-user-menu .sf-menu-heading {
    position: sticky;
    top: 0;
    z-index: 2;
    background: inherit;
  }
}

/* =========================================================
   Mobile Floating Glass Navigation · Fix 11
   Barra superior e inferior tipo burbuja translúcida.
   Ambas se ocultan por inactividad / scroll hacia abajo y
   reaparecen al desplazar hacia arriba o tocar los bordes.
   ========================================================= */
@media (max-width: 768px) {
  :root {
    --sf-navbar-height: 62px;
    --sf-mobile-bottom-height: 76px;
    --sf-mobile-nav-gap: 10px;
  }

  html {
    scroll-padding-top: calc(var(--sf-navbar-height) + 24px);
  }

  body.sf-user-body[data-has-user="true"] {
    padding-bottom: calc(var(--sf-mobile-bottom-height) + 22px + env(safe-area-inset-bottom, 0px));
  }

  body.sf-user-body[data-has-user="true"] .sf-main-content {
    padding-top: calc(var(--sf-navbar-height) + 18px);
    padding-bottom: calc(var(--sf-mobile-bottom-height) + 28px + env(safe-area-inset-bottom, 0px));
  }

  .sf-navbar[data-sf-auto-nav="top"] {
    position: fixed !important;
    top: max(8px, env(safe-area-inset-top, 0px)) !important;
    left: var(--sf-mobile-nav-gap);
    right: var(--sf-mobile-nav-gap);
    width: auto;
    min-height: var(--sf-navbar-height);
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 28px;
    overflow: visible;
    background:
      linear-gradient(135deg, rgba(9,16,31,.82), rgba(13,24,43,.72)) !important;
    box-shadow:
      0 20px 56px rgba(0,0,0,.34),
      inset 0 1px 0 rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(26px) saturate(155%);
    backdrop-filter: blur(26px) saturate(155%);
    transform: translate3d(0,0,0);
    opacity: 1;
    transition:
      transform .34s cubic-bezier(.2,.8,.2,1),
      opacity .26s ease,
      box-shadow .26s ease;
    will-change: transform, opacity;
  }

  .sf-navbar[data-sf-auto-nav="top"]::before {
    border-radius: inherit;
    background:
      radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--primary-color) 34%, transparent), transparent 38%),
      radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--secondary-color) 26%, transparent), transparent 40%);
  }

  .sf-navbar[data-sf-auto-nav="top"] .container-fluid {
    min-height: var(--sf-navbar-height);
    padding-left: .72rem !important;
    padding-right: .62rem !important;
  }

  .sf-navbar[data-sf-auto-nav="top"] .sf-brand-logo-shell {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 15px;
    background: rgba(255,255,255,.12);
  }

  .sf-navbar[data-sf-auto-nav="top"] .sf-brand-logo-shell img {
    width: 34px;
    height: 34px;
  }

  .sf-navbar[data-sf-auto-nav="top"] .sf-brand-title {
    font-size: .98rem;
  }

  .sf-mobile-top-actions {
    gap: .38rem;
  }

  .sf-mobile-top-btn {
    width: 40px;
    height: 40px;
    border-radius: 15px;
    border-color: rgba(255,255,255,.12) !important;
    background: rgba(255,255,255,.075);
    color: #fff;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.10),
      0 10px 22px rgba(0,0,0,.18);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .sf-mobile-top-btn:active {
    transform: scale(.94);
  }

  .sf-mobile-bottom-nav[data-sf-auto-nav="bottom"] {
    position: fixed;
    left: var(--sf-mobile-nav-gap);
    right: var(--sf-mobile-nav-gap);
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    width: auto;
    height: var(--sf-mobile-bottom-height);
    padding: .42rem .45rem;
    gap: .2rem;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 30px;
    overflow: hidden;
    background:
      radial-gradient(circle at 50% -45%, color-mix(in srgb, var(--primary-color) 30%, transparent), transparent 44%),
      linear-gradient(180deg, rgba(10,17,31,.82), rgba(7,12,24,.88));
    box-shadow:
      0 22px 62px rgba(0,0,0,.42),
      inset 0 1px 0 rgba(255,255,255,.13);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    backdrop-filter: blur(28px) saturate(160%);
    transform: translate3d(0,0,0);
    opacity: 1;
    transition:
      transform .34s cubic-bezier(.2,.8,.2,1),
      opacity .26s ease,
      box-shadow .26s ease;
    will-change: transform, opacity;
  }

  .sf-mobile-bottom-nav[data-sf-auto-nav="bottom"]::before {
    display: none;
  }

  .sf-mobile-nav-item {
    min-height: 58px;
    gap: .14rem;
    padding: .32rem .14rem;
    border-radius: 22px;
    color: rgba(226,232,240,.72);
    font-size: .64rem;
  }

  .sf-mobile-nav-icon {
    width: 34px;
    height: 34px;
    border-radius: 14px;
    background: transparent;
    font-size: 1rem;
  }

  .sf-mobile-nav-item span:last-child {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .62rem;
    line-height: 1;
  }

  .sf-mobile-nav-item.active {
    color: #fff;
    border-color: rgba(255,255,255,.13);
    background: rgba(255,255,255,.115);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.12),
      0 10px 24px rgba(0,0,0,.18);
  }

  .sf-mobile-nav-item.active .sf-mobile-nav-icon {
    background: linear-gradient(135deg,
      color-mix(in srgb, var(--primary-color) 84%, #22d3ee),
      color-mix(in srgb, var(--secondary-color) 78%, #22d3ee));
    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary-color) 30%, transparent);
  }

  .sf-mobile-final-item .sf-mobile-nav-icon,
  .sf-mobile-final-item.active .sf-mobile-nav-icon {
    background: linear-gradient(135deg, #f59e0b, #fde047);
    color: #111827;
    box-shadow: 0 10px 24px rgba(245,158,11,.28);
  }

  body.sf-mobile-nav-hidden .sf-navbar[data-sf-auto-nav="top"] {
    transform: translate3d(0, calc(-100% - 26px), 0);
    opacity: 0;
    pointer-events: none;
  }

  body.sf-mobile-nav-hidden .sf-mobile-bottom-nav[data-sf-auto-nav="bottom"] {
    transform: translate3d(0, calc(100% + 28px), 0);
    opacity: 0;
    pointer-events: none;
  }

  body.sf-mobile-nav-visible .sf-navbar[data-sf-auto-nav="top"],
  body.sf-mobile-nav-visible .sf-mobile-bottom-nav[data-sf-auto-nav="bottom"] {
    pointer-events: auto;
  }

  .sf-alert-stack {
    top: calc(var(--sf-navbar-height) + 22px);
  }

  .sf-mobile-top-actions .dropdown-menu.sf-mega-menu {
    top: calc(100% + 14px) !important;
    border: 1px solid rgba(255,255,255,.13);
    background: color-mix(in srgb, var(--sf-surface) 88%, transparent);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    backdrop-filter: blur(26px) saturate(150%);
  }
}

@media (max-width: 420px) {
  .sf-navbar[data-sf-auto-nav="top"] .sf-brand-copy {
    display: none;
  }

  .sf-navbar[data-sf-auto-nav="top"] .container-fluid {
    justify-content: space-between;
  }

  .sf-mobile-top-actions {
    margin-left: 0;
  }

  .sf-mobile-nav-item span:last-child {
    font-size: .58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-navbar[data-sf-auto-nav="top"],
  .sf-mobile-bottom-nav[data-sf-auto-nav="bottom"] {
    transition: none !important;
  }
}


/* =========================================================
   Desktop Hover Rail Navigation · Fix 12
   Rail compacto estilo app; al pasar el mouse o enfocar se
   expande sin mover el contenido. En móvil conserva burbujas.
   ========================================================= */
@media (min-width: 992px) {
  body.sf-user-body[data-has-user="true"] {
    --sf-desktop-rail-width: 88px;
    --sf-desktop-rail-expanded: 306px;
  }

  body.sf-user-body[data-has-user="true"] .sf-app-shell {
    padding-left: calc(var(--sf-desktop-rail-width) + 18px);
  }

  body.sf-user-body[data-has-user="true"] .sf-main-content,
  body.sf-user-body[data-has-user="true"] .sf-footer {
    margin-left: 0;
  }

  body.sf-user-body[data-has-user="true"] .sf-navbar[data-sf-auto-nav="top"] {
    position: fixed !important;
    inset: 12px auto 12px 12px !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    bottom: 12px !important;
    width: var(--sf-desktop-rail-width);
    height: calc(100vh - 24px);
    min-height: 0;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 30px;
    overflow: hidden;
    background:
      radial-gradient(circle at 32% 0%, color-mix(in srgb, var(--primary-color) 34%, transparent), transparent 28%),
      linear-gradient(180deg, rgba(8,14,27,.94), rgba(8,13,24,.90)) !important;
    box-shadow:
      0 26px 72px rgba(0,0,0,.38),
      inset 0 1px 0 rgba(255,255,255,.12);
    -webkit-backdrop-filter: blur(28px) saturate(155%);
    backdrop-filter: blur(28px) saturate(155%);
    transition: width .28s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease;
    z-index: 10040 !important;
  }

  body.sf-user-body[data-has-user="true"] .sf-navbar[data-sf-auto-nav="top"]:hover,
  body.sf-user-body[data-has-user="true"] .sf-navbar[data-sf-auto-nav="top"]:focus-within,
  body.sf-user-body[data-has-user="true"].sf-desktop-rail-open .sf-navbar[data-sf-auto-nav="top"] {
    width: var(--sf-desktop-rail-expanded);
    box-shadow:
      0 32px 90px rgba(0,0,0,.48),
      inset 0 1px 0 rgba(255,255,255,.14);
  }

  body.sf-user-body[data-has-user="true"] .sf-navbar[data-sf-auto-nav="top"]::before {
    border-radius: inherit;
    background:
      radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--primary-color) 38%, transparent), transparent 28%),
      radial-gradient(circle at 90% 22%, color-mix(in srgb, var(--secondary-color) 22%, transparent), transparent 32%);
  }

  body.sf-user-body[data-has-user="true"] .sf-navbar[data-sf-auto-nav="top"] .container-fluid {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: .55rem;
    padding: .78rem !important;
  }

  body.sf-user-body[data-has-user="true"] .sf-navbar-toggler,
  body.sf-user-body[data-has-user="true"] .sf-mobile-top-actions {
    display: none !important;
  }

  body.sf-user-body[data-has-user="true"] .sf-brand {
    width: 100%;
    min-height: 58px;
    display: flex;
    justify-content: flex-start;
    gap: .72rem;
    padding: .28rem;
    border-radius: 20px;
    overflow: hidden;
  }

  body.sf-user-body[data-has-user="true"] .sf-brand-logo-shell {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 18px;
  }

  body.sf-user-body[data-has-user="true"] .sf-brand-logo-shell img {
    width: 44px;
    height: 44px;
  }

  body.sf-user-body[data-has-user="true"] .sf-brand-copy,
  body.sf-user-body[data-has-user="true"] .sf-nav-pill > span,
  body.sf-user-body[data-has-user="true"] .sf-nav-user-copy,
  body.sf-user-body[data-has-user="true"] .sf-top-icon-link::after,
  body.sf-user-body[data-has-user="true"] .sf-notification-bell::after {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transform: translateX(-8px);
    transition: opacity .18s ease .03s, transform .2s ease .03s, max-width .24s ease;
  }

  body.sf-user-body[data-has-user="true"] .sf-navbar:hover .sf-brand-copy,
  body.sf-user-body[data-has-user="true"] .sf-navbar:focus-within .sf-brand-copy,
  body.sf-user-body[data-has-user="true"] .sf-navbar:hover .sf-nav-pill > span,
  body.sf-user-body[data-has-user="true"] .sf-navbar:focus-within .sf-nav-pill > span,
  body.sf-user-body[data-has-user="true"] .sf-navbar:hover .sf-nav-user-copy,
  body.sf-user-body[data-has-user="true"] .sf-navbar:focus-within .sf-nav-user-copy,
  body.sf-user-body[data-has-user="true"] .sf-navbar:hover .sf-top-icon-link::after,
  body.sf-user-body[data-has-user="true"] .sf-navbar:focus-within .sf-top-icon-link::after,
  body.sf-user-body[data-has-user="true"] .sf-navbar:hover .sf-notification-bell::after,
  body.sf-user-body[data-has-user="true"] .sf-navbar:focus-within .sf-notification-bell::after,
  body.sf-user-body[data-has-user="true"].sf-desktop-rail-open .sf-brand-copy,
  body.sf-user-body[data-has-user="true"].sf-desktop-rail-open .sf-nav-pill > span,
  body.sf-user-body[data-has-user="true"].sf-desktop-rail-open .sf-nav-user-copy,
  body.sf-user-body[data-has-user="true"].sf-desktop-rail-open .sf-top-icon-link::after,
  body.sf-user-body[data-has-user="true"].sf-desktop-rail-open .sf-notification-bell::after {
    max-width: 210px;
    opacity: 1;
    transform: translateX(0);
  }

  body.sf-user-body[data-has-user="true"] #sfMainNav {
    display: flex !important;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: .2rem 0 .1rem;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.18) transparent;
  }

  body.sf-user-body[data-has-user="true"] #sfMainNav::-webkit-scrollbar { width: 6px; }
  body.sf-user-body[data-has-user="true"] #sfMainNav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255,255,255,.18);
  }

  body.sf-user-body[data-has-user="true"] .sf-nav-list,
  body.sf-user-body[data-has-user="true"] .sf-nav-user {
    width: 100%;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: .34rem;
    margin: 0 !important;
  }

  body.sf-user-body[data-has-user="true"] .sf-nav-user {
    margin-top: auto !important;
    padding-top: .75rem;
    border-top: 1px solid rgba(255,255,255,.10);
  }

  body.sf-user-body[data-has-user="true"] .sf-nav-list > .nav-item,
  body.sf-user-body[data-has-user="true"] .sf-nav-user > .nav-item {
    width: 100%;
  }

  body.sf-user-body[data-has-user="true"] .sf-nav-pill,
  body.sf-user-body[data-has-user="true"] .sf-top-icon-link,
  body.sf-user-body[data-has-user="true"] .sf-notification-bell,
  body.sf-user-body[data-has-user="true"] .sf-user-dropdown {
    width: 100% !important;
    min-width: 0;
    min-height: 50px;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: .82rem;
    margin: 0 !important;
    padding: .54rem .72rem !important;
    border: 1px solid transparent !important;
    border-radius: 17px !important;
    color: rgba(241,245,249,.82) !important;
    background: transparent !important;
    box-shadow: none;
    overflow: hidden;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  }

  body.sf-user-body[data-has-user="true"] .sf-nav-pill > i,
  body.sf-user-body[data-has-user="true"] .sf-top-icon-link > i,
  body.sf-user-body[data-has-user="true"] .sf-notification-bell > i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 1.03rem;
    background: rgba(255,255,255,.065);
    transition: background .18s ease, box-shadow .18s ease, color .18s ease;
  }

  body.sf-user-body[data-has-user="true"] .sf-nav-pill:hover,
  body.sf-user-body[data-has-user="true"] .sf-nav-pill:focus,
  body.sf-user-body[data-has-user="true"] .sf-top-icon-link:hover,
  body.sf-user-body[data-has-user="true"] .sf-top-icon-link:focus,
  body.sf-user-body[data-has-user="true"] .sf-notification-bell:hover,
  body.sf-user-body[data-has-user="true"] .sf-notification-bell:focus,
  body.sf-user-body[data-has-user="true"] .sf-user-dropdown:hover,
  body.sf-user-body[data-has-user="true"] .sf-user-dropdown:focus {
    color: #fff !important;
    background: rgba(255,255,255,.09) !important;
    border-color: rgba(255,255,255,.10) !important;
    transform: none;
  }

  body.sf-user-body[data-has-user="true"] .sf-nav-pill.active,
  body.sf-user-body[data-has-user="true"] .show > .sf-nav-pill,
  body.sf-user-body[data-has-user="true"] .sf-top-icon-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.12) !important;
    border-color: rgba(255,255,255,.13) !important;
  }

  body.sf-user-body[data-has-user="true"] .sf-nav-pill.active > i,
  body.sf-user-body[data-has-user="true"] .show > .sf-nav-pill > i,
  body.sf-user-body[data-has-user="true"] .sf-top-icon-link.active > i {
    color: var(--text-on-primary, #fff);
    background: var(--theme-gradient-135);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary-color) 28%, transparent);
  }

  body.sf-user-body[data-has-user="true"] .sf-final-nav-pill > i {
    color: #111827;
    background: linear-gradient(135deg, #f59e0b, #fde047);
    box-shadow: 0 10px 24px rgba(245,158,11,.22);
  }

  body.sf-user-body[data-has-user="true"] .sf-top-icon-link::after { content: "Reglas"; font-weight: 850; }
  body.sf-user-body[data-has-user="true"] .sf-notification-bell::after { content: "Notificaciones"; font-weight: 850; }

  body.sf-user-body[data-has-user="true"] .sf-nav-avatar-shell {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 15px;
  }

  body.sf-user-body[data-has-user="true"] .sf-user-dropdown.dropdown-toggle::after,
  body.sf-user-body[data-has-user="true"] .sf-nav-pill.dropdown-toggle::after {
    margin-left: auto;
    opacity: 0;
    transition: opacity .18s ease;
  }

  body.sf-user-body[data-has-user="true"] .sf-navbar:hover .dropdown-toggle::after,
  body.sf-user-body[data-has-user="true"] .sf-navbar:focus-within .dropdown-toggle::after,
  body.sf-user-body[data-has-user="true"].sf-desktop-rail-open .dropdown-toggle::after {
    opacity: .78;
  }

  body.sf-user-body[data-has-user="true"] .sf-navbar .dropdown-menu.show {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: 320px;
    margin: .38rem 0 .55rem !important;
    overflow-y: auto;
    border-radius: 18px;
    background: rgba(15,23,42,.88) !important;
    border-color: rgba(255,255,255,.10) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 16px 34px rgba(0,0,0,.22);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  body.sf-user-body[data-has-user="true"] .sf-navbar .sf-menu-card {
    grid-template-columns: 38px 1fr;
    min-height: 56px;
    padding: .56rem !important;
    border-radius: 15px;
  }

  body.sf-user-body[data-has-user="true"] .sf-navbar .sf-menu-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  body.sf-user-body[data-has-user="true"] .sf-navbar .sf-menu-card-copy strong { color: #f8fafc; }
  body.sf-user-body[data-has-user="true"] .sf-navbar .sf-menu-card-copy small { color: #aab6c8; }
  body.sf-user-body[data-has-user="true"] .sf-navbar .sf-menu-heading strong { color: #f8fafc; }
  body.sf-user-body[data-has-user="true"] .sf-navbar .sf-menu-heading small { color: #aab6c8; }

  body.sf-user-body[data-has-user="true"] .sf-notification-badge {
    top: 5px;
    right: 5px;
  }

  body.sf-user-body[data-has-user="true"] .sf-alert-stack {
    top: 18px;
    left: calc(var(--sf-desktop-rail-width) + 30px);
    right: auto;
  }
}

/* En la parte superior de la página la burbuja superior permanece visible.
   Tras la inactividad se oculta únicamente la barra inferior. */
@media (max-width: 768px) {
  body.sf-at-page-top.sf-mobile-nav-hidden .sf-navbar[data-sf-auto-nav="top"] {
    transform: translate3d(0,0,0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Fix 16: visible third-color details across the common shell. */
.sf-nav-pill.active::after,
.sf-mobile-nav-item.active::after,
.sf-rail-link.active::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--accent-color);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent-color) 52%, transparent);
}
.sf-nav-pill.active { position: relative; }
.sf-nav-pill.active::after { left: 18%; right: 18%; bottom: 3px; height: 3px; }
.sf-mobile-nav-item.active, .sf-rail-link.active { position: relative; }
.sf-mobile-nav-item.active::after { left: 28%; right: 28%; bottom: 5px; height: 3px; }
.sf-rail-link.active::after { left: 5px; top: 24%; bottom: 24%; width: 4px; }
.sf-brand-logo-shell, .sf-nav-avatar-shell {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-color) 24%, transparent), 0 10px 24px rgba(0,0,0,.16);
}

/* Activos de navegación siempre con icono blanco. */
body.sf-user-body[data-has-user="true"] .sf-nav-pill.active > i,
body.sf-user-body[data-has-user="true"] .show > .sf-nav-pill > i,
body.sf-user-body[data-has-user="true"] .sf-top-icon-link.active > i,
body.sf-user-body[data-has-user="true"] .sf-final-nav-pill > i,
.sf-nav-pill.active > i,
.show > .sf-nav-pill > i,
.sf-final-nav-pill i,
.sf-final-nav-pill.active i,
.show > .sf-final-nav-pill i,
.sf-mobile-nav-item.active .sf-mobile-nav-icon,
.sf-mobile-nav-item.active .sf-mobile-nav-icon i,
.sf-mobile-final-item .sf-mobile-nav-icon,
.sf-mobile-final-item .sf-mobile-nav-icon i,
.sf-mobile-final-item.active .sf-mobile-nav-icon,
.sf-mobile-final-item.active .sf-mobile-nav-icon i {
  color: #fff !important;
}

/* Evento Final móvil superior va amarillo; desktop/rail conserva contraste blanco. */
body.sf-user-body[data-has-user="true"] .sf-final-nav-pill > i,
.sf-final-nav-pill i,
.sf-final-nav-pill.active i,
.show > .sf-final-nav-pill i {
  color: #fff !important;
}

.sf-mobile-final-dropdown .sf-mobile-top-btn i {
  color: #fbbf24 !important;
}

/* =========================================================
   Panel atmosphere system · retícula común para todas las vistas
   Conserva el color del tema y evita que los contenedores se vean planos.
   ========================================================= */
body.sf-user-body {
  --sf-panel-grid-line: rgba(148, 163, 184, .065);
  --sf-panel-grid-line-soft: rgba(148, 163, 184, .038);
  --sf-panel-atmosphere: color-mix(in srgb, var(--primary-color) 13%, transparent);
  --sf-panel-atmosphere-2: color-mix(in srgb, var(--secondary-color) 8%, transparent);
  --sf-panel-grid-size: 52px;
}

body.sf-user-body[data-sport="nfl"] {
  --sf-panel-grid-line: rgba(250, 204, 21, .072);
  --sf-panel-atmosphere: rgba(1, 51, 105, .18);
}

body.sf-user-body[data-sport="nba"] {
  --sf-panel-grid-line: rgba(245, 132, 38, .078);
  --sf-panel-atmosphere: rgba(85, 37, 131, .17);
}

body.sf-user-body[data-sport="mlb"] {
  --sf-panel-grid-line: rgba(227, 25, 55, .068);
  --sf-panel-atmosphere: rgba(0, 45, 114, .18);
}

body.sf-user-body[data-sport="world_cup"],
body.sf-user-body[data-sport="soccer"],
body.sf-user-body[data-sport="liga_mx"] {
  --sf-panel-grid-line: rgba(34, 197, 94, .067);
  --sf-panel-atmosphere: rgba(15, 118, 110, .17);
}

.sf-page :is(
  .pro-card,
  .profile-panel,
  .rules-contact-panel,
  .rules-document-panel,
  .rules-terms-panel,
  .prize-stage-section,
  .prize-pool-section,
  .prize-toolbar
),
.notifications-page .notifications-shell,
.final-pro-page :is(
  .final-command-center,
  .final-progress-shell,
  .final-matchup-pro,
  .final-section-rail,
  .final-question-section,
  .final-submit-bar,
  .final-empty-pro,
  .final-ranking-card,
  .final-result-panel,
  .final-matrix-card,
  .final-official-score-card
) {
  background:
    radial-gradient(circle at 8% 0%, var(--sf-panel-atmosphere), transparent 29%),
    radial-gradient(circle at 94% 8%, var(--sf-panel-atmosphere-2), transparent 31%),
    linear-gradient(var(--sf-panel-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--sf-panel-grid-line) 1px, transparent 1px),
    color-mix(in srgb, var(--sf-surface) 97%, #07101f 3%) !important;
  background-size:
    auto,
    auto,
    var(--sf-panel-grid-size) var(--sf-panel-grid-size),
    var(--sf-panel-grid-size) var(--sf-panel-grid-size),
    auto !important;
}

.sf-page :is(
  .summary-card,
  .prize-card,
  .winner-podium-card,
  .quiniela-access-card
),
.notifications-page .notification-row-pro,
.final-pro-page .final-stat-card {
  background:
    radial-gradient(circle at 100% 0%, var(--sf-panel-atmosphere), transparent 42%),
    linear-gradient(var(--sf-panel-grid-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--sf-panel-grid-line-soft) 1px, transparent 1px),
    var(--sf-surface-2) !important;
  background-size: auto, 38px 38px, 38px 38px, auto !important;
}

@media (max-width: 720px) {
  body.sf-user-body { --sf-panel-grid-size: 40px; }
}

@media (prefers-reduced-transparency: reduce) {
  .sf-page :is(.pro-card, .profile-panel),
  .notifications-page .notifications-shell,
  .final-pro-page :is(.final-command-center, .final-question-section) {
    backdrop-filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
