/* ============================================================
   SAVIO SENA
   Modern Dark Dashboard
   ============================================================ */

:root {

  --bg: #080b0d;
  --bg-soft: #0d1114;
  --card: #11171a;
  --card-hover: #151c20;

  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.13);

  --text: #f1f4f5;
  --text-soft: #b9c0c3;
  --text-muted: #737d81;

  --accent: #b8ff3d;
  --accent-dark: #8fce25;

  --danger: #ff5f6d;

  --radius: 16px;
  --radius-small: 10px;

  --shadow:
    0 20px 60px rgba(0, 0, 0, 0.35);

  --max-width: 1120px;
}


/* ============================================================
   RESET
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  background:
    radial-gradient(circle at 15% 0%,
      rgba(184, 255, 61, 0.045),
      transparent 28%),
    radial-gradient(circle at 85% 25%,
      rgba(184, 255, 61, 0.025),
      transparent 25%),
    var(--bg);

  color: var(--text);

  font-family: "Lato", sans-serif;

  line-height: 1.5;

  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ============================================================
   BACKGROUND
   ============================================================ */

.background-glow {
  position: fixed;

  width: 500px;
  height: 500px;

  border-radius: 50%;

  filter: blur(120px);

  pointer-events: none;

  z-index: -1;
}

.background-glow-one {
  top: -300px;
  left: -250px;

  background: rgba(184, 255, 61, 0.04);
}

.background-glow-two {
  right: -300px;
  bottom: 0;

  background: rgba(184, 255, 61, 0.025);
}


/* ============================================================
   HEADER
   ============================================================ */

.header {

  width: min(calc(100% - 40px),
      var(--max-width));

  margin: 0 auto;

  min-height: 100px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  border-bottom: 1px solid var(--border);
}

.header-brand {
  display: flex;

  align-items: center;

  gap: 14px;
}

.brand-icon {

  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background: rgba(184, 255, 61, 0.08);

  border: 1px solid rgba(184, 255, 61, 0.15);
}

.brand-icon img {
  width: 27px;
}

.header h1 {
  font-size: 24px;

  font-weight: 800;

  letter-spacing: -0.7px;
}

.highlight {
  color: var(--accent);
}

.header p {
  margin-top: 1px;

  color: var(--text-muted);

  font-size: 12px;
}

.header-status {

  display: flex;

  align-items: center;

  gap: 7px;

  padding: 7px 11px;

  border: 1px solid var(--border);

  border-radius: 999px;

  color: var(--text-soft);

  font-size: 11px;

  text-transform: uppercase;

  letter-spacing: 0.6px;
}

.status-dot {

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--accent);

  box-shadow:
    0 0 10px var(--accent);
}


/* ============================================================
   MAIN
   ============================================================ */

main {

  width: min(calc(100% - 40px),
      var(--max-width));

  margin: 0 auto;
}


/* ============================================================
   SECTION
   ============================================================ */

.section {

  padding: 72px 0;

  border-bottom: 1px solid var(--border);
}

.section-heading {

  display: flex;

  align-items: flex-end;

  gap: 25px;

  margin-bottom: 30px;
}

.section-eyebrow {

  display: block;

  margin-bottom: 4px;

  color: var(--text-muted);

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 1.8px;
}

.section h2 {

  font-size: clamp(25px,
      4vw,
      34px);

  font-weight: 800;

  letter-spacing: -1px;
}

.section-line {

  height: 1px;

  flex: 1;

  margin-bottom: 9px;

  background:
    linear-gradient(90deg,
      var(--border-light),
      transparent);
}


/* ============================================================
   ACUMULAÇÃO
   ============================================================ */

.accumulated-card {

  position: relative;

  min-height: 235px;

  display: grid;

  grid-template-columns:
    150px 1fr 310px;

  align-items: center;

  gap: 30px;

  padding: 32px 40px;

  overflow: hidden;

  background:
    linear-gradient(120deg,
      rgba(184, 255, 61, 0.08),
      rgba(255, 255, 255, 0.015));

  border: 1px solid rgba(184, 255, 61, 0.12);

  border-radius: var(--radius);

  box-shadow: var(--shadow);
}

.accumulated-plant {

  align-self: end;

  height: 220px;

  display: flex;

  align-items: flex-end;

  justify-content: center;
}

