:root {
  --green: #00c853;
  --green-dark: #00952f;
  --green-light: #69f0ae;
  --gold: #ffd600;
  --dark: #0a0f1a;
  --dark2: #111827;
  --dark3: #1a2235;
  --card: #1e2a3a;
  --card2: #243044;
  --text: #f0f4ff;
  --text-muted: #8899bb;
  --blue: #1565c0;
  --red: #e53935;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: var(--dark); color: var(--text); overflow-x: hidden; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; background: rgba(10,15,26,0.85); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(0,200,83,0.15); }
.nav-logo, .footer-logo { display: flex; align-items: center; gap: .6rem; cursor: pointer; text-decoration: none; }
.logo-icon { font-size: 1.6rem; animation: spin 8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo-text { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 2px; color: var(--text); }
.logo-text span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-link { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-link:hover { color: var(--green); }
.btn-admin { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; border: none; padding: .5rem 1.2rem; border-radius: 8px; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .9rem; cursor: pointer; transition: opacity .2s; }
.btn-admin:hover { opacity: .85; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; display: block; transition: .3s; }
.mobile-menu { display: none; position: fixed; top: 65px; left: 0; right: 0; background: var(--dark2); z-index: 99; flex-direction: column; border-bottom: 1px solid rgba(0,200,83,0.2); }
.mobile-menu a { padding: 1rem 2rem; color: var(--text); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.05); transition: color .2s; }
.mobile-menu a:hover { color: var(--green); }
.mobile-menu.open { display: flex; }
@media(max-width:768px){ .nav-links { display: none; } .hamburger { display: flex; } }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(0,149,47,0.25) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(21,101,192,0.2) 0%, transparent 60%), linear-gradient(180deg, #04080f 0%, #0a0f1a 100%); }
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle { position: absolute; width: 3px; height: 3px; background: var(--green); border-radius: 50%; opacity: 0; animation: float-up linear infinite; }
@keyframes float-up { 0%{transform:translateY(100vh) scale(0);opacity:0} 10%{opacity:.6} 90%{opacity:.3} 100%{transform:translateY(-20px) scale(1.5);opacity:0} }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 2rem; margin-top: 4rem; }
.hero-badge { display: inline-block; background: rgba(0,200,83,0.15); border: 1px solid rgba(0,200,83,0.4); color: var(--green); padding: .4rem 1.2rem; border-radius: 20px; font-size: .85rem; font-weight: 600; letter-spacing: 1px; margin-bottom: 1.5rem; }
.hero-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(4rem,12vw,9rem); line-height: .9; color: #fff; text-shadow: 0 0 60px rgba(0,200,83,0.3); }
.hero-title span { color: var(--green); }

/* HERO TITLE AND LOGO CONTAINER */
.hero-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 0.5rem 0 1rem;
  position: relative;
  width: 100%;
}
.hero-logo-stack {
  display: flex;
  align-items: center;
  position: relative;
}
.hero-logo-frame {
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  padding: 0.55rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), inset 0 0 10px rgba(255, 255, 255, 0.02);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  flex-shrink: 0;
}
.hero-logo-stack.left .hero-logo-frame:not(:first-child),
.hero-logo-stack.right .hero-logo-frame:not(:first-child) {
  margin-left: -22px;
}
.hero-logo-frame::before {
  content: ''; position: absolute; inset: -1px; border-radius: 50%; padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.hero-logo-stack.left .hero-logo-frame { animation: float-logo-up 4s ease-in-out infinite; }
.hero-logo-stack.right .hero-logo-frame { animation: float-logo-down 4s ease-in-out infinite; }
.hero-logo-stack .hero-logo-frame:nth-child(1) { animation-delay: 0s; }
.hero-logo-stack .hero-logo-frame:nth-child(2) { animation-delay: 0.4s; }
.hero-logo-stack .hero-logo-frame:nth-child(3) { animation-delay: 0.8s; }
.hero-logo-stack .hero-logo-frame:nth-child(4) { animation-delay: 1.2s; }
.hero-logo-stack .hero-logo-frame:nth-child(5) { animation-delay: 1.6s; }
.hero-logo-stack .hero-logo-frame:nth-child(6) { animation-delay: 2.0s; }

.hero-logo-frame img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25)); transition: transform 0.3s ease; }
.hero-logo-frame:hover {
  transform: translateY(-8px) scale(1.22); z-index: 99 !important;
  border-color: rgba(0, 200, 83, 0.45);
  box-shadow: 0 15px 30px rgba(0, 200, 83, 0.35), inset 0 0 10px rgba(0, 200, 83, 0.15);
  background: rgba(0, 200, 83, 0.02);
}
.hero-logo-stack.right .hero-logo-frame:hover {
  border-color: rgba(30, 136, 229, 0.45);
  box-shadow: 0 15px 30px rgba(30, 136, 229, 0.35), inset 0 0 10px rgba(30, 136, 229, 0.15);
  background: rgba(30, 136, 229, 0.02);
}
.hero-logo-frame:hover img { transform: scale(1.08) rotate(2deg); }
body.light-theme .hero-logo-frame {
  background: rgba(0, 0, 0, 0.01); border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04), inset 0 0 8px rgba(0, 0, 0, 0.01);
}
body.light-theme .hero-logo-frame::before { background: linear-gradient(135deg, rgba(0,0,0,0.06), rgba(0,0,0,0.01)); }
@keyframes float-logo-up { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes float-logo-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.scorer-team-logo { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 992px) {
  .hero-title-container { gap: 1.5rem; }
  .hero-logo-frame { width: 60px; height: 60px; padding: 0.45rem; }
  .hero-logo-stack.left .hero-logo-frame:not(:first-child),
  .hero-logo-stack.right .hero-logo-frame:not(:first-child) { margin-left: -18px; }
}
@media (max-width: 768px) {
  .hero-title-container { flex-direction: column; gap: 1.5rem; }
  .hero-logo-stack.left .hero-logo-frame:not(:first-child),
  .hero-logo-stack.right .hero-logo-frame:not(:first-child) { margin-left: -15px; }
}

.hero-sub { font-size: 1.3rem; color: var(--text-muted); margin: 1rem 0 2rem; letter-spacing: 2px; text-transform: uppercase; }
.hero-sub strong { color: var(--green); }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-bottom: 2.5rem; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.8rem; color: var(--green); line-height: 1; }
.stat-label { font-size: .75rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; padding: .9rem 2.2rem; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: transform .2s, box-shadow .2s; box-shadow: 0 4px 20px rgba(0,200,83,0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,200,83,0.5); }
.btn-secondary { background: rgba(255,255,255,0.08); color: var(--text); padding: .9rem 2.2rem; border-radius: 10px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid rgba(255,255,255,0.15); transition: all .2s; }
.btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: var(--green); }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-arrow { width: 24px; height: 24px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); animation: bounce 1.5s infinite; }
@keyframes bounce { 0%,100%{transform:rotate(45deg) translateY(0)} 50%{transform:rotate(45deg) translateY(6px)} }

