*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --blue-light: #60a5fa;
  --highlight: #60a5fa;
  --shadow-blue: rgba(59, 130, 246, 0.45);
  --bg: #0b1120;
  --bg-mid: #111827;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --badge-bg: rgba(59, 130, 246, 0.12);
  --badge-border: rgba(96, 165, 250, 0.28);
  --badge-text: #93c5fd;
  --header-border: rgba(59, 130, 246, 0.15);
  --gold-soft: rgba(255, 200, 50, 0.07);
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(59, 130, 246, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 80%, var(--gold-soft) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 70%, rgba(37, 99, 235, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, #0b1120 0%, var(--bg-mid) 50%, #0c1629 100%);
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background: transparent;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--header-border);
  position: relative;
  z-index: 10;
  background: rgba(11, 17, 32, 0.82);
  backdrop-filter: blur(12px);
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--blue-light);
}

.btn-cadastrar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 4px 16px var(--shadow-blue);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-cadastrar:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--shadow-blue);
}

.btn-entrar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.15rem;
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 4px 16px var(--shadow-blue);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-entrar:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--shadow-blue);
}

.header-auth {
  justify-content: flex-end;
}

.nav-auth {
  margin-left: auto;
}

.auth-logo {
  display: block;
  height: 110px;
  width: auto;
  margin: 0 auto 1.35rem;
  filter: drop-shadow(0 8px 24px rgba(59, 130, 246, 0.25));
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem 2.5rem;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 340px;
  background:
    radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 62%),
    radial-gradient(circle at 65% 35%, var(--gold-soft) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.hero-logo {
  width: min(260px, 78vw);
  height: auto;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 16px 40px rgba(59, 130, 246, 0.3));
  animation: fadeUp 0.6s ease-out;
}

.hero-title {
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 0.65rem;
  color: var(--text);
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s ease-out 0.1s both;
}

.hero-title .highlight {
  color: var(--highlight);
}

.hero-subtitle {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 340px;
  margin-bottom: 1.35rem;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s ease-out 0.2s both;
}

.btn-jogar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 320px;
  padding: 1rem 1.5rem;
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  box-shadow: 0 8px 28px var(--shadow-blue);
  transition: background 0.2s, transform 0.2s;
  position: relative;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  animation: fadeUp 0.6s ease-out 0.3s both, btnGlow 2.8s ease-in-out 1s infinite;
}

.btn-jogar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: btnShine 3.2s ease-in-out 1.2s infinite;
  pointer-events: none;
}

.btn-jogar-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

.btn-jogar:hover {
  background: var(--blue-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 40px rgba(59, 130, 246, 0.65), 0 0 28px rgba(96, 165, 250, 0.35);
  animation-play-state: paused, paused;
}

.btn-jogar:hover::before {
  animation-play-state: paused;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.1rem;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s ease-out 0.4s both;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--badge-text);
}

.badge-center {
  flex-basis: 100%;
  justify-content: center;
  max-width: fit-content;
  margin: 0 auto;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes btnGlow {
  0%,
  100% {
    box-shadow: 0 8px 28px var(--shadow-blue);
  }
  50% {
    box-shadow:
      0 10px 38px rgba(59, 130, 246, 0.6),
      0 0 22px rgba(96, 165, 250, 0.3);
  }
}

@keyframes btnShine {
  0% {
    transform: translateX(-120%);
  }
  45%,
  100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-jogar {
    animation: fadeUp 0.6s ease-out 0.3s both;
  }

  .btn-jogar::before {
    display: none;
  }
}

@media (max-width: 380px) {
  .header {
    padding: 1rem;
  }

  .nav {
    gap: 0.65rem;
  }

  .nav-link span,
  .nav-link {
    font-size: 0.82rem;
  }

  .btn-cadastrar {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }

  .brand-logo {
    height: 32px;
  }

  .auth-logo {
    height: 88px;
  }

  .btn-entrar {
    padding: 0.5rem 0.95rem;
    font-size: 0.82rem;
  }

  .auth {
    padding: 1.25rem 1rem 2rem;
  }

  .auth-card {
    padding: 1.35rem 1.15rem;
  }
}

/* ── Auth (cadastro / login) ── */

.auth {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1.5rem 2.5rem;
  position: relative;
}

.auth-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: rgba(17, 24, 39, 0.65);
  border: 1px solid var(--header-border);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 1;
  animation: fadeUp 0.5s ease-out;
}

