* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #050505;

  --card: #0f0f10;
  --card2: #151515;

  --border: #232323;

  --text: #ffffff;

  --muted: #9f9f9f;

  --gold: #f4cf63;
  --gold-dark: #d6a826;

  --green: #38ff88;

  --red: #ff4d4d;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  background:
    radial-gradient(
      circle at top center,
      rgba(244, 207, 99, 0.12),
      transparent 35%
    ),
    var(--bg);

  color: var(--text);

  font-family: Inter, sans-serif;

  overflow-x: hidden;
}

.page {
  width: min(1700px, 100%);
  margin: 0 auto;

  padding: 40px 20px;
}

.card {
  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 0.96),
    rgba(10, 10, 10, 0.98)
  );

  border: 1px solid #1f1f1f;

  border-radius: 28px;

  padding: 28px;

  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

h1 {
  font-size: 52px;

  font-weight: 900;

  letter-spacing: -2px;

  margin-bottom: 28px;
}

h2 {
  font-size: 28px;

  margin-bottom: 18px;
}

h3 {
  font-size: 22px;

  margin-bottom: 12px;
}

p {
  color: var(--muted);

  line-height: 1.6;
}

a {
  color: inherit;
}

input,
select,
textarea {
  width: 100%;

  background: #0a0a0a;

  color: white;

  border: 1px solid #222;

  border-radius: 16px;

  padding: 14px 16px;

  outline: none;

  font-size: 15px;

  font-weight: 700;

  transition: 0.2s;
}

input::placeholder,
textarea::placeholder {
  color: #6f6f6f;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);

  box-shadow: 0 0 0 3px rgba(244, 207, 99, 0.12);
}

button {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));

  color: #111;

  border: 0;

  border-radius: 16px;

  padding: 14px 20px;

  font-size: 15px;

  font-weight: 900;

  cursor: pointer;

  transition: 0.2s;
}

button:hover {
  transform: translateY(-2px);

  filter: brightness(1.05);

  box-shadow: 0 0 25px rgba(244, 207, 99, 0.22);
}

button:active {
  transform: scale(0.98);
}

