/* ============================================
   RaspouGanhou - Componentes
   ============================================ */

/* ============================================
   HEADER
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  isolation: isolate;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 16px;
  gap: 10px;
  min-width: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  justify-self: start;
  grid-column: 1;
}

.header-wallet-center {
  grid-column: 2;
  justify-self: center;
  display: flex;
  justify-content: center;
  min-width: 0;
  z-index: 1;
}

.header-wallet-center.hidden {
  display: none;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 46%;
  line-height: 0;
}

.logo-img {
  display: block;
  height: var(--site-logo-height, clamp(36px, 10vw, 64px));
  width: auto;
  max-width: var(--site-logo-max-width, 200px);
  object-fit: contain;
  object-position: left center;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-strong));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-green);
  color: #fff;
}

.logo-icon svg {
  width: 18px;
  height: 18px;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-text .logo-raspou {
  color: var(--text-primary);
}

.logo-text .logo-ganhou {
  color: var(--green-primary);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: visible;
  justify-content: flex-end;
  justify-self: end;
  grid-column: 3;
}

.wallet-pill {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 5px 5px 5px 12px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.wallet-pill:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.12);
}

.wallet-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 10px 2px 0;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  min-width: 0;
}

.wallet-main .wallet-icon {
  display: flex;
  flex-shrink: 0;
  color: var(--gold-primary);
}

.wallet-main .wallet-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.wallet-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  line-height: 1.15;
}

.wallet-label {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.wallet-balance {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ice-primary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.wallet-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-primary) 55%, var(--gold-strong) 100%);
  color: #1a1008;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.wallet-add-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.75;
}

.wallet-add-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 3px 12px rgba(var(--accent-rgb), 0.45);
}

.wallet-add-btn:active {
  transform: scale(0.96);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card-secondary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  color: var(--text-secondary);
}

.user-avatar svg {
  width: 18px;
  height: 18px;
}

.user-avatar:hover {
  border-color: var(--green-primary);
}

.user-avatar.has-initial {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-strong));
  border-color: transparent;
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.28);
}

.user-avatar.has-initial svg {
  color: var(--gold-primary);
  stroke: var(--gold-primary);
  filter: drop-shadow(0 1px 1px rgba(26, 16, 8, 0.45));
}

.user-avatar-initial {
  line-height: 1;
}

.profile-menu-wrap {
  position: relative;
}

.header-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  flex-shrink: 0;
  min-width: 0;
  max-width: min(240px, 42vw);
}

.header-user-chip:hover,
.header-user-chip:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.38);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
  outline: none;
}

.header-user-chip .user-avatar {
  flex-shrink: 0;
}

.header-user-chip:hover .user-avatar.has-initial {
  box-shadow: 0 2px 14px rgba(var(--accent-rgb), 0.4);
}

.header-user-chip:hover .user-avatar.has-initial svg {
  color: var(--gold-primary);
  stroke: var(--gold-primary);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-normal);
  z-index: 200;
}

.profile-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast);
}

.profile-dropdown-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--green-primary);
}

.profile-dropdown-item:hover {
  background: var(--bg-card-secondary);
}

.profile-dropdown-item.danger {
  color: var(--danger);
}

.profile-dropdown-item.danger svg {
  color: var(--danger);
}

.login-btn-header {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.header-guest-actions,
.header-user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  justify-content: flex-end;
  overflow: visible;
}

.header-icon-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--ice-primary);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.header-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.header-icon-btn:hover,
.header-icon-btn:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.42);
  color: var(--gold-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.header-icon-btn-user:hover,
.header-icon-btn-user:focus-visible {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(var(--accent-rgb), 0.06));
}

.header-icon-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  color: #1a1008;
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
  pointer-events: none;
}

.header-icon-badge.hidden {
  display: none;
}

.header-icon-btn.has-gifts {
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--gold-primary);
}

.header-user-actions.hidden,
.header-guest-actions.hidden {
  display: none;
}

/* Wallet Dropdown */
.wallet-dropdown {
  position: absolute;
  top: calc(var(--header-height) + 4px);
  left: 50%;
  right: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all var(--transition-normal);
  z-index: 200;
}

.wallet-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.wallet-dropdown-balance {
  text-align: center;
  padding: 12px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.wallet-dropdown-balance label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}

.wallet-dropdown-balance .amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-primary);
}

.wallet-dropdown-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-modal {
  position: relative;
  padding-top: 28px;
}

.wallet-modal-balance {
  text-align: center;
  padding: 22px 16px 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(229, 168, 35, 0.32);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(229, 168, 35, 0.16), rgba(229, 168, 35, 0.03));
}

.wallet-modal-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.wallet-modal-amount {
  display: block;
  font-size: clamp(1.75rem, 7vw, 2rem);
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: -0.02em;
}

.wallet-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================
   BANNER CAROUSEL
   ============================================ */

.banner-section {
  margin-top: var(--header-height);
  padding: 16px 16px 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.banner-carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  width: 100%;
  height: auto;
  isolation: isolate;
  background: var(--bg-secondary);
}

.banner-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: auto;
  will-change: transform;
  border-radius: inherit;
}

.banner-slide {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  padding: 24px 32px;
  overflow: hidden;
  border-radius: inherit;
  min-height: clamp(180px, 28vw, 320px);
}

.banner-slide--image {
  padding: 0;
  display: block;
  min-height: 0;
  height: auto;
}

.banner-slide-link {
  display: block;
  width: 100%;
  line-height: 0;
}

.banner-slide-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}

.banner-slide:not(.banner-slide--image)::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(circle at 80% 50%, var(--green-primary) 0%, transparent 60%);
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 60%;
}

