/* ============================================================
   COPA DO MUNDO — TEMA COMPLETO
   Fontes: Bebas Neue (display) + Oswald (corpo)
   Paleta: Verde Campo · Amarelo Ouro · Azul Seleção · Branco
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@300;400;500;600;700&display=swap');

/* ── VARIÁVEIS GLOBAIS ─────────────────────────────────────── */
:root {
  --verde:           #006633;
  --verde-medio:     #00843D;
  --verde-claro:     #00a650;
  --verde-neon:      #00ff7f;
  --amarelo:         #FFD700;
  --ouro:            #FFA500;
  --ouro-escuro:     #b8860b;
  --azul:            #003087;
  --azul-medio:      #0040c0;
  --branco:          #FFFFFF;
  --preto-campo:     #060d06;
  --modal-bg:        rgba(3, 14, 5, 0.97);
  --painel-bg:       rgba(0, 28, 10, 0.90);
  --painel-borda:    rgba(0, 166, 80, 0.50);
  --sombra-verde:    rgba(0, 255, 127, 0.35);
  --sombra-ouro:     rgba(255, 215, 0, 0.45);
  --input-bg:        rgba(0, 18, 7, 0.85);
  --input-borda:     rgba(0, 166, 80, 0.45);
}

/* ── BASE ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body, html {
  margin: 0; padding: 0;
  height: 100%; width: 100%;
  font-family: 'Oswald', sans-serif;
  background-color: var(--preto-campo);
  overflow: hidden;
  color: var(--branco);
}

/* Fundo desfocado — gramado escuro */
body::before {
  content: '';
  position: fixed;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  z-index: -1;
  background-image: url('/assets/img/fundo.png');
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.55) saturate(1.4);
}

/* ── CONTAINER ─────────────────────────────────────────────── */
#game-container {
  width: 100%; height: 100%;
  max-width: 420px;
  margin: 0 auto;
  background-image: url('/assets/img/fundo.png');
  background-size: cover;
  background-position: center;
  box-shadow:
    0 0 0 2px var(--verde-claro),
    0 0 50px rgba(0, 255, 127, 0.15),
    0 8px 40px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

/* Listras de gramado */
#game-container::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent, transparent 32px,
    rgba(0, 80, 30, 0.05) 32px, rgba(0, 80, 30, 0.05) 64px
  );
  pointer-events: none;
  z-index: 0;
}

/* ── ROULETTE / WHEELS ─────────────────────────────────────── */
#roulette-indicator {
  width: 100%; height: auto;
  margin-top: 0;
  position: relative; z-index: 2;
}

#roulette-wheel {
  position: absolute;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  width: 88%; height: auto; z-index: 1;
}

#bonus-wheel {
  position: absolute;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  width: 35%; height: auto; z-index: 3;
}

#roulette-wheel.swaying, #roleta1-labels.swaying {
  animation: sway-roleta1 8s ease-in-out infinite;
}
#bonus-wheel.swaying, #roleta2-labels.swaying {
  animation: sway-roleta2 8s ease-in-out infinite;
}

@keyframes sway-roleta1 {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  25%       { transform: translate(-50%, -50%) rotate(20deg); }
  75%       { transform: translate(-50%, -50%) rotate(-20deg); }
}
@keyframes sway-roleta2 {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  25%       { transform: translate(-50%, -50%) rotate(-20deg); }
  75%       { transform: translate(-50%, -50%) rotate(20deg); }
}

#bonus-indicator {
  position: absolute;
  top: 30%; left: 50%;
  transform: translateX(-50%);
  width: 8%; height: auto; z-index: 4;
}

#bottom-bar {
  position: absolute;
  bottom: -40px; left: 0;
  width: 100%; height: auto; z-index: 2;
}

/* ── LABELS ROLETA ─────────────────────────────────────────── */
.labels-container {
  position: absolute;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5; pointer-events: none;
}
#roleta1-labels { width: 88%; padding-bottom: 88%; }
#roleta2-labels { width: 35%; padding-bottom: 35%; }

.roulette-label {
  position: absolute;
  transform: translate(-50%, -50%);
  color: transparent;
  background-color: transparent;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
}
#roleta1-labels .roulette-label { padding: 2px 18px; }

/* ── PAINÉIS UI ────────────────────────────────────────────── */
.ui-panel {
  position: absolute;
  background: linear-gradient(135deg, rgba(0,28,10,0.93) 0%, rgba(0,50,18,0.88) 100%);
  border: 1px solid var(--verde-claro);
  border-radius: 8px;
  padding: 5px 14px;
  color: var(--branco);
  box-shadow:
    0 0 0 1px rgba(0,166,80,0.18),
    0 4px 14px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(0,255,127,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: left;
  z-index: 3;
  box-sizing: border-box;
}

.ui-panel .label {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.58rem, 2vw, 0.72rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0; padding: 0;
  color: var(--verde-neon);
  opacity: 0.82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-panel .value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1rem, 4vw, 1.35rem);
  letter-spacing: 0.06em;
  color: var(--amarelo);
  margin: 0; padding: 0;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(255,215,0,0.45);
}

#saldo-block { bottom: 11%; left: 5%; width: 25%; min-width: 90px; }
#ganho-block  { bottom: 2%;  left: 5%; width: 25%; min-width: 90px; }

/* ── BOTÕES BASE ───────────────────────────────────────────── */
.ui-button {
  position: absolute;
  background: linear-gradient(135deg, rgba(0,28,10,0.92) 0%, rgba(0,55,22,0.88) 100%);
  border: 1px solid var(--verde-claro);
  border-radius: 8px;
  color: var(--amarelo);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(0,166,80,0.2),
    0 3px 10px rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; justify-content: center; align-items: center;
  font-size: 1.5rem;
  z-index: 3; box-sizing: border-box;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.ui-button:hover {
  filter: brightness(1.18);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(0,255,127,0.35),
    0 5px 16px rgba(0,0,0,0.5);
}

.ui-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  filter: grayscale(0.75);
  transform: none;
}

/* ── BOTÃO NORMAL / FLASH — Azul Seleção ─────────────────── */
#normal-button {
  bottom: 20%; left: 5%;
  width: 25%; min-width: 90px;
  padding: 8px 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(0.68rem, 2.8vw, 0.88rem);
  letter-spacing: 0.12em;
  color: var(--amarelo);
  background: linear-gradient(135deg, #001060 0%, var(--azul) 50%, var(--azul-medio) 100%);
  border: 2px solid var(--amarelo);
  border-radius: 8px;
  position: absolute; overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.75);
  box-shadow:
    0 0 0 1px rgba(255,215,0,0.18),
    0 3px 12px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
/* Faixa amarela no topo */
#normal-button::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amarelo), var(--ouro), var(--amarelo));
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}
/* Reflexo sweep */
#normal-button::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}
#normal-button:hover::after { left: 165%; }
#normal-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255,215,0,0.5),
    0 6px 18px rgba(0,0,0,0.55),
    0 0 18px rgba(0,48,135,0.5);
  filter: brightness(1.12);
}
#normal-button:active { transform: translateY(1px) scale(0.98); }

