/* Quem é o Maior Time do Brasil? — Mapa Cartográfico Gigante IBGE + Central de Votação + Admin */
:root {
  --bg-dark: #040711;
  --bg-panel: rgba(13, 20, 38, 0.9);
  --bg-card: rgba(23, 34, 59, 0.76);
  --border-subtle: rgba(148, 163, 184, 0.18);
  --gold: #facc15;
  --gold-bright: #fde047;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --crimson: #ef4444;
  --sky: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 12% 10%, rgba(16, 185, 129, 0.14), transparent 36%),
    radial-gradient(circle at 88% 12%, rgba(250, 204, 21, 0.12), transparent 36%),
    radial-gradient(circle at 50% 85%, rgba(56, 189, 248, 0.10), transparent 45%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* Tooltip Flutuante do Mapa Cartográfico */
.map-hover-tooltip {
  position: fixed;
  z-index: 2000;
  pointer-events: none;
  background: rgba(6, 10, 22, 0.96);
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #f8fafc;
  line-height: 1.4;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
  max-width: 260px;
}

/* Barra de Transações Reais no Topo */
.live-ticker-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(6, 10, 22, 0.96);
  border-bottom: 1px solid var(--border-subtle);
  padding: 9px 24px;
  font-size: 0.8rem;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(12px);
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.pulse-dot,
.badge-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.live-votes-scroll {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.live-votes-scroll::-webkit-scrollbar {
  display: none;
}

.ticker-empty {
  color: var(--text-muted);
  font-style: italic;
}

.ticker-item {
  white-space: nowrap;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker-votes {
  color: var(--gold);
  font-weight: 800;
  background: rgba(250, 204, 21, 0.14);
  padding: 1px 6px;
  border-radius: 4px;
}

/* HERO HEADER */
.hero-header {
  max-width: 1560px;
  margin: 0 auto;
  padding: 18px 24px 16px;
}

.hero-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.brand-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.18), rgba(16, 185, 129, 0.14));
  border: 1px solid rgba(250, 204, 21, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: 0.6px;
}

.btn-admin-link {
  text-decoration: none;
  background: rgba(23, 34, 59, 0.88);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: var(--gold-bright);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-admin-link:hover {
  background: rgba(250, 204, 21, 0.18);
  transform: translateY(-1px);
}

.btn-outline-pill {
  background: rgba(23, 34, 59, 0.78);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-outline-pill:hover {
  border-color: var(--gold);
  background: rgba(39, 55, 90, 0.9);
}

.hero-main-content {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(9, 14, 28, 0.92));
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: var(--radius-xl);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.hero-copy h1 {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}

.text-gradient-gold {
  background: linear-gradient(90deg, #facc15, #fde047, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 0.94rem;
  color: #cbd5e1;
  line-height: 1.52;
  margin-bottom: 14px;
  max-width: 780px;
}
.hero-lead strong {
  color: #ffffff;
}

.how-it-works-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.step-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 9px 12px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), #ca8a04);
  color: #090d16;
  font-weight: 900;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-pill strong {
  display: block;
  font-size: 0.8rem;
  color: #ffffff;
}
.step-pill small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-stat-box {
  background: rgba(6, 10, 22, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-stat-box.wide {
  grid-column: span 2;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.12), rgba(6, 10, 22, 0.9));
  border-color: rgba(16, 185, 129, 0.35);
}

.stat-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.stat-big-num {
  font-family: "Outfit", sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: #ffffff;
}
.stat-big-num.gold {
  color: var(--gold);
}

.stat-big-leader {
  font-size: 1.15rem;
  font-weight: 900;
  color: #34d399;
}

.hero-stat-box small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ARENA PRINCIPAL: 2 COLUNAS LARGAS (MAPA GIGANTE + CENTRAL DE VOTAÇÃO) */
.arena-main-layout {
  max-width: 1560px;
  margin: 0 auto 24px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.48fr 1fr;
  gap: 20px;
  align-items: start;
}

.panel-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.48);
}

/* COLUNA DO MAPA CARTOGRÁFICO GIGANTE */
.map-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.map-mode-title {
  font-size: 0.88rem;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.crumb-link {
  color: var(--sky);
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
}
.crumb-uf {
  color: var(--gold);
}
.crumb-city {
  background: rgba(250, 204, 21, 0.18);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #fef08a;
  padding: 3px 10px;
  border-radius: 7px;
  font-weight: 800;
}

.map-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-back-brazil-big {
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #090d16;
  border: none;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(250, 204, 21, 0.35);
  transition: transform 0.15s ease;
}
.btn-back-brazil-big:hover {
  transform: translateY(-1px);
}

.uf-bar-select {
  background: #0b1325;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

/* Barra de Busca de Cidade + Zoom acima do Mapa */
.map-search-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.city-autocomplete-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.city-search-input-box {
  display: flex;
  align-items: center;
  background: #080d1a;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 12px;
  padding: 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.city-search-input-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.25);
}

.search-icon {
  font-size: 0.95rem;
  margin-right: 8px;
}

.city-search-input-box input {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 11px 0;
  font-size: 0.85rem;
  font-weight: 600;
}
.city-search-input-box input:focus {
  outline: none;
}

.btn-clear-city {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #cbd5e1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.72rem;
}

.city-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0d1528;
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 80;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
  padding: 6px;
}

.city-suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.city-suggestion-item:hover {
  background: rgba(56, 189, 248, 0.2);
}
.city-suggestion-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}
.city-suggestion-meta {
  font-size: 0.74rem;
  color: var(--gold);
  font-weight: 700;
}

