/* ============================================================
   ROLETA PIX — TEMA FUTURISTA CYBERPUNK
   Fontes: Orbitron (display) + Rajdhani (corpo)
   Paleta: Ciano Neon · Azul Elétrico · Roxo Holográfico · Ouro Plasma · Preto Profundo
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* ── VARIÁVEIS GLOBAIS ─────────────────────────────────────── */
:root {
  --ciano:           #00f5ff;
  --ciano-medio:     #00c8d4;
  --ciano-escuro:    #008fa3;
  --ciano-glow:      rgba(0, 245, 255, 0.55);
  --azul:            #0080ff;
  --azul-medio:      #1a5fff;
  --azul-claro:      #4da6ff;
  --roxo:            #7b2fff;
  --roxo-medio:      #9d5fff;
  --roxo-claro:      #c084fc;
  --ouro:            #ffd700;
  --ouro-medio:      #ffb300;
  --ouro-escuro:     #cc8800;
  --verde-neon:      #00ff88;
  --rosa-neon:       #ff2d78;
  --branco:          #e8f4ff;
  --preto-fundo:     #020510;
  --preto-panel:     #050d1a;
  --modal-bg:        rgba(2, 5, 16, 0.97);
  --painel-bg:       rgba(0, 20, 45, 0.88);
  --painel-borda:    rgba(0, 245, 255, 0.35);
  --sombra-ciano:    rgba(0, 245, 255, 0.50);
  --sombra-azul:     rgba(0, 128, 255, 0.45);
  --sombra-ouro:     rgba(255, 215, 0, 0.50);
  --sombra-roxo:     rgba(123, 47, 255, 0.50);
  --input-bg:        rgba(0, 15, 35, 0.90);
  --input-borda:     rgba(0, 200, 212, 0.40);
  --grade-linha:     rgba(0, 245, 255, 0.04);
}

/* ── BASE ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body, html {
  margin: 0; padding: 0;
  height: 100%; width: 100%;
  font-family: 'Rajdhani', sans-serif;
  background-color: var(--preto-fundo);
  overflow: hidden;
  color: var(--branco);
}

/* Fundo holográfico desfocado */
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.35) saturate(1.8) hue-rotate(180deg);
}

/* Grade holográfica de fundo */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--grade-linha) 1px, transparent 1px),
    linear-gradient(90deg, var(--grade-linha) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

/* ── 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 1px var(--ciano-medio),
    0 0 40px rgba(0, 245, 255, 0.18),
    0 0 80px rgba(0, 128, 255, 0.10),
    0 8px 60px rgba(0,0,0,0.9);
  position: relative;
  overflow: hidden;
}

/* Scanlines — efeito de tela cyberpunk */
#game-container::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 245, 255, 0.013) 2px,
      rgba(0, 245, 255, 0.013) 4px
    );
  pointer-events: none;
  z-index: 0;
}

/* Borda neon animada lateral */
#game-container::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(0, 245, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 50%, rgba(123, 47, 255, 0.06) 0%, transparent 50%);
  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;
  filter: drop-shadow(0 0 20px var(--ciano-glow)) drop-shadow(0 0 40px rgba(0, 128, 255, 0.35));
}

#bonus-wheel {
  position: absolute;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  width: 37%; height: auto; z-index: 3;
  filter: drop-shadow(0 0 12px rgba(0, 245, 255, 0.60));
}

#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;
  filter: drop-shadow(0 0 6px var(--ciano));
}

#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: 30%; padding-bottom: 30%; }

.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, 10, 25, 0.95) 0%, rgba(0, 25, 55, 0.90) 100%);
  border: 1px solid var(--ciano-medio);
  border-radius: 6px;
  padding: 5px 14px;
  color: var(--branco);
  box-shadow:
    0 0 0 1px rgba(0, 245, 255, 0.12),
    0 0 12px rgba(0, 245, 255, 0.15),
    0 4px 14px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(0, 245, 255, 0.10),
    inset 0 0 20px rgba(0, 128, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
  z-index: 3;
  box-sizing: border-box;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

/* Faixa neon topo do painel */
.ui-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ciano), transparent);
  pointer-events: none;
}

.ui-panel .label {
  font-family: 'Orbitron', monospace;
  font-size: clamp(0.48rem, 1.8vw, 0.60rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0; padding: 0;
  color: var(--ciano);
  opacity: 0.80;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 8px var(--ciano-glow);
}

.ui-panel .value {
  font-family: 'Orbitron', monospace;
  font-size: clamp(0.9rem, 3.5vw, 1.25rem);
  letter-spacing: 0.06em;
  color: var(--ouro);
  margin: 0; padding: 0;
  white-space: nowrap;
  text-shadow:
    0 0 8px rgba(255, 215, 0, 0.70),
    0 0 20px rgba(255, 179, 0, 0.35);
}

#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, 10, 30, 0.95) 0%, rgba(0, 30, 65, 0.90) 100%);
  border: 1px solid var(--ciano-medio);
  border-radius: 6px;
  color: var(--ouro);
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(0, 245, 255, 0.15),
    0 0 10px rgba(0, 245, 255, 0.12),
    0 3px 10px rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  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;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.ui-button:hover {
  filter: brightness(1.20);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px var(--ciano),
    0 0 18px var(--ciano-glow),
    0 5px 16px rgba(0,0,0,0.55);
}

.ui-button:disabled {
  cursor: not-allowed;
  opacity: 0.30;
  filter: grayscale(0.85);
  transform: none;
}

/* ── BOTÃO NORMAL / FLASH — Azul Elétrico ───────────────── */
#normal-button {
  bottom: 20%; left: 5%;
  width: 25%; min-width: 90px;
  padding: 8px 0;
  font-family: 'Orbitron', monospace;
  font-size: clamp(0.55rem, 2.2vw, 0.72rem);
  letter-spacing: 0.14em;
  color: var(--ciano);
  background: linear-gradient(135deg, #000d22 0%, #001a4a 50%, #001035 100%);
  border: 1px solid var(--azul-claro);
  border-radius: 6px;
  position: absolute; overflow: hidden;
  text-shadow: 0 0 10px var(--ciano-glow);
  box-shadow:
    0 0 0 1px rgba(0, 128, 255, 0.22),
    0 0 14px rgba(0, 128, 255, 0.30),
    0 3px 12px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(0, 245, 255, 0.12);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

/* Linha neon topo */
#normal-button::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--azul-claro), var(--ciano), transparent);
  pointer-events: none;
}

/* Sweep holográfico */
#normal-button::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(0, 245, 255, 0.18) 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 var(--ciano),
    0 0 22px rgba(0, 245, 255, 0.45),
    0 6px 18px rgba(0,0,0,0.65);
  filter: brightness(1.15);
}
#normal-button:active { transform: translateY(1px) scale(0.98); }

/* ── BOTÃO DEPOSITAR — Ciano/Azul Plasma ────────────────── */
#deposit-button {
  position: absolute;
  bottom: 28%; left: 5%;
  width: 25%; min-width: 90px;
  padding: 12px 0;
  font-family: 'Orbitron', monospace;
  font-size: clamp(0.58rem, 2.2vw, 0.75rem);
  letter-spacing: 0.14em;
  color: var(--ouro);
  background: linear-gradient(135deg, #001a40 0%, #0040a0 45%, #002060 100%);
  border: 1px solid var(--ciano);
  border-radius: 6px; overflow: hidden; cursor: pointer;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.70);
  box-shadow:
    0 0 0 1px rgba(0, 245, 255, 0.25),
    0 0 20px rgba(0, 245, 255, 0.35),
    0 4px 14px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(0, 245, 255, 0.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; justify-content: center; align-items: center;
  z-index: 4; box-sizing: border-box;
  animation: depositCianoPulse 2.6s ease-in-out infinite;
  transition: transform 0.15s ease, filter 0.15s ease;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

/* Grade holográfica interna */
#deposit-button::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      90deg, transparent, transparent 12px,
      rgba(0, 245, 255, 0.03) 12px, rgba(0, 245, 255, 0.03) 13px
    );
  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(0, 245, 255, 0.22) 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 var(--ciano),
    0 0 30px var(--ciano-glow),
    0 6px 22px rgba(0,0,0,0.70);
  filter: brightness(1.12); animation: none;
}
#deposit-button:active { transform: translateY(1px) scale(0.98); }

