/* ==========================================================================
   ARENA REAL - DESIGN SYSTEM MOBILE (PRETO & CINZA / MOBILE-DESIGN)
   Paleta: Preto Profundo OLED (#000000), Titânio & Grafite (Zinc/Neutral)
   Foco: Ergonomia de Toque (Fitts' Law), Alto Contraste, Bateria Consciente
   ========================================================================== */

:root {
  /* Fundo OLED e Superfícies Preto & Cinza */
  --bg-app: #000000;
  --bg-card: #09090b;
  --bg-card-subtle: #121215;
  --bg-card-elevated: #18181b;
  
  --bg-paper: #0d0d11;
  --bg-paper-header: #09090c;
  --paper-line: rgba(255, 255, 255, 0.06);
  --paper-margin: rgba(255, 255, 255, 0.16);
  --paper-gutter-bg: #07070a;

  --border-color: #222227;
  --border-subtle: #1a1a20;
  --border-focus: #52525b;
  --border-metallic: #3f3f46;
  
  --text-main: #f4f4f6;
  --text-muted: #a1a1aa;
  --text-light: #52525b;
  
  /* Sistema Acento: Grafite, Titânio & Platina */
  --primary: #27272a;
  --primary-hover: #3f3f46;
  --primary-active: #52525b;
  --primary-light: #18181b;
  --primary-text: #f4f4f6;

  --accent-silver: #e4e4e7;
  --accent-glow: rgba(255, 255, 255, 0.15);

  --whatsapp: #25d366;
  --whatsapp-hover: #1ea952;
  --whatsapp-active: #178740;

  --danger: #ef4444;
  --danger-light: #200d0f;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 14px 28px -4px rgba(0, 0, 0, 0.85);
  --shadow-floating: 0 16px 36px rgba(0, 0, 0, 0.95);

  --line-height-paper: 28px;
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

/* Reset Básico & Acessibilidade Mobile */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

/* ==========================================================================
   ✨ SCROLLBAR ELEGANTE COR DE VIDRO (FROSTED CRYSTAL GLASS)
   ========================================================================== */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.12) 100%);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.24) 100%);
  border-color: rgba(255, 255, 255, 0.28);
}

::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  overflow-x: hidden;
}

/* Container do App com proporção mobile */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  position: relative;
  box-shadow: var(--shadow-lg);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

@media (min-width: 640px) {
  body {
    padding: 20px 16px;
    background-color: #000000;
  }
  
  .app-container {
    min-height: calc(100vh - 40px);
    max-height: 920px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
  }
}

/* Cabeçalho */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon {
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #1f1f23 0%, #121215 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-metallic);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header-title {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-transform: uppercase;
}

.header-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  min-height: 44px; /* Fitts' Law Touch Target */
  min-width: 44px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon.active {
  color: var(--text-main);
  border-color: var(--border-metallic);
  background-color: var(--primary);
}

.btn-icon:hover {
  background-color: var(--bg-card-elevated);
  color: var(--text-main);
}

#btn-limpar:hover {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-icon:active {
  transform: scale(0.92);
}

/* Faixa em Destaque: Sorteio Automático e Público (Preto & Prata Titânio) */
.public-draw-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(90deg, #141418 0%, #202026 50%, #141418 100%);
  color: var(--accent-silver);
  border-bottom: 1px solid var(--border-metallic);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.public-draw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #e4e4e7;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  animation: pulseDot 1s infinite alternate;
  flex-shrink: 0;
}

.public-draw-text {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4f4f6;
}

.public-draw-tag {
  font-size: 0.65rem;
  font-weight: 800;
  background-color: rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Área Principal */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 20px;
  gap: 14px;
  overflow-y: auto;
  position: relative;
}

/* ==========================================================================
   BARRA DE CONFIGURAÇÃO RÁPIDA DO JOGO (JOGADORES POR TIME)
   ========================================================================== */

.game-config-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  gap: 12px;
}

.config-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.config-bar-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.por-time-stepper {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-metallic);
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  gap: 8px;
}

.btn-mini-step {
  width: 28px;
  height: 28px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card-elevated);
  color: var(--text-main);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-mini-step:active {
  background-color: var(--primary);
  border-color: var(--border-metallic);
  transform: scale(0.92);
}

.valor-por-time {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  min-width: 20px;
  text-align: center;
}

