/* ==========================================================================
   TOPERO - CSS DARK THEME (Brand Kit & UI System 2.0 CONFUSA.top)
   ========================================================================== */

:root {
  --bg-dark: #090d16;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-solid: #0f172a;
  --bg-inner: rgba(30, 41, 59, 0.6);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-color-hover: rgba(56, 189, 248, 0.4);
  --primary: #38bdf8;
  --primary-dark: #0284c7;
  --primary-glow: rgba(56, 189, 248, 0.35);
  --success: #34d399;
  --success-glow: rgba(52, 211, 153, 0.3);
  --warning: #fbbf24;
  --danger: #f87171;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

/* Header bar standalone do TOPERO (estilo Poltrona Score) */
#top-bar {
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  padding: 12px 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.header-container {
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 38px;
  width: 38px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

/* Identificação de usuário conectado / login no header standalone */
.header-user-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-badge-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 12px 5px 6px;
  border-radius: 24px;
  cursor: default;
  user-select: none;
}

.user-badge-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #38bdf8;
}

.user-badge-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f5f9;
}

.user-badge-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
}

.login-badge-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.login-badge-btn:hover {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.1);
}

/* Rodapé */
#bottom-bar {
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-top: auto !important;
  position: relative !important;
  text-align: center;
  padding: 16px 20px;
  color: #64748b;
  font-size: 0.85rem;
}

/* Fundo Dark Mode Oficial do CONFUSA (como o 7vidas e a Home) */
html body {
  font-family: var(--font-body) !important;
  background-color: #1A1469 !important;
  color: var(--text-main) !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  background-image: 
    linear-gradient(180deg, rgba(26, 20, 105, 0.70) 0%, rgba(9, 13, 22, 0.96) 100%),
    url("/images/confusa-blue.png") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  overflow-x: hidden !important;
}

/* Container Principal */
.topero-container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem 1.5rem;
  flex: 1;
}

/* Card Principal Glassmorphism Dark */
.topero-card {
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  padding: 2.5rem !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4) !important;
  position: relative;
}

/* Banner de Topo com Nome do Jogo */
.topero-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.topero-title {
  font-family: var(--font-heading) !important;
  font-size: 3.2rem !important;
  font-weight: 900 !important;
  letter-spacing: -1px;
  margin: 0 0 0.25rem 0;
  color: #ffffff;
}

.topero-title .top-highlight {
  color: #38bdf8;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.topero-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  margin: 0;
}

/* Abas de Navegação Superiores */
.topero-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.topero-tab-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 8px 18px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.topero-tab-btn span.material-symbols-outlined {
  font-size: 18px;
}

.topero-tab-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.3);
}

.topero-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.5);
}

/* Grid de Cards de Carreiras Salvas / Hall da Fama */
.carreiras-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.carreira-mini-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.carreira-mini-card:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cm-nome {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #f8fafc;
}

.cm-pos {
  font-size: 0.75rem;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.cm-stats {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  color: #cbd5e1;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

.cm-autor {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

/* Formulário de Criação */
.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 1.75rem 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  background: rgba(30, 41, 59, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  color: #f8fafc !important;
  transition: all 0.2s ease !important;
  outline: none;
}

.form-control option {
  background: #0f172a;
  color: #f8fafc;
}

.form-control:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

/* Seletor de Pé */
.radio-chips-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip-radio {
  cursor: pointer;
  margin: 0;
}

.chip-radio input {
  display: none;
}

.chip-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  user-select: none;
}

.chip-radio input:checked + .chip-box {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* Cards dos Modos de Cadência */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.mode-card-radio {
  cursor: pointer;
}

.mode-card-radio input {
  display: none;
}

.mode-card-box {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.mode-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.mode-card-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.35;
}

.mode-card-radio input:checked + .mode-card-box {
  background: rgba(2, 132, 199, 0.15);
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.mode-card-radio input:checked + .mode-card-box .mode-card-title {
  color: #38bdf8;
}

/* Badge Geográfico */
.geo-badge {
  background: rgba(3, 105, 161, 0.25);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-top: 6px;
  line-height: 1.4;
}

.geo-badge-direct {
  background: rgba(21, 128, 61, 0.2);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.3);
}

/* Botões */
.btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  color: #ffffff !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: 10px !important;
  padding: 12px 24px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45) !important;
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.8) !important;
  color: #cbd5e1 !important;
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  padding: 10px 20px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.9) !important;
  color: #ffffff !important;
}