.accumulated-plant img {

  max-width: 150px;
  max-height: 220px;

  object-fit: contain;

  filter:
    drop-shadow(0 15px 30px rgba(0, 0, 0, 0.45));
}

.accumulated-main {
  display: flex;

  flex-direction: column;

  gap: 3px;
}

.accumulated-label {

  color: var(--accent);

  font-size: 12px;

  font-weight: 900;

  letter-spacing: 2px;
}

.accumulated-value {

  font-size: clamp(30px,
      5vw,
      55px);

  font-weight: 900;

  line-height: 1;

  letter-spacing: -2px;
}

.next-concourse {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 10px;
}

.info-box {

  padding: 18px;

  background: rgba(0, 0, 0, 0.2);

  border: 1px solid var(--border);

  border-radius: var(--radius-small);
}

.info-box span {

  display: block;

  margin-bottom: 5px;

  color: var(--text-muted);

  font-size: 9px;

  font-weight: 800;

  letter-spacing: 1px;
}

.info-box strong {

  font-size: 19px;

  font-weight: 800;
}


/* ============================================================
   CONTROL CARD
   ============================================================ */

.control-card {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;

  margin-bottom: 18px;

  padding: 20px 22px;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: var(--radius-small);
}

.control-info span {

  display: block;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 0.7px;
}

.control-info small {

  display: block;

  margin-top: 4px;

  color: var(--text-muted);

  font-size: 12px;
}

.control-action {

  display: flex;

  gap: 8px;
}

input[type="number"] {

  width: 100px;

  padding: 11px 13px;

  background: var(--bg);

  border: 1px solid var(--border-light);

  border-radius: 9px;

  color: var(--text);

  outline: none;

  text-align: center;

  font-weight: 700;
}

input[type="number"]:focus {

  border-color: var(--accent);

  box-shadow:
    0 0 0 3px rgba(184, 255, 61, 0.08);
}

.primary-button {

  padding: 11px 18px;

  border: 0;

  border-radius: 9px;

  background: var(--accent);

  color: #0a0d0a;

  font-size: 12px;

  font-weight: 900;

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.primary-button:hover {

  filter: brightness(1.08);

  transform: translateY(-1px);
}


/* ============================================================
   GENERIC CARDS
   ============================================================ */

.summary-card,
.numbers-card,
.cooccurrence-block,
.pool-card {

  padding: 24px;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: var(--radius);

  margin-top: 18px;
}

.card-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 20px;
}

.card-eyebrow {

  display: block;

  margin-bottom: 3px;

  color: var(--text-muted);

  font-size: 9px;

  font-weight: 900;

  letter-spacing: 1.5px;
}

.card-header h3 {

  font-size: 13px;

  font-weight: 800;

  letter-spacing: 0.4px;
}


/* ============================================================
   SUMMARY
   ============================================================ */

.summary-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 10px;
}

.metric {

  padding: 18px;

  background: var(--bg-soft);

  border: 1px solid var(--border);

  border-radius: var(--radius-small);
}

.metric span {

  display: block;

  color: var(--text-muted);

  font-size: 9px;

  font-weight: 800;

  letter-spacing: 1px;
}

.metric strong {

  display: block;

  margin-top: 4px;

  color: var(--accent);

  font-size: 28px;

  line-height: 1;
}


/* ============================================================
   NÚMEROS
   ============================================================ */

.main-numbers {

  display: grid;

  grid-template-columns:
    repeat(6, 1fr);

  gap: 10px;
}