/* ── BOTÃO DEPOSITAR — Verde Campo ───────────────────────── */
#deposit-button {
  position: absolute;
  bottom: 28%; left: 5%;
  width: 25%; min-width: 90px;
  padding: 12px 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(0.73rem, 2.8vw, 0.92rem);
  letter-spacing: 0.15em;
  color: var(--amarelo);
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-claro) 45%, #004520 100%);
  border: 2px solid var(--amarelo);
  border-radius: 8px; overflow: hidden; cursor: pointer;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  box-shadow:
    0 0 0 1px rgba(255,215,0,0.22),
    0 4px 14px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.15);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; justify-content: center; align-items: center;
  z-index: 4; box-sizing: border-box;
  animation: depositCopaPulse 2.6s ease-in-out infinite;
  transition: transform 0.15s ease, filter 0.15s ease;
}
/* Listras de gramado */
#deposit-button::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 16px,
    rgba(0,0,0,0.06) 16px, rgba(0,0,0,0.06) 32px
  );
  pointer-events: none;
}
/* Sweep */
#deposit-button::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.5s ease; pointer-events: none;
}
#deposit-button:hover::after { left: 165%; }
#deposit-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255,215,0,0.6),
    0 6px 22px rgba(0,0,0,0.6),
    0 0 22px var(--sombra-ouro);
  filter: brightness(1.1); animation: none;
}
#deposit-button:active { transform: translateY(1px) scale(0.98); }

@keyframes depositCopaPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255,215,0,0.22),
      0 4px 14px rgba(0,0,0,0.55),
      0 0 8px rgba(0,255,127,0.18);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255,215,0,0.55),
      0 6px 22px rgba(0,0,0,0.6),
      0 0 26px rgba(0,255,127,0.5);
  }
}

/* Seta animada */
#deposit-arrow {
  position: absolute;
  bottom: 34%; left: 17%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  z-index: 5;
  animation: arrowBounce 1.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes arrowBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
#deposit-arrow svg {
  width: 100%; height: 100%;
  fill: var(--amarelo);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7));
}

/* ── ÁREA GIROS ────────────────────────────────────────────── */
#giro-area {
  position: absolute;
  bottom: 5%; right: 5%;
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 6px; z-index: 4;
}
#giro-area .ui-button { position: static; width: 56px; height: 38px; padding: 0; }
#giro-area #giro-block { position: relative; width: auto; min-width: 80px; padding: 6px 10px; }
#giro-block { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* ── BOTÕES + e − — Bola Dourada ─────────────────────────── */
#plus-button,
#minus-button {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  color: var(--verde);
  background: radial-gradient(ellipse at 34% 28%,
    #fffaaa 0%, var(--amarelo) 38%, var(--ouro) 72%, var(--ouro-escuro) 100%);
  border: 2px solid #8B6914;
  border-radius: 50%;
  width: 56px; height: 38px;
  padding: 0; position: static; overflow: hidden; cursor: pointer;
  text-shadow: 0 1px 2px rgba(255,255,255,0.45);
  box-shadow:
    inset 0 2px 5px rgba(255,255,255,0.55),
    inset 0 -2px 4px rgba(0,0,0,0.22),
    0 3px 10px rgba(0,0,0,0.5),
    0 0 0 1px rgba(139,105,20,0.38);
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
#plus-button::before, #minus-button::before {
  content: '';
  position: absolute; inset: 3px;
  border-radius: 50%;
  border: 1.5px dashed rgba(139,105,20,0.3);
  pointer-events: none;
}
#plus-button::after, #minus-button::after {
  content: '';
  position: absolute; border-radius: 50%;
  width: 40%; height: 40%; top: 30%; left: 30%;
  background: rgba(255,255,255,0.6);
  transform: scale(0); opacity: 0;
}
#plus-button:active::after, #minus-button:active::after {
  animation: copaRipple 0.35s ease-out forwards;
}
@keyframes copaRipple { to { transform: scale(3.5); opacity: 0; } }

#plus-button:hover, #minus-button:hover {
  transform: scale(1.12);
  box-shadow:
    inset 0 2px 5px rgba(255,255,255,0.55),
    inset 0 -2px 4px rgba(0,0,0,0.22),
    0 5px 16px rgba(0,0,0,0.55),
    0 0 18px var(--sombra-ouro);
  filter: brightness(1.08);
}
#plus-button:active, #minus-button:active { transform: scale(0.92); }
#plus-button:disabled, #minus-button:disabled {
  opacity: 0.32; cursor: not-allowed; filter: grayscale(0.75); transform: none;
}

/* ── BOTÃO GIRAR — Glow Verde Estádio ───────────────────── */
#play-button {
  position: absolute;
  bottom: 5%; left: 50%;
  transform: translateX(-50%);
  width: 25%; min-width: 95px; height: auto;
  z-index: 5; cursor: pointer;
  filter:
    drop-shadow(0 0 8px rgba(0,255,127,0.55))
    drop-shadow(0 4px 14px rgba(0,0,0,0.65));
  transition: transform 0.18s ease, filter 0.18s ease;
  animation: copaPulse 2.8s ease-in-out infinite;
}
#play-button.disabled {
  cursor: not-allowed;
  filter: grayscale(0.5) brightness(0.65);
  animation: none;
}
#play-button:hover:not(.disabled) {
  transform: translateX(-50%) scale(1.08);
  filter:
    drop-shadow(0 0 18px rgba(0,255,127,1))
    drop-shadow(0 0 35px rgba(0,255,127,0.45))
    drop-shadow(0 4px 18px rgba(0,0,0,0.7));
  animation: none;
}
#play-button:active:not(.disabled) { transform: translateX(-50%) scale(0.95); }

@keyframes copaPulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 5px rgba(0,255,127,0.38))
      drop-shadow(0 3px 10px rgba(0,0,0,0.5));
  }
  50% {
    filter:
      drop-shadow(0 0 16px rgba(0,255,127,0.88))
      drop-shadow(0 0 32px rgba(0,255,127,0.38))
      drop-shadow(0 4px 16px rgba(0,0,0,0.6));
  }
}

/* ── BOTÃO INFO LEGAL ──────────────────────────────────────── */
#legal-info-button {
  position: absolute;
  bottom: 5%; left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--verde), var(--verde-claro));
  border: 2px solid var(--amarelo);
  color: var(--amarelo);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px; font-weight: 700;
  cursor: pointer; z-index: 6;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0,166,80,0.38);
}
#legal-info-button:hover  { transform: translateX(-50%) translateY(100px) scale(1.1); box-shadow: 0 6px 22px var(--sombra-ouro); }
#legal-info-button:active { transform: translateX(-50%) translateY(100px) scale(0.95); }

/* ── MODAL LEGAL ───────────────────────────────────────────── */
#legal-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: transparent !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  display: none; justify-content: center; align-items: flex-end;
  z-index: 8; opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
#legal-modal-overlay.show { display: flex; opacity: 1; }

#legal-modal-content {
  position: fixed; bottom: 15%; left: 50%;
  transform: translateX(-50%) translateY(0);
  background: linear-gradient(135deg, rgba(0,20,8,0.98), rgba(0,55,22,0.98));
  padding: 15px 20px; border-radius: 10px;
  width: 90%; max-width: 350px; max-height: 200px;
  overflow-y: auto;
  border: 2px solid var(--verde-claro);
  box-shadow: 0 8px 30px rgba(0,166,80,0.35);
  pointer-events: auto; z-index: 9;
}
#legal-modal-overlay.show #legal-modal-content { animation: slideUpFade 0.4s ease-out; }