@keyframes depositCianoPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(0, 245, 255, 0.25),
      0 0 12px rgba(0, 245, 255, 0.20),
      0 4px 14px rgba(0,0,0,0.65);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(0, 245, 255, 0.55),
      0 0 28px rgba(0, 245, 255, 0.50),
      0 0 50px rgba(0, 128, 255, 0.20),
      0 6px 22px rgba(0,0,0,0.70);
  }
}

/* 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(--ciano);
  filter: drop-shadow(0 2px 8px var(--ciano-glow));
}

/* ── Á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 − — Hexágono Metálico ───────────────────── */
#plus-button,
#minus-button {
  font-family: 'Orbitron', monospace;
  font-size: 1.20rem;
  font-weight: 700;
  color: var(--ciano);
  background: radial-gradient(ellipse at 30% 25%,
    rgba(0, 245, 255, 0.35) 0%, rgba(0, 80, 160, 0.90) 45%, rgba(0, 20, 50, 0.98) 100%);
  border: 1px solid var(--ciano);
  border-radius: 4px;
  width: 56px; height: 38px;
  padding: 0; position: static; overflow: hidden; cursor: pointer;
  text-shadow: 0 0 10px var(--ciano-glow);
  box-shadow:
    inset 0 1px 0 rgba(0, 245, 255, 0.35),
    inset 0 -1px 0 rgba(0, 40, 80, 0.50),
    0 0 12px rgba(0, 245, 255, 0.25),
    0 3px 10px rgba(0,0,0,0.60);
  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;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

#plus-button::before, #minus-button::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 8px,
    rgba(0, 245, 255, 0.03) 8px, rgba(0, 245, 255, 0.03) 9px
  );
  pointer-events: none;
}

#plus-button::after, #minus-button::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 245, 255, 0) 0%, transparent 70%);
  transform: scale(0); opacity: 0;
  border-radius: 4px;
}
#plus-button:active::after, #minus-button:active::after {
  animation: cianoPulseClick 0.35s ease-out forwards;
}
@keyframes cianoPulseClick {
  to {
    background: radial-gradient(circle at 50% 50%, rgba(0, 245, 255, 0.30) 0%, transparent 70%);
    transform: scale(2); opacity: 0;
  }
}

#plus-button:hover, #minus-button:hover {
  transform: scale(1.10);
  box-shadow:
    inset 0 1px 0 rgba(0, 245, 255, 0.45),
    0 0 20px var(--ciano-glow),
    0 5px 16px rgba(0,0,0,0.65);
  filter: brightness(1.15);
  color: var(--branco);
  text-shadow: 0 0 14px var(--ciano), 0 0 28px var(--ciano-glow);
}
#plus-button:active, #minus-button:active { transform: scale(0.92); }
#plus-button:disabled, #minus-button:disabled {
  opacity: 0.25; cursor: not-allowed; filter: grayscale(0.85); transform: none;
}

/* ── BOTÃO GIRAR — Glow Ciano Plasma ────────────────────── */
#play-button {
  position: absolute;
  bottom: 5%; left: 50%;
  transform: translateX(-50%);
  width: 43%; min-width: 95px; height: auto;
  z-index: 5; cursor: pointer;
  filter:
    drop-shadow(0 0 10px var(--ciano-glow))
    drop-shadow(0 0 22px rgba(0, 128, 255, 0.45))
    drop-shadow(0 4px 14px rgba(0,0,0,0.70));
  transition: transform 0.18s ease, filter 0.18s ease;
  animation: playPulse 2.8s ease-in-out infinite;
}
#play-button.disabled {
  cursor: not-allowed;
  filter: grayscale(0.6) brightness(0.55);
  animation: none;
}
#play-button:hover:not(.disabled) {
  transform: translateX(-50%) scale(1.08);
  filter:
    drop-shadow(0 0 22px var(--ciano))
    drop-shadow(0 0 40px rgba(0, 128, 255, 0.60))
    drop-shadow(0 0 60px rgba(0, 245, 255, 0.25))
    drop-shadow(0 4px 18px rgba(0,0,0,0.75));
  animation: none;
}
#play-button:active:not(.disabled) { transform: translateX(-50%) scale(0.94); }

@keyframes playPulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 6px rgba(0, 245, 255, 0.45))
      drop-shadow(0 3px 10px rgba(0,0,0,0.55));
  }
  50% {
    filter:
      drop-shadow(0 0 18px var(--ciano-glow))
      drop-shadow(0 0 35px rgba(0, 128, 255, 0.50))
      drop-shadow(0 4px 16px rgba(0,0,0,0.65));
  }
}

/* ── 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, rgba(0, 20, 50, 0.95), rgba(0, 60, 130, 0.90));
  border: 1px solid var(--ciano-medio);
  color: var(--ciano);
  font-family: 'Orbitron', monospace;
  font-size: 13px; font-weight: 700;
  cursor: pointer; z-index: 6;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.30), 0 4px 14px rgba(0,0,0,0.50);
  text-shadow: 0 0 8px var(--ciano-glow);
}
#legal-info-button:hover  { transform: translateX(-50%) translateY(100px) scale(1.1); box-shadow: 0 0 20px var(--ciano-glow); }
#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, 8, 20, 0.98), rgba(0, 25, 55, 0.98));
  padding: 15px 20px; border-radius: 8px;
  width: 90%; max-width: 350px; max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--ciano-medio);
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.25), 0 8px 30px rgba(0,0,0,0.70);
  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: 'Orbitron', monospace;
  color: var(--ciano); font-size: 13px; letter-spacing: 0.12em;
  margin-top: 0; margin-bottom: 10px; text-align: center;
  text-shadow: 0 0 10px var(--ciano-glow);
}
#legal-modal-content p {
  font-family: 'Rajdhani', sans-serif; font-weight: 400;
  color: rgba(232, 244, 255, 0.72); 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(--ciano); font-size: 22px; cursor: pointer;
  width: 25px; height: 25px; display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, color 0.2s; z-index: 10;
  text-shadow: 0 0 8px var(--ciano-glow);
}
.legal-modal-close:hover { transform: scale(1.2); color: var(--ouro); }

#legal-modal-content::-webkit-scrollbar { width: 4px; }
#legal-modal-content::-webkit-scrollbar-track { background: rgba(0, 10, 25, 0.6); border-radius: 2px; }
#legal-modal-content::-webkit-scrollbar-thumb { background: var(--ciano-escuro); border-radius: 2px; }
#legal-modal-content::-webkit-scrollbar-thumb:hover { background: var(--ciano); }

@media (max-width: 768px) {
  #legal-info-button { width: 28px; height: 28px; font-size: 11px; }
  #legal-modal-content { padding: 12px 15px; max-width: 320px; max-height: 180px; bottom: 12%; }
  #legal-modal-content h3 { font-size: 11px; margin-bottom: 8px; }
  #legal-modal-content p { font-size: 9px; }
  .legal-modal-close { font-size: 18px; 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: 10px; }
  #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, 3, 10, 0.88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  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, #010510 0%, #001535 100%);
  padding: 25px 20px; border-radius: 12px;
  text-align: center; color: var(--branco);
  border: 1px solid var(--ciano);
  box-shadow:
    0 0 0 1px rgba(0, 128, 255, 0.22),
    0 0 40px rgba(0, 245, 255, 0.20),
    0 0 80px rgba(0, 80, 200, 0.15),
    0 20px 60px rgba(0,0,0,0.80);
  opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

/* Scanlines no modal */
#modal-content::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0, 245, 255, 0.015) 3px, rgba(0, 245, 255, 0.015) 6px
  );
  z-index: 0; pointer-events: none;
}