.banner-title {
  font-size: clamp(1.125rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.2;
}

.banner-subtitle {
  font-size: clamp(0.8125rem, 2vw, 1rem);
  color: var(--text-secondary);
}

.banner-icon {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.35;
  z-index: 1;
  color: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-icon svg {
  width: clamp(3rem, 10vw, 5rem);
  height: clamp(3rem, 10vw, 5rem);
}

.banner-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.banner-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.banner-indicator.active {
  background: var(--green-primary);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 480px) {
  .banner-slide:not(.banner-slide--image) {
    min-height: clamp(160px, 42vw, 220px);
    padding: 16px 20px;
  }
}

/* ============================================
   DESTAQUES (abaixo do banner)
   ============================================ */

.highlights-section {
  padding: 12px 16px 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.highlights-bar {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 72px;
}

.highlights-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--gold-strong), var(--gold-light), var(--gold-strong));
}

.highlights-item {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 14px;
  min-width: 0;
}

.highlights-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(var(--accent-rgb), 0.08);
}

.highlights-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.25;
}

.highlights-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  line-height: 1.2;
}

.highlights-line {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ice-primary);
  white-space: nowrap;
}

.highlights-value {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--gold-primary);
  letter-spacing: -0.01em;
}

.highlights-sub {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #7ec8e3;
  white-space: nowrap;
}

.highlights-sub-light {
  color: var(--text-secondary);
}

.highlights-divider {
  width: 1px;
  align-self: stretch;
  margin: 14px 0;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .highlights-section {
    padding: 10px 10px 0;
  }

  .highlights-bar {
    min-height: 64px;
  }

  .highlights-item {
    gap: 8px;
    padding: 12px 8px;
    justify-content: center;
  }

  .highlights-icon {
    width: 32px;
    height: 32px;
  }

  .highlights-icon svg {
    width: 16px;
    height: 16px;
  }

  .highlights-line {
    font-size: 0.6875rem;
  }

  .highlights-value {
    font-size: 0.75rem;
  }

  .highlights-sub {
    font-size: 0.6875rem;
  }

  .highlights-divider {
    margin: 12px 0;
  }
}

/* ============================================
   ÚLTIMOS GANHADORES
   ============================================ */

.latest-winners-section {
  padding: 20px 16px 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.latest-winners-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.latest-winners-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ice-primary);
  letter-spacing: -0.02em;
}

.latest-winners-title svg {
  width: 22px;
  height: 22px;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.latest-winners-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: none;
  background: none;
  color: var(--gold-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.latest-winners-link svg {
  width: 16px;
  height: 16px;
}

.latest-winners-link:hover {
  color: var(--gold-light);
}

.latest-winners-track-wrapper {
  overflow: hidden;
  position: relative;
}

.latest-winners-track-wrapper::before,
.latest-winners-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  z-index: 2;
  pointer-events: none;
}

.latest-winners-track-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.latest-winners-track-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.latest-winners-track {
  display: flex;
  gap: 8px;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.latest-winners-track.winners-track--js {
  animation: none !important;
}

.latest-winner-card {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  width: max-content;
  max-width: none;
  padding: 6px 10px 6px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.latest-winner-avatar {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold-primary);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--ice-primary);
}

.latest-winner-avatar > svg:first-child {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.latest-winner-crown {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 11px;
  height: 11px;
  color: var(--gold-primary);
  fill: var(--gold-primary);
  stroke: var(--gold-primary);
  stroke-width: 1.5;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.latest-winner-body {
  flex: 0 0 auto;
  min-width: max-content;
  max-width: none;
}

.latest-winner-name,
.latest-winner-prize,
.latest-winner-time {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.latest-winner-name {
  margin-bottom: 1px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ice-primary);
  line-height: 1.2;
}

.latest-winner-prize {
  margin: 0 0 1px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.25;
}

.latest-winner-prize strong {
  color: var(--gold-primary);
  font-weight: 700;
}

.latest-winner-time {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--text-secondary);
  opacity: 0.85;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .latest-winners-section {
    padding: 16px 10px 0;
  }

  .latest-winners-title {
    font-size: 0.9375rem;
  }

  .latest-winner-card {
    max-width: none;
    padding: 5px 10px 5px 7px;
    gap: 7px;
  }

  .latest-winner-avatar {
    width: 28px;
    height: 28px;
  }

  .latest-winner-avatar > svg:first-child {
    width: 14px;
    height: 14px;
  }

  .latest-winner-crown {
    width: 10px;
    height: 10px;
    top: -2px;
    right: -2px;
  }
}

/* legado — ganhadores (não usado) */
.winners-section {
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  min-height: 88px;
}

.winners-section::before,
.winners-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}

.winners-section::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.winners-section::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.winners-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  padding: 0 16px;
  margin-bottom: 10px;
}

.winners-label .live-dot {
  width: 8px;
  height: 8px;
  background: var(--green-primary);
  border-radius: 50%;
  animation: glowPulse 2s ease infinite;
}

.winners-track-wrapper {
  overflow: hidden;
}

.winners-track {
  display: flex;
  gap: 10px;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.winners-track--js {
  animation: none !important;
}

.winner-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  white-space: nowrap;
  font-size: 0.8125rem;
  flex-shrink: 0;
  min-height: 48px;
}

.winner-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--green-primary);
}

.winner-icon svg {
  width: 18px;
  height: 18px;
}

.winner-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.winner-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.winner-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
  flex-shrink: 0;
}

.winner-info {
  display: flex;
  align-items: center;
  min-width: 0;
}

