:root {
  --bg-dark: #07070a;
  --bg-card: #12121a;
  --bg-card-alt: #181824;
  --bg-input: #0a0a0f;

  --gold-bright: #ffe27a;
  --gold-primary: #d4af37;
  --gold-gradient: linear-gradient(135deg, #fce38a 0%, #d4af37 50%, #aa7c11 100%);
  --gold-border: rgba(212, 175, 55, 0.32);

  --text-white: #faf9f6;
  --text-muted: #a3a098;
  --success: #34d399;
  --danger: #f87171;

  --font-display: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  background: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
}

/* ==========================================================================
   TELA DE LOGIN
   ========================================================================== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at top, rgba(212, 175, 55, 0.16) 0%, #07070a 65%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 22px;
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
}

.login-logo {
  width: 110px;
  height: 110px;
  border-radius: 20px;
  border: 2px solid var(--gold-primary);
  object-fit: contain;
  background: #000;
  margin-bottom: 16px;
}

.login-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.login-card .form-group {
  text-align: left;
}

.login-error {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid var(--danger);
  color: #fecaca;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 14px;
}

.login-footer-links {
  margin-top: 18px;
}

.login-footer-links a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
}

/* ==========================================================================
   ESTRUTURA LIMPA CENTRALIZADA
   ========================================================================== */
.shell-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

.clean-header {
  background: #0c0c12;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-top: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--gold-primary);
  object-fit: contain;
  background: #000;
}

.header-brand h1 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-bright);
}

.status-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Menu de 4 Botões Grandes */
.main-tabs-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding-bottom: 14px;
}

.main-tab-btn {
  background: #14141f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text-white);
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: all 0.2s ease;
}

.main-tab-btn:hover {
  border-color: var(--gold-primary);
  background: #1a1a28;
}

.main-tab-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.26) 0%, rgba(212, 175, 55, 0.08) 100%);
  border: 2px solid var(--gold-bright);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

.tab-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.tab-labels {
  display: flex;
  flex-direction: column;
}

.tab-labels strong {
  font-size: 14px;
  color: var(--gold-bright);
}

.tab-labels small {
  font-size: 11.5px;
  color: var(--text-muted);
}

.main-content {
  padding-top: 24px;
  padding-bottom: 60px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Banner Demo */
.demo-banner {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
}

/* Cards de Passo */
.step-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 18px;
  padding: 24px;
}

.step-card h2 {
  font-size: 20px;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
}

.step-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.step-header-split {
  justify-content: space-between;
  flex-wrap: wrap;
}

.step-number-badge {
  background: var(--gold-gradient);
  color: #090806;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 99px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

/* ==========================================================================
   ABA 1: SELETOR DAS 15 CATEGORIAS + 6 CARDS DE FOTO E NOME
   ========================================================================== */
.category-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.cat-pick-btn {
  background: #181824;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: all 0.18s ease;
}

.cat-pick-btn:hover {
  border-color: var(--gold-primary);
  background: #202030;
}

.cat-pick-btn.active {
  background: var(--gold-gradient);
  color: #080705;
  border-color: var(--gold-bright);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.cat-pick-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Grid dos 6 Candidatos (Super Simples: Foto Grande + Nome) */
.simple-candidates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.simple-cand-card {
  background: #171722;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.simple-cand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cand-slot-pill {
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
}

.cand-save-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
}

/* Área Grande Clicável da Foto */
.cand-photo-dropzone {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.2;
  border-radius: 14px;
  background: #0b0b10;
  border: 2px dashed rgba(212, 175, 55, 0.45);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cand-photo-dropzone:hover {
  border-color: var(--gold-bright);
  background: #12121b;
}

.cand-photo-dropzone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Enquadramento para a categoria de Atletas no Admin */
img[src*="cat-7-cand"],
.cand-photo-dropzone img[src*="cat-7-cand"],
.cand-row-avatar[src*="cat-7-cand"],
.winner-thumb img[src*="cat-7-cand"] {
  object-position: top center !important;
}

.cand-photo-overlay-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(7, 7, 10, 0.88);
  border: 1px solid var(--gold-bright);
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 99px;
  white-space: nowrap;
  pointer-events: none;
}

.cand-empty-photo-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 16px;
}

.cand-empty-photo-prompt .cam-icon {
  font-size: 32px;
}

.cand-empty-photo-prompt strong {
  font-size: 14px;
  color: var(--gold-bright);
}

.cand-empty-photo-prompt small {
  font-size: 12px;
  color: var(--text-muted);
}

.simple-name-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #e4e2dd;
  margin-bottom: 6px;
}

/* ==========================================================================
   ABA 2: RESULTADOS (QUEM ESTÁ GANHANDO — DASHBOARD DE GALA)
   ========================================================================== */
.eyebrow-gold {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 3px;
}