/* Faixa topo neon */
#modal-content::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ciano), var(--azul-claro), var(--ciano), transparent);
  animation: scanLine 3s linear infinite;
}
@keyframes scanLine {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

.modal-overlay.show #modal-content { opacity: 1; transform: scale(1); }

#modal-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.6rem; letter-spacing: 0.12em;
  color: var(--ciano);
  margin: 0 0 10px 0;
  text-shadow:
    0 0 10px var(--ciano-glow),
    0 0 30px rgba(0, 128, 255, 0.45),
    0 2px 4px rgba(0,0,0,0.65);
  position: relative; z-index: 1; text-transform: uppercase;
}
#modal-title::before { content: '⚡ '; }
#modal-title::after  { content: ' ⚡'; }

#modal-ganho {
  font-family: 'Orbitron', monospace;
  font-size: 2rem; letter-spacing: 0.06em;
  background: linear-gradient(to bottom, var(--ouro), var(--ouro-medio));
  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 0 10px rgba(255, 215, 0, 0.60));
  text-shadow: none;
}

#modal-details {
  font-family: 'Rajdhani', sans-serif; font-size: 0.85rem; font-weight: 400;
  color: rgba(180, 220, 255, 0.60); margin: 0; position: relative; z-index: 1;
  letter-spacing: 0.06em;
}

#modal-button {
  background: linear-gradient(135deg, rgba(0, 40, 100, 0.95), rgba(0, 100, 220, 0.90));
  background-size: 200% auto;
  border: 1px solid var(--ciano); border-radius: 6px;
  color: var(--ciano); padding: 12px 30px;
  font-family: 'Orbitron', monospace; font-size: 0.95rem; letter-spacing: 0.14em;
  cursor: pointer; margin-top: 20px; text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(0, 245, 255, 0.18),
    0 0 18px rgba(0, 245, 255, 0.35),
    0 4px 18px rgba(0,0,0,0.60);
  transition: all 0.3s ease; position: relative; z-index: 1;
  text-shadow: 0 0 10px var(--ciano-glow);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
#modal-button:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 0 1px var(--ciano),
    0 0 28px var(--ciano-glow),
    0 0 50px rgba(0, 128, 255, 0.30),
    0 6px 28px rgba(0,0,0,0.70);
  color: var(--branco);
  text-shadow: 0 0 16px var(--ciano), 0 0 30px var(--ciano-glow);
}

/* ── ÍCONES TOPO DIREITO ───────────────────────────────────── */
#top-right-icons {
  position: absolute; top: 20px; right: 15px;
  display: flex; flex-direction: column; gap: 10px; z-index: 5;
}
.icon-button {
  width: 38px; height: 38px; border-radius: 4px;
  background: linear-gradient(135deg, rgba(0, 10, 28, 0.95), rgba(0, 35, 80, 0.90));
  border: 1px solid var(--ciano-medio);
  color: var(--ciano);
  display: flex; justify-content: center; align-items: center;
  cursor: pointer; padding: 0;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 0 0 1px rgba(0, 245, 255, 0.10),
    0 0 10px rgba(0, 245, 255, 0.15),
    0 2px 10px rgba(0,0,0,0.55);
  transition: all 0.2s ease;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
  text-shadow: 0 0 8px var(--ciano-glow);
}
.icon-button:hover {
  border-color: var(--ciano);
  box-shadow:
    0 0 0 1px var(--ciano),
    0 0 20px var(--ciano-glow),
    0 4px 16px rgba(0,0,0,0.65);
  transform: scale(1.08);
  color: var(--branco);
}
.icon-button svg { width: 20px; height: 20px; fill: currentColor; }
.icon-button.help-button {
  font-family: 'Orbitron', monospace; font-size: 16px; color: var(--ciano);
}

/* ── MODAL PERFIL ──────────────────────────────────────────── */
#profile-modal-content {
  width: 100%; max-width: 420px; height: auto; border-radius: 10px;
  position: relative;
  background: linear-gradient(160deg, rgba(0, 5, 18, 0.98), rgba(0, 20, 55, 0.98));
  border: 1px solid var(--ciano-medio);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: var(--branco); padding: 20px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; gap: 15px;
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.18), 0 12px 40px rgba(0,0,0,0.80);
}
#profile-header {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; border-bottom: 1px solid rgba(0, 245, 255, 0.25);
}
#close-profile-button {
  font-size: 1.8rem; color: var(--ciano);
  cursor: pointer; background: none; border: none; transition: color 0.2s;
  text-shadow: 0 0 10px var(--ciano-glow);
}
#close-profile-button:hover { color: var(--ouro); }
#username-display {
  font-family: 'Orbitron', monospace; font-size: 1.3rem;
  letter-spacing: 0.10em; color: var(--ouro);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.55);
}
.profile-button {
  width: 80%; padding: 12px;
  background: linear-gradient(135deg, rgba(0, 10, 28, 0.95), rgba(0, 35, 80, 0.90));
  border: 1px solid var(--ciano-medio); color: var(--ciano);
  font-family: 'Orbitron', monospace; font-size: 0.80rem; letter-spacing: 0.10em;
  border-radius: 6px; cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.12), 0 2px 8px rgba(0,0,0,0.45);
  text-shadow: 0 0 8px var(--ciano-glow);
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}
.profile-button:hover {
  border-color: var(--ciano);
  box-shadow: 0 0 18px var(--ciano-glow), 0 4px 18px rgba(0,0,0,0.55);
  color: var(--branco);
}

/* ── MODAL AUTH ────────────────────────────────────────────── */
.auth-modal-content {
  position: relative; max-width: 350px; width: 90%;
  background: linear-gradient(155deg, #010510, #001228);
  padding: 1.5rem; border-radius: 10px;
  border: 1px solid var(--ciano-medio);
  text-align: left; color: var(--branco);
  box-shadow:
    0 0 30px rgba(0, 245, 255, 0.18),
    0 0 60px rgba(0, 80, 200, 0.12),
    0 12px 40px rgba(0,0,0,0.75);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.auth-modal-content::before {
  content: '◈'; position: absolute; top: 10px; left: 10px;
  font-size: 16px; opacity: 0.15; color: var(--ciano);
  animation: float 4s ease-in-out infinite; z-index: 0;
  text-shadow: 0 0 10px var(--ciano-glow);
}
.auth-modal-content::after {
  content: '◇'; position: absolute; top: 12px; right: 45px;
  font-size: 14px; opacity: 0.15; color: var(--azul-claro);
  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.12; transform: scale(1) rotate(0deg); }
  50%       { opacity: 0.35; transform: scale(1.20) rotate(45deg); }
}

.christmas-decoration {
  position: absolute; pointer-events: none; z-index: 0; opacity: 0.12; filter: blur(0.3px);
  color: var(--ciano); text-shadow: 0 0 8px var(--ciano-glow);
}
.christmas-decoration.top-left    { top: 8px; left: 8px;   font-size: 14px; animation: float 4s ease-in-out infinite; }
.christmas-decoration.top-right   { top: 8px; right: 45px;  font-size: 12px; animation: twinkle 2.5s ease-in-out infinite; }
.christmas-decoration.bottom-left { bottom: 8px; left: 8px; font-size: 11px; animation: float 3.5s ease-in-out infinite; }
.christmas-decoration.bottom-right{ bottom: 8px; right: 8px;font-size: 12px; animation: twinkle 2s ease-in-out infinite; }

/* Partículas holográficas */
#global-snow-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden; pointer-events: none; z-index: 100;
}
.snowflake {
  position: absolute;
  font-size: 12px;
  animation: snowfall linear infinite; top: -20px; opacity: 0;
}
/* Partículas ciano/azul holográficas */
.snowflake:nth-child(3n)   { color: var(--ciano);      text-shadow: 0 0 6px var(--ciano-glow); }
.snowflake:nth-child(3n+1) { color: var(--azul-claro); text-shadow: 0 0 6px rgba(77, 166, 255, 0.50); }
.snowflake:nth-child(3n+2) { color: var(--roxo-claro); text-shadow: 0 0 6px rgba(157, 95, 255, 0.45); }