.auth-title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-title .highlight {
  color: var(--highlight);
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.label-hint {
  font-weight: 400;
  color: var(--text-muted);
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(11, 17, 32, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 0.75rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
  color: #64748b;
}

.form-group input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
}

.form-check input {
  margin-top: 0.15rem;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.form-check a {
  color: var(--blue-light);
  text-decoration: none;
}

.form-check a:hover {
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 0.95rem 1.5rem;
  margin-top: 0.25rem;
  background: var(--blue);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 8px 28px var(--shadow-blue);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 32px var(--shadow-blue);
}

.btn-submit:disabled {
  background: rgba(100, 116, 139, 0.35);
  color: rgba(255, 255, 255, 0.65);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.auth-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--blue-light);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ── Dashboard ── */

.page-dash {
  padding-bottom: 5.5rem;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--header-border);
  background: rgba(11, 17, 32, 0.82);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.dash-header-brand {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
}

.dash-wallet {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.4rem 0.85rem;
  margin-left: 0.15rem;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.12);
}

.dash-wallet-icon {
  width: 18px;
  height: 18px;
  color: var(--blue-light);
  flex-shrink: 0;
}

.dash-wallet-balance {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--blue-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(96, 165, 250, 0.25);
}

.dash-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.dash-brand-logo {
  height: 32px;
  width: auto;
}

.dash-user-menu {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.dash-user-trigger {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.dash-user-trigger:hover .dash-avatar,
.dash-user-trigger:hover .dash-avatar-img {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.dash-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.dash-user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 190px;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid var(--header-border);
  border-radius: 0.85rem;
  padding: 0.35rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  z-index: 50;
  animation: fadeUp 0.2s ease-out;
}

.dash-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: none;
  border-radius: 0.6rem;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.dash-menu-item:hover {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-light);
}

.dash-menu-logout {
  color: #fca5a5;
}

.dash-menu-logout:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.dash-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(96, 165, 250, 0.35);
}

.dash-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(96, 165, 250, 0.35);
}

.dash-main {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dash-banner {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--header-border);
  line-height: 0;
  position: relative;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.dash-banner.is-dragging {
  cursor: grabbing;
}

.dash-banner-viewport {
  overflow: hidden;
}

.dash-banner-track {
  display: flex;
  will-change: transform;
}

.dash-banner-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.dash-banner-slide[data-link] {
  cursor: pointer;
}

.dash-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  -webkit-user-drag: none;
}

.dash-banner-dots {
  position: absolute;
  bottom: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
  z-index: 2;
}

.dash-banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.dash-banner-dot.is-active {
  width: 18px;
  background: #fff;
}

.dash-toast {
  position: fixed;
  top: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(480px - 2rem);
  width: calc(100% - 2rem);
  padding: 0.85rem 1rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 0.75rem;
  color: #86efac;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  z-index: 40;
  animation: fadeUp 0.3s ease-out;
}

.dash-race {
  background: rgba(17, 24, 39, 0.65);
  border: 1px solid var(--header-border);
  border-radius: 1.25rem;
  padding: 1.35rem 1.25rem;
  text-align: center;
  backdrop-filter: blur(12px);
}

.dash-race-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.dash-race-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.15rem;
}