@keyframes slideUpFade {
  from { transform: translateX(-50%) translateY(50px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

#legal-modal-content h3 {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--amarelo); font-size: 15px; letter-spacing: 0.1em;
  margin-top: 0; margin-bottom: 10px; text-align: center;
}
#legal-modal-content p {
  font-family: 'Oswald', sans-serif; font-weight: 400;
  color: rgba(255,255,255,0.82); font-size: 10px;
  line-height: 1.45; text-align: justify; margin: 0;
}
.legal-modal-close {
  position: absolute; top: 8px; right: 8px;
  background: transparent; border: none;
  color: var(--amarelo); font-size: 24px; cursor: pointer;
  width: 25px; height: 25px; display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, color 0.2s; z-index: 10;
}
.legal-modal-close:hover { transform: scale(1.2); color: var(--verde-neon); }

#legal-modal-content::-webkit-scrollbar { width: 5px; }
#legal-modal-content::-webkit-scrollbar-track { background: rgba(0,30,12,0.5); border-radius: 3px; }
#legal-modal-content::-webkit-scrollbar-thumb { background: var(--verde-claro); border-radius: 3px; }
#legal-modal-content::-webkit-scrollbar-thumb:hover { background: var(--amarelo); }

@media (max-width: 768px) {
  #legal-info-button { width: 28px; height: 28px; font-size: 13px; }
  #legal-modal-content { padding: 12px 15px; max-width: 320px; max-height: 180px; bottom: 12%; }
  #legal-modal-content h3 { font-size: 13px; margin-bottom: 8px; }
  #legal-modal-content p { font-size: 9px; }
  .legal-modal-close { font-size: 20px; width: 22px; height: 22px; }
}
@media (max-width: 480px) {
  #legal-modal-content { padding: 10px 12px; max-width: 280px; max-height: 160px; bottom: 10%; }
  #legal-modal-content h3 { font-size: 12px; }
  #legal-modal-content p { font-size: 8px; line-height: 1.35; }
}

/* ── MODAL OVERLAY GENÉRICO ────────────────────────────────── */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 8, 3, 0.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; justify-content: center; align-items: center;
  z-index: 10; opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.show { display: flex; opacity: 1; }

/* ── MODAL DE RESULTADO ────────────────────────────────────── */
#modal-content {
  position: relative; width: 80%; max-width: 320px;
  background: linear-gradient(160deg, #010f04 0%, #002810 100%);
  padding: 25px 20px; border-radius: 16px;
  text-align: center; color: var(--branco);
  border: 2px solid var(--verde-claro);
  box-shadow:
    0 0 0 1px rgba(0,166,80,0.28),
    0 0 45px rgba(0,255,127,0.18),
    0 20px 50px rgba(0,0,0,0.7);
  opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}
/* Padrão pontos bola de futebol */
#modal-content::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(var(--amarelo) 10%, transparent 11%),
    radial-gradient(rgba(0,166,80,0.5) 10%, transparent 11%);
  background-size: 26px 26px;
  background-position: 0 0, 13px 13px;
  opacity: 0.055; z-index: 0; pointer-events: none;
}
/* Faixa topo verde→amarelo→verde */
#modal-content::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--verde), var(--amarelo), var(--verde));
  border-radius: 16px 16px 0 0;
}

.modal-overlay.show #modal-content { opacity: 1; transform: scale(1); }

#modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem; letter-spacing: 0.08em;
  color: var(--amarelo);
  margin: 0 0 10px 0;
  text-shadow: 0 0 22px rgba(255,215,0,0.65), 0 2px 4px rgba(0,0,0,0.55);
  position: relative; z-index: 1; text-transform: uppercase;
}
#modal-title::before { content: '⚽ '; }
#modal-title::after  { content: ' 🏆'; }

#modal-ganho {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem; letter-spacing: 0.05em;
  background: linear-gradient(to bottom, var(--amarelo), var(--ouro));
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin: 0 0 15px 0; position: relative; z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.55));
}

#modal-details {
  font-family: 'Oswald', sans-serif; font-size: 0.8rem; font-weight: 400;
  color: rgba(255,255,255,0.65); margin: 0; position: relative; z-index: 1;
}

#modal-button {
  background: linear-gradient(135deg, var(--verde-claro), var(--verde), var(--verde-claro));
  background-size: 200% auto;
  border: 2px solid var(--amarelo); border-radius: 8px;
  color: var(--amarelo); padding: 12px 30px;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: 0.14em;
  cursor: pointer; margin-top: 20px; text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(0,166,80,0.5), 0 0 0 1px rgba(255,215,0,0.18);
  transition: all 0.3s ease; position: relative; z-index: 1;
  animation: shineGreen 3s infinite linear;
}
@keyframes shineGreen { to { background-position: 200% center; } }
#modal-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(0,255,127,0.55), 0 0 0 1px var(--amarelo);
}

/* ── ÍCONES TOPO DIREITO ───────────────────────────────────── */
#top-right-icons {
  position: absolute; top: 20px; right: 15px;
  display: flex; flex-direction: column; gap: 12px; z-index: 5;
}
.icon-button {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,28,10,0.92), rgba(0,60,22,0.88));
  border: 1px solid var(--verde-claro);
  color: var(--amarelo);
  display: flex; justify-content: center; align-items: center;
  cursor: pointer; padding: 0;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,166,80,0.18);
  transition: all 0.2s ease;
}
.icon-button:hover {
  border-color: var(--amarelo);
  box-shadow: 0 4px 16px rgba(0,0,0,0.55), 0 0 14px var(--sombra-ouro);
  transform: scale(1.1);
}
.icon-button svg { width: 22px; height: 22px; fill: currentColor; }
.icon-button.help-button {
  font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--amarelo);
}

/* ── MODAL PERFIL ──────────────────────────────────────────── */
#profile-modal-content {
  width: 100%; max-width: 420px; height: auto; border-radius: 14px;
  position: relative;
  background: linear-gradient(160deg, rgba(0,18,7,0.97), rgba(0,42,16,0.97));
  border: 1px solid var(--verde-claro);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--branco); padding: 20px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; gap: 15px;
  box-shadow: 0 0 35px rgba(0,255,127,0.12);
}
#profile-header {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; border-bottom: 1px solid rgba(0,166,80,0.4);
}
#close-profile-button {
  font-size: 2rem; color: var(--verde-neon);
  cursor: pointer; background: none; border: none; transition: color 0.2s;
}
#close-profile-button:hover { color: var(--amarelo); }
#username-display {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem;
  letter-spacing: 0.08em; color: var(--amarelo);
}
.profile-button {
  width: 80%; padding: 14px;
  background: linear-gradient(135deg, rgba(0,28,10,0.92), rgba(0,60,22,0.88));
  border: 1px solid var(--verde-claro); color: var(--amarelo);
  font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 0.1em;
  border-radius: 8px; cursor: pointer;
  transition: all 0.2s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.profile-button:hover {
  background: linear-gradient(135deg, rgba(0,50,18,0.95), rgba(0,85,32,0.92));
  border-color: var(--amarelo); box-shadow: 0 4px 18px rgba(0,255,127,0.2);
}

/* ── MODAL AUTH ────────────────────────────────────────────── */
.auth-modal-content {
  position: relative; max-width: 350px; width: 90%;
  background: linear-gradient(155deg, #030e05, #001908);
  padding: 1.5rem; border-radius: 12px;
  border: 1px solid var(--verde-claro);
  text-align: left; color: var(--branco);
  box-shadow: 0 0 45px rgba(0,166,80,0.18), 0 12px 35px rgba(0,0,0,0.65);
  overflow: hidden;
}
.auth-modal-content::before {
  content: '⚽'; position: absolute; top: 10px; left: 10px;
  font-size: 18px; opacity: 0.18;
  animation: float 4s ease-in-out infinite; z-index: 0;
}
.auth-modal-content::after {
  content: '🏆'; position: absolute; top: 12px; right: 45px;
  font-size: 16px; opacity: 0.18;
  animation: twinkle 2.5s ease-in-out infinite; z-index: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-8px) rotate(180deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.18; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.15); }
}