.config-bar-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2px;
}

.info-auto-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  background-color: #27272a;
  border: 1px solid var(--border-metallic);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.info-auto-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   PRANCHETA / CADERNO PAUTADO REALISTA (PRETO CARVÃO & GRAFITE)
   ========================================================================== */

.notepad-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-paper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  position: relative;
}

.notepad-card:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), var(--shadow-md);
}

/* Clipe Metálico da Prancheta (Grafite Titânio) */
.clipboard-top {
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, #18181b 0%, #0d0d11 100%);
  padding: 4px 0 6px;
  border-bottom: 1px solid #1f1f23;
}

.clipboard-metal {
  width: 96px;
  height: 12px;
  background: linear-gradient(180deg, #3f3f46 0%, #27272a 50%, #18181b 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid #52525b;
}

.clipboard-hole {
  width: 28px;
  height: 4px;
  background-color: #09090b;
  border-radius: 4px;
}

/* Furos de Caderno */
.spiral-holes {
  display: flex;
  justify-content: space-around;
  padding: 6px 18px;
  background-color: var(--bg-paper-header);
  border-bottom: 1px solid var(--border-color);
}

.spiral-holes span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #000000;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
  border: 1px solid #1c1c22;
}

.notepad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-paper-header);
}

.notepad-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notepad-tag {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.notepad-counter {
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  background-color: #1f1f23;
  border: 1px solid var(--border-metallic);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* Corpo do Papel Pautado com Numeração Lateral */
.notepad-paper-container {
  flex: 1;
  display: flex;
  position: relative;
  min-height: 230px;
  max-height: 320px;
  overflow: hidden;
  background-color: var(--bg-paper);
}

.notepad-gutter {
  width: 44px;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: var(--paper-gutter-bg);
  border-right: 1px solid var(--border-color);
  user-select: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.gutter-line {
  height: var(--line-height-paper);
  line-height: var(--line-height-paper);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-light);
  width: 100%;
  text-align: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.gutter-line.valid-player {
  color: #ffffff;
  font-weight: 800;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.gutter-line.ignored-line {
  color: #52525b;
}

.notepad-margin-line {
  width: 1.5px;
  background-color: var(--paper-margin);
  height: 100%;
  position: absolute;
  left: 44px;
  top: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.notepad-body {
  flex: 1;
  display: flex;
  position: relative;
  height: 100%;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent calc(var(--line-height-paper) - 1px),
    var(--paper-line) calc(var(--line-height-paper) - 1px),
    var(--paper-line) var(--line-height-paper)
  );
  background-attachment: local;
}

.notepad-body textarea {
  width: 100%;
  height: 100%;
  padding: 10px 14px 10px 10px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.94rem;
  line-height: var(--line-height-paper);
  resize: none;
  outline: none;
  white-space: pre;
  overflow-y: scroll;
}

.notepad-body textarea::placeholder {
  color: #52525b;
  opacity: 0.9;
  font-weight: 400;
  line-height: var(--line-height-paper);
}

/* Fichas dos Jogadores Confirmados */
.detected-players-bar {
  padding: 10px 14px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.detected-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.detected-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.detected-hint {
  font-size: 0.68rem;
  color: var(--text-light);
}

.detected-chips-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #18181b;
  border: 1px solid var(--border-metallic);
  color: #f4f4f6;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.player-chip-num {
  font-weight: 800;
  color: #a1a1aa;
  font-size: 0.72rem;
}

.player-chip-remove {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.player-chip-remove:hover {
  background-color: var(--danger-light);
  color: var(--danger);
}

.notepad-footer {
  padding: 8px 14px;
  border-top: 1px dashed var(--border-color);
  background-color: var(--bg-paper-header);
}

.notepad-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

/* ==========================================================================
   BOTÃO FLUTUANTE DE GERAR SORTEIO (PRETO & CINZA TITÂNIO LUXO)
   ========================================================================== */

.action-dock {
  position: sticky;
  bottom: 14px;
  left: 0;
  right: 0;
  margin-top: auto;
  padding: 4px 0 0;
  z-index: 25;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.btn-primary {
  pointer-events: auto;
  width: 100%;
  height: 56px;
  min-height: 56px;
  border: 1.5px solid var(--border-metallic);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #27272a 0%, #18181b 100%);
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.9), 0 4px 12px -2px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-2px);
  border-color: #52525b;
  box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.95), 0 6px 16px -2px rgba(255, 255, 255, 0.15);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.97);
  box-shadow: 0 6px 14px -2px rgba(0, 0, 0, 0.8);
}

.btn-primary:disabled {
  background: #121215;
  border: 1px solid var(--border-color);
  color: #52525b;
  cursor: not-allowed;
  box-shadow: none;
  filter: none;
  opacity: 0.8;
}

/* ==========================================================================
   ARENA DE EMBARALHAMENTO REALISTA AO VIVO (SHUFFLE OVERLAY)
   ========================================================================== */

.shuffle-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, #18181b 0%, #000000 100%);
  color: #f8fafc;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  overflow-y: auto;
  animation: fadeInFast 0.2s ease;
}

@keyframes fadeInFast {
  from { opacity: 0; }
  to { opacity: 1; }
}

.shuffle-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
}