.map-zoom-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.zoom-ctrl-btn {
  background: #0b1325;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #ffffff;
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.15s ease;
}
.zoom-ctrl-btn.reset {
  font-size: 0.78rem;
}
.zoom-ctrl-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* PALCO GIGANTE DO MAPA (670px de altura) */
.map-stage-giant {
  position: relative;
  width: 100%;
  height: 670px;
  background:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(23, 45, 95, 0.42), rgba(4, 7, 17, 0.98));
  background-size: 32px 32px, 32px 32px, 100% 100%;
  border: 1.5px solid rgba(56, 189, 248, 0.28);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

#brazil-map-svg {
  width: 100%;
  height: 100%;
  user-select: none;
}

.ibge-uf-path {
  cursor: pointer;
  transition: filter 0.18s ease, stroke-width 0.18s ease;
}
.ibge-uf-path:hover {
  filter: brightness(1.35) drop-shadow(0 0 10px rgba(250, 204, 21, 0.5));
  stroke: #facc15;
  stroke-width: 2.5px;
}

.ibge-uf-badge {
  cursor: pointer;
}

.ibge-mun-path {
  cursor: pointer;
  transition: fill 0.15s ease, filter 0.15s ease;
}
.ibge-mun-path:hover {
  filter: brightness(1.55);
  stroke: #facc15;
  stroke-width: 1.8px;
}
.ibge-mun-path.mun-selected {
  filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.7));
}

.map-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 17, 0.82);
  backdrop-filter: blur(6px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold);
  font-size: 0.92rem;
}

.spinner-ring {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(250, 204, 21, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spinLoader 0.8s linear infinite;
}
@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

.map-floating-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(6, 10, 22, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  padding: 10px 14px;
  pointer-events: none;
  max-width: 460px;
}
.overlay-title {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.overlay-sub {
  font-size: 0.76rem;
  color: #cbd5e1;
}

.map-legend-box {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(6, 10, 22, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  color: #cbd5e1;
}
.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1.5px solid #fff;
}

/* Barra Rápida de Cidades abaixo do Mapa */
.quick-cities-strip {
  background: rgba(6, 10, 22, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 14px;
  padding: 12px 14px;
}

.quick-cities-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.quick-cities-header span {
  font-size: 0.76rem;
  font-weight: 900;
  color: var(--gold);
}
.quick-cities-header small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cities-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 110px;
  overflow-y: auto;
  padding-right: 4px;
}
.cities-chips-wrap::-webkit-scrollbar {
  width: 5px;
}
.cities-chips-wrap::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 99px;
}

.city-chip {
  background: rgba(23, 34, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.16s ease;
}
.city-chip:hover {
  border-color: var(--sky);
  transform: translateY(-1px);
}
.city-chip.active {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.24), rgba(23, 34, 59, 0.95));
  border-color: var(--gold);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.25);
}
.city-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #fff;
}
.city-chip-leader {
  font-weight: 800;
  font-size: 0.69rem;
}