.main-number-container {

  position: relative;

  min-height: 90px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  background: var(--bg-soft);

  border: 1px solid var(--border);

  border-radius: var(--radius-small);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.main-number-container:hover {

  transform: translateY(-3px);

  border-color:
    rgba(184, 255, 61, 0.25);
}

.main-number {

  font-size: 30px;

  font-weight: 900;

  letter-spacing: -1px;
}

.repetitions {

  margin-top: 2px;

  color: var(--accent);

  font-size: 11px;

  font-weight: 800;
}


/* ============================================================
   CONCURSOS
   ============================================================ */

.contests-section {

  margin-top: 18px;

  padding: 24px;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: var(--radius);
}

.contests {

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 10px;
}

.contest {

  padding: 17px;

  background: var(--bg-soft);

  border: 1px solid var(--border);

  border-radius: var(--radius-small);

  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.contest:hover {

  transform: translateY(-2px);

  border-color: var(--border-light);
}

.contest-title-date {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 14px;
}

.contest-title-date h4 {

  font-size: 12px;

  font-weight: 900;
}

.contest-title-date p {

  color: var(--text-muted);

  font-size: 10px;
}

.contest-numbers {

  display: flex;

  flex-wrap: wrap;

  gap: 7px;
}

.contest-numbers p {

  width: 36px;
  height: 36px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  background: var(--accent);

  color: #0a0d0a;

  font-size: 11px;

  font-weight: 900;
}

.contest-status {

  margin-top: 15px;

  padding-top: 12px;

  border-top: 1px solid var(--border);
}

.contest-status>p {

  margin-bottom: 8px;

  color: var(--text-muted);

  font-size: 9px;

  font-weight: 900;

  letter-spacing: 1px;
}


/* ============================================================
   ATRASADOS
   ============================================================ */

.delayed-numbers {

  grid-template-columns:
    repeat(5, 1fr);
}

.delayed-numbers .main-number-container {

  min-height: 95px;
}


/* ============================================================
   DUPLAS / TRINCAS
   ============================================================ */

.cooccurrence-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 18px;
}

.cooc-list {

  display: flex;

  flex-direction: column;

  gap: 7px;
}

.cooc-item {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 10px 12px;

  background: var(--bg-soft);

  border: 1px solid var(--border);

  border-radius: 9px;
}

.cooc-numbers {

  display: flex;

  gap: 5px;
}

.cooc-numbers .num,
.cooc-item .num {

  min-width: 30px;

  padding: 5px 7px;

  border-radius: 6px;

  background: rgba(184,
      255,
      61,
      0.08);

  color: var(--accent);

  text-align: center;

  font-size: 10px;

  font-weight: 900;
}

.cooc-times {

  color: var(--text-soft);

  font-size: 11px;

  font-weight: 800;
}


/* ============================================================
   GENERATOR
   ============================================================ */

.generator-card {

  padding: 25px;

  background:
    linear-gradient(145deg,
      rgba(184, 255, 61, 0.055),
      var(--card));

  border: 1px solid rgba(184, 255, 61, 0.1);

  border-radius: var(--radius);

  box-shadow: var(--shadow);
}

.generator-options {

  display: flex;

  flex-direction: column;

  gap: 4px;
}

.checkbox-option {

  display: flex;

  align-items: center;

  gap: 13px;

  padding: 14px;

  border-radius: 10px;

  cursor: pointer;

  transition:
    background 0.2s ease;
}

.checkbox-option:hover {

  background:
    rgba(255, 255, 255, 0.025);
}

.checkbox-option input {

  position: absolute;

  opacity: 0;

  pointer-events: none;
}

.custom-checkbox {

  flex: 0 0 auto;

  width: 19px;
  height: 19px;

  border: 1px solid var(--border-light);

  border-radius: 5px;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.checkbox-option input:checked+.custom-checkbox {

  background: var(--accent);

  border-color: var(--accent);

  box-shadow:
    inset 0 0 0 4px var(--card);
}

.checkbox-option strong {

  display: block;

  font-size: 12px;

  font-weight: 800;
}

.checkbox-option small {

  display: block;

  margin-top: 2px;

  color: var(--text-muted);

  font-size: 11px;
}

.generator-footer {

  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 20px;

  margin-top: 20px;

  padding-top: 20px;

  border-top: 1px solid var(--border);
}

.quantity-control>span {

  display: block;

  margin-bottom: 8px;

  color: var(--text-muted);

  font-size: 9px;

  font-weight: 900;

  letter-spacing: 1px;
}

.quantity-control small {

  display: block;

  margin-top: -5px;

  margin-bottom: 8px;

  color: var(--text-muted);

  font-size: 10px;
}

.counter {

  display: flex;

  align-items: center;

  gap: 5px;
}

.counter button {

  width: 35px;
  height: 35px;

  border: 1px solid var(--border);

  border-radius: 8px;

  background: var(--bg-soft);

  color: var(--text);

  font-size: 20px;

  line-height: 1;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.counter button:hover {

  background: var(--card-hover);

  border-color:
    rgba(184, 255, 61, 0.3);

  color: var(--accent);
}

.counter strong {

  width: 40px;

  text-align: center;

  font-size: 17px;
}

.generate-games-button {

  min-height: 45px;

  padding: 0 25px;

  border: 0;

  border-radius: 9px;

  background: var(--accent);

  color: #080b0d;

  font-size: 11px;

  font-weight: 900;

  letter-spacing: 0.5px;

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.generate-games-button:hover {

  transform: translateY(-2px);

  filter: brightness(1.08);
}


/* ============================================================
   GENERATED GAMES
   ============================================================ */

.generated-games-container {

  margin-top: 18px;
}

.generated-games {

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 9px;
}

.game {

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 12px;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 10px;
}

.game strong {

  min-width: 50px;

  color: var(--text-muted);

  font-size: 9px;

  text-transform: uppercase;
}

.game>div {

  display: flex;

  flex-wrap: wrap;

  gap: 5px;
}

.game .num {

  width: 31px;
  height: 31px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  background: var(--accent);

  color: #080b0d;

  font-size: 10px;

  font-weight: 900;
}


/* ============================================================
   FECHAMENTO
   ============================================================ */

.fechamento-controls {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 20px;

  margin-bottom: 20px;
}

.fechamento-checkbox {

  padding-left: 0;
}

.pool-card {

  margin-top: 18px;
}

.wheel-pool {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}

.wheel-number {

  width: 40px;
  height: 40px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  background: rgba(184,
      255,
      61,
      0.1);

  border: 1px solid rgba(184, 255, 61, 0.18);

  color: var(--accent);

  font-size: 11px;

  font-weight: 900;
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {

  width: min(calc(100% - 40px),
      var(--max-width));

  margin: 0 auto;

  padding: 40px 0;

  text-align: center;

  color: var(--text-muted);

  font-size: 11px;
}

footer strong {

  color: var(--text-soft);
}

footer span {

  display: block;

  margin-top: 5px;

  font-size: 10px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 850px) {

  .accumulated-card {

    grid-template-columns:
      100px 1fr;

    padding: 25px;
  }

  .accumulated-plant {

    height: 180px;
  }

  .accumulated-plant img {

    max-width: 110px;
    max-height: 180px;
  }

  .next-concourse {

    grid-column: 1 / -1;
  }

  .main-numbers {

    grid-template-columns:
      repeat(3, 1fr);
  }

  .delayed-numbers {

    grid-template-columns:
      repeat(3, 1fr);
  }

  .cooccurrence-grid {

    grid-template-columns: 1fr;
  }
}


@media (max-width: 650px) {

  .header {

    min-height: 85px;
  }

  .header-status {

    display: none;
  }

  main,
  .header,
  footer {

    width: min(calc(100% - 28px),
        var(--max-width));
  }

  .section {

    padding: 50px 0;
  }

  .section-heading {

    align-items: flex-start;

    gap: 12px;
  }

  .section-line {

    display: none;
  }

  .accumulated-card {

    display: flex;

    flex-direction: column;

    align-items: stretch;

    padding: 25px;

    gap: 20px;
  }

  .accumulated-plant {

    position: absolute;

    right: -15px;
    bottom: -10px;

    height: 130px;

    opacity: 0.3;
  }

  .accumulated-plant img {

    max-height: 130px;
  }

  .accumulated-main {

    position: relative;

    z-index: 2;

    padding-right: 80px;
  }

  .accumulated-value {

    font-size: 34px;
  }

  .next-concourse {

    position: relative;

    z-index: 2;
  }

  .control-card {

    flex-direction: column;

    align-items: stretch;

    gap: 15px;
  }

  .control-action {

    width: 100%;
  }

  .control-action input {

    flex: 1;
  }

  .control-action button {

    flex: 1;
  }

  .summary-grid {

    grid-template-columns: 1fr;
  }

  .main-numbers {

    grid-template-columns:
      repeat(2, 1fr);
  }

  .delayed-numbers {

    grid-template-columns:
      repeat(2, 1fr);
  }

  .contests {

    grid-template-columns: 1fr;
  }

  .generator-footer {

    flex-direction: column;

    align-items: stretch;
  }

  .generate-games-button {

    width: 100%;
  }

  .generated-games {

    grid-template-columns: 1fr;
  }

  .fechamento-controls {

    grid-template-columns: 1fr;
  }

  .game {

    flex-wrap: wrap;
  }
}


@media (max-width: 380px) {

  .main-numbers {

    grid-template-columns: 1fr 1fr;
  }

  .contest-numbers p {

    width: 32px;
    height: 32px;
  }

  .wheel-number {

    width: 35px;
    height: 35px;
  }
}