.dash-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.dash-value {
  padding: 0.85rem 0.5rem;
  background: rgba(11, 17, 32, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 0.85rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.dash-value:hover {
  border-color: var(--blue-light);
}

.dash-value.is-active {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  color: var(--blue-light);
}

.dash-custom-value {
  margin-bottom: 1.15rem;
  text-align: left;
}

.dash-custom-value label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  text-align: center;
}

.dash-custom-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(11, 17, 32, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 0.85rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dash-custom-input-wrap:focus-within,
.dash-custom-input-wrap.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.dash-custom-prefix {
  padding: 0.85rem 0 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-light);
}

.dash-custom-input {
  flex: 1;
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 0.35rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  outline: none;
}

.dash-custom-input::placeholder {
  color: #64748b;
  font-weight: 500;
}

.dash-custom-input::-webkit-outer-spin-button,
.dash-custom-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dash-custom-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.btn-start-race {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 8px 28px var(--shadow-blue);
  transition: background 0.2s, transform 0.2s;
}

.btn-start-race:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.dash-feed {
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid var(--header-border);
  border-radius: 1.25rem;
  padding: 1.15rem 1rem;
  backdrop-filter: blur(12px);
}

.dash-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding: 0 0.25rem;
}

.dash-feed-title {
  font-size: 1rem;
  font-weight: 700;
}

.dash-feed-live {
  font-size: 0.72rem;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.02em;
}

.feed-scroll {
  overflow: hidden;
  max-height: 240px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.feed-scroll-inner {
  display: flex;
  flex-direction: column;
  animation: feedScroll 90s linear infinite;
}

.feed-scroll:hover .feed-scroll-inner {
  animation-play-state: paused;
}

.feed-scroll-inner .feed-track {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@keyframes feedScroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-scroll-inner {
    animation: none;
  }
}

.feed-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.5rem;
  border-radius: 0.75rem;
  background: rgba(11, 17, 32, 0.45);
  border: 1px solid rgba(96, 165, 250, 0.08);
}

.feed-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-light);
  flex-shrink: 0;
}

.feed-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
  text-align: left;
}

.feed-text strong {
  color: var(--text);
  font-weight: 600;
}

.feed-highlight {
  color: var(--blue-light);
  font-weight: 600;
}

.feed-time {
  font-size: 0.7rem;
  color: #64748b;
  white-space: nowrap;
}

.dash-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(11, 17, 32, 0.92);
  border-top: 1px solid var(--header-border);
  backdrop-filter: blur(16px);
  padding: 0.55rem 0.5rem calc(0.55rem + env(safe-area-inset-bottom));
  z-index: 30;
}

.dash-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  padding: 0.45rem 0.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 0.65rem;
  transition: color 0.2s, background 0.2s;
}

.dash-nav-item svg {
  width: 22px;
  height: 22px;
  padding: 7px;
  box-sizing: content-box;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.08);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.dash-nav-item:hover svg,
.dash-nav-item.is-active svg {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

.dash-nav-item:hover,
.dash-nav-item.is-active {
  color: var(--blue-light);
  background: rgba(59, 130, 246, 0.1);
}

@media (max-width: 380px) {
  .dash-user-name {
    display: none;
  }

  .dash-brand-logo {
    height: 28px;
  }

  .dash-wallet-balance {
    font-size: 0.92rem;
  }

  .dash-race-title {
    font-size: 1.25rem;
  }

  .dash-value {
    font-size: 0.9rem;
    padding: 0.75rem 0.35rem;
  }
}

/* ── Depositar ── */

.dash-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text);
  text-decoration: none;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.dash-back:hover {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-light);
}

.dash-header-spacer {
  width: 36px;
}

.dash-header:has(.dash-back) {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
}

.dash-header:has(.dash-back) .dash-brand {
  justify-self: center;
}

.deposit-main {
  padding-top: 0.5rem;
}

.deposit-card {
  width: 100%;
  background: rgba(17, 24, 39, 0.65);
  border: 1px solid var(--header-border);
  border-radius: 1.25rem;
  padding: 1.5rem 1.25rem;
  backdrop-filter: blur(12px);
  animation: fadeUp 0.5s ease-out;
}