@keyframes snowfall {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.60; }
  90%  { opacity: 0.60; }
  100% { transform: translateY(100vh) translateX(35px) rotate(360deg); opacity: 0; }
}
.snowflake:nth-child(1)  { left: 5%;  animation-duration: 10s;   animation-delay: 0s;   font-size: 10px; }
.snowflake:nth-child(2)  { left: 10%; animation-duration: 12s;   animation-delay: 1s;   font-size: 12px; }
.snowflake:nth-child(3)  { left: 15%; animation-duration: 11s;   animation-delay: 0.5s; font-size: 11px; }
.snowflake:nth-child(4)  { left: 20%; animation-duration: 13s;   animation-delay: 1.5s; font-size: 13px; }
.snowflake:nth-child(5)  { left: 25%; animation-duration: 10.5s; animation-delay: 0.3s; font-size: 10px; }
.snowflake:nth-child(6)  { left: 30%; animation-duration: 11.5s; animation-delay: 0.8s; font-size: 12px; }
.snowflake:nth-child(7)  { left: 35%; animation-duration: 12.5s; animation-delay: 1.2s; font-size: 11px; }
.snowflake:nth-child(8)  { left: 40%; animation-duration: 10s;   animation-delay: 0.6s; font-size: 13px; }
.snowflake:nth-child(9)  { left: 45%; animation-duration: 11s;   animation-delay: 1.4s; font-size: 10px; }
.snowflake:nth-child(10) { left: 50%; animation-duration: 12s;   animation-delay: 0.2s; font-size: 12px; }
.snowflake:nth-child(11) { left: 55%; animation-duration: 13s;   animation-delay: 0.9s; font-size: 11px; }
.snowflake:nth-child(12) { left: 60%; animation-duration: 10.5s; animation-delay: 0.4s; font-size: 13px; }
.snowflake:nth-child(13) { left: 65%; animation-duration: 11.5s; animation-delay: 1.1s; font-size: 10px; }
.snowflake:nth-child(14) { left: 70%; animation-duration: 12s;   animation-delay: 0.7s; font-size: 12px; }
.snowflake:nth-child(15) { left: 75%; animation-duration: 10s;   animation-delay: 1.3s; font-size: 11px; }
.snowflake:nth-child(16) { left: 80%; animation-duration: 11s;   animation-delay: 0.1s; font-size: 13px; }
.snowflake:nth-child(17) { left: 85%; animation-duration: 12s;   animation-delay: 0.6s; font-size: 10px; }
.snowflake:nth-child(18) { left: 90%; animation-duration: 13s;   animation-delay: 1.2s; font-size: 12px; }
.snowflake:nth-child(19) { left: 95%; animation-duration: 10s;   animation-delay: 0.8s; font-size: 11px; }
.snowflake:nth-child(20) { left: 7%;  animation-duration: 11.5s; animation-delay: 0.4s; font-size: 13px; }
.snowflake:nth-child(21) { left: 17%; animation-duration: 12s;   animation-delay: 1s;   font-size: 10px; }
.snowflake:nth-child(22) { left: 27%; animation-duration: 10.5s; animation-delay: 0.3s; font-size: 12px; }
.snowflake:nth-child(23) { left: 37%; animation-duration: 13s;   animation-delay: 1.5s; font-size: 11px; }
.snowflake:nth-child(24) { left: 47%; animation-duration: 11s;   animation-delay: 0.7s; font-size: 13px; }
.snowflake:nth-child(25) { left: 57%; animation-duration: 12s;   animation-delay: 0.2s; font-size: 10px; }
.snowflake:nth-child(26) { left: 67%; animation-duration: 10s;   animation-delay: 1.1s; font-size: 12px; }
.snowflake:nth-child(27) { left: 77%; animation-duration: 11.5s; animation-delay: 0.5s; font-size: 11px; }
.snowflake:nth-child(28) { left: 87%; animation-duration: 12.5s; animation-delay: 1.3s; font-size: 13px; }
.snowflake:nth-child(29) { left: 97%; animation-duration: 10.5s; animation-delay: 0.9s; font-size: 10px; }
.snowflake:nth-child(30) { left: 3%;  animation-duration: 13s;   animation-delay: 0.6s; font-size: 12px; }

@media (max-width: 768px) { .christmas-decoration { opacity: 0.08; font-size: 10px !important; } .snowflake { font-size: 8px; } }
@media (max-width: 480px) { .snowflake { font-size: 7px; } }

/* ── FECHAR AUTH ───────────────────────────────────────────── */
.auth-modal-close {
  position: absolute; top: 12px; right: 15px;
  background: none; border: none; color: var(--ciano);
  font-size: 1.4rem; cursor: pointer; z-index: 100;
  transition: color 0.2s, text-shadow 0.2s;
  text-shadow: 0 0 8px var(--ciano-glow);
}
.auth-modal-close:hover { color: var(--ouro); text-shadow: 0 0 12px rgba(255, 215, 0, 0.60); }

/* ── TABS AUTH ─────────────────────────────────────────────── */
.auth-tabs {
  display: flex; margin-bottom: 1.2rem;
  background: rgba(0, 8, 22, 0.85);
  border: 1px solid rgba(0, 200, 212, 0.22);
  border-radius: 6px; padding: 3px; gap: 3px;
  position: relative; z-index: 1;
}
.auth-tab {
  flex: 1; padding: 9px 8px; border-radius: 4px; border: none;
  background: transparent; color: rgba(180, 220, 255, 0.40);
  font-family: 'Orbitron', monospace; font-size: 0.72rem; letter-spacing: 0.10em;
  cursor: pointer; transition: all 0.3s ease;
}
.auth-tab.active {
  background: linear-gradient(135deg, rgba(0, 60, 140, 0.90), rgba(0, 100, 200, 0.85));
  color: var(--ciano);
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.30), inset 0 1px 0 rgba(0, 245, 255, 0.18);
  text-shadow: 0 0 8px var(--ciano-glow);
  border: 1px solid rgba(0, 245, 255, 0.35);
}
.auth-tab:not(.active):hover { color: var(--ciano); background: rgba(0, 30, 70, 0.50); }