.winner-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
}

.winner-card .winner-name {
  color: var(--text-primary);
  font-weight: 600;
}

.winner-card .winner-action {
  color: var(--text-secondary);
  font-weight: 400;
}

.winner-card .winner-prize {
  color: var(--green-primary);
  font-weight: 700;
}

@keyframes winnersScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   SEÇÃO DE RASPADINHAS
   ============================================ */

.scratch-section {
  padding: 20px 16px 120px;
  max-width: 640px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Home — carrossel horizontal (distinto da lista vertical antiga) */
.scratch-list-track {
  position: relative;
  margin: 0 -16px;
}

.scratch-list-nav {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  background: rgba(8, 6, 4, 0.92);
  color: var(--gold-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  transition: opacity var(--transition-fast), border-color var(--transition-fast),
    background var(--transition-fast), transform var(--transition-fast);
}

.scratch-list-nav svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.scratch-list-nav--prev {
  left: 4px;
}

.scratch-list-nav--next {
  right: 4px;
}

.scratch-list-nav:hover:not(:disabled) {
  border-color: var(--gold-primary);
  background: rgba(var(--accent-rgb), 0.18);
  color: #fff;
}

.scratch-list-nav:active:not(:disabled) {
  transform: translateY(-50%) scale(0.94);
}

.scratch-list-nav:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.scratch-list {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 16px 16px;
}

.scratch-list::-webkit-scrollbar {
  display: none;
}

.scratch-card-skeleton {
  flex: 0 0 min(84vw, 300px);
  height: 360px;
  border-radius: var(--radius-xl);
  scroll-snap-align: start;
}

.scratch-section-hint {
  margin-top: 2px;
}

@media (max-width: 767px) {
  .scratch-list-nav {
    display: inline-flex;
  }
}

@media (min-width: 768px) {
  .scratch-list-track {
    margin: 0;
  }

  .scratch-section-hint {
    display: none;
  }

  .scratch-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
    padding: 0;
  }

  .scratch-card-skeleton {
    flex: unset;
    width: auto;
    height: 320px;
  }
}

@media (min-width: 1024px) {
  .scratch-section {
    padding-bottom: 40px;
    max-width: 960px;
  }

  .scratch-list {
    gap: 20px;
  }
}

/* Scratch Card */
.scratch-card {
  flex: 0 0 min(84vw, 300px);
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
  position: relative;
}

@media (min-width: 768px) {
  .scratch-card {
    flex: unset;
    width: auto;
  }
}

.scratch-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: var(--shadow-green);
}

.scratch-card-banner {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
  padding: 20px 24px;
  overflow: hidden;
}

.scratch-card-banner--image {
  padding: 0;
  height: auto;
  display: block;
  line-height: 0;
  background: var(--bg-card-secondary);
}

.scratch-card-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.scratch-card-banner:not(.scratch-card-banner--image)::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle at 85% 50%, var(--green-primary) 0%, transparent 55%);
}

.scratch-card-banner-content {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
}

.scratch-card-banner-title {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.scratch-card-banner-subtitle {
  font-size: clamp(0.75rem, 2.5vw, 0.875rem);
  color: rgba(245, 245, 245, 0.75);
}

.scratch-card-banner-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.35;
  z-index: 1;
  color: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scratch-card-banner-icon svg {
  width: clamp(3rem, 12vw, 4.5rem);
  height: clamp(3rem, 12vw, 4.5rem);
  filter: drop-shadow(0 4px 16px rgba(var(--accent-rgb), 0.3));
}

@media (min-width: 768px) {
  .scratch-card-banner:not(.scratch-card-banner--image) {
    height: 160px;
    padding: 24px 32px;
  }
}

.scratch-card-body {
  padding: 18px 20px 20px;
}

.scratch-card-name {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.scratch-card-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.scratch-card-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.scratch-card-item-tag {
  padding: 4px 10px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.6875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.scratch-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scratch-card-play {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 168px;
  margin: 0 auto;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-strong));
  color: #1a1008;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
  transition: box-shadow var(--transition-fast);
}

.scratch-card-price {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0;
  color: inherit;
  white-space: nowrap;
}

.scratch-card-play:hover {
  box-shadow: var(--shadow-green);
}

.scratch-card-players {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 12px;
}

.players-count-num {
  color: var(--text-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}

.players-count-num.players-count-flash {
  color: var(--green-primary);
}

.scratch-card-players .dot {
  width: 6px;
  height: 6px;
  background: var(--green-primary);
  border-radius: 50%;
}

/* ============================================
   BOTTOM NAVIGATION (Mobile)
   ============================================ */

.bottom-nav {
  --nav-crown-size: 68px;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  height: var(--bottom-nav-height);
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 -2px 20px rgba(var(--accent-rgb), 0.12),
    0 12px 36px rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  align-items: end;
  padding: 0 6px 8px;
  z-index: 100;
}

.bottom-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--accent-rgb), 0.35) 20%,
    var(--gold-primary) 50%,
    rgba(var(--accent-rgb), 0.35) 80%,
    transparent
  );
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.35);
  pointer-events: none;
}

.bottom-nav-item {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 10px 4px 4px;
  border: 0;
  background: transparent;
  color: rgba(240, 244, 248, 0.45);
  font-size: 0.625rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
  cursor: pointer;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item[data-nav="deposit"] {
  z-index: 6;
}

.bottom-nav-item:nth-child(1) { grid-column: 1; }
.bottom-nav-item:nth-child(2) { grid-column: 2; }
.bottom-nav-item:nth-child(4) { grid-column: 4; }
.bottom-nav-item:nth-child(5) { grid-column: 5; }

.bottom-nav-item .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.bottom-nav-item .nav-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.bottom-nav-item.active {
  color: var(--gold-primary);
}

.bottom-nav-item.active .nav-icon svg {
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.45));
}