.deposit-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  text-align: center;
}

.deposit-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 1.35rem;
}

.deposit-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.deposit-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.deposit-value {
  padding: 0.85rem 0.5rem;
  background: rgba(11, 17, 32, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 0.85rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.deposit-value:hover {
  border-color: var(--blue-light);
}

.deposit-value.is-active {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  color: var(--blue-light);
}

.deposit-custom {
  margin-bottom: 0;
}

.deposit-custom label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  text-align: center;
}

.deposit-amount-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.deposit-field-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.deposit-or {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0.15rem 0 0.55rem;
}

.deposit-input-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(11, 17, 32, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 0.85rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.deposit-input-wrap:focus-within,
.deposit-input-wrap.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.deposit-input-prefix {
  padding: 0.85rem 0 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-light);
  flex-shrink: 0;
}

.deposit-input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem 0.85rem 0.35rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  outline: none;
}

.deposit-input::placeholder {
  color: #64748b;
  font-weight: 500;
  font-size: 0.88rem;
}

.deposit-pix-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#deposit-form-view[hidden],
#deposit-pix-view[hidden] {
  display: none !important;
}

.deposit-coupon-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.deposit-coupon-input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  background: rgba(11, 17, 32, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 0.75rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.deposit-coupon-input:focus {
  outline: none;
  border-color: var(--blue);
}

.btn-coupon-apply {
  flex-shrink: 0;
  padding: 0 1rem;
  border: none;
  border-radius: 0.75rem;
  background: rgba(59, 130, 246, 0.2);
  color: var(--blue-light);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-coupon-apply.is-applied {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.deposit-coupon-feedback {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.deposit-coupon-feedback.is-ok {
  color: #4ade80;
}

.deposit-coupon-feedback.is-error {
  color: #f87171;
}

.deposit-amount-block.deposit-amount-highlight {
  outline: 2px solid rgba(248, 113, 113, 0.55);
  outline-offset: 4px;
  border-radius: 0.75rem;
}

.pix-credit-wrap {
  margin-top: 0.5rem;
}

.pix-credit {
  font-size: 1.25rem;
  font-weight: 800;
  color: #4ade80;
}

.pix-top-meta {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pix-top-meta .pix-timer-wrap,
.pix-top-meta .pix-amount-wrap {
  margin-bottom: 0;
}

.pix-top-meta .pix-amount-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pix-qr-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0 1.25rem;
  padding: 1.25rem 0 0.5rem;
}

.pix-qr-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.pix-timer-wrap {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 0;
}

.pix-timer-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.pix-timer {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-light);
  font-variant-numeric: tabular-nums;
}

.pix-timer.is-warning {
  color: #fbbf24;
}

.pix-timer.is-expired {
  color: #f87171;
}

.pix-amount-wrap {
  margin-bottom: 0;
}

.pix-amount-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.pix-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}

.pix-qr-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.pix-qr-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(280px, 88vw);
  aspect-ratio: 1;
  padding: 0.85rem;
  background: #fff;
  border-radius: 1.1rem;
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  box-sizing: border-box;
}

.pix-qr-frame .pix-qrcode,
.pix-qr-frame canvas.pix-qrcode,
.pix-qr-frame img.pix-qrcode {
  position: absolute;
  inset: 0.85rem;
  display: block;
  width: calc(100% - 1.7rem) !important;
  height: calc(100% - 1.7rem) !important;
  max-width: none;
  max-height: none;
  object-fit: contain;
  border-radius: 0.35rem;
}

.pix-qrcode-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  padding: 1rem;
}

.pix-qrcode-loading[hidden] {
  display: none !important;
}

.pix-copy-box {
  width: 100%;
  text-align: left;
  margin-bottom: 1rem;
}

.pix-instructions {
  width: 100%;
  text-align: left;
  background: rgba(11, 17, 32, 0.45);
  border: 1px solid rgba(96, 165, 250, 0.12);
  border-radius: 0.85rem;
  padding: 1rem 1rem 1rem 1.25rem;
  margin-bottom: 1.15rem;
}