.shuffle-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #18181b;
  border: 1px solid var(--border-metallic);
  color: #e4e4e7;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #e4e4e7;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: pulseDot 0.8s infinite alternate;
}

@keyframes pulseDot {
  from { opacity: 0.4; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.2); }
}

.shuffle-title {
  font-size: 1.3rem;
  font-weight: 900;
  text-align: center;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.shuffle-subtitle {
  font-size: 0.82rem;
  color: #a1a1aa;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 16px;
}

/* Visor Roleta de Nomes (Slot Machine) */
.slot-machine-window {
  width: 100%;
  background: linear-gradient(180deg, #09090b 0%, #141418 50%, #09090b 100%);
  border: 2px solid var(--border-metallic);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  position: relative;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.8), inset 0 0 18px rgba(0, 0, 0, 0.9);
  margin-bottom: 16px;
  overflow: hidden;
}

.slot-Crosshair-left,
.slot-Crosshair-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #e4e4e7;
  font-size: 0.85rem;
  opacity: 0.85;
}

.slot-Crosshair-left { left: 10px; }
.slot-Crosshair-right { right: 10px; }

.slot-reel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.slot-item {
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.08s ease;
}

.slot-item.prev,
.slot-item.next {
  font-size: 0.82rem;
  font-weight: 600;
  color: #52525b;
  filter: blur(0.6px);
}

.slot-item.active {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  padding: 4px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

/* Tabuleiro de Fichas Trocando de Posição */
.shuffle-board-label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  color: #a1a1aa;
  margin-bottom: 8px;
}

.shuffle-cards-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
}

.shuffle-player-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background-color: #121215;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all 0.12s ease;
}

.shuffle-player-card.swapping {
  background-color: #27272a;
  border-color: #52525b;
  transform: scale(1.04);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.shuffle-pos-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: #71717a;
}

.shuffle-player-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f4f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Barra de Progresso do Embaralhamento */
.shuffle-progress-bar {
  width: 100%;
  height: 6px;
  background-color: #18181b;
  border-radius: var(--radius-pill);
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #27272a;
}

.shuffle-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #52525b 0%, #e4e4e7 100%);
  transition: width 0.1s linear;
}

.btn-skip-shuffle {
  margin-top: 14px;
  background: transparent;
  border: 1px solid #3f3f46;
  color: #a1a1aa;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-skip-shuffle:hover {
  background-color: #18181b;
  color: #ffffff;
}

/* ==========================================================================
   PAINEL DE RESULTADOS (MODO PRETO & CINZA DE ALTO PADRÃO)
   ========================================================================== */

.results-sheet {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-card);
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 24px;
  overflow-y: auto;
  animation: slideInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.sheet-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-public-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #18181b;
  border: 1px solid var(--border-metallic);
  color: #e4e4e7;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 5px;
}

.sheet-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sheet-title {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.sheet-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #18181b;
  color: #e4e4e7;
  border: 1px solid var(--border-metallic);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.btn-close {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-close:active {
  transform: scale(0.92);
}

/* Grid de Times Sorteados */
.teams-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0;
  flex: 1;
}

.team-card {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  animation: cardPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: border-color 0.2s ease;
}

/* Identidade Visual dos Uniformes Oficiais */
.team-card.team-color-1 {
  border-color: #3f3f46;
  border-top: 2px solid #71717a;
}

.team-card.team-color-2 {
  border-color: rgba(220, 38, 38, 0.35);
  border-top: 2px solid #ef4444;
}

.team-card.team-color-3 {
  border-color: rgba(234, 179, 8, 0.35);
  border-top: 2px solid #facc15;
}

/* Imagens das Camisas dos Times (PNG com fundo 100% transparente, sem borda de container) */
.player-jersey-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.team-jersey-header-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

.team-jersey-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 2px;
}