/* ── 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(--ciano);
  font-family: 'Orbitron', monospace; font-size: 0.60rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.4rem;
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.45);
}
.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: 'Rajdhani', sans-serif; font-size: 0.95rem; box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}
.auth-form .form-input:focus {
  outline: none; border-color: var(--ciano);
  box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.18), 0 0 12px rgba(0, 245, 255, 0.15);
}
.auth-form .form-input::placeholder { color: rgba(0, 180, 200, 0.25); }
.auth-form .input-icon { position: absolute; left: 10px; color: var(--ciano-medio); font-size: 0.95rem; pointer-events: none; transition: color 0.2s; }
.auth-form .form-group:focus-within .input-icon { color: var(--ciano); text-shadow: 0 0 8px var(--ciano-glow); }
.auth-form .form-helper { font-size: 0.65rem; color: rgba(0, 200, 212, 0.38); margin-top: 0.2rem; letter-spacing: 0.06em; }
.auth-form .submit-btn {
  background: linear-gradient(135deg, rgba(0, 50, 130, 0.95), rgba(0, 100, 220, 0.90));
  border: 1px solid var(--ciano); padding: 12px; border-radius: 6px;
  color: var(--ciano); font-family: 'Orbitron', monospace; font-size: 0.85rem; letter-spacing: 0.14em;
  cursor: pointer; margin-top: 0.4rem; width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.30), 0 4px 16px rgba(0,0,0,0.55);
  text-shadow: 0 0 10px var(--ciano-glow);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.auth-form .submit-btn:hover {
  box-shadow: 0 0 28px var(--ciano-glow), 0 0 50px rgba(0, 128, 255, 0.25), 0 6px 24px rgba(0,0,0,0.65);
  transform: translateY(-2px);
  color: var(--branco);
  text-shadow: 0 0 16px var(--ciano), 0 0 30px var(--ciano-glow);
}
.auth-form .form-footer { font-family: 'Rajdhani', sans-serif; font-size: 0.82rem; color: rgba(180, 220, 255, 0.40); text-align: center; margin-top: 0.8rem; letter-spacing: 0.04em; }
.auth-form .form-footer a, .auth-form .footer-link { color: var(--ciano); text-decoration: none; cursor: pointer; transition: color 0.2s, text-shadow 0.2s; }
.auth-form .form-footer a:hover, .auth-form .footer-link:hover { color: var(--ouro); text-shadow: 0 0 10px rgba(255, 215, 0, 0.55); text-decoration: none; }
.password-toggle { position: absolute; right: 10px; background: none; border: none; color: rgba(0, 200, 212, 0.60); cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; transition: color 0.2s; }
.password-toggle:hover { color: var(--ciano); }
.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: 10px; }
  .auth-modal-close { top: 10px; right: 15px; font-size: 1.3rem; }
  .auth-tabs { margin-bottom: 1.2rem; }
  .auth-tab { padding: 9px 8px; font-size: 0.65rem; }
  .auth-form { gap: 1rem; }
  .auth-form .form-input { padding: 10px 10px 10px 35px; font-size: 16px; border-radius: 6px; }
  .auth-form .submit-btn { padding: 11px; font-size: 0.80rem; border-radius: 6px; }
  .password-toggle { right: 10px; font-size: 0.95rem; }
}
@media (max-width: 480px) {
  .auth-modal-content { max-width: 98%; width: 98%; padding: 1.2rem; border-radius: 8px; }
  .auth-modal-close { top: 8px; right: 12px; font-size: 1.2rem; }
  .auth-tabs { margin-bottom: 1rem; padding: 3px; gap: 3px; }
  .auth-tab { padding: 8px 6px; font-size: 0.58rem; }
  .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.75rem; }
  .auth-form .form-footer { font-size: 0.72rem; }
}

/* ── CENTRAL DE AJUDA ──────────────────────────────────────── */
#help-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 2, 8, 0.92);
  backdrop-filter: blur(8px); 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, #010510, #001228);
  border-radius: 10px; max-width: 300px; width: 100%;
  max-height: 75vh; overflow-y: auto; position: relative;
  border: 1px solid var(--ciano-medio);
  box-shadow: 0 0 35px rgba(0, 245, 255, 0.18), 0 12px 45px rgba(0,0,0,0.75);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
#help-modal-content::-webkit-scrollbar { width: 4px; }
#help-modal-content::-webkit-scrollbar-track { background: rgba(0, 8, 20, 0.8); }
#help-modal-content::-webkit-scrollbar-thumb { background: var(--ciano-escuro); border-radius: 2px; }
#help-modal-content::-webkit-scrollbar-thumb:hover { background: var(--ciano); }

.help-header {
  background: linear-gradient(135deg, rgba(0, 40, 100, 0.95), rgba(0, 80, 180, 0.90));
  padding: 6px 10px; border-radius: 10px 10px 0 0;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--ciano-medio);
}
.help-header h2 {
  font-family: 'Orbitron', monospace; color: var(--ciano);
  font-size: 11px; letter-spacing: 0.14em; margin: 0;
  display: flex; align-items: center; gap: 5px;
  text-shadow: 0 0 10px var(--ciano-glow);
}
.help-close {
  background: rgba(0, 245, 255, 0.10); border: 1px solid var(--ciano-medio); color: var(--ciano);
  width: 18px; height: 18px; border-radius: 3px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: bold; transition: all 0.2s ease;
  text-shadow: 0 0 6px var(--ciano-glow);
}
.help-close:hover { background: rgba(0, 245, 255, 0.20); transform: scale(1.1); color: var(--ouro); }

.help-tabs {
  display: flex; gap: 3px; padding: 4px 8px;
  background: rgba(0, 5, 15, 0.95); border-bottom: 1px solid rgba(0, 200, 212, 0.20); flex-wrap: wrap;
}
.help-tab {
  padding: 3px 6px;
  background: rgba(0, 10, 28, 0.90); border: 1px solid rgba(0, 200, 212, 0.20); border-radius: 3px;
  color: rgba(180, 220, 255, 0.40); cursor: pointer; transition: all 0.2s ease;
  font-family: 'Orbitron', monospace; font-weight: 600; font-size: 7px; letter-spacing: 0.08em;
}
.help-tab:hover { background: rgba(0, 40, 80, 0.80); color: var(--ciano); }
.help-tab.active {
  background: linear-gradient(135deg, rgba(0, 50, 130, 0.92), rgba(0, 90, 200, 0.88));
  border-color: var(--ciano-medio); color: var(--ciano);
  text-shadow: 0 0 6px var(--ciano-glow);
}
.help-content { padding: 8px 10px; color: var(--branco); }
.help-section { display: none; }
.help-section.active { display: block; }
.help-section h3 { font-family: 'Orbitron', monospace; color: var(--ciano); font-size: 11px; letter-spacing: 0.10em; margin-top: 0; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; text-shadow: 0 0 8px var(--ciano-glow); }
.help-section h4 { font-family: 'Orbitron', monospace; color: var(--azul-claro); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-top: 10px; margin-bottom: 4px; }
.help-section p  { color: rgba(180, 220, 255, 0.68); line-height: 1.45; margin-bottom: 6px; font-size: 8px; font-family: 'Rajdhani', sans-serif; font-weight: 400; }
.help-section ul { color: rgba(180, 220, 255, 0.68); line-height: 1.5; margin-bottom: 10px; padding-left: 14px; font-size: 8px; font-family: 'Rajdhani', sans-serif; }
.help-section li { margin-bottom: 3px; }
.help-section strong { color: var(--ciano); font-size: 8px; }
.help-section code { background: rgba(0, 30, 70, 0.75); padding: 1px 4px; border-radius: 2px; color: var(--ciano); font-family: monospace; font-size: 7px; border: 1px solid rgba(0, 200, 212, 0.25); }

@media (max-width: 768px) {
  #help-modal-overlay { padding: 10px; }
  #help-modal-content { max-width: 100%; max-height: 95vh; border-radius: 10px; }
  .help-header { padding: 12px 16px; border-radius: 10px 10px 0 0; }
  .help-header h2 { font-size: 13px; }
  .help-close { width: 26px; height: 26px; font-size: 16px; }
  .help-tabs { padding: 8px 12px; gap: 6px; flex-wrap: wrap; }
  .help-tab { padding: 6px 10px; font-size: 9px; flex: 1 1 calc(50% - 3px); min-width: calc(50% - 3px); }
  .help-content { padding: 12px 10px; }
  .help-section h3 { font-size: 12px; margin-bottom: 10px; }
  .help-section h4 { font-size: 11px; margin-top: 16px; margin-bottom: 8px; }
  .help-section p, .help-section ul { font-size: 11px; line-height: 1.5; margin-bottom: 10px; }
}
@media (max-width: 480px) {
  #help-modal-overlay { padding: 5px; }
  #help-modal-content { max-height: 98vh; border-radius: 8px; }
  .help-header { padding: 10px 12px; }
  .help-header h2 { font-size: 12px; }
  .help-close { width: 22px; height: 22px; font-size: 14px; }
  .help-tabs { padding: 5px 8px; gap: 4px; }
  .help-tab { padding: 5px 8px; font-size: 8px; flex: 1 1 calc(50% - 2px); }
  .help-section p, .help-section ul { font-size: 10px; }
}

