/* ═══ DASHBOARD — Fruit Money ═══ */
:root {
  --dash-nav-h: 4.75rem;
  --dash-content-w: min(720px, 100%);
  --dash-orange: #ff6b35;
  --dash-orange-dark: #e63900;
  --dash-gold: #ffd700;
  --dash-gold-soft: #ffd080;
  --dash-green: #4caf50;
  --dash-bg: #1a0f0a;
  --dash-brown: #3d2418;
  --dash-brown-dark: #24140c;
  --dash-brown-overlay: rgba(45, 26, 16, 0.78);
  --dash-panel: rgba(32, 18, 11, 0.82);
  --dash-panel-strong: rgba(38, 22, 14, 0.9);
  --dash-border: rgba(255, 180, 80, 0.28);
  --dash-border-soft: rgba(255, 255, 255, 0.08);
  --dash-glass: rgba(255, 255, 255, 0.06);
  --dash-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --dash-glow-orange: 0 0 24px rgba(255, 107, 53, 0.35);
  --dash-glow-gold: 0 0 20px rgba(255, 215, 0, 0.22);
}

.page-dashboard {
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--dash-bg);
  min-height: 100dvh;
}

.page-dashboard .dash-app {
  overflow: visible;
}

.dash-app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

/* ── Background layers ── */
.dash-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #2a1810;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: saturate(0.92) brightness(0.62) contrast(1.05);
}

.dash-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 35%, rgba(72, 42, 24, 0.35) 0%, transparent 62%),
    radial-gradient(ellipse 120% 90% at 50% 100%, rgba(12, 6, 3, 0.55) 0%, transparent 55%),
    linear-gradient(180deg,
      rgba(36, 20, 12, 0.78) 0%,
      rgba(42, 24, 14, 0.62) 38%,
      rgba(38, 22, 13, 0.72) 68%,
      rgba(22, 12, 7, 0.88) 100%
    );
}

.dash-bg-glow {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 140, 60, 0.08) 0%, transparent 42%),
    radial-gradient(ellipse 140% 100% at 50% 50%, transparent 35%, rgba(18, 10, 6, 0.55) 100%);
}

.dash-header,
.dash-main,
.dash-bottom-nav,
.activity-feed {
  position: relative;
  z-index: 10;
}

/* ── Header ── */
.dash-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 1rem 1.1rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  background:
    linear-gradient(180deg,
      rgba(58, 32, 20, 0.97) 0%,
      rgba(42, 24, 14, 0.95) 55%,
      rgba(34, 18, 10, 0.93) 100%
    );
  border-bottom: 2px solid rgba(210, 130, 70, 0.42);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.62),
    0 4px 14px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 200, 130, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
}

.dash-header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255, 140, 60, 0.06) 0%,
    transparent 28%,
    transparent 72%,
    rgba(255, 140, 60, 0.06) 100%
  );
}

.dash-header__glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 107, 53, 0.65) 18%,
    rgba(255, 215, 0, 0.95) 50%,
    rgba(255, 107, 53, 0.65) 82%,
    transparent 100%
  );
  opacity: 0.95;
  filter: blur(0.2px);
}

.dash-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: var(--dash-content-w);
  margin: 0 auto;
}

.dash-header__brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
  padding: 0.2rem 0;
  background: transparent;
}

.dash-header__logo {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 9rem;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.55));
  background: transparent;
}

.dash-header__wallet {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.dash-header__gifts {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 180, 80, 0.35);
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.16) 0%, rgba(24, 12, 7, 0.82) 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  color: var(--dash-gold-soft);
  transition: transform 0.15s;
}

.dash-header__gifts:active {
  transform: scale(0.94);
}

.dash-header__gifts.is-shaking {
  animation: dash-gift-shake 0.55s ease-in-out infinite;
}

@keyframes dash-gift-shake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(8deg); }
  60% { transform: rotate(-6deg); }
  80% { transform: rotate(6deg); }
}

.dash-header__gifts-icon {
  display: inline-flex;
  line-height: 1;
}

.dash-header__gifts-icon .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.dash-header__gifts-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
  border: 2px solid #1a0f0a;
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.55);
}

.dash-header__gifts-badge.hidden {
  display: none;
}

.dash-header__balance {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem 0.5rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 180, 80, 0.42);
  background:
    linear-gradient(145deg, rgba(255, 107, 53, 0.2) 0%, rgba(24, 12, 7, 0.72) 100%);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    var(--dash-glow-gold);
  backdrop-filter: blur(12px);
}

.dash-header__balance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.dash-header__balance-icon .icon {
  width: 1.15rem;
  height: 1.15rem;
  color: #ffd080;
}

.dash-header__balance-text {
  min-width: 0;
}

.dash-header__balance-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 200, 120, 0.72);
}

