/* =========================================================
   AJUSTES COMPLEMENTARES DO PAINEL
   ========================================================= */

.simulation-old-config-hidden {
  display: none !important;
}

#page-simulacao .finance-engine-panel {
  margin-top: 0;
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(30, 25, 55, 0.95),
      rgba(12, 12, 24, 0.98)
    );
}

#page-simulacao .finance-title {
  padding-bottom: 18px;
  border-bottom:
    1px solid rgba(
      151,
      92,
      255,
      0.2
    );
}

#page-simulacao .finance-config-grid {
  margin-top: 20px;
}

#page-simulacao .finance-config-grid label {
  background:
    rgba(
      255,
      255,
      255,
      0.025
    );
  border:
    1px solid rgba(
      151,
      92,
      255,
      0.18
    );
  border-radius: 14px;
  padding: 12px;
}

#page-simulacao .finance-config-grid input[type="number"] {
  margin-top: 8px;
}

input[type="date"] {
  cursor: pointer;
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  display: block;
  cursor: pointer;
  opacity: 1;
  filter:
    invert(1)
    brightness(1.4);
}

.grid-spin-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 34px;
}

.spin-result-icon {
  position: absolute;
  top: -5px;
  right: -6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  z-index: 5;
  border: 2px solid #151226;
  box-shadow:
    0 0 8px
    rgba(
      0,
      0,
      0,
      0.65
    );
}

.spin-result-direct {
  color: #07120b;
  background: #2ee88b;
  box-shadow:
    0 0 10px
    rgba(
      46,
      232,
      139,
      0.8
    );
}

.spin-result-gale {
  color: #2b2000;
  background: #ffd13b;
  box-shadow:
    0 0 10px
    rgba(
      255,
      209,
      59,
      0.85
    );
}

.spin-result-white {
  color: #191629;
  background: #ffffff;
  box-shadow:
    0 0 12px
    rgba(
      255,
      255,
      255,
      0.9
    );
}

.spin-result-loss {
  color: #ffffff;
  background: #ff315f;
  box-shadow:
    0 0 10px
    rgba(
      255,
      49,
      95,
      0.8
    );
}

.metric-box.white-win strong {
  color: #ffffff;
  text-shadow:
    0 0 12px
    rgba(
      255,
      255,
      255,
      0.55
    );
}

.prediction-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}

.prediction-inline::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.prediction-inline.red::before {
  background: #f52246;
  box-shadow:
    0 0 8px
    rgba(
      245,
      34,
      70,
      0.8
    );
}

.prediction-inline.black::before {
  background: #09090d;
  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.32
    );
}

.prediction-inline.white::before {
  background: #ffffff;
  box-shadow:
    0 0 8px
    rgba(
      255,
      255,
      255,
      0.8
    );
}

#page-dashboard .fixed-columns-wrapper {
  min-height: 455px;
}

#page-dashboard .fixed-columns-table tbody tr {
  height: 82px;
}

@media (max-width: 900px) {
  #page-dashboard .fixed-columns-wrapper {
    min-height: auto;
  }

  #page-dashboard .fixed-columns-table tbody tr {
    height: auto;
  }
}


/* =========================================================
   GIRO EM TEMPO REAL — PAINEL PRINCIPAL
   ========================================================= */

/* Oculta os quatro indicadores superiores antigos */
#page-dashboard > .summary-grid {
  display: none !important;
}

/* O histórico já trabalha com cinco linhas fixas */
#linesLimit {
  display: none !important;
}

#page-dashboard .dashboard-grid {
  align-items: stretch;
}

#page-dashboard .signal-card.live-spin-card {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(151, 71, 255, 0.45);
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(139, 69, 255, 0.13),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      rgba(20, 18, 34, 0.98),
      rgba(13, 12, 24, 0.98)
    );
}

.live-spin-card::before {
  content: "";
  position: absolute;
  inset: -35%;
  pointer-events: none;
  background:
    conic-gradient(
      from 0deg,
      transparent,
      rgba(145, 72, 255, 0.08),
      transparent 30%
    );
  animation: liveCardGlow 8s linear infinite;
}

.live-spin-layout {
  position: relative;
  z-index: 2;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.live-spin-heading {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.live-spin-heading h2 {
  margin: 0;
  font-size: 24px;
  color: #ffffff;
}

.live-spin-heading p {
  margin: 5px 0 0;
  color: #aaa3c1;
  font-size: 14px;
}

.live-sync-badge {
  flex-shrink: 0;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(40, 220, 139, 0.35);
  background: rgba(23, 104, 74, 0.2);
  color: #34e394;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.live-sync-badge.waiting {
  color: #ffc64d;
  border-color: rgba(255, 198, 77, 0.35);
  background: rgba(117, 81, 17, 0.2);
}

.live-spin-stage {
  position: relative;
  width: 286px;
  height: 286px;
  display: grid;
  place-items: center;
  margin: 8px auto 15px;
}

.live-spin-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(
      #9e4cff var(--spin-progress, 0deg),
      rgba(255, 255, 255, 0.08) 0deg
    );
  filter:
    drop-shadow(0 0 10px rgba(156, 73, 255, 0.55))
    drop-shadow(0 0 24px rgba(156, 73, 255, 0.25));
  transition: background 0.15s linear;
}

.live-spin-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #11101d;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.75);
}

.live-spin-ring::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(168, 96, 255, 0.3);
  animation: liveRingPulse 1.8s ease-in-out infinite;
}

