/* ===== DOUBLE PAGE STYLES ===== */

/* Overlay de Login */
#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 11000;
  align-items: center;
  justify-content: center;
}

#overlay .overlay-content {
  background: #15151b;
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#overlay h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

#overlay button {
  background: #00e676;
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

#overlay button:hover {
  transform: scale(1.05);
}

/* Main Container */
.double-container {
  min-height: 100vh;
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

/* Header */
.double-header {
  padding: 140px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.header-left {
  flex: 1;
}

.double-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.double-title .icon {
  font-size: 1.2em;
}

.double-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Balance Card */
.balance-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  min-width: 220px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 230, 118, 0.1);
}

.balance-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.balance-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #00e676;
  font-family: 'Space Grotesk', sans-serif;
}

/* Game Section */
.game-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.game-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  align-items: start;
}

/* Roulette Section */
.roulette-section {
  background: #1a1a22;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}

.roulette-status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: #252530;
  border-radius: 50px;
}

.status-text {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.timer {
  font-weight: 700;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
}

.roulette-container {
  width: 100%;
  overflow: hidden;
}

.roulette-wrapper {
  position: relative;
  overflow: hidden !important;
  border-radius: 8px;
  background: #12121a;
  height: 110px;
  display: flex;
  align-items: center;
  max-width: 100%;
}

.roulette-indicator {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  z-index: 10;
  pointer-events: none;
}

.roulette-track {
  display: flex;
  gap: 8px;
  transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  padding: 0 50%;
  will-change: transform;
}

.roulette-tile {
  min-width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
  border: 2px solid transparent;
}


/* Verde (2x) */
.roulette-tile.green {
  background: #22c55e;
  border-color: #4ade80;
}

/* Bônus/Trevo (14x) */
.roulette-tile.bonus {
  background: #f0f0f0;
  border-color: #e0e0e0;
}

.roulette-tile.black {
  background: #252530;
  border-color: #3a3a4a;
}

.tile-number {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
}

/* Cor do número no tile branco (bonus/trevo) */
.roulette-tile.bonus .tile-number {
  color: #22c55e;
  font-size: 2.5rem;
}

.tile-circle {
  display: none;
}

/* Recent Results - Círculos pequenos */
.recent-results {
  padding-top: 1rem;
}

.recent-results h4 {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: right;
}

.history-inline {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.history-item {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: transform 0.2s ease;
  position: relative;
  font-weight: 700;
  font-size: 0.8rem;
}

.history-item:hover {
  transform: scale(1.15);
}

/* Círculo Verde com número branco (green = 2x) */
.history-item.green,
.history-item.verde {
  background: #22c55e;
  border-color: #16a34a;
  color: #fff;
}


/* Círculo Branco com trevo verde (bonus = 14x) */
.history-item.bonus {
  background: #f0f0f0;
  border-color: #d0d0d0;
  color: #22c55e;
  font-size: 1.1rem;
}

/* Círculo Preto com número branco */
.history-item.black,
.history-item.preto {
  background: #2d3748;
  border-color: #1a202c;
  color: #fff;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.section-title .icon {
  font-size: 1.25rem;
}

/* Betting Section Premium */
.betting-section {
  background: rgba(22, 22, 29, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bet-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.control-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  margin-left: 0.5rem;
}

/* Input Wrapper */
.bet-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #0d0d10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0 1rem;
  transition: all 0.3s ease;
}

.bet-input-wrapper:focus-within {
  border-color: #00e676;
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1);
}

.bet-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem 0;
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.bet-input-wrapper input:focus {
  outline: none;
}

.currency-suffix {
  margin: 0 1rem;
  font-size: 1.25rem;
  opacity: 0.5;
}

.half-double-btns {
  display: flex;
  gap: 4px;
}

.action-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.8);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Quick Bet Buttons */
.quick-bet-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.quick-bet {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  padding: 0.6rem 0;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-bet:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.quick-bet.max {
  color: #00e676;
  border-color: rgba(0, 230, 118, 0.2);
}

/* Color Selector */
.color-selector {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.color-option {
  background: #0d0d10;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.opt-color {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-bottom: 0.25rem;
}

.red-opt .opt-color {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.green-opt .opt-color {
  background: linear-gradient(135deg, #f0f0f0, #d0d0d0);
}

.black-opt .opt-color {
  background: linear-gradient(135deg, #374151, #111827);
}

.opt-rate {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Selection State */
.color-option.selected {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}

.color-option.selected.red-opt {
  border-color: #22c55e;
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
}

.color-option.selected.green-opt {
  border-color: #f0f0f0;
  box-shadow: 0 10px 20px rgba(240, 240, 240, 0.2);
}

.color-option.selected.black-opt {
  border-color: #9ca3af;
  box-shadow: 0 10px 20px rgba(75, 85, 99, 0.2);
}

.color-option.selected .opt-rate {
  color: #fff;
}

/* Action Button */
.btn-primary-lg {
  background: #2a2a35;
  color: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 12px;
  padding: 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: not-allowed;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1rem;
}

.btn-primary-lg:not([disabled]) {
  background: #00e676;
  color: #000;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 230, 118, 0.3);
}

.btn-primary-lg:not([disabled]):hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 230, 118, 0.4);
}

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

/* Info Section */
.info-section {
  max-width: 1200px;
  margin: 4rem auto 2rem;
  padding: 0 20px;
}

.info-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 230, 118, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.info-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
}

.info-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 1200px) {
  .game-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .betting-section {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .double-header {
    padding-top: 120px;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .header-left {
    width: 100%;
  }

  .double-title {
    justify-content: center;
  }

  .balance-card {
    width: 100%;
  }

  .roulette-tile {
    min-width: 90px;
    height: 90px;
  }

  .tile-number {
    font-size: 2rem;
  }

  .tile-circle {
    width: 20px;
    height: 20px;
  }

  .info-container {
    grid-template-columns: 1fr;
  }
}

/* ===== BACKGROUND FIXES (Prevent Scroll Locking) ===== */
.hero-blob,
.bg-grid {
  position: fixed !important;
  /* Garante que fiquem presos à tela */
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100vh !important;
  pointer-events: none !important;
  /* Ignora toques/cliques */
  z-index: -1 !important;
  /* Fica atrás de tudo */
  overflow: hidden !important;
  transform: translate3d(0, 0, 0);
  /* Força aceleração de hardware sem layout shift */
}

.hero-blob {
  opacity: 0.3 !important;
  filter: blur(80px);
  /* Blur leve */
  background: radial-gradient(circle, rgba(0, 230, 118, 0.2), transparent 70%);
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  opacity: 0.4;
}

/* Remove animações pesadas que podem travar a thread principal */
.hero-blob-1,
.hero-blob-2 {
  animation: none !important;
  display: none !important;
  /* Desativa blobs individuais se estiverem causando problemas */
}