.btn-outline-cyan {
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border: 1px solid #38bdf8;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-cyan:hover {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.btn-sucesso {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

/* ==========================================================================
   TELA DE JOGO / HUD DO ATLETA (DARK)
   ========================================================================== */
.atleta-hud {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hud-perfil {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hud-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  flex-shrink: 0;
}

.hud-info-nome {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.hud-meta-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.hud-tag {
  background: rgba(15, 23, 42, 0.8);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hud-tag-clube {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.2);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.25);
  font-weight: 700;
}

.hud-ovr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-ovr-valor {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1;
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.hud-ovr-rotulo {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 1px;
}

.hud-ovr-progress-bg {
  width: 80%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}

.hud-ovr-progress-fill {
  height: 100%;
  background: #38bdf8;
  transition: width 0.4s ease;
}

/* Estatísticas Gerais em Pílulas */
.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 2rem;
}

.stat-box {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-box-val {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.stat-box-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Feed de Temporadas */
.temporada-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.temp-ano-badge {
  background: rgba(15, 23, 42, 0.9);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.temp-clube-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #f1f5f9;
}

.temp-ovr-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #38bdf8;
  font-size: 0.95rem;
}

.temp-stats {
  display: flex;
  gap: 12px;
}

.stat-pill {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.trofeus-temporada {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trofeu-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-status-alerta {
  display: inline-flex;
  align-items: center;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-status-selecao {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 6px;
  letter-spacing: 0.03em;
}

/* Ícones de Troféus SVG */
.svg-trophy {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.mini-escudo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
}

.mini-bandeira {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
}

/* ==========================================================================
   MODAL DE DECISÃO (DARK)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-content-card {
  background: #0f172a;
  border-radius: 20px;
  padding: 2.25rem;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.decisao-tag {
  display: inline-block;
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.decisao-titulo {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.decisao-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.decisao-opcoes-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-decisao-opcao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.btn-decisao-opcao:hover {
  background: rgba(2, 132, 199, 0.2);
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}

.decisao-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #f8fafc;
}

.prob-tag {
  background: rgba(15, 23, 42, 0.8);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Feedback do Evento */
.decisao-feedback-box {
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.resultado-sucesso {
  background: rgba(20, 83, 45, 0.3);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.resultado-falha {
  background: rgba(127, 29, 29, 0.3);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.feedback-desc {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feedback-ovr {
  font-size: 1.1rem;
  font-weight: 800;
}

/* Ofertas de Transferência */
.ofertas-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-oferta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
}

.oferta-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.transfer-escudo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.oferta-nome {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

.oferta-liga {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ==========================================================================
   TELA FINAL DE APOSENTADORIA & CARD (DARK)
   ========================================================================== */
.card-carreira-exportable {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
}

.final-header {
  text-align: center;
  margin-bottom: 2rem;
}

.final-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.final-trofeus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin: 1rem 0 2rem 0;
}

.trofeu-final-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.trofeu-final-card .svg-trophy {
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
}

.trofeu-final-qtd {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #38bdf8;
}

.trofeu-final-nome {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-top: 2px;
}

.final-clubes-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.clube-hist-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f5f9;
}

/* Ações Finais */
.final-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animações */
.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

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

/* ==========================================================================
   RESPONSIVIDADE (Mobile First)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .topero-container {
    padding: 1.5rem 1rem 3rem 1rem;
    width: 100%;
    max-width: 100%;
  }

  .topero-card {
    padding: 1.25rem 1rem !important;
    border-radius: 16px !important;
  }

  .topero-title {
    font-size: 2.2rem !important;
  }

  .topero-subtitle {
    font-size: 0.95rem;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .radio-chips-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    width: 100%;
  }

  .chip-radio {
    width: 100%;
  }

  .chip-box {
    width: 100%;
    padding: 10px 8px;
    font-size: 0.8rem;
    text-align: center;
  }

  .modes-grid {
    grid-template-columns: 1fr;
  }

  .atleta-hud {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.2rem;
  }

  .hud-perfil {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 0.75rem;
  }

  .hud-meta-tags {
    justify-content: center;
  }

  .hud-ovr-card {
    flex-direction: row;
    justify-content: space-around;
    padding: 12px;
  }

  .hud-ovr-progress-bg {
    display: none;
  }

  .stats-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stat-box {
    padding: 10px 6px;
  }

  .stat-box-val {
    font-size: 1.4rem;
  }

  .stat-box-lbl {
    font-size: 0.7rem;
  }

  .temp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .temp-stats {
    flex-wrap: wrap;
    gap: 6px;
  }

  .stat-pill {
    font-size: 0.8rem;
    padding: 3px 8px;
  }

  .card-oferta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    text-align: center;
  }

  .oferta-info {
    flex-direction: column;
    justify-content: center;
  }

  .card-oferta .btn-outline-cyan {
    width: 100%;
  }

  .modal-overlay {
    padding: 1rem;
  }

  .modal-content-card {
    padding: 1.5rem 1.25rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  .btn-decisao-opcao {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .final-trofeus-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .final-actions {
    flex-direction: column;
    gap: 10px;
  }

  .final-actions button {
    width: 100%;
  }
}

/* ==========================================================================
   PWA INSTALL BANNER (STANDALONE)
   ========================================================================== */
.pwa-install-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: calc(100% - 40px);
  max-width: 460px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.15);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

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

.pwa-install-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-install-icon {
  font-size: 32px;
  color: #38bdf8;
}

.pwa-install-text {
  display: flex;
  flex-direction: column;
}

.pwa-install-text strong {
  font-family: var(--font-heading);
  font-size: 15px;
  color: #f8fafc;
}

.pwa-install-text span {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.3;
}

.pwa-install-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.pwa-btn-cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s, color 0.2s;
}

.pwa-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
}

.pwa-btn-install {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  border: none;
  color: #0f172a;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.2s, opacity 0.2s;
}

.pwa-btn-install:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