/* SECTIONS */
.section { padding: 5rem 0; }
.section-dark { background: var(--dark2); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag { display: inline-block; background: rgba(0,200,83,0.12); border: 1px solid rgba(0,200,83,0.3); color: var(--green); padding: .3rem 1rem; border-radius: 20px; font-size: .8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: .8rem; }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem,5vw,3.5rem); color: var(--text); letter-spacing: 2px; margin-bottom: .5rem; }
.section-desc { color: var(--text-muted); font-size: 1rem; max-width: 550px; margin: 0 auto; }

/* GROUPS */
.groups-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media(max-width:640px){ .groups-grid { grid-template-columns: 1fr; } }
.group-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s; }
.group-card:hover { transform: translateY(-4px); }
.group-header { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.5rem; }
.group-a { background: linear-gradient(135deg, #00952f, #00c853); }
.group-b { background: linear-gradient(135deg, #1565c0, #1e88e5); }
.group-label { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; color: #fff; letter-spacing: 2px; }
.group-icon { font-size: 1.5rem; }
.group-teams { padding: .5rem 0; }
.team-row { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); transition: background .2s; position: relative; overflow: hidden; }
.team-row:last-child { border-bottom: none; }
.team-row:hover { background: rgba(255,255,255,0.04); }
.team-row-logo-bg { position: absolute; right: 0; top: 50%; transform: translateY(-50%); height: 54px; width: 54px; object-fit: contain; opacity: 0.12; pointer-events: none; filter: drop-shadow(0 0 4px rgba(255,255,255,0.1)); transition: opacity .3s; }
.team-row:hover .team-row-logo-bg { opacity: 0.2; }
.team-logo-placeholder { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; background: rgba(255,255,255,0.1); color: var(--text-muted); flex-shrink: 0; overflow: hidden; }
.team-logo-placeholder img { width: 100%; height: 100%; object-fit: contain; }
.team-name { flex: 1; font-weight: 600; font-size: .95rem; position: relative; z-index: 1; }
.team-badge { font-size: .65rem; font-weight: 700; padding: .2rem .5rem; border-radius: 6px; position: relative; z-index: 1; }
.group-a-badge { background: rgba(0,200,83,0.2); color: var(--green); }
.group-b-badge { background: rgba(30,136,229,0.2); color: #64b5f6; }

/* STANDINGS */
.standings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media(max-width:900px){ .standings-grid { grid-template-columns: 1fr; } }
.standings-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.standings-title { padding: 1rem 1.5rem; font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 2px; color: #fff; text-align: center; }
.group-a-bg { background: linear-gradient(135deg, #00952f, #00c853); }
.group-b-bg { background: linear-gradient(135deg, #1565c0, #1e88e5); }
.standings-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.standings-table th { padding: .7rem .6rem; text-align: center; color: var(--text-muted); font-weight: 600; font-size: .75rem; letter-spacing: .5px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.standings-table th:nth-child(2) { text-align: left; padding-left: 1rem; }
.standings-table td { padding: .7rem .6rem; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.standings-table td:nth-child(2) { text-align: left; font-weight: 600; padding-left: 1rem; }
.standings-table tbody tr:last-child td { border-bottom: none; }
.standings-table tbody tr:hover { background: rgba(255,255,255,0.04); }
.standings-table tbody tr.qualify { background: rgba(0,200,83,0.08); }
.standings-table tbody tr.qualify td:first-child { border-left: 3px solid var(--green); }
.standings-table tbody tr.third { background: rgba(255,152,0,0.06); }
.standings-table tbody tr.third td:first-child { border-left: 3px solid #ff9800; }
.pts-cell { font-weight: 700; color: var(--green); }
.legend { display: flex; gap: 2rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.qualify { background: var(--green); }
.legend-dot.third { background: #ff9800; }

/* SCHEDULE */
.schedule-timeline { display: flex; flex-direction: column; gap: 1rem; }
.match-card { background: var(--card); border-radius: var(--radius); padding: 1.2rem 1.5rem; display: grid; grid-template-columns: 80px 1fr auto 1fr 80px; align-items: center; gap: 1rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
.match-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.match-card.group-a::before { background: var(--green); }
.match-card.group-b::before { background: #1e88e5; }
.match-card.knockout::before { background: var(--gold); }
.match-card.final-card::before { background: linear-gradient(180deg, var(--gold), #ff6f00); }
.match-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.match-time { display: flex; flex-direction: column; align-items: center; }
.match-hour { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; color: var(--green); letter-spacing: 1px; }
.match-label { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.match-team { display: flex; flex-direction: column; gap: .2rem; position: relative; }
.match-team.right { text-align: right; align-items: flex-end; }
.team-match-name { font-weight: 700; font-size: 1rem; position: relative; z-index: 1; }
.team-match-abbr { font-size: .75rem; color: var(--text-muted); position: relative; z-index: 1; }
.match-team-logo-bg { position: absolute; top: 50%; transform: translateY(-50%); height: 52px; width: 52px; object-fit: contain; opacity: 0.1; pointer-events: none; filter: drop-shadow(0 0 3px rgba(255,255,255,0.08)); }
.match-team:not(.right) .match-team-logo-bg { left: -8px; }
.match-team.right .match-team-logo-bg { right: -8px; }
.match-score-box { display: flex; align-items: center; gap: .5rem; }
.score-num { width: 42px; height: 42px; background: var(--dark); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; color: var(--text); border: 1px solid rgba(255,255,255,0.1); }
.score-vs { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.match-info { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.match-num { font-size: .75rem; color: var(--text-muted); }
.match-phase-badge { font-size: .65rem; padding: .2rem .5rem; border-radius: 5px; font-weight: 600; }
.badge-a { background: rgba(0,200,83,0.2); color: var(--green); }
.badge-b { background: rgba(30,136,229,0.2); color: #64b5f6; }
.badge-ko { background: rgba(255,214,0,0.2); color: var(--gold); }
.badge-final { background: rgba(255,111,0,0.2); color: #ff9800; }
@media(max-width:640px){
  .match-card { grid-template-columns: 60px 1fr auto 1fr 60px; gap: .5rem; padding: 1rem; }
  .team-match-name { font-size: .82rem; }
}

/* LUNCH BREAK */
.lunch-break { background: linear-gradient(135deg, rgba(255,214,0,0.08), rgba(255,111,0,0.08)); border-top: 1px solid rgba(255,214,0,0.2); border-bottom: 1px solid rgba(255,214,0,0.2); padding: 1.5rem 0; }
.lunch-content { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.lunch-icon { font-size: 2rem; }
.lunch-title { font-weight: 700; font-size: 1.1rem; color: var(--gold); }
.lunch-time { font-size: .9rem; color: var(--text-muted); }

/* BRACKET */
.bracket-wrapper { margin-top: 1rem; }
.bracket-title { text-align: center; font-size: 1.3rem; font-weight: 700; color: var(--gold); margin-bottom: 2rem; }
.bracket-container { display: flex; align-items: center; justify-content: center; gap: 0; overflow-x: auto; padding: 1rem; }
.bracket-round { display: flex; flex-direction: column; gap: 1rem; position: relative; }
.bracket-round-title { text-align: center; font-size: .7rem; font-weight: 700; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: .5rem; }
.bracket-match { background: var(--card2); border-radius: 10px; min-width: 180px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); position: relative; }
.bracket-match.final { border-color: var(--gold); box-shadow: 0 0 20px rgba(255,214,0,0.2); }
.bracket-team { display: flex; align-items: center; justify-content: space-between; padding: .6rem .9rem; font-size: .85rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.06); transition: background .2s; position: relative; overflow: hidden; }
.bracket-team:last-child { border-bottom: none; }
.bracket-team.winner { background: rgba(0,200,83,0.12); color: var(--green); }
.bracket-team.tbd { color: var(--text-muted); font-style: italic; font-weight: 400; }
.bracket-team-logo-bg { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); height: 32px; width: 32px; object-fit: contain; opacity: 0.12; pointer-events: none; }
.bracket-team span:first-child { position: relative; z-index: 1; }
.bracket-team-score { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; color: var(--gold); min-width: 20px; text-align: right; }
.bracket-connector { width: 40px; display: flex; align-items: center; justify-content: center; position: relative; }
.bracket-line { width: 100%; height: 1px; background: rgba(255,255,255,0.15); }
.bracket-place { background: var(--card); border-radius: 10px; min-width: 180px; overflow: hidden; border: 1px solid rgba(255,152,0,0.3); }
.bracket-place-title { text-align: center; padding: .4rem; font-size: .65rem; font-weight: 700; color: #ff9800; letter-spacing: 1px; background: rgba(255,152,0,0.1); }
.bracket-separator { width: 2px; min-height: 200px; background: rgba(255,255,255,0.05); margin: 0 1rem; align-self: stretch; }

/* ADMIN PANEL */
.admin-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200; display: none; backdrop-filter: blur(4px); }
.admin-panel { position: fixed; right: 0; top: 0; bottom: 0; width: min(520px, 100vw); background: var(--dark2); z-index: 201; transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); overflow-y: auto; box-shadow: -8px 0 40px rgba(0,0,0,0.5); }
.admin-panel.open { transform: translateX(0); }
.admin-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; background: var(--dark3); border-bottom: 1px solid rgba(255,255,255,0.08); position: sticky; top: 0; z-index: 1; }
.admin-header h2 { font-size: 1.2rem; font-weight: 700; }
.admin-close { background: rgba(255,255,255,0.08); border: none; color: var(--text); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 1rem; transition: background .2s; }
.admin-close:hover { background: rgba(229,57,53,0.3); }
.admin-content { padding: 1.5rem; }
.admin-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.admin-tab { flex: 1; padding: .6rem .4rem; background: var(--card); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; color: var(--text-muted); font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .8rem; cursor: pointer; transition: all .2s; white-space: nowrap; }
.admin-tab.active { background: var(--green-dark); border-color: var(--green); color: #fff; }
.admin-tab-content.hidden { display: none; }

/* ADMIN CATEGORY SELECTOR */
.admin-category-banner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
/* Removida redefinição do banner no tema claro */
.admin-category-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.admin-category-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.admin-category-active {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green);
}
.admin-category-active span {
  color: var(--text);
}
/* Removida redefinição da cor ativa no tema claro */
.admin-category-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.admin-category-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}
/* Removida redefinição do botão de categorias no tema claro */
.admin-category-pill:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}
/* Removido hover do botão de categorias no tema claro */
.admin-category-pill.active {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-color: var(--green);
  color: #fff;
  cursor: default;
  box-shadow: 0 0 10px rgba(0, 200, 83, 0.35);
}
/* TEAMS ADMIN */
.team-admin-row { background: var(--card); border-radius: 10px; padding: 1rem; margin-bottom: .8rem; display: flex; flex-direction: column; gap: .7rem; position: relative; }
.team-admin-row-header { display: flex; align-items: center; gap: .8rem; }
.team-admin-logo-preview { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: var(--dark); border: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .65rem; color: var(--text-muted); overflow: hidden; }
.team-admin-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.team-admin-name-label { font-weight: 700; font-size: .95rem; flex: 1; }
.team-admin-group-badge { font-size: .7rem; font-weight: 700; padding: .25rem .6rem; border-radius: 6px; }
.team-admin-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.team-admin-field label { display: block; font-size: .75rem; color: var(--text-muted); font-weight: 600; margin-bottom: .3rem; }
.team-admin-field input, .team-admin-field select { width: 100%; padding: .55rem .8rem; background: var(--dark); border: 1px solid rgba(255,255,255,0.12); border-radius: 7px; color: var(--text); font-family: 'Outfit', sans-serif; font-size: .85rem; outline: none; transition: border-color .2s; }
.team-admin-field input:focus, .team-admin-field select:focus { border-color: var(--green); }
.team-admin-field.full { grid-column: 1 / -1; }
.btn-add-team { width: 100%; padding: .75rem; background: rgba(0,200,83,0.1); border: 1px dashed rgba(0,200,83,0.4); border-radius: 10px; color: var(--green); font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .9rem; cursor: pointer; margin-top: .5rem; transition: all .2s; }
.btn-add-team:hover { background: rgba(0,200,83,0.18); border-style: solid; }
.btn-remove-team { position: absolute; top: .7rem; right: .7rem; background: rgba(229,57,53,0.15); border: none; color: #ef5350; width: 26px; height: 26px; border-radius: 6px; cursor: pointer; font-size: .8rem; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.btn-remove-team:hover { background: rgba(229,57,53,0.35); }
.admin-section-title { font-size: 1rem; font-weight: 700; color: var(--green); margin-bottom: 1rem; }
.admin-match-row { background: var(--card); border-radius: 10px; padding: 1rem; margin-bottom: .8rem; }
.admin-match-label { font-size: .8rem; color: var(--text-muted); margin-bottom: .6rem; font-weight: 600; }
.admin-score-row { display: flex; align-items: center; gap: .8rem; }
.admin-team-name { flex: 1; font-size: .9rem; font-weight: 600; }
.admin-team-name.right { text-align: right; }
.admin-score-input { width: 48px; height: 38px; background: var(--dark); border: 1px solid rgba(255,255,255,0.15); border-radius: 7px; color: var(--text); font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; text-align: center; outline: none; transition: border-color .2s; }
.admin-score-input:focus { border-color: var(--green); }
.btn-save { width: 100%; padding: .9rem; background: linear-gradient(135deg, var(--green-dark), var(--green)); border: none; border-radius: 10px; color: #fff; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem; cursor: pointer; margin-top: 1rem; transition: opacity .2s; }
.btn-save:hover { opacity: .9; }
.btn-reset { width: 100%; padding: .9rem; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; color: var(--text-muted); font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1rem; cursor: pointer; margin-top: .5rem; transition: all .2s; }
.btn-reset:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.admin-hint { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.2rem; line-height: 1.5; }
.bracket-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bracket-admin-item label { display: block; font-size: .78rem; color: var(--text-muted); font-weight: 600; margin-bottom: .4rem; letter-spacing: .3px; }
.bracket-admin-item select { width: 100%; padding: .6rem .8rem; background: var(--dark); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: var(--text); font-family: 'Outfit', sans-serif; font-size: .85rem; outline: none; transition: border-color .2s; }
.bracket-admin-item select:focus { border-color: var(--green); }
.settings-form { display: flex; flex-direction: column; gap: 1rem; }
.setting-item label { display: block; font-size: .82rem; color: var(--text-muted); font-weight: 600; margin-bottom: .4rem; }
.setting-item input { width: 100%; padding: .7rem 1rem; background: var(--dark); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: var(--text); font-family: 'Outfit', sans-serif; font-size: .95rem; outline: none; transition: border-color .2s; }
.setting-item input:focus { border-color: var(--green); }
.setting-item select { width: 100%; padding: .7rem 1rem; background: var(--dark); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: var(--text); font-family: 'Outfit', sans-serif; font-size: .95rem; outline: none; transition: border-color .2s; cursor: pointer; }
.setting-item select:focus { border-color: var(--green); }
select option { background: var(--card) !important; color: var(--text) !important; }
.danger-zone { margin-top: 2rem; padding: 1.2rem; background: rgba(229,57,53,0.08); border: 1px solid rgba(229,57,53,0.25); border-radius: 10px; }
.danger-zone h4 { color: #ef5350; margin-bottom: .8rem; font-size: .95rem; }
.btn-danger { width: 100%; padding: .8rem; background: rgba(229,57,53,0.2); border: 1px solid rgba(229,57,53,0.4); border-radius: 8px; color: #ef5350; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s; }
.btn-danger:hover { background: rgba(229,57,53,0.35); }

/* TOAST */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--card); border-left: 4px solid var(--green); padding: .9rem 1.5rem; border-radius: 10px; font-weight: 600; font-size: .9rem; z-index: 300; transition: transform .3s; box-shadow: var(--shadow); pointer-events: none; white-space: nowrap; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { border-color: var(--red); }

/* FOOTER */
.footer { background: #06090f; border-top: 1px solid rgba(255,255,255,0.06); padding: 2rem 0; }
.footer-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-info { text-align: right; color: var(--text-muted); font-size: .85rem; }
.footer-sub { opacity: .5; font-size: .78rem; margin-top: .2rem; }
@media(max-width:600px){ .footer-content { justify-content: center; text-align: center; } .footer-info { text-align: center; } }

/* PASSWORD MODAL */
.pw-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 400; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.pw-overlay.show { opacity: 1; pointer-events: all; }
.pw-card { background: var(--dark2); border: 1px solid rgba(0,200,83,0.25); border-radius: 20px; padding: 2.5rem 2rem; width: min(380px, 92vw); box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,200,83,0.1); text-align: center; transform: translateY(20px) scale(.97); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.pw-overlay.show .pw-card { transform: translateY(0) scale(1); }
.pw-lock-icon { font-size: 2.8rem; margin-bottom: 1rem; display: block; filter: drop-shadow(0 0 12px rgba(0,200,83,0.4)); }
.pw-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 2px; color: var(--text); margin-bottom: .3rem; }
.pw-subtitle { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.8rem; }
.pw-input-wrap { position: relative; margin-bottom: 1.2rem; }
.pw-input { width: 100%; padding: .9rem 3rem .9rem 1.2rem; background: var(--dark); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; color: var(--text); font-family: 'Outfit', sans-serif; font-size: 1.1rem; text-align: center; letter-spacing: 3px; outline: none; transition: border-color .2s, box-shadow .2s; }
.pw-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,200,83,0.15); }
.pw-input.error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,57,53,0.15); animation: pw-shake .4s ease; }
.pw-toggle { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; padding: 0; transition: color .2s; }
.pw-toggle:hover { color: var(--text); }
@keyframes pw-shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-8px)} 40%{transform:translateX(8px)} 60%{transform:translateX(-6px)} 80%{transform:translateX(6px)} }
.pw-error-msg { font-size: .82rem; color: #ef5350; margin-bottom: 1rem; min-height: 1.2rem; transition: opacity .2s; }
.pw-btn { width: 100%; padding: .9rem; background: linear-gradient(135deg, var(--green-dark), var(--green)); border: none; border-radius: 10px; color: #fff; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem; cursor: pointer; transition: opacity .2s, transform .1s; }
.pw-btn:hover { opacity: .9; }
.pw-btn:active { transform: scale(.98); }
.pw-cancel { margin-top: .8rem; background: none; border: none; color: var(--text-muted); font-family: 'Outfit', sans-serif; font-size: .85rem; cursor: pointer; transition: color .2s; }
.pw-cancel:hover { color: var(--text); }
.btn-admin-lock { font-size: .75rem; opacity: .7; margin-right: .2rem; }

/* SYNC BADGE */
.sync-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 600; padding: .25rem .7rem; border-radius: 20px; transition: all .3s; white-space: nowrap; }
.sync-badge:empty { display: none; }
.sync-badge.syncing { background: rgba(255,214,0,0.15); color: var(--gold); border: 1px solid rgba(255,214,0,0.3); }
.sync-badge.syncing::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: sync-pulse 1s ease-in-out infinite; }
.sync-badge.saved { background: rgba(0,200,83,0.15); color: var(--green); border: 1px solid rgba(0,200,83,0.3); }
.sync-badge.saved::before { content: '✓'; margin-right: .2rem; }
.sync-badge.error { background: rgba(229,57,53,0.15); color: #ef5350; border: 1px solid rgba(229,57,53,0.3); }
.sync-badge.error::before { content: '✕'; margin-right: .2rem; }
.sync-badge.live { background: rgba(0,200,83,0.1); color: var(--green); border: 1px solid rgba(0,200,83,0.2); }
.sync-badge.live::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: sync-pulse 2s ease-in-out infinite; }
@keyframes sync-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.8)} }
@media(max-width:768px){ .sync-badge { display: none; } }

/* SCHEDULE ADMIN EDITOR */
.schedule-admin-row { background: var(--card); border-radius: 10px; padding: .9rem 1rem; margin-bottom: .7rem; display: flex; align-items: center; gap: .7rem; position: relative; flex-wrap: wrap; }
.schedule-admin-num { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; color: var(--text-muted); min-width: 24px; text-align: center; }
.schedule-admin-field { display: flex; flex-direction: column; gap: .2rem; }
.schedule-admin-field label { font-size: .68rem; color: var(--text-muted); font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.schedule-admin-field input, .schedule-admin-field select { padding: .5rem .7rem; background: var(--dark); border: 1px solid rgba(255,255,255,0.12); border-radius: 7px; color: var(--text); font-family: 'Outfit', sans-serif; font-size: .85rem; outline: none; transition: border-color .2s; }
.schedule-admin-field input:focus, .schedule-admin-field select:focus { border-color: var(--green); }
.schedule-admin-field input[type="time"] { width: 90px; }
.schedule-admin-vs { font-size: .9rem; color: var(--text-muted); font-weight: 700; padding-top: 1.2rem; }
.schedule-admin-group-sel { width: 90px; }
.schedule-admin-del { margin-left: auto; background: rgba(229,57,53,0.15); border: none; color: #ef5350; width: 30px; height: 30px; border-radius: 7px; cursor: pointer; font-size: .9rem; display: flex; align-items: center; justify-content: center; transition: background .2s; flex-shrink: 0; padding-top: 1rem; }
.schedule-admin-del:hover { background: rgba(229,57,53,0.35); }
@media(max-width:520px){ .schedule-admin-row { flex-direction: column; align-items: flex-start; } .schedule-admin-del { padding-top: 0; margin-left: 0; } }

/* ADMIN LOGOUT BUTTON */
.admin-logout-btn { background: rgba(229,57,53,0.15); border: 1px solid rgba(229,57,53,0.3); color: #ef5350; height: 36px; padding: 0 0.8rem; border-radius: 8px; cursor: pointer; font-size: .85rem; font-family: 'Outfit', sans-serif; font-weight: 600; display: flex; align-items: center; gap: 0.3rem; transition: all .2s; }
.admin-logout-btn:hover { background: rgba(229,57,53,0.3); border-color: #ef5350; color: #fff; }

/* NEW CHAMPIONSHIP DESIGN */
.bracket-wrapper {
  background: rgba(10, 15, 26, 0.4);
  border: 1px solid rgba(255, 214, 0, 0.15);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  margin-top: 2rem;
}

.bracket-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(255, 214, 0, 0.3);
}

.bracket-round-title {
  font-size: .8rem;
  letter-spacing: 2px;
  color: var(--green);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}

.bracket-round-title.final-title {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 214, 0, 0.4);
}

.bracket-match {
  background: rgba(30, 42, 58, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  min-width: 200px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
.bracket-match:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.bracket-match.final {
  background: linear-gradient(135deg, var(--card2), rgba(255, 214, 0, 0.05));
  border: 2px solid var(--gold);
  min-width: 240px;
  box-shadow: 0 0 30px rgba(255, 214, 0, 0.25), inset 0 0 15px rgba(255, 214, 0, 0.1);
  transform: scale(1.05);
  z-index: 10;
}
.bracket-match.final:hover {
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 214, 0, 0.4), inset 0 0 20px rgba(255, 214, 0, 0.2);
}
.bracket-match.final .bracket-team {
  padding: .8rem 1.2rem;
  font-size: .95rem;
}

.bracket-round.champion-round {
  align-items: center;
  justify-content: center;
}

.champion-card {
  background: linear-gradient(135deg, #2a1f0a, #1a1205);
  border: 2px solid var(--gold);
  border-radius: 18px;
  min-width: 230px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 214, 0, 0.35), 0 10px 20px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 214, 0, 0.15);
  position: relative;
  overflow: hidden;
  animation: champion-glow 3s infinite ease-in-out;
  transform: scale(1.1);
  z-index: 12;
}

@keyframes champion-glow {
  0%, 100% { box-shadow: 0 0 35px rgba(255, 214, 0, 0.3), 0 10px 20px rgba(0,0,0,0.5); }
  50% { box-shadow: 0 0 55px rgba(255, 214, 0, 0.55), 0 10px 30px rgba(0,0,0,0.6); }
}

.champion-trophy-anim {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  animation: trophy-bounce 2s infinite ease-in-out;
  filter: drop-shadow(0 0 10px rgba(255, 214, 0, 0.6));
}

@keyframes trophy-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

.champion-lbl {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 0.8rem;
  text-shadow: 0 0 10px rgba(255, 214, 0, 0.5);
}

.champion-team-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.champion-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.champion-team-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.champion-stars {
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 4px;
  margin-top: 0.4rem;
}

.consolation-section {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.consolation-title {
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.consolation-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.consolation-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.consolation-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
}

.consolation-badge.third-place {
  background: rgba(255, 152, 0, 0.12);
  border: 1px solid rgba(255, 152, 0, 0.35);
  color: #ff9800;
}

.consolation-badge.fifth-place {
  background: rgba(136, 153, 187, 0.12);
  border: 1px solid rgba(136, 153, 187, 0.3);
  color: var(--text-muted);
}

/* LIGHT THEME VARIABLES */
body.light-theme {
  --dark: #f3f4f6;
  --dark2: #ffffff;
  --dark3: #f9fafb;
  --card: #ffffff;
  --card2: #f3f4f6;
  --text: #111827;
  --text-muted: #4b5563;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
}
body.light-theme .nav {
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(0,200,83,0.1);
}
body.light-theme .logo-text, body.light-theme .hero-title {
  color: #111827;
  text-shadow: none;
}
body.light-theme .hero-bg {
  background: radial-gradient(ellipse at 20% 50%, rgba(0,200,83,0.08) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(21,101,192,0.08) 0%, transparent 60%), linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}
body.light-theme .team-row:hover, body.light-theme .standings-table tbody tr:hover {
  background: rgba(0,0,0,0.03);
}
body.light-theme .score-num {
  background: #e5e7eb;
  border-color: rgba(0,0,0,0.08);
  color: #111827;
}
body.light-theme .match-card:hover, body.light-theme .group-card:hover, body.light-theme .standings-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
body.light-theme .bracket-match {
  background: #f9fafb;
  border-color: rgba(0,0,0,0.08);
}
/* COCKPIT ADMINISTRATIVO SEMPRE ESCURO (Aumenta legibilidade e profissionalismo) */
.admin-panel,
.admin-overlay,
.pw-card,
.pw-overlay,
.admin-category-banner,
#draft-recovery-banner {
  --dark: #0a0f1a !important;
  --dark2: #111827 !important;
  --dark3: #1a2235 !important;
  --card: #1e2a3a !important;
  --card2: #243044 !important;
  --text: #f0f4ff !important;
  --text-muted: #8899bb !important;
  --shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
  color: #f0f4ff !important;
}

/* Forçar inputs e selects de settings e admin a usarem o tema escuro */
.admin-panel input,
.admin-panel select,
.admin-panel textarea,
.pw-input {
  background: #0a0f1a !important;
  color: #f0f4ff !important;
  border-color: rgba(255,255,255,0.12) !important;
}

.admin-panel input:focus,
.admin-panel select:focus,
.admin-panel textarea:focus,
.pw-input:focus {
  border-color: #00c853 !important;
}

.admin-header {
  background: #1a2235 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

.admin-panel h2,
.admin-panel h3,
.admin-panel h4,
.admin-panel label,
.admin-panel p,
.admin-panel span,
.admin-panel div:not(.admin-category-pill),
.admin-panel button:not(.btn-admin):not(.admin-tab) {
  color: #f0f4ff !important;
}

.admin-panel .admin-hint,
.admin-panel label,
.admin-panel .team-admin-label {
  color: #8899bb !important;
}

.admin-tab {
  background: #1e2a3a !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #8899bb !important;
}

.admin-tab.active {
  background: #00952f !important;
  border-color: #00c853 !important;
  color: #fff !important;
}

.admin-category-pill {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #8899bb !important;
}

.admin-category-pill:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #f0f4ff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.admin-category-pill.active {
  background: linear-gradient(135deg, #00952f, #00c853) !important;
  border-color: #00c853 !important;
  color: #fff !important;
}
body.light-theme .footer {
  background: #e5e7eb;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* THEME TOGGLE BUTTON ANIMATION */
.theme-toggle:hover {
  transform: rotate(15deg) scale(1.1);
}

/* PREMIUM GLOW HOVER EFFECTS */
.match-card, .group-card, .standings-card, .bracket-match, .weather-card, .map-card, .scorers-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}
.match-card:hover, .bracket-match:hover {
  transform: translateY(-4px) scale(1.02) !important;
}
.match-card.group-a:hover {
  box-shadow: 0 12px 35px rgba(0, 200, 83, 0.35) !important;
  border-color: rgba(0, 200, 83, 0.4);
}
.match-card.group-b:hover {
  box-shadow: 0 12px 35px rgba(30, 136, 229, 0.35) !important;
  border-color: rgba(30, 136, 229, 0.4);
}
.match-card.knockout:hover, .bracket-match.final:hover {
  box-shadow: 0 12px 35px rgba(255, 214, 0, 0.45) !important;
  border-color: var(--gold);
}

/* SCORERS TABLE UI */
.scorers-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.05);
}
body.light-theme .scorers-card {
  border-color: rgba(0,0,0,0.05);
}
.scorers-grid-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}
.scorer-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.2s ease;
}
body.light-theme .scorer-row {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.05);
}
.scorer-row:hover {
  transform: translateX(4px);
  background: rgba(0, 200, 83, 0.08);
  border-color: rgba(0, 200, 83, 0.2);
}
.scorer-rank {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
}
.scorer-rank.rank-1 { background: var(--gold); color: #000; box-shadow: 0 0 10px rgba(255,214,0,0.4); }
.scorer-rank.rank-2 { background: #c0c0c0; color: #000; }
.scorer-rank.rank-3 { background: #cd7f32; color: #fff; }

.scorer-name {
  font-weight: 700;
  font-size: 1rem;
  flex: 1;
}
.scorer-team {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  background: rgba(255,255,255,0.08);
}
body.light-theme .scorer-team {
  background: rgba(0,0,0,0.06);
}
.scorer-goals {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--green);
  min-width: 35px;
  text-align: right;
}

/* CLIMA & MAPA WIDGETS */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  margin-top: 1rem;
}
@media(max-width: 768px) {
  .info-grid { grid-template-columns: 1fr; }
  .bracket-container {
    flex-direction: column !important;
    gap: 2.2rem !important;
    overflow-x: visible !important;
  }
  .bracket-connector {
    display: none !important;
  }
  .bracket-round.champion-round {
    margin-top: 0.5rem;
  }
}
.weather-card, .map-card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}
body.light-theme .weather-card, body.light-theme .map-card {
  border-color: rgba(0,0,0,0.05);
}
.weather-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.weather-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.weather-icon {
  font-size: 2.8rem;
  filter: drop-shadow(0 0 10px rgba(255,214,0,0.4));
}
.weather-city {
  font-weight: 800;
  font-size: 1.2rem;
}
.weather-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.weather-temp-wrap {
  margin: 1.5rem 0;
}
.weather-temp {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--green);
  display: block;
}
.weather-desc {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.weather-details {
  display: flex;
  justify-content: space-between;
  background: rgba(255,255,255,0.03);
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
body.light-theme .weather-details {
  background: rgba(0,0,0,0.03);
}
.weather-forecast {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.forecast-hour {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.02);
  padding: 0.6rem;
  border-radius: 8px;
  flex: 1;
  font-size: 0.78rem;
  font-weight: 600;
}
body.light-theme .forecast-hour {
  background: rgba(0,0,0,0.02);
}
.forecast-hour span:first-child {
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.map-card {
  min-height: 320px;
  position: relative;
}
.map-card iframe {
  filter: invert(90%) hue-rotate(180deg) contrast(120%) opacity(0.85);
  transition: filter 0.3s ease;
}
body.light-theme .map-card iframe {
  filter: none;
}

/* SLIDE-OVER PANEL GLASSMORPHIC */
.slide-over {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 301;
  box-shadow: -10px 0 40px rgba(0,0,0,0.6);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(0, 200, 83, 0.15);
}
body.light-theme .slide-over {
  background: rgba(255, 255, 255, 0.95);
  border-left-color: rgba(0, 200, 83, 0.1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.08);
}
.slide-over.open {
  transform: translateX(0);
}
.slide-over-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.slide-over-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.slide-over-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body.light-theme .slide-over-header {
  border-bottom-color: rgba(0,0,0,0.06);
}
.slide-over-phase {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--green);
  display: block;
}
.slide-over-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.slide-over-close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
body.light-theme .slide-over-close {
  background: rgba(0,0,0,0.05);
}
.slide-over-close:hover {
  background: rgba(229,57,53,0.25);
  color: #fff;
}
.slide-over-content {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.det-teams-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  background: rgba(255,255,255,0.02);
  padding: 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
}
body.light-theme .det-teams-header {
  background: rgba(0,0,0,0.01);
  border-color: rgba(0,0,0,0.04);
}
.det-team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}
.det-logo-wrap {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  padding: 0.3rem;
  margin-bottom: 0.5rem;
}
body.light-theme .det-logo-wrap {
  background: rgba(0,0,0,0.05);
}
.det-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.det-team-name {
  font-weight: 700;
  font-size: 0.9rem;
}
.det-score-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.det-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: var(--green);
}
.det-score-vs {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.det-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0.5rem;
}
body.light-theme .det-tabs {
  border-bottom-color: rgba(0,0,0,0.06);
}
.det-tab {
  flex: 1;
  padding: 0.5rem 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}
.det-tab.active {
  background: rgba(0, 200, 83, 0.12);
  color: var(--green);
}
.det-tab-content.hidden {
  display: none;
}

/* STATS BARS */
.stats-bars {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.stat-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stat-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
}
.stat-bar-label {
  color: var(--text-muted);
}
.stat-bar-bg {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}
body.light-theme .stat-bar-bg {
  background: rgba(0,0,0,0.08);
}
.stat-bar-fill-home {
  height: 100%;
  background: var(--green);
  transition: width 0.6s ease;
}
.stat-bar-fill-away {
  height: 100%;
  background: var(--blue);
  margin-left: auto;
  transition: width 0.6s ease;
}

/* TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: rgba(255,255,255,0.08);
}
body.light-theme .timeline::before {
  background: rgba(0,0,0,0.08);
}
.timeline-item {
  position: relative;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
}
.timeline-node {
  position: absolute;
  left: -24px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--dark);
}
body.light-theme .timeline-node {
  border-color: #fff;
}
.timeline-node.card-y { background: var(--gold); }
.timeline-node.card-r { background: var(--red); }
.timeline-node.sub { background: var(--blue); }

.timeline-time {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  color: var(--green);
  margin-right: 0.4rem;
}
.timeline-node.card-y ~ .timeline-time { color: var(--gold); }
.timeline-node.card-r ~ .timeline-time { color: var(--red); }
.timeline-node.sub ~ .timeline-time { color: var(--blue); }

.timeline-player {
  font-weight: 700;
}
.timeline-detail {
  color: var(--text-muted);
  font-size: 0.78rem;
  display: block;
}

/* LINEUP LIST */
.lineups-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.lineups-col h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.3rem;
}
body.light-theme .lineups-col h4 {
  border-bottom-color: rgba(0,0,0,0.05);
}
.lineup-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.lineup-list li {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
}
body.light-theme .lineup-list li {
  background: rgba(0,0,0,0.02);
}

/* PRINT & PDF GENERATION STYLING */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }
  /* Hide all generic site elements during regulations printing */
  body * {
    display: none !important;
  }
  /* Force regulations modal parents and the print content block to render */
  #regsOverlay, 
  #regsOverlay .pw-card, 
  #regs-print-content, 
  #regs-print-content * {
    display: block !important;
  }
  /* Format regulations overlay to act as a normal flat page flow */
  #regsOverlay {
    position: static !important;
    background: #ffffff !important;
    opacity: 1 !important;
    pointer-events: all !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #regsOverlay .pw-card {
    position: static !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
    color: #000000 !important;
  }
  /* Force hide header container and footer action container of the modal card */
  #regsOverlay .pw-card > div:first-child,
  #regsOverlay .pw-card > div:first-child *,
  #regsOverlay .pw-card > div:last-child,
  #regsOverlay .pw-card > div:last-child * {
    display: none !important;
  }
  /* Format print content layout and spacing */
  #regs-print-content {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  /* Format headers and lists professionally in clean black-on-white with emerald highlights */
  #regs-print-content h4 {
    display: block !important;
    color: #00c853 !important;
    font-size: 13pt !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.4rem !important;
    font-weight: 700 !important;
    page-break-after: avoid;
  }
  #regs-print-content p {
    display: block !important;
    color: #333333 !important;
    font-size: 10pt !important;
    line-height: 1.6 !important;
    margin-bottom: 0.8rem !important;
  }
  #regs-print-content ol {
    display: block !important;
    padding-left: 1.5rem !important;
    margin-top: 0.4rem !important;
    margin-bottom: 0.8rem !important;
  }
  #regs-print-content li {
    display: list-item !important;
    list-style-type: decimal !important;
    color: #333333 !important;
    font-size: 10pt !important;
    line-height: 1.6 !important;
    margin-bottom: 0.4rem !important;
  }
}