.dash-header__amount {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 3.4vw, 1.12rem);
  font-weight: 800;
  color: var(--dash-gold);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.dash-header__deposit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(180deg, #ff834f 0%, var(--dash-orange) 45%, var(--dash-orange-dark) 100%);
  border: 1px solid rgba(255, 200, 140, 0.35);
  box-shadow:
    0 6px 18px rgba(255, 107, 53, 0.45),
    0 2px 0 rgba(179, 45, 0, 0.8) inset;
  transition: transform 0.15s, box-shadow 0.15s;
}

.dash-header__deposit .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.dash-header__deposit:active {
  transform: scale(0.94);
  box-shadow: 0 3px 10px rgba(255, 107, 53, 0.35);
}

/* ── Main ── */
.dash-main {
  flex: 1;
  width: var(--dash-content-w);
  margin: 0 auto;
  padding: 1.15rem 1rem calc(var(--dash-nav-h) + 1.5rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* ── Banners ── */
.dash-banners {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dash-banner--main {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 180, 80, 0.32);
  background: var(--dash-panel-strong);
  min-height: 0;
  box-shadow: var(--dash-shadow);
}

.dash-banner--main::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
  border-radius: inherit;
}

.dash-banner--image {
  width: 100%;
  line-height: 0;
  background: #1a0f0a;
}

.dash-banner__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(56vw, 240px);
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

.dash-banner--main:not(.dash-banner--image) {
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.22) 0%, rgba(255, 215, 0, 0.08) 100%),
    var(--dash-panel);
  backdrop-filter: blur(10px);
  min-height: 130px;
}

.dash-banner--main .dash-banner__content {
  padding: 1.25rem 1.1rem;
}

.dash-banner-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.dash-banner--sm {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--dash-border);
  background: var(--dash-panel);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s, border-color 0.2s;
}

.dash-banner--sm:active {
  transform: scale(0.98);
}

.dash-banner--sm strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.12rem;
  color: #fff;
}

.dash-banner--sm p {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.3;
}

.dash-banner__sm-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.dash-banner--orange {
  border-color: rgba(255, 107, 53, 0.38);
  background: linear-gradient(145deg, rgba(255, 107, 53, 0.18), rgba(8, 4, 2, 0.75));
}

.dash-banner--orange .dash-banner__sm-icon {
  background: rgba(255, 107, 53, 0.22);
}

.dash-banner--gold {
  border-color: rgba(255, 215, 0, 0.32);
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.12), rgba(8, 4, 2, 0.75));
}

.dash-banner--gold .dash-banner__sm-icon {
  background: rgba(255, 215, 0, 0.14);
}

.dash-banner__slide {
  padding: 1.25rem 1.1rem;
}

.dash-banner__tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dash-gold-soft);
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.55rem;
}

.dash-banner__title {
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.35rem;
  background: linear-gradient(180deg, #fff 0%, var(--dash-gold-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dash-banner__desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

/* ── Game card ── */
.dash-game-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 140, 60, 0.4);
  background:
    linear-gradient(145deg, rgba(255, 107, 53, 0.14) 0%, rgba(12, 7, 5, 0.92) 45%, rgba(8, 4, 2, 0.95) 100%);
  box-shadow:
    var(--dash-shadow),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    var(--dash-glow-orange);
  backdrop-filter: blur(14px);
}

.dash-game-card--featured {
  padding: 1px;
  background: linear-gradient(145deg,
    rgba(255, 180, 80, 0.55) 0%,
    rgba(255, 107, 53, 0.35) 40%,
    rgba(255, 215, 0, 0.25) 100%
  );
  border: none;
}

.dash-game-card__shine {
  position: absolute;
  top: -50%;
  left: -30%;
  width: 60%;
  height: 120%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  transform: rotate(12deg);
  pointer-events: none;
  z-index: 1;
}

.dash-game-card__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: 21px;
  background:
    linear-gradient(145deg, rgba(32, 18, 10, 0.96) 0%, rgba(14, 8, 5, 0.98) 100%);
}

.dash-game-card__visual {
  position: relative;
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
}

.dash-game-card__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));
  background: transparent;
}

.dash-game-card__glow {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.45) 0%, rgba(255, 215, 0, 0.12) 40%, transparent 70%);
  animation: dash-pulse-glow 3s ease-in-out infinite;
}

@keyframes dash-pulse-glow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.dash-game-card__badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dash-gold-soft);
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  margin-bottom: 0.45rem;
}