.bottom-nav-item:hover {
  color: var(--gold-light);
}

.bottom-nav-center {
  grid-column: 3;
  grid-row: 1;
  position: relative;
  height: 100%;
  pointer-events: none;
}

.bottom-nav-center-btn {
  position: absolute;
  left: 50%;
  top: calc(var(--nav-crown-size) / -2 + 6px);
  width: var(--nav-crown-size);
  height: var(--nav-crown-size);
  margin-left: calc(var(--nav-crown-size) / -2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #1a1408 0%, #080604 70%);
  border: 3px solid var(--gold-primary);
  box-shadow:
    0 0 0 4px rgba(var(--accent-rgb), 0.12),
    0 0 24px rgba(var(--accent-rgb), 0.45),
    0 8px 24px rgba(0, 0, 0, 0.5);
  color: var(--gold-light);
  pointer-events: auto;
  z-index: 3;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.bottom-nav-center-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--gold-primary);
  stroke: var(--gold-light);
  filter: drop-shadow(0 2px 6px rgba(var(--accent-rgb), 0.5));
}

.bottom-nav-center-btn:hover {
  transform: scale(1.04);
  box-shadow:
    0 0 0 4px rgba(var(--accent-rgb), 0.18),
    0 0 32px rgba(var(--accent-rgb), 0.55),
    0 10px 28px rgba(0, 0, 0, 0.55);
}

.bottom-nav-center-btn.nav-scratch-active {
  border-color: var(--gold-light);
  box-shadow:
    0 0 0 4px rgba(var(--accent-rgb), 0.22),
    0 0 36px rgba(var(--accent-rgb), 0.6),
    0 10px 28px rgba(0, 0, 0, 0.55);
}

@media (min-width: 1024px) {
  .bottom-nav {
    display: none;
  }
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
  }

  .desktop-nav-item {
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
  }

  .desktop-nav-item:hover,
  .desktop-nav-item.active {
    color: var(--green-primary);
    background: var(--green-glow);
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 32px 16px 24px;
  margin-bottom: calc(var(--bottom-nav-height) + 24px);
}

@media (min-width: 1024px) {
  .footer {
    margin-bottom: 0;
  }
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--green-primary);
}


/* ============================================
   VALORES DE DEPÓSITO (com selos)
   ============================================ */

.deposit-subtitle {
  font-size: 0.8125rem;
  margin-bottom: 12px;
}

.deposit-amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 8px;
  margin-bottom: 14px;
  padding-top: 10px;
}

.deposit-amount-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 18px 4px 8px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 45%, var(--gold-strong) 100%);
  border: 1px solid var(--gold-strong);
  border-radius: var(--radius-sm);
  color: #1a1008;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.deposit-amount-btn:hover,
.deposit-amount-btn.selected {
  border-color: var(--gold-light);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 45%, var(--gold-strong) 100%);
  box-shadow: var(--shadow-green);
}

.deposit-amount-value {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.deposit-amount-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  max-width: calc(100% - 6px);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.5625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  background: #fff;
  color: #1a1008;
  border: 1px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.deposit-badge-popular,
.deposit-badge-boost,
.deposit-badge-mega,
.deposit-badge-ultra {
  background: #fff;
  color: #1a1008;
  border: 1px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

#depositSubmitBtn {
  color: #fff;
}

.deposit-amount-input {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.withdraw-amount-input {
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  color: #fff;
  background: var(--bg-card-secondary);
  border: 1px solid rgba(229, 168, 35, 0.4);
}

#withdrawSubmitBtn {
  color: #fff;
}

.modal-flow {
  border-top: 3px solid var(--gold-primary);
}

.modal-flow-withdraw {
  border-top-color: #e8d5a3;
}

.cashout-balance {
  display: block;
  margin-bottom: 16px;
  padding: 18px 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(229, 168, 35, 0.16), rgba(229, 168, 35, 0.03));
  border: 1px solid rgba(229, 168, 35, 0.32);
  border-radius: 16px;
}

.cashout-balance-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cashout-balance-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.1;
}

.withdraw-limits-hint .withdraw-min-value {
  color: var(--gold-primary);
  font-weight: 800;
}

.pix-key-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.pix-key-label-row .form-label {
  margin-bottom: 0;
}