.pix-instructions-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  text-align: center;
}

.pix-steps {
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.pix-steps strong {
  color: var(--blue-light);
}

.pix-copy-box label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.pix-code {
  width: 100%;
  padding: 0.75rem;
  background: rgba(11, 17, 32, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 0.75rem;
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  line-height: 1.4;
  resize: none;
  margin-bottom: 0.65rem;
  word-break: break-all;
}

.btn-copy-pix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 28px var(--shadow-blue);
  transition: background 0.2s, transform 0.2s;
}

.btn-copy-pix:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.pix-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.pix-status {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
  animation: pulse 2s ease-in-out infinite;
}

.pix-status.is-confirmed {
  color: #86efac;
  animation: none;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}

.btn-submit-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: var(--blue-light);
  box-shadow: none;
  text-decoration: none;
}

.btn-submit-outline:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

/* ── Sub páginas (sacar, depositar, indique) ── */

.sub-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--header-border);
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.sub-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.sub-back:hover {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-light);
}

.sub-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.sub-main {
  padding-top: 0.75rem;
}

.panel-card {
  width: 100%;
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid rgba(96, 165, 250, 0.12);
  border-radius: 1rem;
  padding: 1.25rem 1.15rem;
  animation: fadeUp 0.4s ease-out;
}

.panel-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.3rem;
}

.panel-card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
  margin-bottom: 1.15rem;
}

.panel-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-hint {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.balance-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.15rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 0.75rem;
}

.balance-chip-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.balance-chip-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-light);
}

/* ── Indique ── */

.refer-promo {
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.04) 100%);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 0.85rem;
}

.refer-promo-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.refer-promo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-light);
  margin-bottom: 0.25rem;
}

.refer-promo-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.refer-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.refer-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.5rem;
  background: rgba(11, 17, 32, 0.45);
  border: 1px solid rgba(96, 165, 250, 0.1);
  border-radius: 0.75rem;
}

.refer-stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.refer-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  text-align: center;
}

.refer-commission {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: rgba(11, 17, 32, 0.5);
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 0.85rem;
}

.refer-commission--influencer {
  margin-bottom: 1rem;
  border-color: rgba(167, 139, 250, 0.28);
  background: rgba(139, 92, 246, 0.08);
}

.refer-commission--influencer .refer-commission-value {
  color: #c4b5fd;
}

.refer-balance-note--influencer span {
  color: #a78bfa;
}

.refer-card--influencer .refer-stats--inline {
  margin-bottom: 0.75rem;
}

.refer-balances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.refer-balances .refer-commission {
  margin-bottom: 0;
  padding: 0.85rem 0.65rem;
}

.refer-commission--available {
  border-color: rgba(52, 211, 153, 0.22);
  background: rgba(16, 185, 129, 0.06);
}

.refer-commission-value--available {
  color: #34d399;
  font-size: 1.45rem;
}

@media (max-width: 420px) {
  .refer-balances {
    grid-template-columns: 1fr;
  }
}

.refer-commission-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.refer-commission-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1.1;
}

.refer-commission-percent {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  text-align: center;
}

.refer-notice {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 1.1rem;
  padding: 0.65rem 0.75rem;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 0.65rem;
  border: 1px solid rgba(96, 165, 250, 0.12);
}

.refer-comissao-hint {
  margin-top: 0.65rem;
  text-align: center;
}

.refer-sacar-toast {
  margin: 8px 0 0;
  padding: 0 0.5rem;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
  color: #fbbf24;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.refer-sacar-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.refer-saques-link {
  display: block;
  margin-top: 0.35rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-light);
  text-decoration: none;
}

.refer-saques-link:hover {
  text-decoration: underline;
}

.refer-link-box {
  text-align: left;
}

.refer-link-box label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.refer-link-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.6rem;
  background: rgba(11, 17, 32, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 0.65rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
}