.christmas-decoration {
  position: absolute; pointer-events: none; z-index: 0; opacity: 0.16; filter: blur(0.5px);
}
.christmas-decoration.top-left    { top: 8px; left: 8px;   font-size: 16px; animation: float 4s ease-in-out infinite; }
.christmas-decoration.top-right   { top: 8px; right: 45px;  font-size: 14px; animation: twinkle 2.5s ease-in-out infinite; }
.christmas-decoration.bottom-left { bottom: 8px; left: 8px; font-size: 12px; animation: float 3.5s ease-in-out infinite; }
.christmas-decoration.bottom-right{ bottom: 8px; right: 8px;font-size: 14px; animation: twinkle 2s ease-in-out infinite; }

/* Neve / confete ouro */
#global-snow-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden; pointer-events: none; z-index: 100;
}
.snowflake {
  position: absolute; color: var(--amarelo);
  font-size: 14px; font-family: Arial, sans-serif;
  text-shadow: 0 0 6px rgba(255,215,0,0.4);
  animation: snowfall linear infinite; top: -20px; opacity: 0;
}
@keyframes snowfall {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(100vh) translateX(50px) rotate(360deg); opacity: 0; }
}
.snowflake:nth-child(1)  { left: 5%;  animation-duration: 10s;   animation-delay: 0s;   font-size: 12px; }
.snowflake:nth-child(2)  { left: 10%; animation-duration: 12s;   animation-delay: 1s;   font-size: 14px; }
.snowflake:nth-child(3)  { left: 15%; animation-duration: 11s;   animation-delay: 0.5s; font-size: 13px; }
.snowflake:nth-child(4)  { left: 20%; animation-duration: 13s;   animation-delay: 1.5s; font-size: 15px; }
.snowflake:nth-child(5)  { left: 25%; animation-duration: 10.5s; animation-delay: 0.3s; font-size: 12px; }
.snowflake:nth-child(6)  { left: 30%; animation-duration: 11.5s; animation-delay: 0.8s; font-size: 14px; }
.snowflake:nth-child(7)  { left: 35%; animation-duration: 12.5s; animation-delay: 1.2s; font-size: 13px; }
.snowflake:nth-child(8)  { left: 40%; animation-duration: 10s;   animation-delay: 0.6s; font-size: 15px; }
.snowflake:nth-child(9)  { left: 45%; animation-duration: 11s;   animation-delay: 1.4s; font-size: 12px; }
.snowflake:nth-child(10) { left: 50%; animation-duration: 12s;   animation-delay: 0.2s; font-size: 14px; }
.snowflake:nth-child(11) { left: 55%; animation-duration: 13s;   animation-delay: 0.9s; font-size: 13px; }
.snowflake:nth-child(12) { left: 60%; animation-duration: 10.5s; animation-delay: 0.4s; font-size: 15px; }
.snowflake:nth-child(13) { left: 65%; animation-duration: 11.5s; animation-delay: 1.1s; font-size: 12px; }
.snowflake:nth-child(14) { left: 70%; animation-duration: 12s;   animation-delay: 0.7s; font-size: 14px; }
.snowflake:nth-child(15) { left: 75%; animation-duration: 10s;   animation-delay: 1.3s; font-size: 13px; }
.snowflake:nth-child(16) { left: 80%; animation-duration: 11s;   animation-delay: 0.1s; font-size: 15px; }
.snowflake:nth-child(17) { left: 85%; animation-duration: 12s;   animation-delay: 0.6s; font-size: 12px; }
.snowflake:nth-child(18) { left: 90%; animation-duration: 13s;   animation-delay: 1.2s; font-size: 14px; }
.snowflake:nth-child(19) { left: 95%; animation-duration: 10s;   animation-delay: 0.8s; font-size: 13px; }
.snowflake:nth-child(20) { left: 7%;  animation-duration: 11.5s; animation-delay: 0.4s; font-size: 15px; }
.snowflake:nth-child(21) { left: 17%; animation-duration: 12s;   animation-delay: 1s;   font-size: 12px; }
.snowflake:nth-child(22) { left: 27%; animation-duration: 10.5s; animation-delay: 0.3s; font-size: 14px; }
.snowflake:nth-child(23) { left: 37%; animation-duration: 13s;   animation-delay: 1.5s; font-size: 13px; }
.snowflake:nth-child(24) { left: 47%; animation-duration: 11s;   animation-delay: 0.7s; font-size: 15px; }
.snowflake:nth-child(25) { left: 57%; animation-duration: 12s;   animation-delay: 0.2s; font-size: 12px; }
.snowflake:nth-child(26) { left: 67%; animation-duration: 10s;   animation-delay: 1.1s; font-size: 14px; }
.snowflake:nth-child(27) { left: 77%; animation-duration: 11.5s; animation-delay: 0.5s; font-size: 13px; }
.snowflake:nth-child(28) { left: 87%; animation-duration: 12.5s; animation-delay: 1.3s; font-size: 15px; }
.snowflake:nth-child(29) { left: 97%; animation-duration: 10.5s; animation-delay: 0.9s; font-size: 12px; }
.snowflake:nth-child(30) { left: 3%;  animation-duration: 13s;   animation-delay: 0.6s; font-size: 14px; }

@media (max-width: 768px) { .christmas-decoration { opacity: 0.12; font-size: 12px !important; } .snowflake { font-size: 10px; } }
@media (max-width: 480px) { .snowflake { font-size: 8px; } }

/* ── FECHAR AUTH ───────────────────────────────────────────── */
.auth-modal-close {
  position: absolute; top: 12px; right: 15px;
  background: none; border: none; color: var(--verde-neon);
  font-size: 1.5rem; cursor: pointer; z-index: 100; transition: color 0.2s;
}
.auth-modal-close:hover { color: var(--amarelo); }

/* ── TABS AUTH ─────────────────────────────────────────────── */
.auth-tabs {
  display: flex; margin-bottom: 1.2rem;
  background: rgba(0,18,7,0.8);
  border: 1px solid rgba(0,166,80,0.3);
  border-radius: 8px; padding: 4px; gap: 4px;
  position: relative; z-index: 1;
}
.auth-tab {
  flex: 1; padding: 10px 8px; border-radius: 6px; border: none;
  background: transparent; color: rgba(255,255,255,0.45);
  font-family: 'Bebas Neue', sans-serif; font-size: 0.95rem; letter-spacing: 0.1em;
  cursor: pointer; transition: all 0.3s ease;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--verde), var(--verde-medio));
  color: var(--amarelo); box-shadow: 0 2px 10px rgba(0,132,61,0.4);
}
.auth-tab:not(.active):hover { color: var(--verde-neon); background: rgba(0,45,18,0.45); }