/* ── NOTIFICAÇÃO GERAL ─────────────────────────────────────── */
#notification {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(0, 30, 70, 0.98), rgba(0, 70, 160, 0.95));
  border: 1px solid var(--ciano); color: var(--ciano);
  font-family: 'Orbitron', monospace; font-size: 0.85rem; letter-spacing: 0.12em;
  padding: 10px 24px; border-radius: 6px; z-index: 1001; display: none;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.40), 0 4px 18px rgba(0,0,0,0.65);
  text-shadow: 0 0 10px var(--ciano-glow);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
#notification.error {
  background: linear-gradient(135deg, rgba(60, 0, 0, 0.98), rgba(120, 0, 0, 0.95));
  border-color: var(--rosa-neon);
  color: var(--rosa-neon);
  text-shadow: 0 0 10px rgba(255, 45, 120, 0.65);
  box-shadow: 0 0 20px rgba(255, 45, 120, 0.35), 0 4px 18px rgba(0,0,0,0.65);
}

/* ── NOTIFICAÇÕES SAQUE ────────────────────────────────────── */
.withdraw-notification {
  position: fixed; top: 20px; left: 20px;
  background: linear-gradient(135deg, rgba(0, 8, 22, 0.98), rgba(0, 25, 60, 0.98));
  border: 1px solid var(--ciano-medio); color: var(--branco);
  padding: 8px 12px; border-radius: 6px;
  box-shadow:
    0 0 16px rgba(0, 245, 255, 0.25),
    0 0 0 1px rgba(0, 245, 255, 0.10),
    0 4px 18px rgba(0,0,0,0.75);
  z-index: 10000; max-width: 220px;
  animation: slideInLeft 0.4s ease-out, fadeOutNotif 0.5s ease-in 4.5s;
  opacity: 1; backdrop-filter: blur(12px);
  font-family: 'Rajdhani', sans-serif; font-size: 0.75rem;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.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.58rem; color: var(--ciano); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; font-family: 'Orbitron', monospace; text-shadow: 0 0 6px var(--ciano-glow); }
.withdraw-notification-icon { width: 12px; height: 12px; background: rgba(0, 245, 255, 0.20); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 7px; flex-shrink: 0; }
.withdraw-notification-content { font-size: 0.75rem; line-height: 1.3; }
.withdraw-notification-name    { font-weight: 700; color: var(--branco); font-size: 0.70rem; letter-spacing: 0.04em; }
.withdraw-notification-amount  { font-family: 'Orbitron', monospace; font-size: 1.0rem; letter-spacing: 0.06em; color: var(--ouro); margin-top: 2px; display: block; text-shadow: 0 0 8px rgba(255, 215, 0, 0.55); }

@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.6; } }

@media (max-width: 768px) {
  .withdraw-notification { top: 10px; left: 10px; max-width: 180px; padding: 6px 10px; }
  .withdraw-notification-header { font-size: 0.52rem; }
  .withdraw-notification-content { font-size: 0.68rem; }
  .withdraw-notification-name { font-size: 0.62rem; }
  .withdraw-notification-amount { font-size: 0.90rem; }
}

/* ── MODAL BACKDROP / CONTAINER ─────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 2, 8, 0.94);
  backdrop-filter: blur(16px); 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, 4, 14, 0.98), rgba(0, 18, 48, 0.98));
  border-radius: 10px; overflow: hidden; position: relative;
  border: 1px solid var(--ciano-medio); width: 100%;
  box-shadow:
    0 0 0 1px rgba(0, 245, 255, 0.12),
    0 0 35px rgba(0, 245, 255, 0.14),
    0 0 70px rgba(0, 80, 200, 0.10),
    0 20px 60px rgba(0,0,0,0.80);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
/* Faixa topo neon holográfica */
.modal-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ciano), var(--azul-claro), var(--ciano), transparent);
  z-index: 10;
  animation: scanLine 3s linear infinite;
}
.deposit-card { position: relative; display: flex; flex-direction: column; }

.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  background: rgba(0, 10, 28, 0.85); border: 1px solid var(--ciano-medio);
  border-radius: 4px; color: var(--ciano);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s ease;
  font-size: 18px; z-index: 100; backdrop-filter: blur(10px); font-weight: bold;
  text-shadow: 0 0 8px var(--ciano-glow);
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}
.modal-close:hover {
  background: rgba(0, 245, 255, 0.12); border-color: var(--ciano);
  color: var(--ouro); text-shadow: 0 0 12px rgba(255, 215, 0, 0.60);
}

.deposit-header-img {
  position: relative; top: 0; left: 0; width: 100%; z-index: 2; pointer-events: none;
  border-radius: 10px 10px 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: 'Orbitron', monospace; color: var(--ciano);
  font-size: 1.2rem; letter-spacing: 0.12em; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  text-shadow: 0 0 12px var(--ciano-glow);
}
.deposit-title {
  font-family: 'Orbitron', monospace; color: var(--ciano);
  font-size: 1.2rem; letter-spacing: 0.12em; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  text-shadow: 0 0 12px var(--ciano-glow);
}
.deposit-title::before { content: '◈'; font-size: 20px; color: var(--ciano); }

.input-group { margin-bottom: 18px; }
.input-label {
  display: block; color: var(--ciano);
  font-family: 'Orbitron', monospace; font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px;
  text-shadow: 0 0 6px rgba(0, 245, 255, 0.40);
}
.amount-input, .text-input {
  width: 100%; padding: 13px 16px;
  background: var(--input-bg); border: 1px solid var(--input-borda);
  border-radius: 6px; color: var(--branco);
  font-family: 'Rajdhani', sans-serif; font-size: 1rem;
  transition: all 0.3s ease; box-sizing: border-box;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}
.amount-input:focus, .text-input:focus {
  outline: none; border-color: var(--ciano);
  box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.15), 0 0 12px rgba(0, 245, 255, 0.12);
}
.deposit-form .amount-input { border-color: rgba(0, 200, 212, 0.55); font-weight: 600; font-size: 1.05rem; color: var(--ciano); }
.deposit-form .amount-input:focus { border-color: var(--ciano); box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.18); }

.min-value-notice { display: block; color: rgba(0, 180, 200, 0.60); font-family: 'Rajdhani', sans-serif; font-size: 11px; margin-top: 6px; letter-spacing: 0.04em; }

.values-grid { display: flex; justify-content: center; gap: 8px; margin: 16px 0; width: 100%; }
.value-btn {
  background: rgba(0, 10, 28, 0.90); border: 1px solid var(--input-borda);
  color: rgba(180, 220, 255, 0.65); padding: 11px 6px; border-radius: 5px;
  font-family: 'Orbitron', monospace; font-weight: 600; font-size: 11px;
  cursor: pointer; transition: all 0.25s ease; position: relative;
  white-space: nowrap; text-align: center; flex: 1 1 0; min-width: 54px;
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}
.value-btn:hover {
  background: rgba(0, 40, 90, 0.90); border-color: var(--ciano-medio);
  color: var(--ciano); text-shadow: 0 0 8px var(--ciano-glow);
}
.value-btn.quente, .value-btn.selected {
  background: linear-gradient(135deg, rgba(0, 40, 100, 0.95), rgba(0, 90, 200, 0.92));
  border: 1px solid var(--ciano); color: var(--ciano);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.22);
  text-shadow: 0 0 8px var(--ciano-glow);
}
.quente-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--azul), var(--ciano-escuro)); color: var(--ciano);
  font-family: 'Orbitron', monospace; font-size: 7px; letter-spacing: 0.08em;
  padding: 2px 6px; border-radius: 3px; white-space: nowrap;
  text-shadow: 0 0 6px var(--ciano-glow);
  border: 1px solid rgba(0, 245, 255, 0.40);
}

