.page {
  max-width: 1500px;
  margin: 0 auto;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 32px;
  justify-content: space-between;
}

.dashboard-hero .logo {
  width: 220px;
  margin: 0;
}

.dashboard-hero h1 {
  margin: 0 0 10px;
}

@media (max-width: 700px) {
  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .dashboard-hero .logo {
    width: 200px;
  }
}

/* MENU */

.dash-menu {
  position: sticky;
  top: 16px;
  z-index: 999;
  margin: 6px auto;
  width: fit-content;
  max-width: 100%;
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(244, 207, 99, 0.14);
  border-radius: 999px;
  padding: 8px;
}

.stat-icon i {
  font-size: 22px;
  color: var(--gold);
}

.menu-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.menu-links a,
.menu-links button {
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent !important;
  border: none !important;
  color: #d4d4d4;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.menu-links i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(244, 207, 99, 0.1);
  border: 1px solid rgba(244, 207, 99, 0.18);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.menu-links a:hover,
.menu-links button:hover {
  background: rgba(244, 207, 99, 0.12) !important;
  color: var(--gold);
}

.menu-links button i {
  color: #ff4d4d;
  border-color: rgba(255, 77, 77, 0.25);
  background: rgba(255, 77, 77, 0.08);
}

.menu-toggle {
  display: none;
}

.hidden {
  display: none !important;
}

/* TOPO */

.dashboard-topbar {
  align-items: center;
}

.dashboard-topbar .logo {
  margin-bottom: 14px;
}

/* STATS */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.stat-card {
  background: linear-gradient(180deg, #131313, #0a0a0a);
  border: 1px solid #1f1f1f;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.stat-card > div:last-child {
  min-width: 0;
}

.stat-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(244, 207, 99, 0.08);
  border: 1px solid rgba(244, 207, 99, 0.16);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
}

.stat-card strong {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.stat-card {
  min-height: 120px;
}

.stat-icon {
  box-shadow: 0 0 24px rgba(244, 207, 99, 0.12);
}

/* GRÁFICO */

.chart-card {
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, #151515, #0b0b0b);
  border: 1px solid #242424;
  margin-bottom: 36px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 26px;
}

.chart-header h2 {
  margin-bottom: 8px;
}

.chart-header p {
  color: var(--muted);
}

.chart-filters {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chart-filters select,
.chart-filters input {
  height: 42px;
  border-radius: 12px;
  border: 1px solid #262626;
  background: #0f0f0f;
  color: white;
  padding: 0 14px;
  font-weight: 800;
}

.chart-card canvas {
  height: 360px !important;
}

.hidden {
  display: none !important;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

/* ÚLTIMAS APOSTAS */

.ultima-aposta {
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 14px;
}

.ultima-aposta-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.ultima-aposta h3 {
  margin: 0;
  font-size: 22px;
}

.ultima-aposta p {
  margin-bottom: 8px;
}

.ultima-aposta .infos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

/* AUTH */

.auth-loading {
  opacity: 0;
  pointer-events: none;
}

.auth-ready {
  opacity: 1;
  pointer-events: auto;
}

/* RESPONSIVO */

@media (max-width: 1200px) {
  .stat-card strong {
    font-size: 28px;
  }
}

@media (max-width: 1000px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ultima-aposta .infos {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .dash-menu {
    width: 100%;
    border-radius: 18px;
  }

  .menu-toggle {
    display: block;
    width: 100%;
    height: 42px;
    border-radius: 14px;
  }

  .menu-links {
    display: none;
    flex-direction: column;
    margin-top: 8px;
  }

  .menu-links.aberto {
    display: flex;
  }

  .menu-links a,
  .menu-links button {
    width: 100%;
    background: #111 !important;
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    flex-direction: column;
    align-items: stretch;
  }

  .section-title a,
  .section-title button {
    width: 100%;
  }

  .ultima-aposta-topo {
    flex-direction: column;
    align-items: flex-start;
  }

  .ultima-aposta .infos {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 430px) {
  .stat-card {
    padding: 20px;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .stat-card strong {
    font-size: 28px;
  }

  .chart-card canvas {
    height: 300px !important;
  }

  .ultima-aposta .infos {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