/* ── FORMULÁRIO AUTH ───────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-form .form-group { position: relative; z-index: 1; }
.auth-form .form-label {
  display: block; color: var(--verde-neon);
  font-family: 'Oswald', sans-serif; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.4rem;
}
.auth-form .input-wrapper { position: relative; display: flex; align-items: center; }
.auth-form .form-input {
  width: 100%; padding: 10px 10px 10px 35px;
  background: var(--input-bg); border: 1px solid var(--input-borda);
  border-radius: 6px; color: var(--branco);
  font-family: 'Oswald', sans-serif; font-size: 0.9rem; box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-form .form-input:focus {
  outline: none; border-color: var(--verde-claro);
  box-shadow: 0 0 0 2px rgba(0,166,80,0.25);
}
.auth-form .form-input::placeholder { color: rgba(255,255,255,0.28); }
.auth-form .input-icon { position: absolute; left: 10px; color: var(--verde-claro); font-size: 1rem; pointer-events: none; transition: color 0.2s; }
.auth-form .form-group:focus-within .input-icon { color: var(--amarelo); }
.auth-form .form-helper { font-size: 0.68rem; color: rgba(255,255,255,0.38); margin-top: 0.2rem; }
.auth-form .submit-btn {
  background: linear-gradient(135deg, var(--verde-claro), var(--verde));
  border: 2px solid var(--amarelo); padding: 12px; border-radius: 8px;
  color: var(--amarelo); font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 0.14em;
  cursor: pointer; margin-top: 0.4rem; width: 100%;
  transition: all 0.3s ease; box-shadow: 0 4px 16px rgba(0,166,80,0.4);
}
.auth-form .submit-btn:hover {
  background: linear-gradient(135deg, var(--verde-medio), var(--verde-claro));
  box-shadow: 0 6px 24px rgba(0,255,127,0.38); transform: translateY(-1px);
}
.auth-form .form-footer { font-family: 'Oswald', sans-serif; font-size: 0.8rem; color: rgba(255,255,255,0.45); text-align: center; margin-top: 0.8rem; }
.auth-form .form-footer a, .auth-form .footer-link { color: var(--verde-neon); text-decoration: none; cursor: pointer; transition: color 0.2s; }
.auth-form .form-footer a:hover, .auth-form .footer-link:hover { color: var(--amarelo); text-decoration: underline; }
.password-toggle { position: absolute; right: 10px; background: none; border: none; color: rgba(0,166,80,0.7); cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: color 0.2s; }
.password-toggle:hover { color: var(--amarelo); }
.password-toggle i { pointer-events: none; }
.auth-form-container { display: none; }
.auth-form-container.active { display: block; }

@media (max-width: 768px) {
  .auth-modal-content { max-width: 95%; width: 95%; padding: 1.5rem; border-radius: 12px; }
  .auth-modal-close { top: 10px; right: 15px; font-size: 1.5rem; }
  .auth-tabs { margin-bottom: 1.2rem; }
  .auth-tab { padding: 10px 8px; font-size: 0.88rem; }
  .auth-form { gap: 1rem; }
  .auth-form .form-input { padding: 10px 10px 10px 35px; font-size: 16px; border-radius: 6px; }
  .auth-form .submit-btn { padding: 12px; font-size: 0.95rem; border-radius: 6px; }
  .password-toggle { right: 10px; font-size: 1rem; }
}
@media (max-width: 480px) {
  .auth-modal-content { max-width: 98%; width: 98%; padding: 1.2rem; border-radius: 10px; }
  .auth-modal-close { top: 8px; right: 12px; font-size: 1.3rem; }
  .auth-tabs { margin-bottom: 1rem; padding: 3px; gap: 3px; }
  .auth-tab { padding: 8px 6px; font-size: 0.8rem; }
  .auth-form { gap: 0.9rem; }
  .auth-form .form-input { padding: 9px 9px 9px 32px; font-size: 16px; }
  .auth-form .submit-btn { padding: 11px; font-size: 0.88rem; }
  .auth-form .form-footer { font-size: 0.75rem; }
}

/* ── CENTRAL DE AJUDA ──────────────────────────────────────── */
#help-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 6, 2, 0.88);
  backdrop-filter: blur(6px); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
#help-modal-overlay.show { display: flex; }

#help-modal-content {
  background: linear-gradient(155deg, #020c04, #001608);
  border-radius: 10px; max-width: 300px; width: 100%;
  max-height: 75vh; overflow-y: auto; position: relative;
  border: 1px solid var(--verde-claro);
  box-shadow: 0 0 45px rgba(0,166,80,0.18), 0 12px 45px rgba(0,0,0,0.65);
}
#help-modal-content::-webkit-scrollbar { width: 5px; }
#help-modal-content::-webkit-scrollbar-track { background: rgba(0,20,8,0.7); }
#help-modal-content::-webkit-scrollbar-thumb { background: var(--verde-claro); border-radius: 4px; }
#help-modal-content::-webkit-scrollbar-thumb:hover { background: var(--amarelo); }

.help-header {
  background: linear-gradient(135deg, var(--verde), var(--verde-medio));
  padding: 6px 10px; border-radius: 10px 10px 0 0;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid var(--amarelo);
}
.help-header h2 {
  font-family: 'Bebas Neue', sans-serif; color: var(--amarelo);
  font-size: 13px; letter-spacing: 0.12em; margin: 0;
  display: flex; align-items: center; gap: 5px;
}
.help-close {
  background: rgba(0,0,0,0.3); border: 1px solid var(--amarelo); color: var(--amarelo);
  width: 18px; height: 18px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: bold; transition: all 0.2s ease;
}
.help-close:hover { background: rgba(255,215,0,0.2); transform: scale(1.1); }