.pix-key-type {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.pix-key-type.hidden {
  display: none;
}

.pix-key-type-email {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.pix-key-type-cpf {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.pix-key-type-phone {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--green-light);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
}

.pix-key-type-random {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.deposit-coupon-group {
  margin-bottom: 16px;
}

.deposit-coupon-row {
  display: flex;
  gap: 8px;
}

.deposit-coupon-row .form-input {
  flex: 1;
  text-transform: uppercase;
}

.deposit-coupon-feedback {
  margin-top: 8px;
  font-size: 0.75rem;
}

.deposit-coupon-feedback.is-success {
  color: var(--green-primary);
}

.deposit-coupon-feedback.is-error {
  color: #ef4444;
}

.deposit-coupon-feedback.hidden {
  display: none;
}

.deposit-coupon-feedback .deposit-coupon-extra,
.deposit-coupon-feedback .deposit-coupon-total {
  color: var(--gold-primary);
  font-weight: 800;
}

.deposit-coupon-feedback.is-success {
  line-height: 1.45;
}

/* Depósito — modal modo pagamento */
.modal-deposit-pay {
  padding: 0;
}

.modal-deposit-pay .deposit-payment-top {
  position: sticky;
  top: 0;
  z-index: 3;
}

/* Depósito — tela de pagamento PIX */
.deposit-payment {
  display: flex;
  flex-direction: column;
}

.deposit-payment-top {
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.deposit-payment-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.deposit-payment-nav-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 0;
  flex: 1;
  justify-content: center;
}

.deposit-payment-nav-title img,
.deposit-payment-nav-title .pix-logo,
.deposit-payment-nav-title .pix-logo-inline {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  min-width: 0;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.pix-logo-inline {
  flex-shrink: 0;
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

.deposit-payment-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.deposit-payment-nav-btn.is-icon {
  padding: 6px;
  width: 34px;
  height: 34px;
  justify-content: center;
}

.deposit-payment-nav-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--green-primary);
  background: rgba(var(--accent-rgb), 0.1);
}

.deposit-payment-timer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: rgba(var(--accent-rgb), 0.1);
}

.deposit-payment-timer-bar.is-urgent {
  background: rgba(234, 179, 8, 0.12);
}

.deposit-payment-timer-bar.is-urgent .deposit-payment-timer,
.deposit-payment-timer-bar.is-urgent .deposit-payment-timer-info {
  color: #eab308;
}

.deposit-payment-timer-bar.is-expired {
  background: rgba(239, 68, 68, 0.1);
}

.deposit-payment-timer-bar.is-expired .deposit-payment-timer,
.deposit-payment-timer-bar.is-expired .deposit-payment-timer-info {
  color: #ef4444;
}

.deposit-payment-timer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green-primary);
}

.deposit-payment-timer-countdown {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
}

.deposit-payment-timer-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.deposit-payment-timer {
  font-size: 1.125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--green-primary);
  letter-spacing: 0.02em;
}

.deposit-payment-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 20px 20px;
}

.deposit-payment-value {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  text-align: center;
}

.deposit-payment-value-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.deposit-payment-value-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.deposit-payment-amount {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.deposit-payment-bonus {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 4px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  font-size: 0.8125rem;
  color: var(--green-primary);
  font-weight: 600;
  line-height: 1.35;
  width: 100%;
  box-sizing: border-box;
}

.deposit-payment-bonus-line {
  display: block;
}

.deposit-payment-bonus-line strong {
  color: var(--gold-primary);
  font-weight: 800;
}

.deposit-payment-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 6px 0 2px;
}

.deposit-pix-qr-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

.deposit-pix-qr-host {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 18px;
  background: #ffffff;
  line-height: 0;
  overflow: hidden;
}

.deposit-pix-qr-host canvas,
.deposit-pix-qr-host img {
  display: block;
  width: 192px !important;
  height: 192px !important;
}

.deposit-payment-qr-grid {
  display: grid;
  grid-template-columns: repeat(25, 1fr);
  width: 192px;
  height: 192px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.deposit-qr-cell {
  display: block;
  aspect-ratio: 1;
}

.deposit-qr-cell.is-on {
  background: #111;
}

.deposit-payment-steps {
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 14px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
}

.deposit-payment-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.deposit-payment-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--green-primary);
  color: #0a0a0a;
  font-size: 0.6875rem;
  font-weight: 800;
}

.deposit-payment-step-text {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-secondary);
  padding-top: 1px;
}

.deposit-payment-step-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

.deposit-payment-copy-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deposit-payment-copy-block .form-label {
  margin-bottom: 0;
}

.deposit-payment-code {
  font-size: 0.6875rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  word-break: break-all;
  padding: 10px 12px;
  background: var(--bg-card-secondary);
}

.deposit-payment-copy-block .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.deposit-payment-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.deposit-payment-status.is-success {
  color: var(--green-primary);
  font-weight: 600;
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.25);
}

.deposit-payment-status.is-error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.deposit-payment-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green-primary);
  animation: deposit-pulse 1.4s ease-in-out infinite;
}

.deposit-payment-status-icon.is-spin {
  animation: deposit-spin 1s linear infinite;
  color: var(--green-primary);
}

.deposit-payment-paid-link {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.deposit-payment-paid-link:hover:not(:disabled) {
  color: var(--green-primary);
}

.deposit-payment-paid-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.deposit-payment-cancel-link {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.55);
  border-radius: var(--radius-md);
  color: #f87171;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.deposit-payment-cancel-link:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

@keyframes deposit-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

@keyframes deposit-spin {
  to { transform: rotate(360deg); }
}

/* Legado — quick amounts */
.quick-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.quick-amount-btn {
  padding: 12px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.quick-amount-btn:hover,
.quick-amount-btn.selected {
  border-color: var(--green-primary);
  background: var(--green-glow);
  color: var(--green-primary);
}

/* ============================================
   HISTÓRICO
   ============================================ */

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: var(--bg-card-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.history-item-left {
  flex: 1;
}

.history-item-date {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.history-item-name {
  font-size: 0.875rem;
  font-weight: 600;
}

.history-item-right {
  text-align: right;
}

.history-item-cost {
  font-size: 0.8125rem;
  color: var(--danger);
  font-weight: 500;
}

.history-item-result {
  font-size: 0.8125rem;
  font-weight: 600;
}

.history-item-result.won {
  color: var(--green-primary);
}

.history-item-result.lost {
  color: var(--text-secondary);
}

/* ============================================
   HISTÓRICO DE SAQUES
   ============================================ */

#withdrawHistoryBtn {
  margin-top: 10px;
}

.withdraw-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-secondary);
}

.withdraw-empty p {
  margin: 12px 0 16px;
  font-size: 0.875rem;
}

.withdraw-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.withdraw-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.withdraw-item-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.pix-logo {
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.pix-logo-lg {
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  margin: 0 auto 12px;
}

.pix-logo-status {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
}

.withdraw-status-modal {
  max-width: 360px;
  padding: 32px 24px 28px;
  text-align: center;
}

.withdraw-status-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.withdraw-status-pix {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #0a0a0a;
  padding: 6px;
  margin-bottom: 4px;
}

.withdraw-status-spinner {
  color: var(--green-primary);
  margin-bottom: 4px;
}

.withdraw-status-spinner-icon.is-spin {
  animation: deposit-spin 0.9s linear infinite;
}

.withdraw-status-check {
  color: var(--green-light);
  margin-bottom: 4px;
}

.withdraw-status-check-icon {
  stroke-width: 2px;
}

.withdraw-status-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.withdraw-status-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-light);
  margin: 0;
}