.refer-people-card {
  margin-top: 0.85rem;
}

.refer-people-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.refer-people-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.refer-people-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-light);
  background: rgba(59, 130, 246, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.refer-people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 0.55rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.refer-person {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.refer-person-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(59, 130, 246, 0.15);
  border: 2px solid rgba(96, 165, 250, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.refer-person-avatar.has-deposit {
  border-color: rgba(34, 197, 94, 0.55);
}

.refer-person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.refer-person-avatar img:not([hidden]) + .refer-person-initial {
  display: none !important;
}

.refer-person-initial {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-light);
}

.refer-person-badge {
  position: absolute;
  bottom: -2px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #4ade80;
  background: rgba(11, 17, 32, 0.92);
  padding: 0.05rem 0.25rem;
  border-radius: 4px;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.refer-people-empty {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0.5rem 0 0;
}

.refer-people-note {
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin: 0.75rem 0 0;
  text-align: center;
}

.refer-people-note code {
  font-size: 0.65rem;
  color: var(--blue-light);
}

.commission-readonly {
  padding: 0.75rem 0.85rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 0.65rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-light);
  text-align: center;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(6px);
}

.modal-overlay[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 1.35rem 1.25rem 1.25rem;
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.98), rgba(11, 17, 32, 0.98));
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 1rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.modal-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

/* ── Meus saques ── */

.withdrawals-panel .panel-card-sub {
  margin-bottom: 1rem;
}

.btn-new-withdraw {
  width: 100%;
  padding: 0.85rem 1.5rem;
  margin-bottom: 1.15rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.withdrawals-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.withdraw-card {
  padding: 1rem 1rem 0.9rem;
  background: rgba(11, 17, 32, 0.55);
  border: 1px solid rgba(96, 165, 250, 0.14);
  border-radius: 0.85rem;
}

.withdraw-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.withdraw-type {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.withdraw-status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}

.withdraw-status.is-pending {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.withdraw-status.is-approved {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.28);
}

.withdraw-status.is-rejected {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.28);
}

.withdraw-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.withdraw-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.withdraw-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.withdraw-meta + .withdraw-meta {
  padding-top: 0.45rem;
  margin-top: 0.45rem;
  border-top: 1px solid rgba(96, 165, 250, 0.08);
}

.withdraw-meta-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.withdraw-meta-value {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  word-break: break-all;
}

.withdraw-id {
  font-family: ui-monospace, monospace;
  color: var(--blue-light);
}

.withdrawals-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0.5rem 0.5rem;
  text-align: center;
  color: var(--text-muted);
}

.withdrawals-empty[hidden] {
  display: none;
}

.withdrawals-empty svg {
  color: rgba(96, 165, 250, 0.45);
}

.withdrawals-empty p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.withdrawals-empty .btn-submit {
  width: auto;
  min-width: 200px;
  margin-top: 0.25rem;
  text-decoration: none;
}

.sim-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  background: rgba(251, 191, 36, 0.12);
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
  color: #fcd34d;
  font-size: 0.75rem;
  font-weight: 600;
}

.sim-banner-close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
  opacity: 0.8;
}

.sim-banner-close:hover {
  opacity: 1;
}