@keyframes cardPopIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.team-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.team-name {
  font-size: 0.96rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.team-count {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #18181b;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-metallic);
}

.team-players-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-player-item {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background-color: #16161b;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.team-player-item.rolling {
  border-color: #71717a;
  background-color: #27272a;
  color: #ffffff;
}

.team-player-item.locked {
  border-color: #3f3f46;
}

.player-num {
  font-size: 0.74rem;
  font-weight: 800;
  color: #a1a1aa;
  width: 20px;
}

.player-lock-tag {
  margin-left: auto;
  font-size: 0.7rem;
  color: #e4e4e7;
  font-weight: 700;
  opacity: 0.85;
}

/* Card de Reservas / Próximos */
.team-card.reservas {
  border-style: dashed;
  border-color: #3f3f46;
  background-color: #0e0e12;
}

/* Botões do Sheet */
.sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.btn-whatsapp {
  width: 100%;
  height: 54px;
  min-height: 54px;
  border: none;
  border-radius: var(--radius-md);
  background-color: var(--whatsapp);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
}

.btn-whatsapp:active {
  transform: scale(0.98);
}

.sub-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-secondary {
  height: 46px;
  min-height: 44px;
  border: 1px solid var(--border-metallic);
  background-color: #18181b;
  color: var(--text-main);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background-color: #27272a;
  border-color: #52525b;
}

.btn-secondary:active {
  transform: scale(0.97);
}

.btn-danger-outline {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.35);
  background-color: var(--danger-light);
}

.btn-danger-outline:hover {
  background-color: rgba(239, 68, 68, 0.2);
}

.btn-generate-again {
  height: 52px;
}

/* Toast de Feedback */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #18181b;
  color: #ffffff;
  border: 1px solid var(--border-metallic);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: var(--shadow-floating);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   📅 CARD DO PRÓXIMO EVENTO (Toda Quinta 22:00) & BOTÃO PIX VAGA R$ 12,00
   ========================================================================== */

.event-card-bar {
  margin: 8px 14px 4px 14px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #121216 0%, #09090c 100%);
  border: 1px solid var(--border-metallic);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.event-info-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.event-badge-live {
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 1.8s infinite;
}

.event-badge-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #22c55e;
  text-transform: uppercase;
}

.event-datetime-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-details-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-detail-divider {
  color: #3f3f46;
}

#event-vagas-count strong {
  color: #22c55e;
}

/* Botão Pagar Vaga PIX (Verde Grande com Ícone do PIX quando houver vaga) */
.btn-pix-vaga {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: 1.5px solid #4ade80;
  color: #000000;
  padding: 11px 20px;
  min-height: 52px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 22px rgba(34, 197, 94, 0.48);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  text-decoration: none;
}

.btn-pix-vaga:hover {
  background: linear-gradient(135deg, #4ade80 0%, #15803d 100%);
  border-color: #86efac;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 26px rgba(34, 197, 94, 0.65);
}

.btn-pix-vaga:active {
  transform: scale(0.96);
}

.btn-pix-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  line-height: 1;
}

.btn-pix-icon svg,
.pix-logo-svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: #000000;
}

.btn-pix-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.btn-pix-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-pix-price {
  font-size: 0.76rem;
  font-weight: 800;
  color: #042f13;
  letter-spacing: 0.02em;
}