.generate-btn {
  width: 100%; border: none; padding: 14px 24px; border-radius: 6px;
  font-family: 'Orbitron', monospace; font-size: 0.88rem; letter-spacing: 0.14em;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 10px; transition: all 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}
.deposit-form .generate-btn {
  background: linear-gradient(135deg, rgba(0, 50, 130, 0.95), rgba(0, 100, 220, 0.90));
  border: 1px solid var(--ciano); color: var(--ciano); margin-top: 10px;
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.30), 0 4px 18px rgba(0,0,0,0.60);
  text-shadow: 0 0 10px var(--ciano-glow);
}
.deposit-form .generate-btn:hover {
  box-shadow: 0 0 28px var(--ciano-glow), 0 0 50px rgba(0, 128, 255, 0.22), 0 6px 26px rgba(0,0,0,0.70);
  transform: translateY(-2px); color: var(--branco);
}
.withdraw-form .generate-btn {
  background: linear-gradient(135deg, rgba(0, 50, 130, 0.95), rgba(0, 100, 220, 0.90));
  border: 1px solid var(--ciano); color: var(--ciano); margin-top: 16px;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.28), 0 4px 18px rgba(0,0,0,0.60);
  text-shadow: 0 0 10px var(--ciano-glow);
}
.withdraw-form .generate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px var(--ciano-glow), 0 0 60px rgba(0, 128, 255, 0.22), 0 10px 30px rgba(0,0,0,0.70);
}

.pix-input-container { display: flex; gap: 10px; }
.pix-selector {
  width: 100px; background: var(--input-bg); border: 1px solid var(--input-borda);
  border-radius: 6px; color: var(--ciano); padding: 13px 8px; cursor: pointer;
  text-align: center; font-family: 'Orbitron', monospace; font-size: 11px; letter-spacing: 0.06em;
}
.pix-input {
  flex: 1; padding: 13px 18px; background: var(--input-bg); border: 1px solid var(--input-borda);
  border-radius: 6px; color: var(--branco); font-family: 'Rajdhani', sans-serif; font-size: 14px;
}
.pix-selector:focus, .pix-input:focus { outline: none; border-color: var(--ciano); background: rgba(0, 20, 50, 0.95); }

.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: 'Orbitron', monospace; color: var(--ciano); font-size: 1.1rem; letter-spacing: 0.10em; margin-bottom: 0; text-shadow: 0 0 10px var(--ciano-glow); }
.qr-description { font-family: 'Rajdhani', sans-serif; color: rgba(0, 200, 212, 0.55); margin-bottom: 0; font-size: 13px; letter-spacing: 0.04em; }
.qr-image-wrapper { position: relative; width: 250px; height: 250px; margin: 0; }
.qr-image { width: 100%; height: 100%; background: white; padding: 4px; border-radius: 8px; border: 1px solid var(--ciano); box-shadow: 0 0 18px rgba(0, 245, 255, 0.28); }
.qr-paid-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 30, 70, 0.95); border-radius: 8px;
  display: none; align-items: center; justify-content: center;
  font-family: 'Orbitron', monospace; font-size: 1.8rem; letter-spacing: 0.12em;
  color: var(--ciano); z-index: 10;
  text-shadow: 0 0 20px var(--ciano-glow);
  border: 1px solid var(--ciano);
}
.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, 8, 22, 0.95); border: 1px solid var(--input-borda); border-radius: 5px; color: var(--branco); font-family: 'Rajdhani', sans-serif; font-size: 12px; }
.copy-btn {
  background: linear-gradient(135deg, rgba(0, 50, 130, 0.95), rgba(0, 90, 200, 0.90));
  border: 1px solid var(--ciano); color: var(--ciano);
  padding: 11px 14px; border-radius: 5px; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  font-family: 'Orbitron', monospace; font-size: 0.78rem; letter-spacing: 0.08em;
  transition: all 0.2s ease; text-shadow: 0 0 8px var(--ciano-glow);
}
.copy-btn:hover {
  box-shadow: 0 0 18px var(--ciano-glow);
  transform: translateY(-1px); color: var(--branco);
}

.input-group.compact { margin-bottom: 10px; }
.rollover-notice {
  display: none;
  background: rgba(80,30,0,0.18); border: 1px solid rgba(255, 120, 0, 0.45);
  color: #ff9944; font-family: 'Rajdhani', sans-serif; padding: 10px; border-radius: 5px;
  font-size: 12px; text-align: center; margin-top: -5px; margin-bottom: 14px; letter-spacing: 0.04em;
}
.loading-overlay {
  position: absolute; inset: 0; background: rgba(0, 3, 10, 0.82); backdrop-filter: blur(6px);
  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: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(0, 245, 255, 0.12);
  border-top-color: var(--ciano);
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 14px var(--ciano-glow);
}
@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, #010510, #001228);
  padding: 20px; border-radius: 10px;
  border: 1px solid var(--ciano-medio); text-align: center; color: var(--branco);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.16), 0 20px 60px rgba(0,0,0,0.80);
  display: flex; flex-direction: column; max-height: 80vh;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.history-modal-header { width: 100%; display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid rgba(0, 245, 255, 0.25); margin-bottom: 15px; }
.history-modal-title { font-family: 'Orbitron', monospace; font-size: 1.2rem; letter-spacing: 0.12em; color: var(--ciano); text-shadow: 0 0 12px var(--ciano-glow); }
.history-modal-close { font-size: 1.8rem; color: var(--ciano); cursor: pointer; background: none; border: none; transition: color 0.2s; text-shadow: 0 0 8px var(--ciano-glow); }
.history-modal-close:hover { color: var(--ouro); }
#history-list { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 8px; }
#history-list::-webkit-scrollbar { width: 3px; }
#history-list::-webkit-scrollbar-track { background: rgba(0, 8, 22, 0.6); }
#history-list::-webkit-scrollbar-thumb { background: var(--ciano-escuro); border-radius: 2px; }
.history-item {
  background: rgba(0, 12, 30, 0.88); border-radius: 6px; padding: 12px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto;
  gap: 5px 15px; text-align: left; border-left: 3px solid var(--ciano);
  box-shadow: inset 0 0 15px rgba(0, 245, 255, 0.04);
}
.history-item.loss { border-left-color: var(--rosa-neon); }
.history-item p { margin: 0; font-family: 'Rajdhani', sans-serif; font-size: 0.88rem; }
.history-item .label { color: rgba(0, 200, 212, 0.55); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.10em; font-family: 'Orbitron', monospace; }
.history-item .value { font-weight: 700; color: var(--branco); }
.history-item .result-win  { color: var(--ciano); font-family: 'Orbitron', monospace; font-size: 0.95rem; letter-spacing: 0.06em; text-shadow: 0 0 8px var(--ciano-glow); }
.history-item .result-loss { color: var(--rosa-neon); font-family: 'Orbitron', monospace; font-size: 0.95rem; }
.history-item .timestamp { grid-column: 1 / -1; color: rgba(0, 200, 212, 0.28); font-size: 0.62rem; text-align: right; margin-top: 5px; font-family: 'Orbitron', monospace; letter-spacing: 0.06em; }
#no-history-message { color: rgba(0, 200, 212, 0.40); font-family: 'Orbitron', monospace; font-size: 0.75rem; letter-spacing: 0.10em; padding: 40px 0; }