/* SINGLE GROUP LAYOUT CENTERED */
.groups-grid.single-group, .standings-grid.single-group {
  display: flex !important;
  justify-content: center !important;
}
.groups-grid.single-group > *, .standings-grid.single-group > * {
  width: 100% !important;
  max-width: 550px !important;
}

/* DEVELOPER ADVERTISEMENT */
.developer-adv {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}
body.light-theme .developer-adv {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
.dev-by {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
}
.dev-logo-link {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 0.8rem;
}
.dev-logo-link:hover {
  transform: scale(1.06);
}
.dev-logo-img {
  object-fit: contain;
  display: block;
}
/* Display correct logo depending on theme */
.dev-logo-img.light-logo {
  height: clamp(36px, 8vw, 48px);
  display: none;
}
.dev-logo-img.dark-logo {
  height: clamp(80px, 18vw, 115px) !important;
  display: block;
}

body.light-theme .dev-logo-img.light-logo { display: block; }
body.light-theme .dev-logo-img.dark-logo { display: none; }

.dev-slogan {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.5;
  margin: 0 auto;
  font-style: italic;
  letter-spacing: 0.2px;
}
body.light-theme .dev-slogan {
  color: #4b5563;
}

/* MATCH CARD GOALS SUMMARY */
.match-goals-summary {
  grid-column: 2 / 5;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 0.6rem;
  margin-top: 0.4rem;
  text-align: center;
  animation: fadeIn 0.3s ease;
}
body.light-theme .match-goals-summary {
  border-top-color: rgba(0, 0, 0, 0.06);
  color: #4b5563;
}
@media(max-width:640px) {
  .match-goals-summary {
    grid-column: 1 / -1;
    font-size: 0.75rem;
  }
}

/* CATEGORY SELECTOR / SWITCHER */
.category-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.3rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
}
.category-tab {
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.category-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.category-tab.active {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 200, 83, 0.45);
}
/* Light Theme support */
body.light-theme .category-switcher {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}
body.light-theme .category-tab:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text);
}
body.light-theme .category-tab.active {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 200, 83, 0.25);
}
@media(max-width: 768px) {
  .category-switcher:not(.mobile) {
    display: none !important;
  }
}