/* COLUNA DA DIREITA: CENTRAL DE VOTAÇÃO */
.active-territory-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.territory-eyebrow {
  font-size: 0.66rem;
  font-weight: 900;
  color: var(--sky);
  letter-spacing: 0.6px;
}

.active-territory-banner h2 {
  font-family: "Outfit", sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
}
.active-territory-banner p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.leader-mini-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 10, 22, 0.9);
  border: 1.5px solid var(--gold);
  padding: 6px 11px;
  border-radius: 12px;
}
.leader-mini-pill .mini-label {
  display: block;
  font-size: 0.63rem;
  text-transform: uppercase;
  color: var(--text-muted);
}
.leader-mini-pill strong {
  font-size: 0.78rem;
  color: #ffffff;
}

.city-battle-box {
  background: rgba(6, 10, 22, 0.84);
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.city-battle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.city-tag-eyebrow {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.5px;
}
.city-battle-header h4 {
  font-size: 0.98rem;
  font-weight: 900;
}
.city-total-votes-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
}

.rivalry-tug-bar {
  display: flex;
  height: 24px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.tug-side {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
}
.tug-right {
  justify-content: flex-end;
}

.turn-alert-banner {
  font-size: 0.75rem;
  color: #fde047;
  background: rgba(234, 179, 8, 0.12);
  border-radius: 7px;
  padding: 6px 10px;
  line-height: 1.35;
}

/* GALERIA DE TIMES COM CORES OFICIAIS */
.clubs-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-step-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  font-size: 0.64rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 5px;
  margin-right: 6px;
}
.section-step-badge.gold {
  background: rgba(250, 204, 21, 0.2);
  color: var(--gold-bright);
}

.clubs-section-header strong {
  font-size: 0.88rem;
}

.club-filter-mini input {
  background: #070b17;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 0.76rem;
  width: 165px;
}
.club-filter-mini input:focus {
  outline: none;
  border-color: var(--gold);
}

.teams-color-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 270px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 16px;
}
.teams-color-grid::-webkit-scrollbar {
  width: 5px;
}
.teams-color-grid::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 99px;
}

.team-color-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 10px 10px 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--team-primary) 62%, #090d16), rgba(15, 23, 42, 0.94));
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.team-color-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--team-primary) 50%, var(--team-secondary) 50%);
}

.team-color-card:hover {
  transform: translateY(-2px);
  border-color: var(--team-accent);
}

.team-color-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.35), 0 8px 20px rgba(0, 0, 0, 0.5);
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--team-primary) 82%, #090d16), rgba(20, 30, 55, 0.96));
}

.team-color-info {
  flex: 1;
  min-width: 0;
}
.team-color-info strong {
  display: block;
  font-size: 0.84rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-color-votes {
  display: block;
  font-size: 0.7rem;
  color: #e2e8f0;
  margin-top: 2px;
}

.team-color-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: transparent;
  flex-shrink: 0;
}
.team-color-card.selected .team-color-check {
  background: var(--gold);
  border-color: #ffffff;
  color: #090d16;
  font-weight: 900;
}

/* PASSAPORTE DO VOTO */
.vote-passport-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(9, 14, 28, 0.96), rgba(6, 10, 20, 0.98));
  border: 1.5px solid rgba(250, 204, 21, 0.35);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.passport-ribbon {
  height: 6px;
  margin: -16px -16px 12px -16px;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
}

.passport-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.passport-header h3 {
  font-size: 0.96rem;
  font-weight: 900;
  margin-top: 3px;
}

.passport-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-field.full-width {
  grid-column: span 2;
}

.form-field label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #cbd5e1;
  text-transform: uppercase;
}

.form-field input[type="text"],
.passport-select,
.passport-city-editable {
  width: 100%;
  background: #0d1527;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 9px;
  padding: 9px 11px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
}
.passport-city-editable {
  border-color: rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  font-weight: 800;
}