/* ── MODAL AFILIADOS ───────────────────────────────────────── */
.affiliate-modal-content {
  position: relative; max-width: 420px; width: 90%;
  background: linear-gradient(155deg, #010510, #001228);
  padding: 20px; border-radius: 10px;
  border: 1px solid var(--ciano-medio); color: var(--branco);
  box-shadow: 0 0 28px rgba(0, 245, 255, 0.16);
  display: flex; flex-direction: column; max-height: 85vh;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.affiliate-modal-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid rgba(0, 245, 255, 0.22); margin-bottom: 15px; }
.affiliate-modal-title { font-family: 'Orbitron', monospace; font-size: 1.1rem; letter-spacing: 0.12em; color: var(--ciano); text-shadow: 0 0 10px var(--ciano-glow); }
.affiliate-modal-close { font-size: 1.8rem; color: var(--ciano); cursor: pointer; background: none; border: none; transition: color 0.2s; text-shadow: 0 0 8px var(--ciano-glow); }
.affiliate-modal-close:hover { color: var(--ouro); }

.affiliate-section { background: rgba(0, 10, 28, 0.80); border: 1px solid rgba(0, 200, 212, 0.20); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.section-title { font-family: 'Orbitron', monospace; font-size: 0.82rem; letter-spacing: 0.10em; color: var(--ciano); margin: 0 0 10px 0; display: flex; align-items: center; gap: 8px; text-shadow: 0 0 8px var(--ciano-glow); }

.link-container { display: flex; background: rgba(0, 8, 22, 0.95); border: 1px solid var(--input-borda); border-radius: 6px; overflow: hidden; }
#affiliate-link-input { flex-grow: 1; background: transparent; border: none; color: rgba(180, 220, 255, 0.78); padding: 10px; font-family: 'Rajdhani', sans-serif; font-size: 0.85rem; outline: none; }
#copy-link-btn { background: linear-gradient(135deg, rgba(0, 40, 100, 0.95), rgba(0, 80, 180, 0.90)); border: none; color: var(--ciano); padding: 0 14px; cursor: pointer; font-family: 'Orbitron', monospace; font-size: 0.78rem; letter-spacing: 0.08em; transition: filter 0.2s; text-shadow: 0 0 6px var(--ciano-glow); }
#copy-link-btn:hover { filter: brightness(1.20); }

.stats-grid-affiliate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.stat-item-affiliate .value { font-family: 'Orbitron', monospace; font-size: 1.40rem; letter-spacing: 0.06em; color: var(--ouro); text-shadow: 0 0 10px rgba(255, 215, 0, 0.45); }
.stat-item-affiliate .label { font-family: 'Orbitron', monospace; font-size: 0.55rem; letter-spacing: 0.10em; text-transform: uppercase; color: rgba(0, 200, 212, 0.55); }

.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, 8, 22, 0.90); border: 1px solid rgba(0, 200, 212, 0.16); padding: 8px 12px; border-radius: 5px; }
.commission-item .label { color: rgba(180, 220, 255, 0.60); font-family: 'Rajdhani', sans-serif; font-size: 0.85rem; }
.commission-item .value { font-family: 'Orbitron', monospace; font-size: 1.0rem; letter-spacing: 0.06em; color: var(--ciano); text-shadow: 0 0 6px var(--ciano-glow); }

#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, 8, 22, 0.90); border: 1px solid rgba(0, 200, 212, 0.14); padding: 10px; border-radius: 5px; align-items: center; text-align: center; }
.history-item-affiliate p { margin: 0; font-family: 'Rajdhani', sans-serif; font-size: 0.85rem; }
.history-item-affiliate .label { font-size: 0.55rem; color: rgba(0, 200, 212, 0.50); text-transform: uppercase; letter-spacing: 0.08em; font-family: 'Orbitron', monospace; }
.history-item-affiliate .value { font-weight: 700; }
.history-item-affiliate .user-id .value    { color: var(--ouro); font-family: 'Orbitron', monospace; font-size: 0.95rem; text-shadow: 0 0 6px rgba(255, 215, 0, 0.40); }
.history-item-affiliate .deposit .value    { color: var(--branco); }
.history-item-affiliate .commission .value { color: var(--ciano); font-family: 'Orbitron', monospace; font-size: 0.95rem; text-shadow: 0 0 6px var(--ciano-glow); }

/* Scrollbars listas */
#affiliate-history-list::-webkit-scrollbar,
#depositos-trazidos-list::-webkit-scrollbar { width: 3px; }
#affiliate-history-list::-webkit-scrollbar-track,
#depositos-trazidos-list::-webkit-scrollbar-track { background: rgba(0, 5, 15, 0.85); border-radius: 2px; }
#affiliate-history-list::-webkit-scrollbar-thumb,
#depositos-trazidos-list::-webkit-scrollbar-thumb { background: var(--ciano-escuro); border-radius: 2px; }
#affiliate-history-list::-webkit-scrollbar-thumb:hover,
#depositos-trazidos-list::-webkit-scrollbar-thumb:hover { background: var(--ciano); }
#depositos-trazidos-list { scrollbar-width: thin; scrollbar-color: var(--ciano-escuro) rgba(0, 5, 15, 0.85); }

/* ── MODAL DEPÓSITOS COMPLETO ──────────────────────────────── */
#depositos-completo-modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 2, 8, 0.92); backdrop-filter: blur(8px);
  z-index: 10000; align-items: center; justify-content: center;
}
#depositos-completo-modal-overlay.show { display: flex !important; }

.deposito-completo-item { background: rgba(0, 10, 28, 0.92); border: 1px solid rgba(0, 200, 212, 0.22); border-radius: 8px; padding: 14px; border-left: 3px solid var(--ciano); }
.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: 'Orbitron', monospace; font-size: 0.90rem; letter-spacing: 0.08em; color: var(--ouro); margin-bottom: 3px; text-shadow: 0 0 8px rgba(255, 215, 0, 0.40); }
.deposito-completo-item .indicado-telefone { font-family: 'Rajdhani', sans-serif; font-size: 0.78rem; color: rgba(0, 200, 212, 0.45); }
.deposito-completo-item .data              { font-family: 'Orbitron', monospace; font-size: 0.60rem; color: rgba(0, 200, 212, 0.35); text-align: right; letter-spacing: 0.06em; }
.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, 200, 212, 0.16); }
.deposito-completo-item .valor-item    { text-align: center; }
.deposito-completo-item .valor-label   { font-family: 'Orbitron', monospace; font-size: 0.52rem; text-transform: uppercase; letter-spacing: 0.10em; color: rgba(0, 200, 212, 0.50); margin-bottom: 3px; }
.deposito-completo-item .valor-deposito{ font-family: 'Orbitron', monospace; font-size: 1.1rem; letter-spacing: 0.06em; color: var(--branco); }
.deposito-completo-item .valor-ganho   { font-family: 'Orbitron', monospace; font-size: 1.1rem; letter-spacing: 0.06em; color: var(--ciano); text-shadow: 0 0 8px var(--ciano-glow); }

/* ── CHECKBOX ──────────────────────────────────────────────── */
.checkbox-group { margin: 14px 0; }
.checkbox-wrapper {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-family: 'Rajdhani', sans-serif; font-size: 0.82rem; font-weight: 400;
  color: rgba(180, 220, 255, 0.55); line-height: 1.45; text-align: left; transition: color 0.2s;
}
.checkbox-wrapper input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; cursor: pointer; accent-color: var(--ciano); }
.checkbox-text { user-select: none; }
.checkbox-wrapper:hover .checkbox-text { color: var(--ciano); }