.help-tabs {
  display: flex; gap: 3px; padding: 4px 8px;
  background: rgba(0,12,5,0.9); border-bottom: 1px solid rgba(0,166,80,0.28); flex-wrap: wrap;
}
.help-tab {
  padding: 3px 6px;
  background: rgba(0,18,7,0.8); border: 1px solid rgba(0,166,80,0.28); border-radius: 3px;
  color: rgba(255,255,255,0.45); cursor: pointer; transition: all 0.2s ease;
  font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 8px; letter-spacing: 0.06em;
}
.help-tab:hover { background: rgba(0,45,18,0.7); color: var(--verde-neon); }
.help-tab.active {
  background: linear-gradient(135deg, var(--verde), var(--verde-medio));
  border-color: var(--amarelo); color: var(--amarelo);
}
.help-content { padding: 8px 10px; color: var(--branco); }
.help-section { display: none; }
.help-section.active { display: block; }
.help-section h3 { font-family: 'Bebas Neue', sans-serif; color: var(--amarelo); font-size: 12px; letter-spacing: 0.1em; margin-top: 0; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.help-section h4 { font-family: 'Oswald', sans-serif; color: var(--verde-neon); font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 10px; margin-bottom: 4px; }
.help-section p  { color: rgba(255,255,255,0.72); line-height: 1.4; margin-bottom: 6px; font-size: 8px; font-family: 'Oswald', sans-serif; font-weight: 400; }
.help-section ul { color: rgba(255,255,255,0.72); line-height: 1.5; margin-bottom: 10px; padding-left: 14px; font-size: 8px; font-family: 'Oswald', sans-serif; }
.help-section li { margin-bottom: 3px; }
.help-section strong { color: var(--amarelo); font-size: 8px; }
.help-section code { background: rgba(0,45,18,0.65); padding: 1px 4px; border-radius: 3px; color: var(--verde-neon); font-family: monospace; font-size: 7px; border: 1px solid rgba(0,166,80,0.28); }

@media (max-width: 768px) {
  #help-modal-overlay { padding: 10px; }
  #help-modal-content { max-width: 100%; max-height: 95vh; border-radius: 12px; }
  .help-header { padding: 12px 16px; border-radius: 12px 12px 0 0; }
  .help-header h2 { font-size: 16px; }
  .help-close { width: 28px; height: 28px; font-size: 18px; }
  .help-tabs { padding: 8px 12px; gap: 6px; flex-wrap: wrap; }
  .help-tab { padding: 6px 10px; font-size: 10px; flex: 1 1 calc(50% - 3px); min-width: calc(50% - 3px); }
  .help-content { padding: 12px 10px; }
  .help-section h3 { font-size: 14px; margin-bottom: 10px; }
  .help-section h4 { font-size: 12px; margin-top: 16px; margin-bottom: 8px; }
  .help-section p, .help-section ul { font-size: 12px; line-height: 1.5; margin-bottom: 10px; }
}
@media (max-width: 480px) {
  #help-modal-overlay { padding: 5px; }
  #help-modal-content { max-height: 98vh; border-radius: 10px; }
  .help-header { padding: 10px 12px; }
  .help-header h2 { font-size: 14px; }
  .help-close { width: 24px; height: 24px; font-size: 16px; }
  .help-tabs { padding: 5px 8px; gap: 4px; }
  .help-tab { padding: 5px 8px; font-size: 9px; flex: 1 1 calc(50% - 2px); }
  .help-section p, .help-section ul { font-size: 11px; }
}

/* ── NOTIFICAÇÃO GERAL ─────────────────────────────────────── */
#notification {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--verde), var(--verde-medio));
  border: 1px solid var(--amarelo); color: var(--amarelo);
  font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 0.12em;
  padding: 10px 24px; border-radius: 8px; z-index: 1001; display: none;
  box-shadow: 0 4px 18px rgba(0,166,80,0.42);
}
#notification.error {
  background: linear-gradient(135deg, #6a0000, #a80000);
  border-color: var(--amarelo);
}

/* ── NOTIFICAÇÕES SAQUE ────────────────────────────────────── */
.withdraw-notification {
  position: fixed; top: 20px; left: 20px;
  background: linear-gradient(135deg, rgba(0,22,8,0.97), rgba(0,50,18,0.97));
  border: 1px solid var(--verde-claro); color: var(--branco);
  padding: 8px 12px; border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0,166,80,0.32), 0 0 0 1px rgba(0,166,80,0.12);
  z-index: 10000; max-width: 220px;
  animation: slideInLeft 0.4s ease-out, fadeOutNotif 0.5s ease-in 4.5s;
  opacity: 1; backdrop-filter: blur(10px);
  font-family: 'Oswald', sans-serif; font-size: 0.75rem;
}
.withdraw-notification.hide { animation: slideOutLeft 0.4s ease-in forwards; }
.withdraw-notification-header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 0.6rem; color: var(--verde-neon); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.withdraw-notification-icon { width: 12px; height: 12px; background: rgba(0,166,80,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 8px; flex-shrink: 0; }
.withdraw-notification-content { font-size: 0.75rem; line-height: 1.3; }
.withdraw-notification-name    { font-weight: 600; color: var(--branco); font-size: 0.7rem; }
.withdraw-notification-amount  { font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem; letter-spacing: 0.05em; color: var(--amarelo); margin-top: 2px; display: block; text-shadow: 0 0 8px rgba(255,215,0,0.4); }

@keyframes slideInLeft  { from { transform: translateX(-300px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutLeft { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-300px); opacity: 0; } }
@keyframes fadeOutNotif { from { opacity: 1; } to { opacity: 0.7; } }

@media (max-width: 768px) {
  .withdraw-notification { top: 10px; left: 10px; max-width: 180px; padding: 6px 10px; }
  .withdraw-notification-header { font-size: 0.56rem; }
  .withdraw-notification-content { font-size: 0.68rem; }
  .withdraw-notification-name { font-size: 0.63rem; }
  .withdraw-notification-amount { font-size: 0.92rem; }
}

/* ── MODAL BACKDROP / CONTAINER ─────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 6, 2, 0.9);
  backdrop-filter: blur(14px); z-index: 1200;
  opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.modal-backdrop.active { opacity: 1; visibility: visible; }

.modal-container {
  position: fixed; inset: 0;
  display: flex; align-items: flex-start; justify-content: center;
  z-index: 1250; overflow-y: auto;
  padding-top: 20vh !important; padding: 20px;
  opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.modal-container.active { opacity: 1; visibility: visible; }

.modal-wrapper { width: 100%; max-width: 420px; position: relative; margin-top: 50px; }

.modal-card {
  background: linear-gradient(155deg, rgba(1,12,4,0.97), rgba(0,32,12,0.97));
  border-radius: 14px; overflow: hidden; position: relative;
  border: 1px solid var(--verde-claro); width: 100%;
  box-shadow:
    0 0 0 1px rgba(0,166,80,0.18),
    0 0 45px rgba(0,255,127,0.1),
    0 20px 50px rgba(0,0,0,0.7);
}
/* Faixa topo modal */
.modal-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--verde), var(--amarelo), var(--verde));
  z-index: 10;
}
.deposit-card { position: relative; display: flex; flex-direction: column; }

.modal-close {
  position: absolute; top: 15px; right: 15px;
  width: 36px; height: 36px;
  background: rgba(0,12,4,0.75); border: 1px solid var(--verde-claro);
  border-radius: 50%; color: var(--verde-neon);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s ease;
  font-size: 20px; z-index: 100; backdrop-filter: blur(10px); font-weight: bold;
}
.modal-close:hover { background: rgba(0,166,80,0.22); border-color: var(--amarelo); color: var(--amarelo); }

.deposit-header-img {
  position: relative; top: 0; left: 0; width: 100%; z-index: 2; pointer-events: none;
  border-radius: 14px 14px 0 0; display: block; height: auto; margin: 0; padding: 0; vertical-align: top;
}
.modal-body { padding: 20px 25px 25px; position: relative; transition: min-height 0.2s ease-in-out; margin-top: 0; }