.dash-game-card__title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 0%, var(--dash-gold-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dash-game-card__sub {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.dash-game-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.dash-game-card__meta span {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

.dash-game-card__chances {
  color: var(--dash-gold-soft) !important;
  border-color: rgba(255, 215, 0, 0.35) !important;
  background: rgba(255, 215, 0, 0.12) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dash-game-card__play {
  display: inline-block;
  width: auto;
  min-width: 9.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.dash-game-card__play.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.4);
}

.dash-free-banner {
  margin: 0.65rem 0 0;
  color: #ffe27a;
  font-size: 0.88rem;
  font-weight: 600;
}

.dash-free-play {
  display: inline-block;
  margin-top: 0.45rem;
  text-decoration: none;
}

/* ── Como funciona ── */
.dash-highlights {
  padding: 1.15rem;
  border-radius: 20px;
  border: 1px solid var(--dash-border);
  background: var(--dash-panel);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.32);
}

.dash-highlights__title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 200, 120, 0.85);
  margin-bottom: 0.85rem;
  text-align: center;
  position: relative;
}

.dash-highlights__title::before,
.dash-highlights__title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 22%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 180, 80, 0.35));
}

.dash-highlights__title::before { left: 0; }
.dash-highlights__title::after {
  right: 0;
  background: linear-gradient(90deg, rgba(255, 180, 80, 0.35), transparent);
}

.dash-highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.dash-highlight {
  text-align: center;
  padding: 0.75rem 0.4rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, background 0.2s;
}

.dash-highlight:hover {
  border-color: rgba(255, 107, 53, 0.28);
  background: rgba(255, 107, 53, 0.06);
}

.dash-highlight__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.4rem;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 107, 53, 0.28), rgba(255, 107, 53, 0.12));
  border: 1px solid rgba(255, 107, 53, 0.4);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.dash-highlight strong {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.18rem;
}

.dash-highlight p {
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.35;
}

.dash-copyright {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 200, 120, 0.55);
  letter-spacing: 0.01em;
}

@media (max-width: 380px) {
  .dash-header__balance-icon {
    display: none;
  }

  .dash-header__balance {
    padding: 0.4rem 0.65rem;
  }

  .dash-game-card__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dash-game-card__visual {
    margin: 0 auto;
  }

  .dash-game-card__play {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .dash-highlights__grid {
    grid-template-columns: 1fr;
  }

  .dash-banner-row {
    grid-template-columns: 1fr;
  }
}

/* ── Stats ── */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.dash-stat {
  padding: 0.65rem 0.45rem;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 100, 0.16);
  background: rgba(0, 0, 0, 0.32);
}

.dash-stat__label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 215, 100, 0.6);
  margin-bottom: 0.2rem;
}

.dash-stat__value {
  font-size: clamp(0.82rem, 2.8vw, 0.98rem);
  font-weight: 900;
  color: var(--dash-gold);
}

/* ── Banners secundários ── */
.dash-banners-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.dash-mini-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--dash-border);
  background: var(--dash-panel);
  backdrop-filter: blur(8px);
}

.dash-mini-banner__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.dash-mini-banner strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.15rem;
}

.dash-mini-banner p {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
}

.dash-mini-banner--gold {
  border-color: rgba(255, 215, 0, 0.2);
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.08), rgba(0, 0, 0, 0.35));
}

.dash-mini-banner--orange {
  border-color: rgba(255, 107, 53, 0.25);
  background: linear-gradient(145deg, rgba(255, 107, 53, 0.1), rgba(0, 0, 0, 0.35));
}

/* ── Wallet actions ── */
.dash-wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.dash-action-btn {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.dash-action-btn:active {
  transform: scale(0.98);
}

.dash-action-btn--deposit {
  color: #fff;
  background: linear-gradient(180deg, var(--dash-orange) 0%, var(--dash-orange-dark) 100%);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
}

.dash-action-btn--withdraw {
  color: #fff;
  background: linear-gradient(180deg, var(--dash-orange) 0%, var(--dash-orange-dark) 100%);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
}

/* ── Modals ── */
.dash-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.dash-modal.hidden {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.dash-modal--stack {
  z-index: 450;
}

.dash-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.dash-modal__box {
  position: relative;
  width: min(420px, 100%);
  padding: 1.25rem 1.1rem 1.1rem;
  border-radius: 20px 20px 16px 16px;
  border: 1px solid var(--dash-border);
  background: linear-gradient(160deg, rgba(60, 35, 20, 0.98), rgba(26, 15, 10, 0.99));
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
  animation: dash-modal-in 0.3s ease both;
}

@keyframes dash-modal-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.dash-modal__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--dash-gold-soft);
  letter-spacing: -0.02em;
}

.dash-modal__desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.dash-modal__hint {
  font-size: 0.75rem;
  color: rgba(255, 180, 100, 0.85);
  margin-top: -0.5rem;
}

.dash-referral-promo {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 200, 100, 0.42);
  background:
    linear-gradient(145deg, rgba(255, 215, 0, 0.14) 0%, rgba(255, 107, 53, 0.1) 55%, rgba(12, 7, 5, 0.55) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 8px 22px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(255, 180, 60, 0.12);
}