.gala-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.gala-kpi-card {
  background: linear-gradient(160deg, #171723 0%, #101018 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.gala-kpi-card.primary-gold {
  border-color: var(--gold-bright);
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.22), transparent 65%),
    linear-gradient(155deg, #211b0c 0%, #12121a 100%);
  box-shadow: 0 14px 36px rgba(212, 175, 55, 0.16);
}

.kpi-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.kpi-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #d6d3cb;
}

.kpi-live-dot {
  font-size: 10.5px;
  font-weight: 800;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.05em;
}

.kpi-big-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--gold-bright);
  line-height: 1.1;
  margin: 4px 0 6px;
}

.kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.kpi-quick-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

/* MURAL PANORÂMICO DOS 16 CAMPEÕES ATUAIS */
.champions-wall-section {
  background: radial-gradient(circle at top center, rgba(212, 175, 55, 0.12) 0%, rgba(18, 18, 26, 0.96) 65%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.section-heading-row h2 {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--gold-bright);
}

.wall-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.champions-wall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.champion-mini-card {
  background: linear-gradient(155deg, #181825 0%, #101018 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 15px;
  padding: 13px 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.champion-mini-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-bright);
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.22);
}

.champion-mini-card.has-leader {
  background: linear-gradient(155deg, rgba(212, 175, 55, 0.14) 0%, #13131d 100%);
  border-color: rgba(212, 175, 55, 0.48);
}

.champ-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.champ-cat-badge {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #090805;
  background: var(--gold-gradient);
  padding: 2px 8px;
  border-radius: 6px;
}

.champ-votes-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.14);
  padding: 2px 8px;
  border-radius: 99px;
}

.champ-votes-pill.zero {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
}

.champ-cat-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.champ-leader-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.champ-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--gold-bright);
  background: #09090d;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--gold-bright);
}

.champ-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.champ-crown-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  font-size: 13px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.champ-leader-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.champ-rank-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold-primary);
}

.champ-leader-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.champ-margin-sub {
  font-size: 10.5px;
  color: #b9b5ac;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.champ-pct-badge {
  text-align: right;
  flex-shrink: 0;
}

.champ-pct-badge strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: var(--gold-bright);
  line-height: 1.1;
}

.champ-pct-badge small {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* Estado sem votos no Mural: pilha de avatares dos 6 indicados */
.champ-waiting-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-avatar-stack {
  display: flex;
  align-items: center;
}

.mini-stack-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  background: #0d0d14;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--gold-bright);
  margin-left: -7px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.mini-stack-avatar:first-child {
  margin-left: 0;
}

.mini-stack-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.champ-waiting-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.champ-waiting-meta strong {
  font-size: 11px;
  color: #dcd9d0;
}

.champ-waiting-meta small {
  font-size: 10px;
  color: var(--gold-primary);
}

/* BARRA DE FILTROS E PÍLULAS DE ORDENAÇÃO */
.results-filter-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.results-filter-bar h2 {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--gold-bright);
}

.results-filter-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-sort-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #101018;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sort-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sort-pill:hover {
  color: var(--text-white);
}

.sort-pill.active {
  background: var(--gold-gradient);
  color: #090805;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.filter-select {
  width: auto;
  min-width: 240px;
  font-weight: 700;
  padding: 10px 14px;
  font-size: 13.5px;
}

/* GRID DETALHADO DAS 16 CATEGORIAS */
.results-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cat-result-card {
  background: linear-gradient(165deg, #151520 0%, #0f0f17 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.cat-result-card.pulse-focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(255, 226, 122, 0.45), 0 18px 45px rgba(212, 175, 55, 0.35);
}

.cat-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cat-result-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-number-crest {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold-gradient);
  color: #090805;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.cat-result-title {
  display: block;
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 800;
  color: var(--gold-bright);
  line-height: 1.2;
}

.cat-sponsor-mini {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cat-sponsor-mini strong {
  color: #e9e4d8;
}

.cat-result-total {
  font-size: 12.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

.cat-result-total.active {
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-bright);
  border: 1px solid rgba(212, 175, 55, 0.38);
}

/* Destaque do 1º Colocado com Foto Grande */
.winner-highlight-box {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.24) 0%, rgba(212, 175, 55, 0.05) 100%);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.winner-highlight-box.waiting {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px dashed rgba(212, 175, 55, 0.32);
}

.winner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.winner-thumb {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #09090d;
  border: 2px solid var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--gold-bright);
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.winner-thumb.waiting-icon {
  width: 46px;
  height: 46px;
  border-color: rgba(212, 175, 55, 0.35);
  font-size: 20px;
}

.winner-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.winner-thumb-crown {
  position: absolute;
  top: -9px;
  right: -8px;
  font-size: 16px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85));
}

.winner-text-col {
  min-width: 0;
}

.winner-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.winner-name {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.25;
}

.winner-right-stats {
  text-align: right;
  flex-shrink: 0;
}

.winner-pct {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--gold-bright);
  line-height: 1;
}

.winner-votes-sub {
  font-size: 11.5px;
  font-weight: 700;
  color: #d5d1c8;
  margin-top: 3px;
}