.live-result-ball {
  position: relative;
  z-index: 3;
  width: 174px;
  height: 174px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 58px;
  font-weight: 900;
  border: 4px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 -18px 28px rgba(0, 0, 0, 0.45),
    inset 0 12px 20px rgba(255, 255, 255, 0.16),
    0 0 35px rgba(0, 0, 0, 0.55);
  animation: liveBallBreath 2s ease-in-out infinite;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.25s ease;
}

.live-result-ball.red {
  background:
    radial-gradient(circle at 35% 28%, #ff6077, #f21840 48%, #8f001c);
  box-shadow:
    inset 0 -18px 28px rgba(80, 0, 15, 0.55),
    inset 0 12px 20px rgba(255, 255, 255, 0.2),
    0 0 30px rgba(255, 28, 71, 0.75),
    0 0 70px rgba(255, 28, 71, 0.3);
}

.live-result-ball.black {
  background:
    radial-gradient(circle at 35% 28%, #555765, #11131a 50%, #000000);
  box-shadow:
    inset 0 -18px 28px rgba(0, 0, 0, 0.8),
    inset 0 12px 20px rgba(255, 255, 255, 0.14),
    0 0 30px rgba(145, 103, 255, 0.5),
    0 0 70px rgba(82, 46, 176, 0.25);
}

.live-result-ball.white {
  color: #11131a;
  background:
    radial-gradient(circle at 35% 28%, #ffffff, #e8e8f2 55%, #a9a9b7);
  box-shadow:
    inset 0 -18px 28px rgba(113, 113, 130, 0.3),
    inset 0 12px 20px rgba(255, 255, 255, 0.8),
    0 0 30px rgba(255, 255, 255, 0.75),
    0 0 70px rgba(210, 200, 255, 0.35);
}

.live-result-ball.waiting {
  background:
    radial-gradient(circle at 35% 28%, #814bd0, #351b64 53%, #160d28);
}

.live-result-ball.final-countdown {
  animation: liveFinalPulse 0.65s ease-in-out infinite;
}

.live-countdown-center {
  position: absolute;
  z-index: 4;
  bottom: 28px;
  min-width: 72px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(10, 9, 19, 0.91);
  border: 1px solid rgba(170, 102, 255, 0.55);
  text-align: center;
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(147, 69, 255, 0.28);
}

.live-spin-information {
  text-align: center;
}

.live-spin-information strong {
  display: block;
  font-size: 21px;
  color: #ffffff;
  margin-bottom: 6px;
}

.live-spin-information span {
  color: #aaa3c1;
  font-size: 14px;
}

.live-next-time {
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(143, 66, 239, 0.1);
  border: 1px solid rgba(143, 66, 239, 0.25);
  color: #d5b9ff;
  font-weight: 700;
}

.live-legacy-elements {
  display: none !important;
}

@keyframes liveBallBreath {
  0%,
  100% {
    transform: scale(0.97);
  }

  50% {
    transform: scale(1.035);
  }
}

@keyframes liveFinalPulse {
  0%,
  100% {
    transform: scale(0.94);
  }

  50% {
    transform: scale(1.09);
  }
}

@keyframes liveRingPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.99);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.035);
  }
}

@keyframes liveCardGlow {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 700px) {
  .live-spin-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-spin-stage {
    width: 245px;
    height: 245px;
  }

  .live-result-ball {
    width: 148px;
    height: 148px;
    font-size: 48px;
  }
}


/* =========================================================
   CORREÇÃO DO CONTADOR CIRCULAR DO GIRO
   ========================================================= */

/* Remove completamente o contador numérico de segundos */
#liveCountdown {
  display: none !important;
}

/* Pulsação muito mais discreta */
.live-result-ball,
.live-result-ball.red,
.live-result-ball.black,
.live-result-ball.white,
.live-result-ball.waiting {
  animation: liveBallSoftPulse 3.2s ease-in-out infinite !important;
}

/* Mesmo nos segundos finais não exagerar no pulso */
.live-result-ball.final-countdown {
  animation: liveBallFinalSoftPulse 1.1s ease-in-out infinite !important;
}

/* Retira a pulsação exagerada do aro externo */
.live-spin-ring::after {
  animation: none !important;
  opacity: 0.35 !important;
  transform: none !important;
}

/* Movimento suave do contador circular */
.live-spin-ring {
  transition: background 0.06s linear !important;
  filter:
    drop-shadow(0 0 7px rgba(156, 73, 255, 0.42))
    drop-shadow(0 0 15px rgba(156, 73, 255, 0.16)) !important;
}

/* Reduz brilho geral do cartão */
#page-dashboard .signal-card.live-spin-card {
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(139, 69, 255, 0.07),
      transparent 43%
    ),
    linear-gradient(
      145deg,
      rgba(20, 18, 34, 0.98),
      rgba(13, 12, 24, 0.98)
    ) !important;
}

/* Retira rotação luminosa exagerada do fundo */
.live-spin-card::before {
  animation: none !important;
  opacity: 0.3 !important;
}

/* Nova pulsação leve */
@keyframes liveBallSoftPulse {
  0%,
  100% {
    transform: scale(0.99);
  }

  50% {
    transform: scale(1.015);
  }
}

/* Pulso discreto perto do novo giro */
@keyframes liveBallFinalSoftPulse {
  0%,
  100% {
    transform: scale(0.985);
  }

  50% {
    transform: scale(1.03);
  }
}