.passport-selected-team-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.vote-packs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.vote-pack-btn {
  background: #0d1527;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 7px 4px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.15s ease;
}
.vote-pack-btn:hover {
  border-color: var(--emerald);
}
.vote-pack-btn.active {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.28);
}
.pack-votes {
  font-size: 0.74rem;
  font-weight: 900;
}
.pack-price {
  font-size: 0.67rem;
  color: #34d399;
  font-weight: 700;
}

.custom-votes-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 0.76rem;
  color: #cbd5e1;
  flex-wrap: wrap;
}

.stepper-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stepper-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0d1527;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

#custom-votes-input {
  width: 68px;
  text-align: center;
  background: #060913;
  border: 1px solid var(--gold);
  border-radius: 7px;
  padding: 5px;
  color: var(--gold);
  font-weight: 900;
  font-size: 0.86rem;
}

.stepper-total-price {
  color: #34d399;
  font-size: 0.88rem;
  font-weight: 900;
}

.btn-pix-cta {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.38);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-pix-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.cta-subtext {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  line-height: 1.35;
}

.btn-whatsapp-share {
  width: 100%;
  margin-top: 8px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #4ade80;
  padding: 8px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

/* SEÇÃO INFERIOR DE RANKINGS COMPLETOS */
.rankings-bottom-section {
  max-width: 1560px;
  margin: 0 auto 56px;
  padding: 0 24px;
}

.rankings-section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.rankings-section-top h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
}
.rankings-section-top p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ranking-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ranking-tab-btn {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}
.ranking-tab-btn.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--sky);
  color: #ffffff;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 780px;
  margin: 0 auto 20px;
  align-items: end;
}

.podium-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.podium-card:hover {
  transform: translateY(-3px);
}
.podium-card.rank-1 {
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.22), rgba(15, 23, 42, 0.95));
  border-color: var(--gold);
  padding: 18px 12px;
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.2);
}

.podium-crown {
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 6px;
}
.podium-name {
  font-size: 0.9rem;
  margin-top: 6px;
}
.podium-uf {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.podium-votes {
  font-size: 0.85rem;
  font-weight: 900;
  color: #34d399;
  margin-top: 4px;
}
.podium-pct {
  font-size: 0.7rem;
  color: #cbd5e1;
}

.ranking-list-wide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
}