.dash-referral-promo__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: rgba(255, 215, 0, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.dash-referral-promo__icon .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.dash-referral-promo__content {
  min-width: 0;
}

.dash-referral-promo__headline {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--dash-gold);
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.28);
  margin-bottom: 0.35rem;
}

.dash-referral-promo__desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}

.dash-modal__box--gifts {
  max-height: min(82vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dash-gifts-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding-right: 0.15rem;
}

.dash-gifts-empty {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.dash-gift-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 180, 80, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.dash-gift-item.is-claimable {
  border-color: rgba(255, 215, 0, 0.45);
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 53, 0.08));
}

.dash-gift-item__icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 215, 0, 0.12);
  color: var(--dash-gold-soft);
}

.dash-gift-item__icon .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.dash-gift-item__type {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 200, 120, 0.72);
  margin-bottom: 0.15rem;
}

.dash-gift-item__body strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

.dash-gift-item__body p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.35;
}

.dash-gift-item__progress {
  margin-top: 0.45rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.dash-gift-item__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dash-orange), var(--dash-gold));
}

.dash-gift-claim {
  border: none;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1a0f0a;
  background: linear-gradient(180deg, #ffe082, #ffb300);
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.35);
}

.dash-gift-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--dash-gold-soft);
  white-space: nowrap;
}

.dash-gift-tag--muted {
  color: rgba(255, 255, 255, 0.45);
}

.dash-modal__balance-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 200, 120, 0.65);
  margin-bottom: 0.2rem;
}

.dash-modal__balance {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dash-gold);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.dash-modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  text-align: left;
}

.dash-modal__field span {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 200, 120, 0.7);
}

.dash-modal__field input {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.dash-modal__field input:focus {
  outline: none;
  border-color: rgba(255, 107, 53, 0.55);
}

.dash-coupon-row {
  display: flex;
  gap: 0.45rem;
}

.dash-coupon-row input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
}

.dash-coupon-apply {
  flex-shrink: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 180, 80, 0.35);
  background: rgba(255, 107, 53, 0.2);
  color: var(--dash-gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.dash-coupon-msg {
  margin: -0.35rem 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8fd694;
}

.dash-coupon-msg.is-error {
  color: #ff8a80;
}

.dash-coupon-msg.hidden,
.dash-deposit-summary.hidden {
  display: none;
}

.dash-deposit-summary {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.dash-deposit-summary strong {
  color: var(--dash-gold);
}

.dash-modal__box--deposit .dash-modal__balance-label {
  margin-top: 0;
}

.dash-modal__box--deposit .dash-modal__balance {
  margin-bottom: 1rem;
}

.dash-modal__box--withdraw {
  text-align: center;
}

.dash-withdraw-balance {
  margin: 0.35rem 0 1.15rem;
  padding: 1.1rem 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 200, 100, 0.28);
  background:
    linear-gradient(160deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 107, 53, 0.08) 100%);
  box-shadow: 0 0 24px rgba(255, 180, 60, 0.1);
}

.dash-modal__box--withdraw .dash-modal__balance-label {
  margin-bottom: 0.35rem;
  text-align: center;
}

.dash-modal__balance--hero {
  font-size: clamp(2rem, 8vw, 2.45rem);
  line-height: 1.1;
  margin-bottom: 0;
  text-align: center;
  color: var(--dash-gold);
  text-shadow: 0 0 28px rgba(255, 200, 80, 0.35);
}

.dash-modal__box--withdraw .dash-modal__field,
.dash-modal__box--withdraw .dash-wd-loader {
  text-align: left;
}

.dash-modal__field--coupon {
  margin-top: 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-deposit-presets-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 200, 120, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.dash-deposit-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 420px) {
  .dash-deposit-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dash-deposit-preset {
  position: relative;
  padding: 0.85rem 0.35rem 0.75rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  overflow: visible;
}

.dash-deposit-preset__value {
  display: block;
  line-height: 1.15;
}

.dash-deposit-preset--flagged,
.dash-deposit-preset--popular {
  border-color: rgba(255, 215, 0, 0.38);
  background: linear-gradient(165deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 107, 53, 0.1) 100%);
  padding-top: 1.55rem;
}