/* Pódio dos 6 Indicados com Mini Foto + Medalhas + Barras */
.cand-bars-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cand-bar-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cand-bar-item.rank-1 {
  background: rgba(212, 175, 55, 0.09);
  border-color: rgba(212, 175, 55, 0.42);
}

.cand-bar-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.cand-bar-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.podium-rank-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  min-width: 42px;
  text-align: center;
}

.podium-rank-pill.rank-gold {
  background: var(--gold-gradient);
  color: #090805;
}

.podium-rank-pill.rank-silver {
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
  color: #0f172a;
}

.podium-rank-pill.rank-bronze {
  background: linear-gradient(135deg, #f6ad55 0%, #c05621 100%);
  color: #fff;
}

.podium-rank-pill.rank-other {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.cand-row-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: #0b0b10;
  flex-shrink: 0;
}

.cand-row-avatar.fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-bright);
}

.cand-bar-name {
  font-weight: 700;
  color: #ece9e2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cand-bar-stats {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-shrink: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.cand-bar-stats strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-white);
}

.cand-bar-item.rank-1 .cand-bar-name,
.cand-bar-item.rank-1 .cand-bar-stats strong {
  color: var(--gold-bright);
  font-weight: 800;
}

.cand-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
}

.cand-bar-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.cand-bar-item.rank-1 .cand-bar-fill {
  background: var(--gold-gradient);
}

.cand-bar-item.rank-2 .cand-bar-fill {
  background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 100%);
}

.cand-bar-item.rank-3 .cand-bar-fill {
  background: linear-gradient(90deg, #f6ad55 0%, #dd6b20 100%);
}

/* TABELA DE AUDITORIA DOS E-MAILS QUE JÁ VOTARAM */
.empty-voters-clean-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 14px;
  padding: 18px 20px;
}

.empty-voters-icon {
  font-size: 28px;
}

.empty-voters-clean-box strong {
  display: block;
  color: #6ee7b7;
  font-size: 15px;
  margin-bottom: 2px;
}

.empty-voters-clean-box p {
  font-size: 13px;
  color: #d1fae5;
}

.voters-audit-table-wrap {
  overflow-x: auto;
}

.voters-audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.voters-audit-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.voters-audit-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.voters-audit-table tr.row-invalidated {
  opacity: 0.5;
}

.protocol-pill {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-bright);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.voter-email-cell {
  color: #e2dfd9;
  font-family: monospace;
  font-size: 13px;
}

.voter-status-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
}

.voter-status-pill.valid {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.voter-status-pill.invalid {
  background: rgba(248, 113, 113, 0.16);
  color: #f87171;
}

/* ==========================================================================
   ABA 3 & 4: PATROCINADORES E RELATÓRIOS
   ========================================================================== */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.big-photo-upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  background: #0b0b10;
  border: 2px dashed rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  text-align: center;
}

.big-photo-upload-box img {
  max-height: 90px;
  object-fit: contain;
}

.sponsors-simple-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sponsor-simple-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #181824;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
}

.big-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clean-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 22px 0;
}

.report-preview-frame-wrap {
  width: 100%;
  height: 500px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--gold-border);
  background: #070709;
}

#reportPreviewIframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   FORMULÁRIOS E BOTÕES GERAIS
   ========================================================================== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #e5e2dc;
  margin-bottom: 6px;
}

.admin-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 15px;
}

.admin-input:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold-primary);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #090805;
  border: none;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.28);
}

.btn-gold:hover {
  filter: brightness(1.06);
}

.btn-outline {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-bright);
  border: 1px solid rgba(212, 175, 55, 0.5);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-lg {
  padding: 14px 22px;
  font-size: 14.5px;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
}

.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #171723;
  border: 2px solid var(--gold-bright);
  color: var(--text-white);
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  z-index: 200;
}

/* ==========================================================================
   RESPONSIVIDADE MOBILE E TABLET
   ========================================================================== */
@media (max-width: 960px) {
  .main-tabs-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .gala-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .champions-wall-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .simple-candidates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .results-cards-grid {
    grid-template-columns: 1fr;
  }
  .two-col-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main-tabs-nav {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .main-tab-btn {
    padding: 10px;
    gap: 8px;
  }
  .tab-icon {
    font-size: 20px;
  }
  .tab-labels strong {
    font-size: 12.5px;
  }
  .tab-labels small {
    display: none;
  }
  .gala-kpi-grid,
  .champions-wall-grid,
  .simple-candidates-grid {
    grid-template-columns: 1fr;
  }
  .quick-sort-pills {
    width: 100%;
    overflow-x: auto;
  }
  .filter-select {
    width: 100%;
  }
  .step-card {
    padding: 16px;
  }
  .step-header-split {
    flex-direction: column;
    align-items: stretch;
  }
  .step-header-split > button {
    width: 100%;
  }
  .admin-input {
    font-size: 16px;
  }
}