/* ==========================================================================
   PREMIUM FEATURES ADDITIONS (STATS, FILTERS, SOUND, & SOCIAL SHARE)
   ========================================================================== */

/* 1. ANALYTICS DASHBOARD SECTION */
.analytics-dashboard {
  background: var(--dark2);
  padding: 2.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: -1px;
}
body.light-theme .analytics-dashboard {
  background: #f3f4f6;
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
@media (max-width: 992px) {
  .analytics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.analytics-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 125px;
  position: relative;
  overflow: hidden;
}
body.light-theme .analytics-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.analytics-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
body.light-theme .analytics-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.analytics-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
}
.analytics-card:nth-child(1)::before { background: linear-gradient(90deg, var(--green-dark), var(--green)); }
.analytics-card:nth-child(2)::before { background: linear-gradient(90deg, #1565c0, #1e88e5); }
.analytics-card:nth-child(3)::before { background: linear-gradient(90deg, #e65100, #ff9800); }
.analytics-card:nth-child(4)::before { background: linear-gradient(90deg, #ffd600, #ff6f00); }

.analytics-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.analytics-icon {
  font-size: 1.25rem;
}
.analytics-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
body.light-theme .analytics-label {
  color: #6b7280;
}

.analytics-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.6rem;
  line-height: 1;
  margin: 0.6rem 0;
  background: linear-gradient(135deg, var(--text), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.light-theme .analytics-value {
  background: linear-gradient(135deg, #111827, #4b5563);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Specific styling for record card value text */
.analytics-value-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0.6rem 0;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
body.light-theme .analytics-value-text {
  color: #111827;
}

.analytics-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}
body.light-theme .analytics-sub {
  color: #6b7280;
}

/* 2. DYNAMIC MATCH FILTERS */
.match-filters-wrapper {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
body.light-theme .match-filters-wrapper {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.05);
}

.match-filter-btn {
  background: none;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.match-filter-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
body.light-theme .match-filter-btn:hover {
  background: rgba(0, 0, 0, 0.02);
}

.match-filter-btn.active {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 200, 83, 0.35);
}

/* 3. SHARE SOCIAL BUTTON INSIDE MATCH CARD */
.btn-share-match {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
  vertical-align: middle;
}
body.light-theme .btn-share-match {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

.btn-share-match:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 0 10px rgba(30, 136, 229, 0.4);
  color: white;
}

.match-label-container {
  display: flex;
  align-items: center;
}

/* Audio Toggle Sync */
#soundToggle, #soundToggleMobile {
  cursor: pointer;
  user-select: none;
}

/* 4. MODAL AND SHARE CANVAS PREVIEW */
.share-card-modal {
  animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  background: var(--card2) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}
body.light-theme .share-card-modal {
  background: #ffffff !important;
  border-color: rgba(0,0,0,0.1) !important;
}

@keyframes modalSlideUp {
  from {
    transform: translate(-50%, -40%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
@media (max-height: 900px) {
  .share-card-modal {
    padding: 1.5rem !important;
  }
  .share-card-modal .canvas-preview-container {
    margin-bottom: 0.8rem !important;
  }
  .share-card-modal canvas {
    max-height: 48vh;
  }
}

/* ==========================================================================
   5. STADIUM TV MODE & ADMIN DRAFT RECOVERY STYLING
   ========================================================================== */

/* TV Mode HUD Overlay */
.tv-mode-controls {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: rgba(13, 21, 39, 0.92);
  border: 1px solid rgba(0, 200, 83, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 1.5rem;
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(0, 200, 83, 0.3);
  z-index: 99999;
  width: min(580px, 92vw);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}
.tv-mode-controls.show {
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.tv-controls-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tv-live-dot {
  width: 10px;
  height: 10px;
  background-color: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
  animation: pulse-live 1.5s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulse-live {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--green); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.tv-title-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.tv-progress-bg {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
}
.tv-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  border-radius: 3px;
  transition: width 0.1s linear;
}

.tv-exit-btn {
  background: rgba(239, 83, 80, 0.15);
  border: 1px solid rgba(239, 83, 80, 0.35);
  color: #ef5350;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.tv-exit-btn:hover {
  background: #ef5350;
  color: #fff;
  box-shadow: 0 0 12px rgba(239, 83, 80, 0.45);
}

/* TV Mode Layout Overrides */
body.tv-mode-active {
  background: radial-gradient(circle at top, #0f172a, #020617) !important;
}
body.tv-mode-active .hero-content,
body.tv-mode-active .hero-scroll,
body.tv-mode-active .nav-links,
body.tv-mode-active .theme-toggle,
body.tv-mode-active .btn-admin,
body.tv-mode-active .sync-badge,
body.tv-mode-active .hamburger,
body.tv-mode-active footer.footer,
body.tv-mode-active #informacao,
body.tv-mode-active .legend,
body.tv-mode-active .hero::after {
  display: none !important;
}
body.tv-mode-active .hero {
  min-height: 100px !important;
  height: 100px !important;
  background: none !important;
  padding: 1rem 0 !important;
  margin-bottom: 2rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
body.tv-mode-active .nav {
  justify-content: center !important;
  padding: 0.5rem 1.5rem !important;
  border: none !important;
  box-shadow: none !important;
}
body.tv-mode-active .category-switcher {
  display: flex !important;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  margin-top: 0.5rem;
}
body.tv-mode-active .section {
  padding: 4rem 0 !important;
}
body.tv-mode-active .section-header {
  margin-bottom: 2rem !important;
}

/* Draft banner styling inside admin panel */
.draft-banner {
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.15);
  animation: draftSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: none; /* Escondido por defeito, ativado pelo JS como flex */
  flex-direction: column;
  gap: 0.5rem;
}

@keyframes draftSlideIn {
  from { transform: translateY(-15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}