.dash-deposit-preset__flag {
  position: absolute;
  top: -0.62rem;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  z-index: 2;
  padding: 0.28rem 0.55rem 0.32rem;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: none;
  text-align: center;
  color: #1a0f0a;
  white-space: normal;
  min-width: 4.8rem;
  max-width: calc(100% + 1.2rem);
  background: linear-gradient(180deg, #ffe082 0%, #ffb300 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  border-radius: 7px 7px 7px 0;
  box-shadow:
    0 4px 14px rgba(255, 179, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.dash-deposit-preset__flag::after {
  content: '';
  position: absolute;
  left: 0.38rem;
  bottom: -0.36rem;
  width: 0;
  height: 0;
  border-left: 0.36rem solid transparent;
  border-right: 0.36rem solid transparent;
  border-top: 0.36rem solid #c68400;
}

@media (max-width: 420px) {
  .dash-deposit-preset--flagged,
  .dash-deposit-preset--popular {
    padding-top: 1.75rem;
  }

  .dash-deposit-preset__flag {
    top: -0.72rem;
    font-size: 0.58rem;
    min-width: 5.2rem;
    padding: 0.3rem 0.5rem 0.34rem;
  }
}

.dash-deposit-preset--flagged.active,
.dash-deposit-preset--popular.active {
  border-color: var(--dash-orange);
  box-shadow:
    0 0 14px rgba(255, 107, 53, 0.28),
    0 0 0 1px rgba(255, 215, 0, 0.22) inset;
}

.dash-deposit-preset.active {
  background: rgba(255, 107, 53, 0.22);
  border-color: var(--dash-orange);
  color: #ffe0c8;
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.25);
}

.dash-deposit-preset:active {
  transform: scale(0.97);
}

#deposit-amount-custom {
  -moz-appearance: textfield;
  appearance: textfield;
}

#deposit-amount-custom::-webkit-outer-spin-button,
#deposit-amount-custom::-webkit-inner-spin-button,
#withdraw-amount::-webkit-outer-spin-button,
#withdraw-amount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#withdraw-amount {
  -moz-appearance: textfield;
  appearance: textfield;
}

.dash-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.dash-modal__submit {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  padding: 14px;
}

.dash-modal__submit--withdraw {
  background: linear-gradient(180deg, var(--dash-orange) 0%, var(--dash-orange-dark) 100%);
  box-shadow: 0 6px 0 #b32d00, 0 8px 24px rgba(255, 107, 53, 0.4);
  border: none;
}

.dash-modal__close {
  font-size: 0.88rem;
  padding: 12px;
}

.dash-referral-link {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.dash-referral-link input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
}

.dash-referral-copy {
  flex-shrink: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: none;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: var(--dash-orange);
  cursor: pointer;
}

.dash-modal__box--referral {
  max-width: 26rem;
}

.dash-inf-stats {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.dash-inf-stats__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.dash-inf-stat {
  text-align: center;
  padding: 0.75rem 0.45rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
}

.dash-inf-stat--full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1rem 1.05rem;
}

.dash-inf-stat__head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.dash-inf-stat__label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.dash-inf-stat__head small {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 200, 120, 0.82);
  text-transform: none;
  letter-spacing: 0;
}

.dash-inf-stat__amount {
  flex-shrink: 0;
  margin: 0;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--dash-gold);
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.28);
  white-space: nowrap;
}

.dash-inf-stat__values {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.dash-inf-stat__values strong {
  margin-top: 0;
  font-size: 1rem;
  white-space: nowrap;
}

.dash-inf-stat__values small {
  margin-top: 0;
  font-size: 0.68rem;
  white-space: nowrap;
}

.dash-inf-stat span {
  display: block;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-inf-stat strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1rem;
  color: #fff;
}

.dash-inf-stat small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  color: rgba(255, 200, 120, 0.75);
}

.dash-inf-stat--highlight {
  border-color: rgba(255, 215, 0, 0.45);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.14) 0%, rgba(255, 107, 53, 0.08) 100%);
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.08) inset, 0 8px 22px rgba(0, 0, 0, 0.22);
}

.dash-inf-stat--highlight strong {
  color: var(--dash-gold);
}

.dash-inf-withdraw-toggle {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.82rem 1rem;
  font-size: 0.92rem;
}

.dash-modal__box--inf-withdraw .dash-modal__balance-label {
  text-align: center;
}

.dash-referral-link-hint {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 200, 120, 0.78);
}

@media (max-width: 360px) {
  .dash-inf-stats__row {
    grid-template-columns: 1fr;
  }

  .dash-inf-stat--full {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .dash-inf-stat__head {
    align-items: center;
  }

  .dash-inf-stat__amount {
    font-size: 1.75rem;
  }
}

/* ── Perfil ── */
.dash-modal__box--profile {
  text-align: left;
}

.dash-profile-info {
  margin-bottom: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 180, 80, 0.16);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.dash-profile-info__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-profile-info__row:last-child {
  border-bottom: none;
}

.dash-profile-info__row dt {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 200, 120, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-profile-info__row dd {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  text-align: right;
}

.dash-profile-toggle {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 180, 80, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--dash-gold-soft);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
}

.dash-profile-toggle:hover {
  background: rgba(255, 107, 53, 0.12);
}

.dash-profile-password {
  margin-bottom: 0.65rem;
  padding-top: 0.25rem;
}

.dash-profile-password.hidden {
  display: none;
}

.dash-profile-msg {
  min-height: 1.1rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #8fd694;
  text-align: center;
}

.dash-profile-msg.is-error {
  color: #ff8a80;
}

.dash-profile-logout {
  width: 100%;
  margin-bottom: 0.65rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 120, 100, 0.45);
  border-radius: 12px;
  background: rgba(255, 80, 60, 0.12);
  color: #ffb4a8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dash-profile-logout:hover {
  background: rgba(255, 80, 60, 0.22);
  border-color: rgba(255, 140, 120, 0.65);
}