.ranking-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(23, 34, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ranking-row:hover {
  background: rgba(39, 55, 90, 0.85);
}

.rank-pos {
  font-size: 0.76rem;
  font-weight: 900;
  width: 26px;
  color: var(--text-muted);
}
.rank-pos.top-pos {
  color: var(--gold);
}

.rank-club-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.rank-club-cell strong {
  display: block;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-club-cell small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.rank-bar-wrap {
  width: 55px;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}
.rank-bar-fill {
  height: 100%;
  border-radius: 99px;
}

.rank-votes-val {
  font-size: 0.78rem;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
}
.rank-votes-val small {
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================================
   ESTILOS DA PÁGINA DO ADMINISTRADOR (admin.html)
   ============================================================================ */
.admin-dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.admin-kpi-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-page-grid {
  max-width: 1560px;
  margin: 0 auto 48px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 20px;
  align-items: start;
}

.admin-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.admin-section-header h2 {
  font-size: 1.2rem;
  font-weight: 900;
}
.admin-section-header p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.admin-header-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-filters-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.admin-filters-bar input {
  flex: 1;
  min-width: 240px;
  background: #080d1a;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.84rem;
}

.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.admin-tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-tx-table th {
  background: rgba(6, 10, 22, 0.9);
  color: var(--text-muted);
  text-align: left;
  padding: 12px 14px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-tx-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: #e2e8f0;
}
.admin-tx-table tr:hover td {
  background: rgba(56, 189, 248, 0.06);
}

.adm-uf-pill {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.74rem;
}

.btn-del-tx {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-del-tx:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* Modal de Pagamento Pix */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-card {
  background: #0d1527;
  border: 1.5px solid rgba(250, 204, 21, 0.45);
  border-radius: 22px;
  width: 100%;
  max-width: 450px;
  padding: 22px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

.pix-modal-eyebrow {
  font-size: 0.64rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.pix-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.pix-modal-header h3 {
  font-size: 1.2rem;
  font-weight: 900;
}
.pix-modal-header p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pix-order-details-card {
  background: rgba(6, 10, 22, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.order-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.77rem;
  color: #cbd5e1;
}
.order-detail-row strong {
  color: #ffffff;
}
.order-detail-row.highlight {
  padding-top: 6px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #6ee7b7;
}
.order-detail-row.highlight strong {
  color: var(--gold);
  font-size: 0.95rem;
}

.pix-qr-box {
  width: 210px;
  height: 210px;
  margin: 0 auto 10px;
  padding: 6px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}

.pix-timer-row {
  text-align: center;
  font-size: 0.75rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}
.pix-timer-row strong {
  color: var(--gold);
}

.pix-copy-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}
.pix-copy-group input {
  width: 100%;
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 10px;
  color: #94a3b8;
  font-size: 0.72rem;
  font-family: monospace;
}

.btn-copy-pix {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  padding: 9px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-simulate-paid {
  width: 100%;
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #090d16;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.3);
}

.goal-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  background: linear-gradient(135deg, #065f46, #047857);
  border: 2px solid #34d399;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
  max-width: 430px;
  animation: slideUpToast 0.35s ease;
}

@keyframes slideUpToast {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.goal-toast-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.goal-toast-icon {
  font-size: 2rem;
}
.goal-toast-text strong {
  display: block;
  font-size: 0.94rem;
  color: #ffffff;
}
.goal-toast-text span {
  font-size: 0.8rem;
  color: #d1fae5;
}
.goal-turn-banner {
  margin-top: 6px;
  background: rgba(250, 204, 21, 0.22);
  border: 1px solid var(--gold);
  color: #fef08a;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
}

#confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1150;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -12px;
  width: 10px;
  height: 16px;
  border-radius: 2px;
  animation: fallConfetti linear forwards;
}
@keyframes fallConfetti {
  to {
    transform: translateY(105vh) rotate(720deg);
    opacity: 0;
  }
}

.admin-form-group {
  margin-bottom: 12px;
}
.admin-form-group label {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 700;
}
.admin-form-group input {
  width: 100%;
  background: #060913;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 9px 12px;
  color: #ffffff;
  font-size: 0.83rem;
}

@media (max-width: 1180px) {
  .hero-main-content,
  .arena-main-layout,
  .admin-page-grid {
    grid-template-columns: 1fr;
  }
  .ranking-list-wide {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-dashboard-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .how-it-works-pills,
  .ranking-list-wide,
  .podium-grid,
  .admin-dashboard-kpis {
    grid-template-columns: 1fr;
  }
  .map-stage-giant {
    height: 460px;
  }
  .vote-packs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ============================================================================
   NOVOS ESTILOS: BANNER DE RIVALIDADE, CAMPO SELECT DE CIDADES E RANKING ANIMADO
   ============================================================================ */

/* Banner de Rivalidade no Hero Header */
.rivalry-callout-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.22), rgba(250, 204, 21, 0.18), rgba(15, 23, 42, 0.9));
  border: 1.5px solid rgba(250, 204, 21, 0.55);
  border-radius: 14px;
  padding: 11px 16px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.18);
  animation: rivalryPulseBorder 2.4s infinite ease-in-out;
}

@keyframes rivalryPulseBorder {
  0%, 100% {
    border-color: rgba(250, 204, 21, 0.65);
    box-shadow: 0 6px 22px rgba(250, 204, 21, 0.16);
  }
  50% {
    border-color: rgba(239, 68, 68, 0.75);
    box-shadow: 0 8px 28px rgba(239, 68, 68, 0.28);
  }
}

.rivalry-fire-icon {
  font-size: 1.55rem;
  animation: fireBounce 1.4s infinite ease-in-out;
}

@keyframes fireBounce {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50% { transform: scale(1.18) rotate(4deg); }
}

.rivalry-callout-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 0.3px;
}

.rivalry-callout-text span {
  font-size: 0.78rem;
  color: #e2e8f0;
}

/* Faixa de Rivalidade na Coluna de Votação */
.vote-rivalry-strip {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.24), rgba(250, 204, 21, 0.2));
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #fef08a;
  font-size: 0.8rem;
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

/* Campo Select de Cidades do Estado acima do Mapa e no Passaporte */
.city-select-field-wrapper {
  flex: 1.15;
  min-width: 240px;
}

.map-city-select,
.passport-city-select {
  width: 100%;
  background: #080d1a;
  border: 1.5px solid rgba(250, 204, 21, 0.55);
  color: #fef08a;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.map-city-select:focus,
.passport-city-select:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

.map-city-select:disabled,
.passport-city-select:disabled {
  opacity: 0.65;
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
  cursor: not-allowed;
}

/* Cards de Escolha Inicial de Estado quando nenhum UF está ativo */
.state-picker-card .state-uf-circle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #040711;
  font-weight: 900;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================================
   RANKING SUPER ANIMADO (VISÃO BRASIL, TOP 5 POR ESTADO E TOP 5 POR CIDADE)
   ============================================================================ */
.ranking-rivalry-marquee {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.2), rgba(250, 204, 21, 0.16), rgba(16, 185, 129, 0.14));
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 14px;
  padding: 10px 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.marquee-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.marquee-message {
  font-size: 0.84rem;
  color: #f8fafc;
  flex: 1;
}
.marquee-message strong {
  color: #fde047;
}

/* Animações de Entrada e Barras com Shimmer */
@keyframes animFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes animPopIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.anim-fade-up {
  animation: animFadeUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-pop-in {
  animation: animPopIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.shimmer-bar {
  position: relative;
  overflow: hidden;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.shimmer-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  animation: barShimmer 2.4s infinite;
}

@keyframes barShimmer {
  100% {
    left: 160%;
  }
}

.podium-vote-cta {
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold);
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Card de Disputa dos 5 Maiores do Brasil */
.brazil-top5-battle-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(6, 10, 22, 0.96));
  border: 1.5px solid rgba(250, 204, 21, 0.4);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 22px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.top5-battle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.live-battle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 900;
  color: #34d399;
  letter-spacing: 0.5px;
}

.top5-battle-header h4 {
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  margin-top: 2px;
}

.rivalry-mini-tag {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
}

.top5-bars-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top5-animated-row {
  display: grid;
  grid-template-columns: 36px 220px 1fr 110px 90px;
  align-items: center;
  gap: 12px;
  background: rgba(23, 34, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.top5-animated-row:hover {
  transform: translateX(4px);
  border-color: var(--gold);
  background: rgba(30, 45, 78, 0.85);
}

.top5-rank-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-weight: 900;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top5-rank-badge.pos-1 {
  background: linear-gradient(135deg, #facc15, #ca8a04);
  color: #090d16;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.45);
}

.top5-club-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.top5-club-identity strong {
  display: block;
  font-size: 0.88rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top5-gap-hint {
  display: block;
  font-size: 0.7rem;
  color: #fde047;
}

.top5-progress-track {
  width: 100%;
  height: 14px;
  background: rgba(6, 10, 22, 0.85);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.top5-progress-fill {
  height: 100%;
  border-radius: 999px;
}

.top5-metrics {
  text-align: right;
}

.top5-metrics strong {
  display: block;
  font-size: 0.88rem;
  color: #ffffff;
}

.top5-metrics span {
  font-size: 0.72rem;
  color: #34d399;
  font-weight: 800;
}

.btn-mini-vote {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
}

/* Barra de Subfiltro das Visões de Estado e Cidade */
.ranking-subfilter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(6, 10, 22, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ranking-subfilter-bar strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.ranking-subfilter-bar span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.subfilter-input-wrap input {
  background: #0b1325;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 10px;
  padding: 9px 14px;
  color: #ffffff;
  font-size: 0.82rem;
  min-width: 260px;
}

/* Grid de Cards de Estados (Top 5 Times por Estado) e Cidades (Disputa dos 5 Maiores) */
.state-top5-cards-grid,
.city-top5-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.state-top5-card,
.city-top5-card {
  background: linear-gradient(180deg, rgba(17, 26, 48, 0.92), rgba(9, 14, 28, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.state-top5-card:hover,
.city-top5-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}

.state-top5-card-head,
.city-top5-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.state-head-left,
.city-head-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.state-uf-pill,
.city-rank-medal {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.22), rgba(56, 189, 248, 0.2));
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 900;
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 10px;
}

.state-head-left h4,
.city-head-title h4 {
  font-size: 0.98rem;
  font-weight: 900;
  color: #ffffff;
}

.state-head-left small,
.city-state-sub {
  display: block;
  font-size: 0.71rem;
  color: var(--text-muted);
}

.state-head-right,
.city-head-votes {
  text-align: right;
}

.state-head-right strong,
.city-head-votes strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  color: #34d399;
}

.state-head-right small,
.city-head-votes small {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.state-leader-banner,
.city-turn-callout {
  background: rgba(6, 10, 22, 0.78);
  border-left: 3.5px solid var(--gold);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.75rem;
  color: #e2e8f0;
  line-height: 1.35;
}

.top5-section-label {
  font-size: 0.66rem;
  font-weight: 900;
  color: var(--sky);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.state-top5-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.state-top5-team-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  padding: 6px 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.state-top5-team-row:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(250, 204, 21, 0.45);
}

.st-rank-num {
  width: 22px;
  font-size: 0.74rem;
  font-weight: 900;
  color: var(--text-muted);
}

.st-rank-num.first {
  color: var(--gold);
}

.st-team-bar-col {
  flex: 1;
  min-width: 0;
}

.st-team-name-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  margin-bottom: 3px;
}

.st-team-name-line strong {
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-team-name-line span {
  color: #cbd5e1;
  font-size: 0.71rem;
  white-space: nowrap;
}

.st-mini-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(6, 10, 22, 0.9);
  border-radius: 99px;
  overflow: hidden;
}

.st-mini-bar-fill {
  height: 100%;
  border-radius: 99px;
}

/* Barra Multicor de Cabo de Guerra dos 5 Maiores na Cidade */
.city-multibar-track {
  display: flex;
  height: 22px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(6, 10, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.city-multibar-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  white-space: nowrap;
}

.city-multibar-empty {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #94a3b8;
}

.btn-state-card-vote {
  margin-top: auto;
  width: 100%;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.42);
  color: #fef08a;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-state-card-vote:hover {
  background: var(--gold);
  color: #090d16;
}

@media (max-width: 1180px) {
  .state-top5-cards-grid,
  .city-top5-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .top5-animated-row {
    grid-template-columns: 32px 1fr 100px;
  }
  .top5-progress-track,
  .btn-mini-vote {
    display: none;
  }
}

@media (max-width: 780px) {
  .state-top5-cards-grid,
  .city-top5-cards-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================================
   PROTEÇÃO DE ACESSO DO ADMINISTRADOR (LOGIN CRIPTOGRAFADO SHA-256)
   ============================================================================ */
.adm-auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.adm-auth-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, rgba(13, 21, 39, 0.96), rgba(6, 10, 22, 0.98));
  border: 1.5px solid rgba(250, 204, 21, 0.45);
  border-radius: 22px;
  padding: 30px 26px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85);
  text-align: center;
}

.adm-lock-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(16, 185, 129, 0.16));
  border: 1.5px solid rgba(250, 204, 21, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 10px 25px rgba(250, 204, 21, 0.18);
}

.adm-auth-card h1 {
  font-family: "Outfit", sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 6px;
}

.adm-auth-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 20px;
}

.adm-pass-field-wrap {
  position: relative;
  margin-bottom: 14px;
  text-align: left;
}

.adm-pass-field-wrap label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.adm-pass-input-row {
  display: flex;
  align-items: center;
  background: #060a15;
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 0 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.adm-pass-input-row:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.25);
}

.adm-pass-input-row input {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 13px 0;
}

.adm-pass-input-row input:focus {
  outline: none;
}

.btn-toggle-pass {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 6px;
}

.adm-auth-error {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.adm-auth-back-link {
  display: inline-block;
  margin-top: 16px;
  color: #94a3b8;
  font-size: 0.78rem;
  text-decoration: none;
  font-weight: 600;
}
.adm-auth-back-link:hover {
  color: #ffffff;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

.shake-anim {
  animation: shakeError 0.35s ease;
}