/* Estado: Lista Completa (Capacidade Máxima de 24 Vagas Preenchida) */
.btn-pix-vaga.is-lotado {
  background: linear-gradient(135deg, #18181b 0%, #0d0d10 100%);
  border-color: #3f3f46;
  box-shadow: none;
  cursor: default;
  padding: 8px 14px;
  min-height: 42px;
  gap: 8px;
}

.btn-pix-vaga.is-lotado:hover {
  background: linear-gradient(135deg, #202025 0%, #121216 100%);
  border-color: #52525b;
  transform: none;
  box-shadow: none;
}

.btn-pix-vaga.is-lotado .btn-pix-icon {
  color: #fbbf24;
  font-size: 1.15rem;
}

.btn-pix-vaga.is-lotado .btn-pix-title {
  color: #f4f4f5;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.btn-pix-vaga.is-lotado .btn-pix-price {
  color: #a1a1aa;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ==========================================================================
   🟢 SELOS VERDES DE PAGO (EMPREGADO NA LISTA, FICHAS E TIMES)
   ========================================================================== */

.badge-pago {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-pago-mini {
  padding: 1px 5px;
  font-size: 0.62rem;
  background-color: #15803d;
  color: #ffffff;
  border-radius: 4px;
  font-weight: 900;
}

.player-chip.is-pago {
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(135deg, #18221c 0%, #121215 100%);
}

.team-player-item.is-pago {
  border-color: rgba(34, 197, 94, 0.3);
  background-color: rgba(34, 197, 94, 0.05);
}

.team-player-item.is-pago .team-player-name {
  color: #ffffff;
}

/* ==========================================================================
   💳 MODAL DE PAGAMENTO PIX (TAXA DE FUTEBOL ARENA REAL)
   ========================================================================== */

.modal-pix-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #09090c;
  display: flex;
  flex-direction: column;
  z-index: 99999;
  animation: fadeInModal 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  padding: 0;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-pix-card {
  width: 100%;
  height: 100%;
  max-width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #09090c;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-pix-header {
  padding: 16px 20px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  background: linear-gradient(180deg, #141418 0%, #0d0d11 100%);
  border-bottom: 1px solid var(--border-metallic);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-pix-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-pix-icon {
  font-size: 26px;
  line-height: 1;
}

.modal-pix-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.modal-pix-sub {
  font-size: 0.76rem;
  font-weight: 600;
  color: #a1a1aa;
}

.btn-modal-close {
  background: #18181c;
  border: 1px solid #3f3f46;
  color: #f4f4f5;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-modal-close:hover {
  background-color: #27272a;
  border-color: #71717a;
  color: #ffffff;
  transform: scale(1.05);
}

.btn-modal-close:active {
  transform: scale(0.95);
}

.modal-pix-step {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px 48px 20px;
  padding-bottom: max(48px, env(safe-area-inset-bottom));
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

/* Etapa 1 */
.pix-price-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(21, 128, 61, 0.05) 100%);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.pix-price-label {
  font-size: 0.88rem;
  color: #e4e4e7;
  font-weight: 700;
}

.pix-price-val {
  font-size: 1.45rem;
  font-weight: 900;
  color: #22c55e;
  letter-spacing: -0.02em;
}

.modal-pix-field-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.modal-pix-input-wrap {
  margin-bottom: 12px;
}

.modal-pix-input {
  width: 100%;
  height: 52px;
  background-color: #16161b;
  border: 1.5px solid var(--border-metallic);
  border-radius: var(--radius-md);
  color: #ffffff;
  padding: 0 16px;
  font-size: 1.02rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.modal-pix-input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  background-color: #1a1a20;
}

.modal-pix-helper {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 22px;
}

.btn-gerar-pix {
  width: 100%;
  height: 54px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: 1.5px solid #4ade80;
  color: #000000;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
}

.btn-gerar-pix:hover {
  background: linear-gradient(135deg, #4ade80 0%, #15803d 100%);
  border-color: #86efac;
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(34, 197, 94, 0.65);
}

.btn-gerar-pix:active {
  transform: scale(0.97);
}

.btn-gerar-pix:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Etapa 2 (QR Code & Copia e Cola) */
.pix-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: #15151a;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.pix-badge-val {
  background-color: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.pix-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 18px;
  background-color: #050508;
  border: 1px solid var(--border-metallic);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.pix-qr-container {
  width: 220px;
  height: 220px;
  background-color: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

.pix-qr-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.pix-qr-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fbbf24;
}

.qr-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #fbbf24;
  border-radius: 50%;
  animation: pulse-dot 1.2s infinite;
}

.pix-copy-section {
  margin-bottom: 16px;
}

.pix-copy-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.pix-copy-input-group {
  display: flex;
  gap: 10px;
}

.pix-copy-input {
  flex: 1;
  height: 48px;
  background-color: #16161b;
  border: 1.5px solid var(--border-metallic);
  border-radius: var(--radius-md);
  color: #e4e4e7;
  padding: 0 14px;
  font-size: 0.82rem;
  font-family: monospace;
  outline: none;
}

.btn-copy-pix {
  height: 48px;
  padding: 0 20px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: 1px solid #4ade80;
  color: #000000;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.4);
}

.btn-copy-pix:hover {
  background: linear-gradient(135deg, #4ade80 0%, #15803d 100%);
  transform: translateY(-1px);
}

.btn-copy-pix:active {
  transform: scale(0.96);
}

.pix-instructions {
  background-color: #121216;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.pix-instructions p {
  margin-bottom: 3px;
}

.pix-instructions p:last-child {
  margin-bottom: 0;
}

.pix-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-check-pix-status {
  width: 100%;
  height: 44px;
  background-color: #18181b;
  border: 1px solid #52525b;
  color: var(--text-main);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-check-pix-status:hover {
  background-color: #27272a;
}

/* Etapa 3 (Sucesso) */
.pix-success-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 12px;
  gap: 12px;
}

.success-icon-badge {
  font-size: 3rem;
  line-height: 1;
}

.success-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
}

.success-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.success-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #152018;
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: #22c55e;
}

.badge-pago-green {
  background-color: #22c55e;
  color: #000000;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 900;
}

/* ==========================================================================
   📑 ABAS DE NAVEGAÇÃO: TELA DA FRENTE (PAGOS) & ABA MANUAL (WHATSAPP)
   ========================================================================== */

.view-tabs-nav {
  display: flex;
  margin: 6px 16px 8px 16px;
  background-color: #09090c;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 4px;
}

.tab-btn {
  flex: 1;
  height: 38px;
  min-height: 38px;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  background: linear-gradient(135deg, #27272a 0%, #18181b 100%);
  color: #ffffff;
  border: 1px solid #3f3f46;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.tab-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.tab-counter {
  background-color: #22c55e;
  color: #000000;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.2;
}

.tab-badge-opt {
  background-color: #27272a;
  color: #a1a1aa;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
}

/* ==========================================================================
   🏟️ TELA DA FRENTE: LISTA DE JOGADORES CONFIRMADOS (PAGOS DO EVENTO ATUAL)
   ========================================================================== */

.confirmed-players-view {
  width: 100%;
}

.confirmed-card-box {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-metallic);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.confirmed-header {
  padding: 12px 14px;
  background-color: #0d0d12;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.confirmed-header-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.confirmed-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #22c55e;
  text-transform: uppercase;
}

.confirmed-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.confirmed-pill-count {
  background-color: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 800;
  flex-shrink: 0;
}

.confirmed-list {
  display: flex;
  flex-direction: column;
  divide-y: 1px solid var(--border-subtle);
  max-height: 480px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

.confirmed-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background-color: #0b0b0f;
  border-bottom: 1px solid #181820;
  transition: background-color 0.15s ease;
}

.confirmed-player-row:last-child {
  border-bottom: none;
}

.confirmed-player-row:hover {
  background-color: #121218;
}

.player-left-col {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-avatar-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f1f23 0%, #121215 100%);
  border: 1px solid var(--border-metallic);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-main);
  flex-shrink: 0;
}

.player-name-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.player-confirmed-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-device-tag {
  background-color: #27272a;
  color: #a1a1aa;
  border: 1px solid #3f3f46;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.player-confirmed-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.player-right-col {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.badge-pago-tag {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Empty State */
.confirmed-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 20px;
  gap: 10px;
}

.empty-icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 4px;
}

.empty-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.empty-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 300px;
  margin-bottom: 8px;
}

.empty-desc strong {
  color: var(--text-main);
}

.btn-empty-pix {
  height: 44px;
  padding: 0 18px;
  background: linear-gradient(135deg, #27272a 0%, #18181b 100%);
  border: 1px solid #52525b;
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.btn-empty-pix:hover {
  background: linear-gradient(135deg, #3f3f46 0%, #27272a 100%);
  border-color: #71717a;
}

.btn-empty-pix:active {
  transform: scale(0.97);
}

.confirmed-footer-note {
  padding: 10px 16px;
  background-color: #08080b;
  border-top: 1px solid #14141a;
  font-size: 0.68rem;
  color: #71717a;
  line-height: 1.4;
  text-align: center;
}