/* ── Pagamento Pix (exemplo / gateway) ── */
.dash-modal--pix {
  z-index: 500;
}

body.pix-checkout-open {
  overflow: hidden;
}

.dash-modal__box--pix {
  max-width: 400px;
  text-align: center;
  padding-top: 1.35rem;
}

.pix-pay-badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffe082;
  background: rgba(255, 193, 7, 0.14);
  border: 1px solid rgba(255, 193, 7, 0.35);
}

.pix-pay-note {
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 1rem;
}

.pix-pay-amount-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 200, 120, 0.65);
  margin: 0;
}

.pix-pay-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--dash-gold);
  margin: 0.15rem 0 0.35rem;
  letter-spacing: -0.03em;
}

.pix-pay-bonus {
  font-size: 0.78rem;
  font-weight: 600;
  color: #8fd694;
  margin: 0 0 0.85rem;
}

.pix-pay-bonus.hidden {
  display: none;
}

.pix-pay-timer-wrap {
  margin: 0.75rem 0 1rem;
}

.pix-pay-timer-ring {
  --pix-timer-pct: 1;
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 0.35rem;
  border-radius: 50%;
  background: conic-gradient(
    #32bcad calc(var(--pix-timer-pct) * 360deg),
    rgba(255, 255, 255, 0.1) 0
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.pix-pay-timer-ring::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: rgba(18, 10, 8, 0.95);
}

.pix-pay-timer {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #32bcad;
  letter-spacing: 0.04em;
}

.pix-pay-timer.is-urgent {
  color: #ff8a65;
}

.pix-pay-timer-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.pix-pay-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.pix-pay-qr {
  width: 220px;
  height: 220px;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  object-fit: contain;
}

.pix-pay-qr.is-fallback {
  background:
    linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%),
    linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}

.dash-modal--pix.is-expired .pix-pay-qr-wrap {
  opacity: 0.45;
  filter: grayscale(0.6);
}

.pix-pay-steps {
  text-align: left;
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.pix-pay-steps li {
  margin-bottom: 0.35rem;
}

.pix-pay-steps strong {
  color: #32bcad;
  font-weight: 700;
}

.pix-pay-code-label {
  display: block;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 200, 120, 0.65);
  margin-bottom: 0.35rem;
}

.pix-pay-code-row {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.pix-pay-code-row input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.68rem;
  font-family: ui-monospace, monospace;
}

.pix-pay-copy {
  flex-shrink: 0;
  padding: 0.65rem 0.85rem;
  border: none;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a0f0a;
  background: linear-gradient(180deg, #32bcad, #259b8e);
  cursor: pointer;
}

.pix-pay-copy-msg {
  min-height: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8fd694;
  text-align: left;
  margin: 0 0 0.75rem;
}

.pix-pay-expired-msg {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ff8a65;
  margin: 0 0 0.75rem;
}

.pix-pay-expired-msg.hidden {
  display: none;
}

.dash-modal--pix.is-expired #pix-confirm-paid {
  opacity: 0.45;
  pointer-events: none;
}

@media (min-width: 768px) {
  .dash-modal {
    align-items: center;
  }

  .dash-modal__box {
    border-radius: 20px;
  }
}

/* ── Bottom nav ── */
.dash-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.2rem;
  padding: 0.55rem 0.75rem;
  padding-bottom: max(0.55rem, env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(20, 11, 7, 0.94) 0%, rgba(10, 6, 4, 0.98) 100%);
  border-top: 1px solid rgba(255, 140, 60, 0.32);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.dash-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.25rem;
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.52);
  background: transparent;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
}

.dash-bottom-nav__item--active,
.dash-bottom-nav__item:hover {
  color: var(--dash-gold-soft);
  background: rgba(255, 107, 53, 0.14);
  border-color: rgba(255, 107, 53, 0.22);
}

.dash-bottom-nav__item:active {
  transform: scale(0.96);
}

.dash-bottom-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: inherit;
}

/* ── Activity feed ── */
.activity-feed {
  position: fixed;
  left: max(0.75rem, env(safe-area-inset-left));
  bottom: calc(var(--dash-nav-h) + 0.75rem + env(safe-area-inset-bottom));
  z-index: 300;
  pointer-events: none;
  max-width: min(17.5rem, calc(100vw - 1.5rem));
}