.withdraw-status-hint {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

.withdraw-status-screen.is-approved .withdraw-status-spinner {
  display: none;
}

.withdraw-item-body {
  flex: 1;
  min-width: 0;
}

.withdraw-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.withdraw-item-amount {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.withdraw-badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.withdraw-badge.is-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.withdraw-badge.is-approved {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--green-light);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
}

.withdraw-badge.is-failed {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.withdraw-item-datetime {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.withdraw-item-sep {
  opacity: 0.5;
}

.withdraw-receipt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: none;
  color: var(--green-primary);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.withdraw-receipt-btn:hover {
  color: var(--green-light);
}

.withdraw-receipt {
  text-align: center;
  padding-top: 8px;
}

.withdraw-receipt-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.withdraw-receipt-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 8px 0;
}

.withdraw-receipt-details {
  margin: 20px 0 16px;
  padding: 16px;
  background: var(--bg-card-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-align: left;
}

.withdraw-receipt-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border-color);
}

.withdraw-receipt-row:last-child {
  border-bottom: none;
}

.withdraw-receipt-row span {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.withdraw-receipt-row strong {
  text-align: right;
  word-break: break-all;
  color: var(--text-primary);
}

.modal-receipt {
  position: relative;
  max-width: 380px;
  padding: 24px 20px 20px;
}

.receipt-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

/* ============================================
   PERFIL
   ============================================ */

.profile-header {
  text-align: center;
  padding: 24px 0;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card-secondary);
  border: 3px solid var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--green-primary);
}

.profile-avatar svg {
  width: 36px;
  height: 36px;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.profile-email {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
}

.profile-stat {
  text-align: center;
  padding: 12px;
  background: var(--bg-card-secondary);
  border-radius: var(--radius-md);
}

.profile-stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--green-primary);
}

.profile-stat-label {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.profile-menu-item:hover {
  background: var(--bg-card-secondary);
}

.profile-menu-item .menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  color: var(--green-primary);
}

.profile-menu-item .menu-icon svg {
  width: 18px;
  height: 18px;
}

.profile-menu-item.danger {
  color: var(--danger);
}

/* ============================================
   INDICAÇÃO — Modal
   ============================================ */

.modal.modal-referral {
  position: relative;
  padding: 0;
  overflow: hidden;
  max-width: 400px;
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
}

.referral-modal-body {
  padding: 0 16px 18px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.referral-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.referral-modal-close:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.referral-hero {
  position: relative;
  text-align: left;
  padding: 20px 44px 16px 18px;
  margin: 0 -16px 14px;
  background: #120f0a;
  border-bottom: none;
  border-left: 4px solid var(--gold-primary);
  overflow: hidden;
}

.referral-hero-influencer {
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.18) 0%, rgba(168, 85, 247, 0.03) 50%, transparent 100%);
  border-bottom-color: rgba(168, 85, 247, 0.12);
}

.referral-hero-influencer .referral-hero-icon {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
}

.referral-inf-card .referral-reward-step.is-bonus {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
}

.referral-inf-card .referral-reward-value.is-green {
  color: #c084fc;
  text-shadow: 0 0 20px rgba(192, 132, 252, 0.3);
}

.referral-hero-glow {
  display: none;
}

.referral-hero-influencer .referral-hero-glow {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
}

.referral-hero-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  background: transparent;
  border: 1px solid var(--gold-primary);
  border-radius: 50%;
  color: var(--gold-primary);
  box-shadow: none;
}

.referral-hero-title {
  position: relative;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.referral-hero-sub {
  position: relative;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.35;
  max-width: none;
  margin: 0;
}

.referral-earnings-highlight {
  position: relative;
  text-align: center;
  padding: 20px 16px;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, rgba(var(--accent-rgb), 0.22) 0%, rgba(var(--accent-rgb), 0.06) 45%, rgba(var(--accent-rgb), 0.02) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.referral-earnings-highlight::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 120px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.referral-earnings-influencer {
  background: linear-gradient(165deg, rgba(168, 85, 247, 0.22) 0%, rgba(168, 85, 247, 0.06) 45%, rgba(168, 85, 247, 0.02) 100%);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.referral-earnings-influencer::before {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
}

.referral-earnings-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.referral-earnings-icon {
  color: var(--green-light);
  filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.4));
}

.referral-earnings-influencer .referral-earnings-icon {
  color: #c084fc;
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.4));
}

.referral-earnings-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-light);
}

.referral-earnings-influencer .referral-earnings-label {
  color: #c084fc;
}

.referral-earnings-value {
  position: relative;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--green-light);
  text-shadow: 0 0 24px rgba(74, 222, 128, 0.35);
}