.form-title {
  font-family: 'Bebas Neue', sans-serif; color: var(--amarelo);
  font-size: 1.4rem; letter-spacing: 0.1em; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.deposit-title {
  font-family: 'Bebas Neue', sans-serif; color: var(--amarelo);
  font-size: 1.4rem; letter-spacing: 0.1em; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.deposit-title::before { content: '⚽'; font-size: 22px; }

.input-group { margin-bottom: 18px; }
.input-label {
  display: block; color: var(--verde-neon);
  font-family: 'Oswald', sans-serif; font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px;
}
.amount-input, .text-input {
  width: 100%; padding: 14px 16px;
  background: var(--input-bg); border: 1px solid var(--input-borda);
  border-radius: 8px; color: var(--branco);
  font-family: 'Oswald', sans-serif; font-size: 1rem;
  transition: all 0.3s ease; box-sizing: border-box;
}
.amount-input:focus, .text-input:focus {
  outline: none; border-color: var(--verde-claro);
  box-shadow: 0 0 0 2px rgba(0,166,80,0.25);
}
.deposit-form .amount-input { border-color: rgba(0,166,80,0.6); font-weight: 600; font-size: 1.1rem; }
.deposit-form .amount-input:focus { border-color: var(--amarelo); box-shadow: 0 0 0 2px rgba(255,215,0,0.18); }

.min-value-notice { display: block; color: rgba(0,180,70,0.65); font-family: 'Oswald', sans-serif; font-size: 11px; margin-top: 6px; }

.values-grid { display: flex; justify-content: center; gap: 8px; margin: 16px 0; width: 100%; }
.value-btn {
  background: rgba(0,18,7,0.85); border: 1px solid var(--input-borda);
  color: rgba(255,255,255,0.72); padding: 11px 6px; border-radius: 6px;
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 13px;
  cursor: pointer; transition: all 0.25s ease; position: relative;
  white-space: nowrap; text-align: center; flex: 1 1 0; min-width: 54px;
}
.value-btn:hover { background: rgba(0,45,16,0.85); border-color: var(--verde-claro); color: var(--branco); }
.value-btn.quente, .value-btn.selected {
  background: linear-gradient(135deg, rgba(0,38,14,0.9), rgba(0,78,28,0.88));
  border: 1px solid var(--amarelo); color: var(--amarelo);
  box-shadow: 0 0 12px rgba(255,215,0,0.18);
}
.quente-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--amarelo); color: var(--preto-campo);
  font-family: 'Bebas Neue', sans-serif; font-size: 9px; letter-spacing: 0.08em;
  padding: 2px 6px; border-radius: 10px; white-space: nowrap;
}

.generate-btn {
  width: 100%; border: none; padding: 15px 24px; border-radius: 10px;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem; letter-spacing: 0.14em;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 10px; transition: all 0.3s ease;
}
.deposit-form .generate-btn {
  background: linear-gradient(135deg, var(--verde-claro), var(--verde));
  border: 2px solid var(--amarelo); color: var(--amarelo); margin-top: 10px;
  box-shadow: 0 4px 18px rgba(0,166,80,0.42);
}
.deposit-form .generate-btn:hover { background: linear-gradient(135deg, var(--verde-medio), var(--verde-claro)); box-shadow: 0 6px 26px rgba(0,255,127,0.38); transform: translateY(-2px); }
.withdraw-form .generate-btn {
  background: linear-gradient(135deg, var(--verde-claro), var(--verde));
  border: 2px solid var(--amarelo); color: var(--amarelo); margin-top: 16px;
  box-shadow: 0 4px 18px rgba(0,166,80,0.42);
}
.withdraw-form .generate-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,255,127,0.42); }

.pix-input-container { display: flex; gap: 10px; }
.pix-selector {
  width: 100px; background: var(--input-bg); border: 1px solid var(--input-borda);
  border-radius: 8px; color: var(--branco); padding: 14px 8px; cursor: pointer;
  text-align: center; font-family: 'Oswald', sans-serif; font-size: 13px;
}
.pix-input {
  flex: 1; padding: 14px 18px; background: var(--input-bg); border: 1px solid var(--input-borda);
  border-radius: 8px; color: var(--branco); font-family: 'Oswald', sans-serif; font-size: 15px;
}
.pix-selector:focus, .pix-input:focus { outline: none; border-color: var(--verde-claro); background: rgba(0,28,10,0.92); }

.dual-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.qr-section { text-align: center; display: none; }
.qr-section.active { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; height: 100%; }
.qr-title { font-family: 'Bebas Neue', sans-serif; color: var(--amarelo); font-size: 1.3rem; letter-spacing: 0.08em; margin-bottom: 0; }
.qr-description { font-family: 'Oswald', sans-serif; color: rgba(255,255,255,0.5); margin-bottom: 0; font-size: 13px; }
.qr-image-wrapper { position: relative; width: 250px; height: 250px; margin: 0; }
.qr-image { width: 100%; height: 100%; background: white; padding: 4px; border-radius: 12px; border: 2px solid var(--verde-claro); }
.qr-paid-overlay {
  position: absolute; inset: 0;
  background: rgba(0,140,61,0.92); border-radius: 12px;
  display: none; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 0.1em;
  color: var(--amarelo); z-index: 10;
}
.qr-paid-overlay.active { display: flex; }
.qr-code-container { display: flex; gap: 8px; width: 100%; max-width: 280px; }
.qr-input { flex: 1; padding: 11px; background: rgba(0,14,5,0.9); border: 1px solid var(--input-borda); border-radius: 6px; color: var(--branco); font-family: 'Oswald', sans-serif; font-size: 13px; }
.copy-btn {
  background: linear-gradient(135deg, var(--verde-claro), var(--verde));
  border: 1px solid var(--amarelo); color: var(--amarelo);
  padding: 11px 14px; border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  font-family: 'Bebas Neue', sans-serif; font-size: 0.9rem; letter-spacing: 0.08em;
  transition: all 0.2s ease;
}
.copy-btn:hover { box-shadow: 0 4px 16px rgba(0,255,127,0.32); transform: translateY(-1px); }