.activity-feed__toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 180, 80, 0.32);
  background: rgba(14, 8, 5, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  transform: translateX(calc(-100% - 1rem));
  opacity: 0;
  transition: transform 0.42s ease, opacity 0.42s ease;
  will-change: transform, opacity;
}

.activity-feed__toast.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.activity-feed__toast.is-leaving {
  transform: translateX(-1.5rem);
  opacity: 0;
}

.activity-feed__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
}

.activity-feed__pix {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.activity-feed__text {
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Desktop / tablet ── */
@media (min-width: 768px) {
  :root {
    --dash-nav-h: 5.5rem;
    --dash-content-w: min(840px, calc(100% - 2rem));
  }

  .dash-bottom-nav {
    left: 50%;
    right: auto;
    width: var(--dash-content-w);
    transform: translateX(-50%);
    bottom: max(1rem, env(safe-area-inset-bottom));
    padding: 0.75rem 1.1rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    border-radius: 18px;
    border: 1px solid var(--dash-border);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45), 0 12px 40px rgba(0, 0, 0, 0.35);
  }

  .dash-bottom-nav__item {
    gap: 0.35rem;
    padding: 0.7rem 0.5rem;
    font-size: 0.82rem;
    min-height: 4.25rem;
    justify-content: center;
  }

  .dash-main {
    padding-bottom: calc(var(--dash-nav-h) + 2.25rem + env(safe-area-inset-bottom));
  }

  .activity-feed {
    bottom: calc(var(--dash-nav-h) + 1.35rem + env(safe-area-inset-bottom));
    max-width: min(22rem, calc(100vw - 2rem));
  }

  .dash-banner__img {
    max-height: none;
  }

  .dash-highlights__grid {
    gap: 0.85rem;
  }

  .dash-highlight {
    padding: 1rem 0.65rem;
  }

  .dash-highlight strong {
    font-size: 0.88rem;
  }

  .dash-highlight p {
    font-size: 0.72rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --dash-content-w: min(960px, calc(100% - 2.5rem));
  }

  .dash-main {
    gap: 1.35rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .dash-bottom-nav__item {
    font-size: 0.9rem;
    min-height: 4.5rem;
  }

  .dash-game-card__inner {
    gap: 1.35rem;
  }
}

@media (min-width: 1280px) {
  :root {
    --dash-content-w: min(1040px, calc(100% - 3rem));
  }
}

.dash-wd-history-title {
  margin: 1.1rem 0 .45rem;
  font-size: .82rem;
  font-weight: 800;
  color: #ffe7c2;
}
.dash-wd-history {
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: .85rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.dash-wd-history__empty {
  margin: 0;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
}
.dash-wd-history__row {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  padding: .55rem .65rem;
  border-radius: 10px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,215,0,.12);
  font-size: .78rem;
}
.dash-wd-history__row strong { color: #ffd700; margin-right: .4rem; }
.dash-wd-history__row span { color: #86efac; text-transform: capitalize; }
.dash-wd-history__row span.is-pending { color: #fbbf24; }
.dash-wd-history__row small { color: rgba(255,255,255,.5); white-space: nowrap; }
.dash-wd-process { text-align: center; padding: .4rem 0 .2rem; }
.dash-wd-process__title { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 800; color: #ffd700; }
.dash-wd-process__desc { margin: 0 0 .9rem; font-size: .82rem; color: rgba(255,255,255,.7); }
.dash-wd-process__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
}
.dash-wd-process__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ffb300, #22c55e);
  transition: width .12s linear;
}

/* Link histórico na carteira */
.dash-wallet-history-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin: 1rem 0 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 180, 80, 0.28);
  background: rgba(255, 140, 40, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.dash-wallet-history-link:active { transform: scale(0.98); }
.dash-wallet-history-link .icon { width: 1.15rem; height: 1.15rem; color: #ffd54f; }

/* Tela full-screen — histórico de saques */
.dash-screen {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  flex-direction: column;
}

.dash-screen--withdraw {
  background: linear-gradient(180deg, #f1f5f9 0%, #e8eef5 100%);
  color: #0f172a;
}

.dash-screen.hidden { display: none !important; }

.dash-screen__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: max(12px, env(safe-area-inset-top)) 14px 12px;
}

.dash-screen__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.dash-screen__back:active { transform: scale(0.94); }
.dash-screen__back .icon { width: 1.35rem; height: 1.35rem; }

.dash-screen__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dash-screen--withdraw .dash-screen__header {
  border-bottom: 1px solid #dbe3ee;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.dash-screen--withdraw .dash-screen__back {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.dash-screen--withdraw .dash-screen__title {
  color: #0f172a;
}

.dash-screen--withdraw .dash-screen__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px max(24px, env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.dash-pix-icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.dash-pix-icon--lg {
  width: 44px;
  height: 44px;
  margin: 0 auto;
}

.dash-wh-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-wh-list__loading,
.dash-wh-list__empty {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  padding: 2.5rem 1rem;
}

.dash-wh-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.dash-wh-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dash-wh-row__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.dash-wh-row__amount {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.dash-wh-row__date {
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.dash-wh-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dash-wh-badge--pending {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.dash-wh-badge--approved {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.dash-wh-badge--refused {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.dash-wh-receipt-btn {
  width: 100%;
  padding: 0.62rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.dash-wh-receipt-btn:active {
  transform: scale(0.98);
}

/* Comprovante de saque */
#withdraw-receipt-modal {
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
}

#withdraw-receipt-modal .dash-modal__box--receipt {
  max-width: 22rem;
  padding: 0.75rem 1rem 1rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

#withdraw-receipt-modal .dash-receipt {
  padding: 1.35rem 1.1rem 1.1rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  text-align: center;
  color: #0f172a;
}

.dash-receipt__header {
  margin-bottom: 0.85rem;
}

.dash-receipt__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.55rem;
  border-radius: 50%;
  background: #ecfdf5;
  color: #16a34a;
}

.dash-receipt__check .icon {
  width: 1.65rem;
  height: 1.65rem;
}

.dash-receipt__title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.dash-receipt__subtitle {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.dash-receipt__pix-wrap {
  display: flex;
  justify-content: center;
  margin: 0.85rem 0 0.65rem;
  padding: 0.65rem 0;
  border-top: 1px dashed #e2e8f0;
  border-bottom: 1px dashed #e2e8f0;
}

.dash-receipt__amount {
  margin: 0.15rem 0 0.35rem;
  font-size: 2rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.dash-receipt__datetime {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.dash-receipt__meta {
  margin: 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid #e2e8f0;
  text-align: left;
}

.dash-receipt__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.42rem 0;
}

.dash-receipt__meta-row + .dash-receipt__meta-row {
  border-top: 1px solid #f1f5f9;
}

.dash-receipt__meta dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-receipt__meta dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  word-break: break-all;
}

#withdraw-receipt-modal .dash-receipt__close {
  margin-top: 0.85rem;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

/* Loader de saque */
.dash-modal__box--withdraw.dash-modal__box--wd-light {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.dash-modal__box--wd-light .dash-wd-loader,
.dash-modal__box--wd-light .dash-wd-success {
  text-align: center;
}

.dash-modal__box--wd-light .dash-wd-loader__title {
  color: #0f172a;
}

.dash-modal__box--wd-light .dash-wd-loader__hint {
  color: #64748b;
}

.dash-modal__box--wd-light .dash-wd-loader__spinner {
  border-color: #e2e8f0;
  border-top-color: #32bcad;
  border-right-color: #94a3b8;
  box-shadow: none;
}

.dash-modal__box--wd-light .dash-wd-success__icon {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #16a34a;
  box-shadow: none;
}

.dash-modal__box--wd-light .dash-wd-success__title {
  color: #0f172a;
}

.dash-wd-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  min-height: 220px;
}

.dash-wd-loader.hidden {
  display: none !important;
}

.dash-wd-loader__spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(255, 215, 0, 0.15);
  border-top-color: #ffd54f;
  border-right-color: rgba(255, 140, 40, 0.65);
  animation: dash-wd-spin 0.85s linear infinite;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 24px rgba(255, 180, 60, 0.2);
}

.dash-wd-loader__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.02em;
}

.dash-wd-loader__hint {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

@keyframes dash-wd-spin {
  to { transform: rotate(360deg); }
}

.dash-wd-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  min-height: 220px;
}

.dash-wd-success.hidden {
  display: none !important;
}

.dash-wd-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.14);
  border: 2px solid rgba(34, 197, 94, 0.45);
  color: #86efac;
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.22);
  animation: dash-wd-success-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.dash-wd-success__icon .icon {
  width: 2.2rem;
  height: 2.2rem;
}

.dash-wd-success__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #86efac;
  letter-spacing: 0.02em;
  animation: dash-wd-success-fade 0.35s ease 0.12s both;
}

@keyframes dash-wd-success-pop {
  from {
    opacity: 0;
    transform: scale(0.55);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes dash-wd-success-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.dash-screen-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .dash-screen {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 1px solid #dbe3ee;
    border-right: 1px solid #dbe3ee;
  }
}

@media (min-width: 1024px) {
  .dash-modal__box {
    width: min(480px, 100%);
  }
}

@media (max-width: 360px) {
  .dash-stats {
    grid-template-columns: 1fr;
  }

  .dash-banners-secondary {
    grid-template-columns: 1fr;
  }

  .activity-feed__text {
    max-width: 9.5rem;
  }
}