/* ── PHP-specific additions ──────────────────────────────── */
.auth-error {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.4);
  color: #fca5a5;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .875rem;
  margin-bottom: 16px;
}
.auth-error a { color: #f87171; }

/* ── Game over (vitória / derrota) ── */
.go-card {
  max-width: 440px;
  text-align: center;
}

.go-valor {
  font-size: clamp(1.25rem, 4.5vw, 1.75rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  margin: 0.25rem 0 1rem;
}

.go-valor-highlight {
  color: var(--highlight);
}

.go-detalhe {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.go-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.go-actions .btn-submit {
  display: block;
  text-decoration: none;
  text-align: center;
}

.btn-go-secondary {
  display: block;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: rgba(11, 17, 32, 0.45);
  color: var(--text-muted);
  border: 1px solid var(--badge-border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-go-secondary:hover {
  color: var(--blue-light);
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(59, 130, 246, 0.08);
}

.btn-go-secondary.btn-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.go-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--badge-text);
}

.go-badge-win {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(74, 222, 128, 0.35);
  color: #86efac;
}

.go-badge-loss {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

.btn-submit.btn-disabled {
  background: rgba(100, 116, 139, 0.35);
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.dash-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #14532d;
  color: #86efac;
  border: 1px solid #166534;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: .9rem;
  font-weight: 500;
  z-index: 9999;
  white-space: nowrap;
}

/* Balance chip on saque page */
.balance-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.3);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
}
.balance-chip-label { color: var(--text-muted, #9ca3af); font-size: .85rem; }
.balance-chip-value { font-size: 1.2rem; font-weight: 700; color: #fff; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.modal-card {
  background: #1a1a2e;
  border: 1px solid #2d2d4e;
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.modal-title { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.modal-sub   { color: #9ca3af; font-size: .875rem; margin-bottom: 20px; }
.commission-readonly {
  padding: 10px 14px;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.3);
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
}
body.modal-open { overflow: hidden; }

/* Refer page */
.refer-notice {
  color: #9ca3af;
  font-size: .9rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.refer-rollover-note {
  color: #fbbf24;
  font-size: .85rem;
  margin: -8px 0 16px;
  line-height: 1.45;
  text-align: center;
}

.refer-balance-note {
  display: flex;
  justify-content: center;
  margin: 0.15rem 0 1rem;
  padding: 0;
  text-align: center;
}

.refer-balance-note span {
  display: inline-block;
  max-width: 18rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 500;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: 999px;
}

.refer-link-box {
  position: relative;
  z-index: 10;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.refer-copy-feedback {
  margin: 8px 0 0;
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.refer-copy-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.refer-copy-feedback--success {
  color: #86efac;
  font-weight: 600;
}

.refer-copy-feedback--warning {
  color: #fcd34d;
}

.refer-copy-feedback--error {
  color: #fca5a5;
}

.btn-copy-refer {
  margin-top: 4px;
}

.dash-play-alert {
  margin-top: 10px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
  font-weight: 600;
}

.dash-play-alert--warning,
.dash-play-alert--error {
  color: #fbbf24;
}

.refer-rollover-panel {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.refer-rollover-panel-title {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fbbf24;
}

.refer-rollover-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.refer-rollover-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #d1d5db;
}

.refer-rollover-row strong {
  color: #fff;
  font-weight: 700;
}

.refer-rollover-row--falta strong {
  color: #fbbf24;
}

.refer-rollover-play {
  display: block;
  margin-top: 12px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #c7d2fe;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.refer-rollover-play:hover {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

.refer-alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.refer-alert--rollover {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fde68a;
}

.refer-alert--warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

.refer-alert--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.refer-alert--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.refer-alert--info {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
}

.refer-alert--modal {
  margin-bottom: 12px;
}
.refer-stats { display: flex; gap: 16px; margin-bottom: 20px; }
.refer-stat { flex: 1; background: rgba(255,255,255,.05); border-radius: 12px; padding: 16px; text-align: center; }
.refer-stat-value { display: block; font-size: 1.6rem; font-weight: 700; color: #fff; }
.refer-stat-label { font-size: .75rem; color: #9ca3af; margin-top: 4px; display: block; }
.refer-commission {
  margin-bottom: 0.5rem;
}
.refer-commission-label { color: #9ca3af; font-size: .875rem; }
.refer-commission-value { font-size: 1.3rem; font-weight: 700; color: #fff; }
.refer-saques-link { display: block; text-align: center; color: #6366f1; font-size: .875rem; margin: 12px 0 20px; text-decoration: none; }
.refer-link-box { margin-top: 4px; }
.refer-link-box label { display: block; color: #9ca3af; font-size: .85rem; margin-bottom: 8px; }
.refer-link-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #fff;
  font-size: .875rem;
  margin-bottom: 10px;
}

/* ─── Meu perfil ─────────────────────────────────────────────────────────── */
.profile-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-hero-card {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-hero-compact {
  justify-content: center;
  margin-bottom: 0.25rem;
}

.profile-hero-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(96, 165, 250, 0.4);
}

.profile-hero-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: var(--text);
}

.profile-hero-email {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  word-break: break-all;
}

.profile-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue-light);
  margin-right: 0.35rem;
}

.profile-badge-warn {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.profile-hero-card .profile-info-list {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(96, 165, 250, 0.12);
}

.profile-info-list {
  margin: 0;
  padding: 0;
}

.profile-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(96, 165, 250, 0.1);
}

.profile-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-info-row dt {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
  flex-shrink: 0;
}

.profile-info-row dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  word-break: break-word;
}

.profile-info-highlight {
  color: #4ade80;
}

.profile-info-muted {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.profile-password-form .form-group {
  margin-bottom: 1rem;
}

.profile-password-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(11, 17, 32, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 0.75rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.profile-password-form input:focus {
  outline: none;
  border-color: var(--blue);
}

.profile-form-feedback {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.profile-form-feedback.is-ok {
  color: #4ade80;
}

.profile-form-feedback.is-error {
  color: #f87171;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.profile-actions .btn-submit-outline {
  text-align: center;
  text-decoration: none;
  display: block;
  padding: 0.85rem 1rem;
}

.profile-logout-link {
  text-align: center;
  font-size: 0.88rem;
  color: #f87171;
  text-decoration: none;
  padding: 0.5rem;
}

.profile-logout-link:hover {
  color: #fca5a5;
}

/* ─── Popup rollover saque ───────────────────────────────────────────────── */
.rollover-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.rollover-modal-overlay[hidden] {
  display: none !important;
}

.rollover-modal-card {
  width: min(400px, 100%);
  background: rgba(17, 24, 39, 0.98);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 1rem;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.rollover-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fbbf24;
  margin: 0 0 0.75rem;
}

.rollover-modal-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 1.15rem;
}

.rollover-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rollover-modal-actions .btn-submit,
.rollover-modal-actions .btn-submit-outline {
  width: 100%;
  text-align: center;
}

/* ─── Responsivo (mobile-first + desktop) ─────────────────────────────────── */
@media (max-width: 480px) {
  .header,
  .dash-header {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .dash-header {
    padding-top: max(0.85rem, env(safe-area-inset-top));
  }

  .dash-user-menu {
    right: max(1rem, env(safe-area-inset-right));
  }

  .main,
  .dash-main,
  .auth-main,
  .deposit-main,
  .withdraw-main,
  .profile-main {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .deposit-values {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .deposit-value {
    min-height: 44px;
    font-size: 0.88rem;
  }

  .btn-submit,
  .btn-submit-outline,
  .btn-coupon-apply,
  .btn-jogar,
  .btn-cadastrar,
  .btn-entrar,
  .dash-nav-item {
    min-height: 44px;
  }

  .dash-user-dropdown {
    max-width: min(280px, calc(100vw - 2rem));
  }

  .pix-qr-frame {
    max-width: 100%;
  }

  .saques-table-wrap,
  .withdraw-history-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.25rem;
    padding: 0 0.25rem;
  }
}

@media (max-width: 360px) {
  .deposit-values {
    grid-template-columns: 1fr 1fr;
  }

  .nav-link--text-only span {
    display: none;
  }
}

@media (min-width: 481px) {
  .page {
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.06);
  }
}

@media (min-width: 768px) {
  .page {
    max-width: 520px;
  }

  .header,
  .dash-header {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .deposit-values {
    grid-template-columns: repeat(3, 1fr);
  }

  .auth-card {
    padding: 2.5rem 2.25rem;
  }
}