.input-group.compact { margin-bottom: 10px; }
.rollover-notice {
  display: none;
  background: rgba(160,55,0,0.15); border: 1px solid rgba(210,80,0,0.5);
  color: #ff8844; font-family: 'Oswald', sans-serif; padding: 10px; border-radius: 6px;
  font-size: 12px; text-align: center; margin-top: -5px; margin-bottom: 14px;
}
.loading-overlay {
  position: absolute; inset: 0; background: rgba(0,8,3,0.78); backdrop-filter: blur(4px);
  z-index: 20; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.loading-overlay.active { opacity: 1; visibility: visible; }
.loading-overlay .spinner {
  width: 48px; height: 48px; border-radius: 50%;
  border: 4px solid rgba(0,166,80,0.18);
  border-top-color: var(--verde-claro);
  animation: spin 1s linear infinite;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── MODAL HISTÓRICO ───────────────────────────────────────── */
.history-modal-content {
  position: relative; max-width: 420px; width: 90%;
  background: linear-gradient(155deg, #010d04, #001808);
  padding: 20px; border-radius: 14px;
  border: 1px solid var(--verde-claro); text-align: center; color: var(--branco);
  box-shadow: 0 0 45px rgba(0,166,80,0.18), 0 20px 50px rgba(0,0,0,0.7);
  display: flex; flex-direction: column; max-height: 80vh;
}
.history-modal-header { width: 100%; display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid rgba(0,166,80,0.38); margin-bottom: 15px; }
.history-modal-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.1em; color: var(--amarelo); }
.history-modal-close { font-size: 2rem; color: var(--verde-neon); cursor: pointer; background: none; border: none; transition: color 0.2s; }
.history-modal-close:hover { color: var(--amarelo); }
#history-list { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 8px; }
#history-list::-webkit-scrollbar { width: 4px; }
#history-list::-webkit-scrollbar-track { background: rgba(0,18,7,0.5); }
#history-list::-webkit-scrollbar-thumb { background: var(--verde-claro); border-radius: 2px; }
.history-item {
  background: rgba(0,22,8,0.85); border-radius: 8px; padding: 12px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto;
  gap: 5px 15px; text-align: left; border-left: 4px solid var(--verde-claro);
}
.history-item.loss { border-left-color: #cc2222; }
.history-item p { margin: 0; font-family: 'Oswald', sans-serif; font-size: 0.88rem; }
.history-item .label { color: rgba(0,200,80,0.62); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.history-item .value { font-weight: 600; color: var(--branco); }
.history-item .result-win  { color: var(--verde-neon); font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 0.06em; }
.history-item .result-loss { color: #ff4444; font-family: 'Bebas Neue', sans-serif; font-size: 1rem; }
.history-item .timestamp { grid-column: 1 / -1; color: rgba(255,255,255,0.32); font-size: 0.68rem; text-align: right; margin-top: 5px; }
#no-history-message { color: rgba(0,166,80,0.48); font-family: 'Oswald', sans-serif; padding: 40px 0; }

/* ── MODAL AFILIADOS ───────────────────────────────────────── */
.affiliate-modal-content {
  position: relative; max-width: 420px; width: 90%;
  background: linear-gradient(155deg, #010d04, #001808);
  padding: 20px; border-radius: 14px;
  border: 1px solid var(--verde-claro); color: var(--branco);
  box-shadow: 0 0 45px rgba(0,166,80,0.18);
  display: flex; flex-direction: column; max-height: 85vh;
}
.affiliate-modal-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid rgba(0,166,80,0.38); margin-bottom: 15px; }
.affiliate-modal-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.1em; color: var(--amarelo); }
.affiliate-modal-close { font-size: 2rem; color: var(--verde-neon); cursor: pointer; background: none; border: none; transition: color 0.2s; }
.affiliate-modal-close:hover { color: var(--amarelo); }

.affiliate-section { background: rgba(0,18,7,0.75); border: 1px solid rgba(0,166,80,0.28); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 0.1em; color: var(--amarelo); margin: 0 0 10px 0; display: flex; align-items: center; gap: 8px; }

.link-container { display: flex; background: rgba(0,12,5,0.92); border: 1px solid var(--input-borda); border-radius: 8px; overflow: hidden; }
#affiliate-link-input { flex-grow: 1; background: transparent; border: none; color: rgba(255,255,255,0.78); padding: 10px; font-family: 'Oswald', sans-serif; font-size: 0.85rem; outline: none; }
#copy-link-btn { background: linear-gradient(135deg, var(--verde-claro), var(--verde)); border: none; color: var(--amarelo); padding: 0 14px; cursor: pointer; font-family: 'Bebas Neue', sans-serif; font-size: 0.9rem; letter-spacing: 0.08em; transition: filter 0.2s; }
#copy-link-btn:hover { filter: brightness(1.18); }

.stats-grid-affiliate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.stat-item-affiliate .value { font-family: 'Bebas Neue', sans-serif; font-size: 1.55rem; letter-spacing: 0.05em; color: var(--amarelo); text-shadow: 0 0 12px rgba(255,215,0,0.32); }
.stat-item-affiliate .label { font-family: 'Oswald', sans-serif; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(0,200,80,0.62); }

.commission-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.commission-item { display: flex; justify-content: space-between; align-items: center; background: rgba(0,12,5,0.85); border: 1px solid rgba(0,166,80,0.2); padding: 8px 12px; border-radius: 6px; }
.commission-item .label { color: rgba(255,255,255,0.68); font-family: 'Oswald', sans-serif; font-size: 0.85rem; }
.commission-item .value { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: 0.05em; color: var(--verde-neon); }

#affiliate-history-list { overflow-y: auto; max-height: 200px; display: flex; flex-direction: column; gap: 8px; padding-right: 5px; }
.history-item-affiliate { display: grid; grid-template-columns: 1fr 1fr 1fr; background: rgba(0,12,5,0.85); border: 1px solid rgba(0,166,80,0.18); padding: 10px; border-radius: 6px; align-items: center; text-align: center; }
.history-item-affiliate p { margin: 0; font-family: 'Oswald', sans-serif; font-size: 0.85rem; }
.history-item-affiliate .label { font-size: 0.62rem; color: rgba(0,200,80,0.58); text-transform: uppercase; letter-spacing: 0.06em; }
.history-item-affiliate .value { font-weight: 600; }
.history-item-affiliate .user-id .value    { color: var(--amarelo); font-family: 'Bebas Neue', sans-serif; font-size: 1rem; }
.history-item-affiliate .deposit .value    { color: var(--branco); }
.history-item-affiliate .commission .value { color: var(--verde-neon); font-family: 'Bebas Neue', sans-serif; font-size: 1rem; }

/* Scrollbars listas */
#affiliate-history-list::-webkit-scrollbar,
#depositos-trazidos-list::-webkit-scrollbar { width: 4px; }
#affiliate-history-list::-webkit-scrollbar-track,
#depositos-trazidos-list::-webkit-scrollbar-track { background: rgba(0,12,5,0.8); border-radius: 2px; }
#affiliate-history-list::-webkit-scrollbar-thumb,
#depositos-trazidos-list::-webkit-scrollbar-thumb { background: var(--verde-claro); border-radius: 2px; }
#affiliate-history-list::-webkit-scrollbar-thumb:hover,
#depositos-trazidos-list::-webkit-scrollbar-thumb:hover { background: var(--amarelo); }
#depositos-trazidos-list { scrollbar-width: thin; scrollbar-color: var(--verde-claro) rgba(0,12,5,0.8); }

/* ── MODAL DEPÓSITOS COMPLETO ──────────────────────────────── */
#depositos-completo-modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,6,2,0.85); backdrop-filter: blur(6px);
  z-index: 10000; align-items: center; justify-content: center;
}
#depositos-completo-modal-overlay.show { display: flex !important; }

.deposito-completo-item { background: rgba(0,18,7,0.88); border: 1px solid rgba(0,166,80,0.28); border-radius: 8px; padding: 14px; border-left: 3px solid var(--verde-claro); }
.deposito-completo-item .header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.deposito-completo-item .indicado-info { flex: 1; }
.deposito-completo-item .indicado-nome     { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 0.08em; color: var(--amarelo); margin-bottom: 3px; }
.deposito-completo-item .indicado-telefone { font-family: 'Oswald', sans-serif; font-size: 0.78rem; color: rgba(255,255,255,0.48); }
.deposito-completo-item .data              { font-family: 'Oswald', sans-serif; font-size: 0.7rem; color: rgba(255,255,255,0.38); text-align: right; }
.deposito-completo-item .valores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(0,166,80,0.2); }
.deposito-completo-item .valor-item    { text-align: center; }
.deposito-completo-item .valor-label   { font-family: 'Oswald', sans-serif; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(0,200,80,0.58); margin-bottom: 3px; }
.deposito-completo-item .valor-deposito{ font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; letter-spacing: 0.05em; color: var(--branco); }
.deposito-completo-item .valor-ganho   { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; letter-spacing: 0.05em; color: var(--verde-neon); text-shadow: 0 0 10px rgba(0,255,127,0.32); }

/* ── CHECKBOX 18+ ──────────────────────────────────────────── */
.checkbox-group { margin: 14px 0; }
.checkbox-wrapper {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-family: 'Oswald', sans-serif; font-size: 0.82rem; font-weight: 400;
  color: rgba(255,255,255,0.6); line-height: 1.45; text-align: left; transition: color 0.2s;
}
.checkbox-wrapper input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; cursor: pointer; accent-color: var(--verde-claro); }
.checkbox-text { user-select: none; }
.checkbox-wrapper:hover .checkbox-text { color: var(--branco); }