.grid {
  display: grid;

  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.logo {
  width: 230px;

  margin-bottom: 26px;
}

.topbar {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  margin-bottom: 30px;
}

.badge {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  background: rgba(244, 207, 99, 0.08);

  border: 1px solid rgba(244, 207, 99, 0.15);

  color: var(--gold);

  padding: 12px 18px;

  border-radius: 999px;

  font-weight: 800;

  box-shadow: 0 0 35px rgba(244, 207, 99, 0.08);
}

.resumo {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 18px;

  margin-bottom: 30px;
}

.resumo-card {
  background: linear-gradient(180deg, #111, #0a0a0a);

  border: 1px solid #1f1f1f;

  border-radius: 22px;

  padding: 22px;
}

.resumo-card span {
  display: block;

  color: var(--muted);

  margin-bottom: 10px;

  font-size: 14px;
}

.resumo-card strong {
  font-size: 34px;

  font-weight: 900;
}

.green {
  color: var(--green);
}

.red {
  color: var(--red);
}

.gold {
  color: var(--gold);
}

.linha {
  display: grid;

  grid-template-columns:
    1.2fr
    0.8fr
    0.9fr
    0.9fr;

  gap: 14px;

  margin-bottom: 16px;
}

.aposta-card {
  background: linear-gradient(180deg, #131313, #0b0b0b);

  border: 1px solid #202020;

  border-radius: 26px;

  padding: 24px;

  margin-bottom: 24px;
}

.aposta-topo {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  margin-bottom: 18px;
}

.status {
  padding: 8px 14px;

  border-radius: 999px;

  font-size: 13px;

  font-weight: 900;

  text-transform: uppercase;
}

.status.pendente {
  background: rgba(244, 207, 99, 0.12);

  color: var(--gold);
}

.status.finalizada {
  background: rgba(56, 255, 136, 0.12);

  color: var(--green);
}

.status.perdeu {
  background: rgba(255, 77, 77, 0.12);

  color: var(--red);
}

.linha-card {
  background: #0a0a0a;

  border: 1px solid #1c1c1c;

  border-radius: 20px;

  padding: 18px;

  margin-top: 16px;
}

.linha-info {
  display: grid;

  grid-template-columns:
    1.2fr
    0.7fr
    0.8fr
    0.8fr
    1fr
    auto;

  gap: 12px;

  align-items: center;
}

.resultadoSelect {
  min-width: 160px;
}

.editarLinhaBtn {
  width: 52px;

  height: 52px;

  padding: 0;

  border-radius: 14px;

  font-size: 20px;
}

.excluirApostaBtn {
  background: linear-gradient(135deg, #ff5a5a, #c92d2d);

  color: white;

  margin-top: 18px;
}

.excluirApostaBtn:hover {
  box-shadow: 0 0 25px rgba(255, 90, 90, 0.25);
}

.auth-page {
  display: flex;

  align-items: center;

  justify-content: center;

  min-height: 100vh;

  padding: 20px;
}

.auth-card {
  width: 100%;

  max-width: 520px;

  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 0.98),
    rgba(10, 10, 10, 0.98)
  );

  border: 1px solid #1d1d1d;

  border-radius: 32px;

  padding: 42px;

  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);

  position: relative;

  overflow: hidden;
}

.auth-card::before {
  content: "";

  position: absolute;

  inset: -200px;

  background: radial-gradient(
    circle,
    rgba(244, 207, 99, 0.12),
    transparent 40%
  );

  pointer-events: none;
}

.badge-login {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  background: rgba(244, 207, 99, 0.08);

  border: 1px solid rgba(244, 207, 99, 0.15);

  color: var(--gold);

  padding: 10px 16px;

  border-radius: 999px;

  font-weight: 800;

  margin-bottom: 24px;

  position: relative;

  z-index: 2;
}

.auth-card h1 {
  font-size: 52px;

  font-weight: 900;

  margin-bottom: 10px;

  letter-spacing: -2px;

  position: relative;

  z-index: 2;

  display: flex;
}

.subtitle {
  color: #9f9f9f;

  margin-bottom: 30px;

  font-size: 15px;

  line-height: 1.6;

  position: relative;

  z-index: 2;
}

.form-group {
  margin-bottom: 18px;

  position: relative;

  z-index: 2;
}

.auth-card button {
  width: 100%;

  margin-top: 10px;

  position: relative;

  z-index: 2;
}

.auth-link {
  display: block;

  margin-top: 24px;

  text-align: center;

  color: var(--gold);

  text-decoration: none;

  font-weight: 700;

  position: relative;

  z-index: 2;
}

.auth-link:hover {
  opacity: 0.8;
}

hr {
  border: 0;

  height: 1px;

  background: #1f1f1f;

  margin: 28px 0;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;

  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

.toast-container {
  position: fixed;

  top: 24px;

  right: 24px;

  z-index: 9999;

  display: flex;

  flex-direction: column;

  gap: 12px;
}

.toast {
  min-width: 280px;

  padding: 16px 18px;

  border-radius: 18px;

  color: white;

  font-weight: 700;

  animation: toastIn 0.25s ease;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.toast.success {
  background: linear-gradient(180deg, #0d2a18, #08150d);

  border: 1px solid rgba(0, 255, 120, 0.18);
}

.toast.error {
  background: linear-gradient(180deg, #2a0d0d, #150808);

  border: 1px solid rgba(255, 0, 0, 0.18);
}

.toast.warning {
  background: linear-gradient(180deg, #2a220d, #151108);

  border: 1px solid rgba(244, 198, 61, 0.18);
}

.auth-card .logo {
  display: block;
  margin-bottom: 22px;
}

.auth-card .badge-login {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 24px;
}

.aposta-edit {
  display: none;
  gap: 12px;
  grid-template-columns: 1.3fr 1fr 1fr;
  margin-top: 14px;
}

.modo-edicao .aposta-view {
  display: none;
}

.modo-edicao .aposta-edit {
  display: grid;
}

@media (max-width: 700px) {
  .aposta-edit {
    grid-template-columns: 1fr;
  }
}

@keyframes toastIn {
  from {
    opacity: 0;

    transform: translateY(-10px) scale(0.96);
  }

  to {
    opacity: 1;

    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  h1 {
    font-size: 38px;
  }

  .linha {
    grid-template-columns: 1fr;
  }

  .linha-info {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;

    align-items: flex-start;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .auth-card {
    padding: 28px;
  }

  .auth-card h1 {
    font-size: 42px;
  }

  .logo {
    width: 190px;
  }

  .page {
    padding: 20px 14px;
  }
}