.referral-earnings-influencer .referral-earnings-value {
  color: #e9d5ff;
  text-shadow: 0 0 24px rgba(192, 132, 252, 0.35);
}

.referral-earnings-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
}

.referral-earnings-notice-influencer {
  border-color: rgba(168, 85, 247, 0.2);
  background: rgba(168, 85, 247, 0.06);
}

.referral-notice-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-secondary);
  opacity: 0.85;
}

.referral-earnings-notice p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-secondary);
  text-align: left;
}

.referral-earnings-notice p strong {
  color: var(--text-primary);
  font-weight: 700;
}

.referral-reward-card {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  margin-bottom: 8px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.referral-reward-step {
  flex: 1;
  text-align: center;
  padding: 4px 2px;
  border-radius: 6px;
}

.referral-reward-step.is-bonus {
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
}

.referral-reward-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.referral-reward-value {
  display: block;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.referral-reward-value.is-green {
  color: var(--green-light);
  text-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.referral-reward-arrow {
  flex-shrink: 0;
  color: var(--text-secondary);
  opacity: 0.6;
  display: flex;
  align-items: center;
}

.referral-reward-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.625rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-align: center;
}

.referral-hint-icon {
  color: var(--warning);
  flex-shrink: 0;
}

.referral-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.referral-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.referral-stat {
  text-align: center;
  padding: 12px 8px 10px;
  background: var(--bg-card-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.referral-stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
}

.referral-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-primary);
}

.referral-stat-icon.is-gold {
  color: var(--warning);
}

.referral-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.referral-stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.2;
}

.referral-share-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.referral-link-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.referral-link-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  background: var(--bg-card-secondary);
  border: 1px dashed rgba(var(--accent-rgb), 0.3);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
}

.referral-link-field:focus-within {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.referral-link-icon {
  flex-shrink: 0;
  color: var(--green-primary);
  opacity: 0.7;
}

.referral-link-input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.6875rem;
  font-family: inherit;
  color: var(--text-primary);
}

.referral-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
  min-height: 38px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-strong));
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.referral-copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.4);
}

.referral-copy-btn:active {
  transform: translateY(0);
}

.referral-copy-btn.is-copied {
  background: linear-gradient(135deg, var(--gold-strong), var(--gold-deep));
}

.referral-share-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--text-secondary);
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: var(--radius-sm);
}

.referral-share-notice-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--green-primary);
  opacity: 0.85;
}

.referral-error {
  text-align: center;
  padding: 32px 0;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */

.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--green-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   CONFIGURAÇÕES
   ============================================ */

.settings-profile {
  text-align: center;
  padding: 32px 16px 24px;
}

.settings-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-strong));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-green);
}

.settings-name {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.settings-phone {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.settings-actions {
  padding: 0 4px;
}

.settings-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.settings-action-btn:hover {
  border-color: var(--green-primary);
}

.settings-action-icon {
  display: flex;
  color: var(--green-primary);
}

.settings-action-arrow {
  margin-left: auto;
  display: flex;
  color: var(--text-secondary);
}

/* ============================================
   SUPORTE — CHAT
   ============================================ */

.page-screen-chat {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  overflow: hidden;
}

.page-screen-chat .page-header {
  flex-shrink: 0;
}

.support-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.support-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
  flex-shrink: 0;
}

.support-agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-strong));
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-agent-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.support-agent-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.support-agent-status {
  font-size: 0.75rem;
  color: var(--green-light);
}

.support-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.support-welcome,
.support-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 40px 16px;
  margin: auto;
}

.support-welcome p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.support-welcome span {
  font-size: 0.8125rem;
}

.support-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.support-bubble-wrap.is-user {
  align-self: flex-end;
  align-items: flex-end;
}

.support-bubble-wrap.is-admin {
  align-self: flex-start;
  align-items: flex-start;
}

.support-sender {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  padding: 0 4px;
}

.support-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  line-height: 1.45;
  word-break: break-word;
}

.support-bubble-wrap.is-user .support-bubble {
  background: linear-gradient(135deg, var(--green-primary), var(--green-strong));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.support-bubble-wrap.is-admin .support-bubble {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
}

.support-time {
  font-size: 0.625rem;
  color: var(--text-secondary);
  margin-top: 4px;
  padding: 0 4px;
}

.support-typing {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  align-items: flex-start;
  max-width: 85%;
}

.support-typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: 4px;
}

.support-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: supportTyping 1.2s ease-in-out infinite;
}

.support-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.support-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes supportTyping {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.support-input-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 410;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-color);
  background: rgba(25, 28, 31, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.support-input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 0.9375rem;
  line-height: normal;
  outline: none;
  box-sizing: border-box;
  margin: 0;
}

.support-input:focus {
  border-color: var(--green-primary);
}

.support-send-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--green-primary), var(--green-strong));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.support-send-btn svg {
  width: 20px;
  height: 20px;
}

.support-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (min-width: 1024px) {
  .support-messages {
    padding-bottom: 84px;
  }
}

/* === PRESENTES NO HEADER === */
.header-gift-btn {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.header-gift-btn:hover {
  border-color: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.header-gift-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a855f7;
}

.header-gift-icon svg {
  width: 18px;
  height: 18px;
}

.header-gift-btn.has-gifts {
  animation: gift-shake 0.6s ease-in-out infinite;
  border-color: #a855f7;
}

.header-gift-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary, #000000);
}

.header-gift-badge.hidden {
  display: none;
}

@keyframes gift-shake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(8deg); }
  60% { transform: rotate(-6deg); }
  80% { transform: rotate(6deg); }
}

.modal-gifts {
  max-width: 420px;
}

.gifts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 50vh;
  overflow-y: auto;
}

.gift-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-elevated, rgba(255,255,255,0.04));
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
}

.gift-item-emoji {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.gift-item-body {
  flex: 1;
  min-width: 0;
}

.gift-item-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.gift-item-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.gift-coupon-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color, rgba(255,255,255,0.08));
}

.gift-coupon-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.gift-coupon-row input {
  flex: 1;
}

.gifts-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-secondary);
}

.gifts-free-plays {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  font-size: 0.875rem;
  color: var(--green-primary, var(--gold-primary));
}

/* ── Rollover ── */
.rollover-box {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.rollover-box-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rollover-box-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.rollover-box-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  flex-shrink: 0;
}

.rollover-box-icon svg {
  width: 18px;
  height: 18px;
}

.rollover-box-head strong,
.rollover-box-done strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.rollover-box-head p,
.rollover-box-done p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.rollover-box-done {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.rollover-box-done .rollover-box-icon {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--green-primary, var(--gold-primary));
}

.rollover-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.rollover-stats > div {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.rollover-stats span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.rollover-stats strong {
  font-size: 0.88rem;
}

.rollover-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rollover-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.rollover-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.rollover-progress-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #eab308, var(--gold-primary));
  transition: width 0.3s ease;
}

.wallet-rollover-mini {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.wallet-rollover-mini-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #eab308;
  margin-bottom: 6px;
}

.wallet-rollover-mini-text svg {
  width: 14px;
  height: 14px;
}

.rollover-block-modal {
  max-width: 420px;
}

.rollover-block-content {
  text-align: center;
}

.rollover-block-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

.rollover-block-icon svg {
  width: 28px;
  height: 28px;
}

.rollover-block-content h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.rollover-block-lead {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.rollover-block-content .rollover-box {
  text-align: left;
  margin-bottom: 12px;
}

.rollover-block-foot {
  margin: 12px 0 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.redeposit-promo-modal {
  max-width: 400px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(var(--accent-rgb), 0.12);
}

.redeposit-promo-content {
  position: relative;
  padding: 28px 22px 22px;
  text-align: center;
}

.redeposit-promo-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 220px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.redeposit-promo-icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.25), rgba(234, 179, 8, 0.15));
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  color: var(--gold-light);
}

.redeposit-promo-highlight {
  position: relative;
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fef08a;
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.2), rgba(var(--accent-rgb), 0.15));
  border: 1px solid rgba(250, 204, 21, 0.35);
}

.redeposit-promo-title {
  position: relative;
  font-size: 1.375rem;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.25;
}

.redeposit-promo-lead {
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0 0 18px;
}

.redeposit-promo-bonus {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  margin-bottom: 20px;
}

.redeposit-promo-bonus-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--primary);
}

.redeposit-promo-bonus-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.redeposit-promo-bonus-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  font-weight: 700;
}

.redeposit-promo-bonus-text strong {
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.redeposit-promo-coupon-code {
  color: var(--gold-primary);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.redeposit-promo-bonus-value {
  color: var(--gold-primary);
  font-weight: 800;
}

.redeposit-promo-bonus {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.12);
}

.redeposit-promo-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.redeposit-promo-deposit {
  font-weight: 700;
  min-height: 48px;
}

.redeposit-promo-reject {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #f87171;
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 44px;
  cursor: pointer;
  border-radius: var(--radius, 10px);
  transition: background 0.2s, color 0.2s;
}

.redeposit-promo-reject:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

#withdrawCpfGroup.hidden {
  display: none;
}

/* ========== Mobile — header, ganhadores, layout ========== */
@media (max-width: 768px) {
  :root {
    --header-height: 58px;
  }

  .header-inner {
    padding: 0 10px;
    gap: 6px;
    overflow: visible;
  }

  .logo {
    max-width: 40%;
  }

  .logo-img {
    height: 36px;
  }

  .header-user-actions,
  .header-guest-actions {
    gap: 6px;
  }

  .header-icon-btn {
    width: 36px;
    height: 36px;
  }

  .header-icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .wallet-pill {
    padding: 4px 4px 4px 10px;
  }

  .wallet-main {
    gap: 8px;
    padding-right: 8px;
  }

  .wallet-main .wallet-icon svg {
    width: 20px;
    height: 20px;
  }

  .wallet-label {
    font-size: 0.5625rem;
  }

  .wallet-balance {
    font-size: 0.8125rem;
  }

  .wallet-add-btn {
    width: 30px;
    height: 30px;
  }

  .wallet-add-btn svg {
    width: 16px;
    height: 16px;
  }

  .wallet-dropdown {
    left: 50%;
    right: auto;
    min-width: 0;
    width: min(320px, calc(100vw - 20px));
    transform: translateX(-50%) translateY(-8px);
  }

  .wallet-dropdown.active {
    transform: translateX(-50%) translateY(0);
  }

  .winners-label {
    font-size: 0.625rem;
  }

  .winner-card {
    font-size: 0.75rem;
    min-height: 44px;
    padding: 6px 12px 6px 6px;
  }
}

@media (max-width: 480px) {
  .rollover-stats {
    grid-template-columns: 1fr;
  }
}

.referral-commission-sub {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
}

.referral-commission-form {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.referral-commission-form.hidden {
  display: none;
}

.referral-commission-history {
  margin-bottom: 16px;
}

.referral-commission-wd-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.referral-commission-wd-item:last-child {
  border-bottom: none;
}

#withdrawCpfGroup.hidden {
  display: none;
}
