:root {
  --ui-font-main: "Inter", "Segoe UI", Arial, sans-serif;
  --ui-font-accent: "Exo 2", "Inter", "Segoe UI", Arial, sans-serif;
}

/* Utilitária usada no JS (classList toggle) — sem isto, .none não oculta nada. */
.none {
  display: none !important;
}

.app-toast-root {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 4100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  align-items: flex-end;
}

.app-quick-settings {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 2550;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.app-quick-settings-lang {
  position: relative;
}

.app-quick-settings-circle {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: linear-gradient(180deg, rgba(24, 34, 52, 0.95) 0%, rgba(11, 18, 32, 0.92) 100%);
  color: rgba(236, 244, 255, 0.98);
  font-family: var(--ui-font-main);
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.16s ease,
    border-color 0.2s ease,
    background 0.25s ease,
    color 0.2s ease,
    box-shadow 0.25s ease;
}

.app-quick-settings-circle:hover {
  transform: translateY(-2px) scale(1.015);
  border-color: rgba(125, 211, 252, 0.72);
  box-shadow:
    0 14px 30px rgba(2, 10, 24, 0.5),
    0 0 0 1px rgba(125, 211, 252, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.app-quick-settings-circle:active {
  transform: translateY(0) scale(0.985);
}

.app-quick-settings-circle:focus-visible {
  outline: none;
  border-color: rgba(128, 190, 255, 0.95);
  box-shadow:
    0 0 0 2px rgba(77, 156, 255, 0.3),
    0 10px 26px rgba(0, 0, 0, 0.32);
}

.app-quick-settings-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-quick-settings-lang-flag {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background-color: #111827;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.app-quick-settings-lang-pop {
  position: absolute;
  right: calc(100% + 15px);
  bottom: 0;
  transform: translateX(8px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 12px;
  width: 104px;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 10px;
}

.app-quick-settings-lang-pop::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: 14px;
  border-width: 9px 0 9px 9px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}

.app-quick-settings-lang-pop::before {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 16px;
  border-width: 7px 0 7px 7px;
  border-style: solid;
  border-color: transparent transparent transparent #ffffff;
}

.app-quick-settings.is-lang-open .app-quick-settings-lang-pop {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.app-quick-settings-lang-pop-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(215, 229, 255, 0.78);
  margin-bottom: 8px;
  font-weight: 700;
}

.app-quick-settings-lang-options {
  display: grid;
  grid-template-columns: repeat(2, 36px);
  justify-content: center;
  gap: 8px;
  max-height: min(68vh, 340px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.app-quick-settings-lang-option {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-quick-settings-lang-option.is-active {
  border-color: rgba(108, 187, 255, 0.9);
}

.app-quick-settings-mute {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.app-quick-settings-mute svg {
  width: 21px;
  height: 21px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.app-quick-settings-mute.is-muted {
  color: rgba(255, 227, 227, 0.98);
  border-color: rgba(251, 113, 133, 0.85);
  background: linear-gradient(180deg, rgba(142, 33, 55, 0.9) 0%, rgba(93, 18, 38, 0.94) 100%);
  box-shadow:
    0 12px 26px rgba(46, 8, 20, 0.52),
    0 0 0 1px rgba(251, 113, 133, 0.28),
    inset 0 1px 0 rgba(255, 209, 216, 0.22);
}

.app-toast {
  --toast-duration: 4.2s;
  min-width: 260px;
  max-width: min(88vw, 380px);
  padding: 0;
  pointer-events: auto;
  border-radius: 14px;
  font-family: var(--ui-font-main);
  color: #eef3ff;
  background: linear-gradient(145deg, rgba(28, 34, 52, 0.92) 0%, rgba(18, 22, 36, 0.96) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translate3d(16px, -6px, 0) scale(0.96);
  filter: blur(2px);
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.32s ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.app-toast.is-leaving {
  opacity: 0;
  transform: translate3d(12px, -8px, 0) scale(0.97);
  filter: blur(3px);
  transition:
    opacity 0.32s ease,
    transform 0.34s ease,
    filter 0.3s ease;
}

.app-toast__body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px 12px;
}

.app-toast__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  margin-top: 1px;
}

.app-toast__icon-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.app-toast.is-success .app-toast__icon {
  color: #5ee9a8;
  background: rgba(80, 220, 150, 0.14);
  box-shadow: inset 0 0 0 1px rgba(100, 230, 170, 0.22);
}

.app-toast.is-error .app-toast__icon {
  color: #ff8b8b;
  background: rgba(255, 100, 100, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 130, 130, 0.22);
}

.app-toast.is-info .app-toast__icon {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.14);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.28);
}

.app-toast__msg {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(243, 247, 255, 0.96);
}

.app-toast__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(235, 241, 255, 0.72);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  margin: -2px -2px 0 0;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app-toast__close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.app-toast__close:focus-visible {
  outline: 2px solid rgba(120, 192, 255, 0.92);
  outline-offset: 1px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.app-toast__close:active {
  transform: scale(0.96);
}

.app-toast__track {
  height: 3px;
  margin: 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 0 13px 13px;
  overflow: hidden;
}

.app-toast__bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(1);
  border-radius: 0 2px 2px 0;
  animation: app-toast-progress var(--toast-duration) linear forwards;
}

.app-toast.is-success .app-toast__bar {
  background: linear-gradient(90deg, #3ecf8e, #5ee9a8);
  box-shadow: 0 0 12px rgba(80, 220, 150, 0.45);
}

.app-toast.is-error .app-toast__bar {
  background: linear-gradient(90deg, #ff6b6b, #ff9c9c);
  box-shadow: 0 0 12px rgba(255, 100, 100, 0.35);
}

.app-toast.is-info .app-toast__bar {
  background: linear-gradient(90deg, #38bdf8, #7dd3fc);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.app-toast.is-info {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 18px 40px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(56, 189, 248, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.app-toast.is-success {
  border-color: rgba(80, 200, 150, 0.28);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 18px 40px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(70, 200, 140, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.app-toast.is-error {
  border-color: rgba(255, 120, 120, 0.32);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 100, 100, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@keyframes app-toast-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-toast {
    filter: none;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.2s ease;
  }

  .app-toast.is-visible {
    transform: none;
  }

  .app-toast.is-leaving {
    transform: none;
    filter: none;
  }

  .app-toast__bar {
    animation: none;
    opacity: 0.5;
  }
}

.bet-shell-wrapper {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: max-content;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  user-select: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, transform 220ms ease, visibility 0ms linear 0ms;
}

.bet-shell-wrapper.shell-modal-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 0ms linear 220ms;
}

.bet-shell-wrapper.guest-mode {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
}

.bet-shell-wrapper.auth-mode {
  top: auto;
  bottom: 18px;
  transform: translateX(-50%);
}

.bet-shell-wrapper.guest-mode.shell-modal-hidden {
  transform: translate(-50%, calc(-50% + 8px));
}

/* Perfil logado — canto superior direito */
.user-profile-root {
  position: fixed;
  top: 14px;
  left: 14px;
  right: auto;
  z-index: 2600;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0ms linear 0ms;
}

.user-profile-root.profile-modal-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0ms linear 220ms;
}

.user-profile-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.avatar-modal-root .auth-modal {
  max-width: 360px;
}

.avatar-modal-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.avatar-modal-preview-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 0 4px;
}

.avatar-modal-avatar {
  width: 72px;
  height: 72px;
  font-size: 20px;
}

.avatar-modal-helper {
  margin: 0;
  font-family: var(--ui-font-main);
  font-size: 11px;
  line-height: 1.4;
  color: rgba(223, 230, 255, 0.8);
  text-align: center;
}

.avatar-modal-actions {
  display: flex;
  gap: 8px;
}

.avatar-btn-primary,
.avatar-btn-secondary {
  flex: 1;
  border-radius: 999px;
  padding: 8px 10px;
  font-family: var(--ui-font-main);
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.avatar-btn-primary {
  color: #0b1120;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.8),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

.avatar-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 16px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 1);
}

.avatar-btn-secondary {
  color: rgba(226, 232, 255, 0.95);
  background: rgba(15, 23, 42, 0.85);
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.5),
    0 4px 10px rgba(15, 23, 42, 0.8);
}

.avatar-btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 16px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(148, 163, 184, 0.7);
}

.profile-edit-modal-root .auth-modal,
.change-password-modal-root .auth-modal {
  max-width: 440px;
}

.auth-doc-foreign-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 2px;
}

.auth-doc-foreign-switch-label {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(226, 232, 255, 0.88);
  cursor: pointer;
}

.auth-register-doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.auth-register-doc-head .auth-label {
  margin-bottom: 0;
}

.auth-register-doc-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.auth-foreign-switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.auth-foreign-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.auth-foreign-switch-slider {
  position: absolute;
  inset: 0;
  background: rgba(51, 65, 85, 0.9);
  border-radius: 999px;
  transition: background 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
}

.auth-foreign-switch-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #f8fafc;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.auth-foreign-switch input:checked + .auth-foreign-switch-slider {
  background: rgba(34, 197, 94, 0.85);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.5);
}

.auth-foreign-switch input:checked + .auth-foreign-switch-slider::before {
  transform: translateX(20px);
}

.auth-foreign-switch input:focus-visible + .auth-foreign-switch-slider {
  outline: 2px solid rgba(56, 189, 248, 0.85);
  outline-offset: 2px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2px;
}

.profile-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 2px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-avatar-block {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.profile-avatar-block:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.72);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.5);
}

.profile-avatar {
  width: 52px;
  height: 52px;
  font-size: 18px;
}

.profile-top-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.profile-top-email {
  font-family: var(--ui-font-main);
  font-size: 13px;
  font-weight: 700;
  color: #d5e6ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-remove-photo-btn {
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--ui-font-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(248, 113, 113, 0.58);
  color: #ffd9d9;
  background: linear-gradient(135deg, #8b1f2d 0%, #dc2626 100%);
  box-shadow:
    0 8px 18px rgba(185, 28, 28, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.profile-remove-photo-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.profile-edit-wrap {
  position: relative;
}

.profile-edit-wrap .auth-input {
  padding-right: 84px;
}

.profile-phone-wrap {
  position: relative;
  padding-right: 0;
}

.profile-phone-wrap .profile-phone-combo {
  width: 100%;
}

.profile-phone-wrap .auth-phone-input {
  padding-right: 84px;
}

.profile-birth-wrap {
  position: relative;
}

.profile-birth-wrap .profile-birth-row {
  padding-right: 0;
}

.profile-edit-inline-btn {
  min-width: 58px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.75);
  color: #d9e6ff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-edit-wrap .profile-edit-inline-btn,
.profile-phone-wrap .profile-edit-inline-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.profile-phone-wrap .profile-phone-combo .country-menu {
  z-index: 8;
}

.profile-edit-inline-btn.is-active {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.profile-edit-inline-btn.is-save {
  border-color: rgba(34, 197, 94, 0.8);
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #f0fff4;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.24);
}

.profile-edit-inline-btn:hover {
  filter: brightness(1.06);
}

.profile-birth-row {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr 1fr;
  gap: 10px;
}

@media (max-width: 560px) {
  .profile-name-row {
    grid-template-columns: 1fr;
  }

  .deposit-name-row {
    grid-template-columns: 1fr;
  }

  .withdraw-key-row {
    grid-template-columns: 1fr;
  }
}

.profile-select {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 10px;
  border: 1px solid rgba(120, 164, 225, 0.4);
  background-color: rgba(10, 19, 35, 0.92);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25l5-5' stroke='%23d6e6ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-position:
    center,
    calc(100% - 12px) 50%;
  background-size:
    100% 100%,
    12px 8px;
  background-repeat: no-repeat;
  padding-right: 30px;
  color: #e7f0ff;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.profile-select:hover {
  border-color: rgba(140, 200, 255, 0.58);
  background-color: rgba(13, 24, 44, 0.95);
}

.profile-select:focus {
  border-color: rgba(78, 187, 255, 0.95);
  box-shadow:
    0 0 0 2px rgba(58, 187, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  outline: none;
}

.profile-select option {
  background: #0f172a;
  color: #e5eefc;
}

.profile-faux-select {
  position: relative;
}

.profile-faux-select-trigger {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(120, 164, 225, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(10, 19, 35, 0.92);
  color: #e7f0ff;
  font-family: var(--ui-font-main);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 0 32px 0 10px;
  position: relative;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.profile-faux-select-trigger::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 10px;
  height: 6px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-size: 10px 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23d6e6ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  opacity: 0.95;
}

.profile-faux-select-trigger:hover {
  border-color: rgba(140, 200, 255, 0.58);
  background-color: rgba(13, 24, 44, 0.95);
}

.profile-faux-select-trigger:focus {
  outline: none;
  border-color: rgba(78, 187, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(58, 187, 255, 0.2);
}

.profile-faux-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 12;
  max-height: 180px;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid rgba(120, 164, 225, 0.35);
  background: rgba(9, 16, 30, 0.98);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 164, 225, 0.45) rgba(17, 27, 45, 0.7);
}

.profile-faux-select-menu.none {
  display: none;
}

.profile-faux-select-menu::-webkit-scrollbar {
  width: 6px;
}

.profile-faux-select-menu::-webkit-scrollbar-track {
  margin: 4px 0;
  background: rgba(17, 27, 45, 0.7);
  border-radius: 999px;
}

.profile-faux-select-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(140, 200, 255, 0.65), rgba(88, 157, 255, 0.55));
}

.profile-faux-select-menu::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(160, 214, 255, 0.78), rgba(110, 178, 255, 0.68));
}

.profile-faux-select-option {
  width: 100%;
  border: none;
  background: transparent;
  color: #e9f2ff;
  font-family: var(--ui-font-main);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  height: 32px;
  border-radius: 8px;
  padding: 0 8px;
  cursor: pointer;
}

.profile-faux-select-option:hover {
  background: rgba(88, 157, 255, 0.18);
}

.auth-input.is-locked,
.profile-select.is-locked {
  opacity: 0.72;
  cursor: default;
  filter: grayscale(0.05);
}

.profile-form-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.profile-password-btn {
  border-radius: 999px;
  padding: 9px 12px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.78);
  color: rgba(226, 232, 255, 0.95);
  font-family: var(--ui-font-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.profile-password-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(180, 195, 214, 0.8);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.85);
}

/* Histórico — modal premium (alinhada às modais win/lose) */
.history-modal-root {
  z-index: 3220;
  font-family: var(--ui-font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.history-modal-root .history-modal-backdrop {
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(99, 150, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(56, 189, 248, 0.14), transparent 50%),
    rgba(4, 8, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.history-modal-root .auth-modal.history-modal {
  width: min(94vw, 440px);
  max-width: 440px;
  min-height: unset;
  border-radius: 22px;
  border: 1px solid rgba(129, 170, 255, 0.38);
  background: linear-gradient(165deg, rgba(18, 26, 48, 0.98) 0%, rgba(10, 14, 28, 0.99) 52%, rgba(6, 10, 20, 1) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 24px 64px rgba(0, 0, 0, 0.58),
    0 0 88px rgba(59, 130, 246, 0.2);
  padding: 22px 20px 18px;
  position: relative;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(0.96);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.28s ease;
}

/* Detalhes do depósito abertos: minimizar o histórico (mesma ideia que saque + taxa PIX) */
.history-modal-root.open.is-minimized-for-deposit-detail .history-modal-backdrop {
  opacity: 0.42;
  transition: opacity 0.22s ease;
}

.history-modal-root.open.is-minimized-for-deposit-detail .auth-modal.history-modal {
  transform: translate(-50%, calc(-50% + 11vh)) scale(0.86);
  opacity: 0.22;
  filter: blur(2px);
  pointer-events: none;
}

.history-modal-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 115% 55% at 50% -25%, rgba(96, 165, 250, 0.32), transparent 62%),
    radial-gradient(ellipse 70% 45% at 95% 105%, rgba(34, 211, 238, 0.14), transparent 58%);
  opacity: 0.95;
}

.history-modal-inner {
  position: relative;
  z-index: 2;
}

.history-modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(148, 187, 255, 0.38);
  background: rgba(15, 30, 58, 0.72);
  color: #c7dbff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.history-modal-close:hover {
  background: rgba(59, 130, 246, 0.4);
  border-color: rgba(186, 210, 255, 0.55);
  color: #fff;
  transform: scale(1.06);
}

.history-modal-chip {
  display: table;
  margin: 0 auto 10px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--ui-font-main);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dbeafe;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.55), rgba(34, 211, 238, 0.48));
  border: 1px solid rgba(147, 197, 253, 0.55);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.32);
}

.history-modal-title {
  margin: 0 0 6px;
  font-family: var(--ui-font-main);
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  color: #f0f7ff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  border: none;
  padding: 0 36px;
}

.history-modal-lead {
  margin: 0 0 16px;
  text-align: center;
  font-family: var(--ui-font-main);
  font-size: 0.88rem;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(199, 219, 252, 0.88);
}

.history-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(6, 12, 28, 0.88);
  border: 1px solid rgba(99, 140, 220, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.history-tab {
  flex: 1;
  min-height: 42px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: rgba(186, 204, 236, 0.72);
  font-family: var(--ui-font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background 0.22s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

.history-tab:hover {
  color: #f1f6ff;
  background: rgba(59, 130, 246, 0.14);
}

.history-tab.is-active {
  color: #0f172a;
  background: linear-gradient(180deg, #bfdbfe 0%, #60a5fa 42%, #2563eb 100%);
  box-shadow:
    0 2px 0 rgba(29, 78, 216, 0.48),
    0 8px 22px rgba(37, 99, 235, 0.38);
}

.history-tab:active {
  transform: scale(0.98);
}

.history-panels {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  border-radius: 16px;
  border: 1px solid rgba(99, 140, 220, 0.22);
  background: rgba(4, 9, 20, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-height: min(52vh, 400px);
  max-height: min(52vh, 400px);
  overflow: hidden;
  padding: 12px 10px;
  isolation: isolate;
}

.history-panel {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  align-self: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.45) transparent;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  pointer-events: none;
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.28s;
}

.history-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 1;
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .history-panel {
    transform: none;
    transition: opacity 0.15s ease, visibility 0s linear 0.15s;
  }
  .history-panel.is-active {
    transition: opacity 0.15s ease, visibility 0s;
  }

  .history-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .history-empty-state__visual,
  .history-empty-state__visual::before,
  .history-empty-state__visual::after {
    animation: none !important;
  }

  .history-empty-state__visual {
    transform: none;
  }
}

.history-empty-state {
  min-height: min(48vh, 340px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 16px;
  text-align: center;
}

.history-empty-state__visual {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(129, 180, 255, 0.5);
  background:
    radial-gradient(circle at 50% 40%, rgba(96, 165, 250, 0.32), rgba(15, 30, 58, 0.35) 62%, rgba(8, 14, 28, 0.25) 100%),
    linear-gradient(150deg, rgba(30, 58, 110, 0.55), rgba(12, 22, 44, 0.88));
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    inset 0 0 28px rgba(59, 130, 246, 0.22);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  animation:
    historyEmptyOrbFloat 2.75s ease-in-out infinite,
    historyEmptyOrbGlow 3.4s ease-in-out infinite;
}

/* Claridade que “viaja” por dentro do orbe */
.history-empty-state__visual::before {
  content: "";
  position: absolute;
  inset: -55%;
  border-radius: 50%;
  background: conic-gradient(
    from 210deg,
    transparent 0deg,
    rgba(147, 197, 253, 0) 55deg,
    rgba(186, 230, 253, 0.38) 120deg,
    rgba(56, 189, 248, 0.12) 200deg,
    transparent 280deg,
    transparent 360deg
  );
  animation: historyEmptyInnerSpin 7s linear infinite;
  opacity: 0.92;
}

/* Anel externo + ripple suave */
.history-empty-state__visual::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(147, 197, 253, 0.35);
  box-shadow: 0 0 0 0 rgba(96, 165, 250, 0);
  animation: historyRingBreath 2.2s ease-in-out infinite;
  pointer-events: none;
}

.history-empty-state__text {
  margin: 0;
  max-width: 240px;
  font-family: var(--ui-font-main);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(214, 228, 255, 0.88);
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 2px 2px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-card {
  position: relative;
  list-style: none;
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(120, 164, 225, 0.2);
  background: linear-gradient(148deg, rgba(22, 34, 62, 0.82) 0%, rgba(12, 20, 40, 0.92) 100%);
  padding: 0;
  overflow: hidden;
  opacity: 0;
  animation: historyCardEnter 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.history-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(180deg, #60a5fa, #22d3ee);
  opacity: 0.9;
}

.history-card--withdraw::before {
  background: linear-gradient(180deg, #fbbf24, #ea580c);
}

.history-card--bet::before {
  background: linear-gradient(180deg, #a78bfa, #6366f1);
}

.history-card:hover {
  transform: translateY(-3px);
  border-color: rgba(147, 197, 253, 0.42);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.history-card__shine {
  position: absolute;
  inset: 0;
  left: -60%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.07) 48%, transparent 62%);
  opacity: 0;
  transition: left 0.6s ease, opacity 0.3s ease;
  pointer-events: none;
}

.history-card:hover .history-card__shine {
  left: 100%;
  opacity: 1;
}

.history-card__body {
  position: relative;
  z-index: 1;
  padding: 12px 14px 12px 16px;
}

.history-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.history-card__time {
  font-size: 10px;
  font-weight: 700;
  color: rgba(186, 204, 236, 0.62);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.history-card__amount {
  font-family: var(--ui-font-main);
  font-size: 1.12rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #e0f2fe;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.history-card__ref {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.35;
  color: rgba(156, 182, 220, 0.58);
  word-break: break-all;
}

.history-card__ref-label {
  font-weight: 700;
  color: rgba(186, 204, 236, 0.45);
  margin-right: 4px;
}

.history-card__meta-line {
  margin-top: 8px;
  font-family: var(--ui-font-main);
  font-size: 11px;
  line-height: 1.35;
  color: rgba(165, 190, 226, 0.82);
}

.history-card__meta-line--approved {
  color: rgba(167, 243, 208, 0.9);
}

.history-card__meta-label {
  font-weight: 700;
  color: rgba(209, 250, 229, 0.75);
}

.history-card__bet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(186, 204, 236, 0.78);
}

.history-card__bet-meta strong {
  font-weight: 800;
  color: #dbeafe;
}

.history-card__actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(120, 164, 225, 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-withdraw-cancel {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 210, 220, 1);
  background: linear-gradient(180deg, #ffb3c9 0%, #ff8fb0 35%, #ff7099 72%, #ff5c88 100%);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(180, 30, 70, 0.35);
  font-family: var(--ui-font-main);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.38) inset,
    0 4px 20px rgba(255, 100, 140, 0.55),
    0 0 36px rgba(255, 130, 160, 0.45);
  transition: transform 0.15s ease, border-color 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.history-withdraw-cancel:hover:not(:disabled) {
  filter: brightness(1.05);
  border-color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.48) inset,
    0 6px 28px rgba(255, 100, 140, 0.65),
    0 0 48px rgba(255, 150, 180, 0.5);
  transform: translateY(-1px);
}

.history-withdraw-cancel:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.history-withdraw-cancel:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.history-withdraw-reason {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.55) 0%, rgba(15, 23, 42, 0.85) 100%);
  color: #bfdbfe;
  font-family: var(--ui-font-main);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.history-withdraw-reason:hover {
  filter: brightness(1.08);
  border-color: rgba(147, 197, 253, 0.65);
  transform: translateY(-1px);
}

.history-withdraw-reason:active {
  transform: translateY(0) scale(0.99);
}

.history-deposit-resume {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.55);
  background: linear-gradient(180deg, #10b981 0%, #059669 45%, #047857 100%);
  color: #ecfdf5;
  font-family: var(--ui-font-main);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 4px 18px rgba(16, 185, 129, 0.45);
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.history-deposit-resume:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.history-deposit-resume:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.history-deposit-resume:disabled,
.history-deposit-detail:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.history-deposit-detail {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.55) 0%, rgba(15, 23, 42, 0.85) 100%);
  color: #bfdbfe;
  font-family: var(--ui-font-main);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.history-deposit-detail:hover:not(:disabled) {
  filter: brightness(1.08);
  border-color: rgba(147, 197, 253, 0.65);
  transform: translateY(-1px);
}

.history-deposit-detail:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

/* Detalhes do depósito (sobre o histórico) */
.deposit-detail-popover-root {
  position: fixed;
  inset: 0;
  z-index: 3340;
  pointer-events: none;
  font-family: var(--ui-font-main);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
}

.deposit-detail-popover-root.visible {
  visibility: visible;
  pointer-events: auto;
}

.deposit-detail-popover-root.open {
  opacity: 1;
}

.deposit-detail-popover-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.deposit-detail-popover-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 400px);
  max-height: min(78vh, 420px);
  overflow: auto;
  padding: 18px 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(129, 170, 255, 0.42);
  background: linear-gradient(165deg, rgba(18, 26, 48, 0.98) 0%, rgba(8, 12, 24, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 20px 48px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -48%) scale(0.94);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.deposit-detail-popover-root.open .deposit-detail-popover-panel {
  transform: translate(-50%, -50%) scale(1);
}

.deposit-detail-popover-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(148, 187, 255, 0.35);
  background: rgba(15, 30, 58, 0.72);
  color: #c7dbff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.deposit-detail-popover-close:hover {
  background: rgba(59, 130, 246, 0.4);
  color: #fff;
}

.deposit-detail-popover-title {
  margin: 0 32px 12px 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f0f7ff;
  letter-spacing: -0.02em;
}

.deposit-detail-popover-body {
  margin: 0;
}

.deposit-detail-pill {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.deposit-detail-pill--ok {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
}

.deposit-detail-pill--bad {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.deposit-detail-pill--pending {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(253, 224, 71, 0.4);
  color: #fef08a;
}

.deposit-detail-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deposit-detail-dl > div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 8px 10px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(214, 226, 248, 0.92);
}

.deposit-detail-dl dt {
  margin: 0;
  font-weight: 700;
  color: rgba(186, 204, 236, 0.72);
}

.deposit-detail-dl dd {
  margin: 0;
  word-break: break-word;
}

/* Mini-modal: motivo de recusa (acima do histórico) */
.withdraw-reason-popover-root {
  position: fixed;
  inset: 0;
  z-index: 3330;
  pointer-events: none;
  font-family: var(--ui-font-main);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
}

.withdraw-reason-popover-root.visible {
  visibility: visible;
  pointer-events: auto;
}

.withdraw-reason-popover-root.open {
  opacity: 1;
}

.withdraw-reason-popover-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.withdraw-reason-popover-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 360px);
  max-height: min(72vh, 320px);
  overflow: auto;
  padding: 18px 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(129, 170, 255, 0.42);
  background: linear-gradient(165deg, rgba(18, 26, 48, 0.98) 0%, rgba(8, 12, 24, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 20px 48px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -48%) scale(0.94);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.withdraw-reason-popover-root.open .withdraw-reason-popover-panel {
  transform: translate(-50%, -50%) scale(1);
}

.withdraw-reason-popover-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(148, 187, 255, 0.35);
  background: rgba(15, 30, 58, 0.72);
  color: #c7dbff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.withdraw-reason-popover-close:hover {
  background: rgba(59, 130, 246, 0.4);
  color: #fff;
}

.withdraw-reason-popover-title {
  margin: 0 32px 10px 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f0f7ff;
  letter-spacing: -0.02em;
}

.withdraw-reason-popover-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(214, 226, 248, 0.92);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Confirmação de cancelamento de saque (acima do histórico e do motivo) */
.withdraw-cancel-confirm-root {
  z-index: 3350;
}

.withdraw-cancel-confirm-root .auth-modal-backdrop {
  background: rgba(4, 8, 18, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.withdraw-cancel-confirm-modal.auth-modal {
  width: min(92vw, 380px);
  padding: 22px 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 170, 195, 0.95);
  background: linear-gradient(
    165deg,
    rgba(92, 36, 58, 0.94) 0%,
    rgba(62, 26, 44, 0.96) 42%,
    rgba(44, 20, 36, 0.97) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 160, 190, 0.22) inset,
    0 24px 56px rgba(0, 0, 0, 0.45),
    0 0 72px rgba(255, 100, 140, 0.42);
}

.withdraw-cancel-confirm-title {
  text-align: center;
  margin-bottom: 10px;
  padding-right: 0;
  color: #ffffff;
  text-shadow:
    0 0 28px rgba(255, 140, 170, 0.55),
    0 1px 2px rgba(80, 20, 40, 0.35);
}

.withdraw-cancel-confirm-lead {
  margin: 0;
  text-align: center;
  font-family: var(--ui-font-main);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 235, 242, 0.95);
}

.withdraw-cancel-confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.withdraw-cancel-confirm-btn {
  flex: 1;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  font-family: var(--ui-font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.withdraw-cancel-confirm-btn--ghost {
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
}

.withdraw-cancel-confirm-btn--ghost:hover {
  border-color: rgba(203, 213, 225, 0.65);
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.withdraw-cancel-confirm-btn--danger {
  border: 1px solid rgba(255, 215, 225, 1);
  background: linear-gradient(180deg, #ffb3c9 0%, #ff8fb0 35%, #ff7099 72%, #ff5c88 100%);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(180, 30, 70, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.38) inset,
    0 4px 22px rgba(255, 100, 140, 0.58),
    0 0 40px rgba(255, 140, 170, 0.48);
}

.withdraw-cancel-confirm-btn--danger:hover {
  filter: brightness(1.05);
  border-color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.48) inset,
    0 6px 30px rgba(255, 100, 140, 0.68),
    0 0 52px rgba(255, 160, 190, 0.52);
  transform: translateY(-1px);
}

.withdraw-cancel-confirm-btn:active {
  transform: translateY(0) scale(0.98);
}

.history-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--ui-font-main);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 187, 255, 0.35);
  background: rgba(15, 30, 58, 0.75);
  color: #c7dbff;
}

.history-pill--success {
  color: #064e3b;
  background: linear-gradient(180deg, #6ee7b7, #34d399);
  border-color: rgba(167, 243, 208, 0.55);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.28);
}

.history-pill--danger {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  background: linear-gradient(180deg, #fb7185 0%, #f43f5e 45%, #e11d48 100%);
  border-color: rgba(255, 180, 200, 0.85);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 2px 14px rgba(244, 63, 94, 0.45);
}

.history-pill--pending {
  color: #1e3a5f;
  background: linear-gradient(180deg, #fde68a, #fbbf24);
  border-color: rgba(253, 230, 138, 0.65);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.22);
}

.history-pill--muted {
  color: rgba(226, 236, 255, 0.92);
  background: rgba(51, 65, 85, 0.85);
  border-color: rgba(148, 163, 184, 0.4);
}

@keyframes historyCardEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes historyEmptyOrbFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes historyEmptyOrbGlow {
  0%,
  100% {
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.35),
      inset 0 0 26px rgba(59, 130, 246, 0.18),
      0 0 0 0 rgba(96, 165, 250, 0);
    border-color: rgba(129, 180, 255, 0.45);
  }
  50% {
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.42),
      inset 0 0 38px rgba(59, 130, 246, 0.32),
      0 0 28px rgba(96, 165, 250, 0.28);
    border-color: rgba(167, 200, 255, 0.62);
  }
}

@keyframes historyEmptyInnerSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.03);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes historyRingBreath {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.45;
    border-color: rgba(147, 197, 253, 0.22);
    box-shadow:
      0 0 0 0 rgba(96, 165, 250, 0),
      0 0 0 0 rgba(147, 197, 253, 0);
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
    border-color: rgba(191, 219, 254, 0.55);
    box-shadow:
      0 0 22px 2px rgba(96, 165, 250, 0.28),
      0 0 48px 6px rgba(59, 130, 246, 0.12);
  }
}

.deposit-modal-root .auth-modal {
  max-width: 420px;
}

.deposit-modal-root.deposit-modal-root--stripe .auth-modal.deposit-modal {
  max-height: min(88vh, 660px);
  overflow-y: auto;
}

.deposit-method-step {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 4px 2px 8px;
}

.deposit-method-step-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: rgba(214, 226, 248, 0.95);
}

.deposit-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.deposit-method-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 86px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(120, 164, 225, 0.42);
  background: rgba(10, 18, 33, 0.78);
  color: #e9f2ff;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.deposit-method-btn strong {
  font-size: 14px;
  font-weight: 800;
}

.deposit-method-btn span {
  font-size: 12px;
  color: rgba(186, 204, 236, 0.88);
}

.deposit-method-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 205, 255, 0.62);
  box-shadow: 0 8px 18px rgba(6, 14, 25, 0.45);
  background: rgba(13, 25, 44, 0.86);
}

.deposit-stripe-step {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0 2px 4px;
}

.deposit-stripe-step-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: rgba(214, 226, 248, 0.95);
}

.deposit-stripe-element-wrap {
  border: 1px solid rgba(120, 164, 225, 0.35);
  border-radius: 12px;
  background: rgba(8, 14, 26, 0.55);
  padding: 12px;
}

.deposit-stripe-hint {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(173, 196, 230, 0.82);
}

.deposit-stripe-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deposit-stripe-back-btn {
  background: linear-gradient(180deg, #1c2b44, #101a2e);
  border: 1px solid rgba(120, 164, 225, 0.35);
}

/* PIX: altura ao conteúdo — nunca esticar à altura inteira do ecrã */
.deposit-modal-root.deposit-modal-root--pix .auth-modal.deposit-modal {
  height: auto;
  min-height: 0;
  max-height: min(88vh, 620px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.deposit-modal-root.deposit-modal-root--pix .auth-modal.deposit-modal .auth-modal-title {
  flex-shrink: 0;
}

.deposit-modal-root.deposit-modal-root--pix .auth-modal.deposit-modal .js-deposit-step-form,
.deposit-modal-root.deposit-modal-root--pix .auth-modal.deposit-modal .deposit-pix-step {
  flex: 0 1 auto;
  min-height: 0;
}

.deposit-modal-root.deposit-modal-root--pix .auth-modal {
  max-width: 440px;
}

/* —— Passo PIX: layout simples enquanto aguarda pagamento —— */
.deposit-pix-step {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 0 2px 4px;
  font-family: var(--ui-font-main);
}

.deposit-pix-receipt-paid {
  display: none;
  position: relative;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 -6px 14px;
  padding: 22px 16px 20px;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  border-bottom: 1px solid rgba(52, 211, 153, 0.28);
  background: linear-gradient(
    165deg,
    rgba(6, 78, 59, 0.55) 0%,
    rgba(15, 23, 42, 0.92) 55%,
    rgba(15, 23, 42, 0.98) 100%
  );
}

.deposit-pix-receipt-paid-glow {
  position: absolute;
  right: -20%;
  top: -40%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.35) 0%, transparent 65%);
  pointer-events: none;
}

.deposit-pix-receipt-paid-icon {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  filter: drop-shadow(0 8px 28px rgba(16, 185, 129, 0.45));
}

.deposit-pix-receipt-paid-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.deposit-pix-receipt-paid-kicker {
  position: relative;
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.95);
}

.deposit-pix-receipt-paid-title {
  position: relative;
  margin: 0 0 8px;
  font-family: var(--ui-font-accent);
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #ecfdf5;
  text-shadow: 0 2px 24px rgba(16, 185, 129, 0.25);
}

.deposit-pix-receipt-paid-lead {
  position: relative;
  margin: 0;
  max-width: 28rem;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(204, 251, 241, 0.88);
  -webkit-font-smoothing: antialiased;
}

.deposit-pix-flow-pending {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deposit-pix-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: rgba(214, 226, 248, 0.95);
}

.deposit-pix-hint.deposit-pix-hint--success {
  color: rgba(134, 239, 172, 0.95);
}

.deposit-pix-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(120, 164, 225, 0.35);
  background: rgba(8, 14, 26, 0.55);
}

.deposit-pix-detail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(186, 204, 236, 0.88);
}

.deposit-pix-detail + .deposit-pix-detail {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.deposit-pix-detail-label {
  flex-shrink: 0;
  color: rgba(156, 178, 214, 0.75);
}

.deposit-pix-detail-value {
  text-align: right;
  font-weight: 800;
  color: #f0f6ff;
}

.deposit-pix-detail--mono span:last-child {
  font-size: 10px;
  font-weight: 600;
  word-break: break-all;
  text-align: right;
  color: rgba(200, 214, 240, 0.82);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.deposit-pix-qr-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  padding: 8px 0 4px;
}

.deposit-pix-qr {
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(120, 164, 225, 0.38);
  background: #fff;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.deposit-pix-paid-overlay {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
}

.deposit-pix-paid-blur {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.deposit-pix-paid-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
}

.deposit-pix-paid-check {
  width: 64px;
  height: 64px;
  display: block;
  filter: drop-shadow(0 6px 20px rgba(34, 197, 94, 0.35));
}

.deposit-pix-paid-title {
  font-family: var(--ui-font-main);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(190, 242, 200, 0.98);
}

.deposit-pix-copy-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deposit-pix-emv-label {
  margin-top: 4px;
}

textarea.deposit-pix-emv {
  resize: vertical;
  min-height: 72px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  word-break: break-all;
}

/* —— Só depois do PIX pago: esconde QR/copia/aguardando e mostra recibo + detalhes premium —— */
.deposit-modal-root--pix-paid .deposit-pix-flow-pending {
  display: none !important;
}

.deposit-modal-root--pix-paid .deposit-pix-receipt-paid {
  display: flex;
}

.deposit-modal-root--pix-paid .deposit-pix-waiting {
  display: none !important;
}

.deposit-modal-root--pix-paid.deposit-modal-root--pix .auth-modal.deposit-modal {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(16, 185, 129, 0.14) 0%, transparent 55%),
    linear-gradient(175deg, rgba(10, 26, 22, 0.97) 0%, rgba(8, 12, 22, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 56px rgba(0, 0, 0, 0.55),
    0 0 64px rgba(16, 185, 129, 0.12);
}

.deposit-modal-root--pix-paid .auth-modal-title {
  padding: 0 40px 4px 16px;
  font-family: var(--ui-font-accent);
  color: #ecfdf5;
  text-shadow: 0 1px 18px rgba(16, 185, 129, 0.2);
}

.deposit-modal-root--pix-paid .deposit-pix-details {
  margin: 0 12px 12px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.88) 0%, rgba(6, 24, 18, 0.55) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 12px 32px rgba(0, 0, 0, 0.35);
}

.deposit-modal-root--pix-paid .deposit-pix-details::before {
  content: "Detalhes do pagamento";
  display: block;
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.75);
}

.deposit-modal-root--pix-paid .deposit-pix-detail + .deposit-pix-detail {
  border-top-color: rgba(52, 211, 153, 0.2);
}

.deposit-modal-root--pix-paid .deposit-pix-detail-value {
  color: #f8fafc;
}

.deposit-pix-footer {
  margin-top: 4px;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.deposit-pix-waiting {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(251, 191, 36, 0.95);
  text-align: center;
  letter-spacing: 0.02em;
}

.deposit-pix-waiting--success {
  color: rgba(134, 239, 172, 0.98) !important;
  font-size: 13px;
  font-weight: 800;
}

.deposit-modal-root--pix-paid .deposit-pix-done-btn.auth-submit {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: linear-gradient(165deg, #22c55e 0%, #059669 50%, #0d9488 100%);
  border: 1px solid rgba(52, 211, 153, 0.45);
  box-shadow:
    0 8px 28px rgba(16, 185, 129, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.deposit-modal-root--pix-paid .deposit-pix-done-btn.auth-submit:hover:not(:disabled) {
  filter: brightness(1.05);
}

.deposit-pix-ellipsis span {
  display: inline-block;
  animation: deposit-pix-dot 1.35s ease-in-out infinite;
}

.deposit-pix-ellipsis span:nth-child(1) {
  animation-delay: 0s;
}

.deposit-pix-ellipsis span:nth-child(2) {
  animation-delay: 0.2s;
}

.deposit-pix-ellipsis span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes deposit-pix-dot {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .deposit-pix-ellipsis span {
    animation: none;
    opacity: 0.75;
  }

  .auth-submit.js-deposit-submit.is-loading .deposit-submit-spinner {
    animation: none;
    opacity: 0.9;
  }

  .auth-submit.js-withdraw-submit.is-loading .withdraw-submit-spinner {
    animation: none;
    opacity: 0.9;
  }
}

.withdraw-modal-root .auth-modal {
  max-width: 420px;
}

/* Transição suave ao minimizar quando a modal de taxa PIX abre por cima */
.auth-modal-root.withdraw-modal-root.open .auth-modal.withdraw-modal {
  transition:
    opacity 180ms ease,
    transform 320ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 320ms ease;
}

.auth-modal-root.withdraw-modal-root.open.is-minimized-for-fee .auth-modal.withdraw-modal {
  transform: translate(-50%, calc(-50% + 14vh)) scale(0.86);
  opacity: 0.24;
  filter: blur(2px);
  pointer-events: none;
}

/* KYC aberto: esconde a raiz inteira (backdrop + cartão). Só minimizar o cartão deixava a camada a “prender” cliques/foco. */
.auth-modal-root.withdraw-modal-root.open.is-minimized-for-kyc {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 160ms ease,
    visibility 160ms ease;
}

.auth-modal-root.deposit-modal-root.open .auth-modal.deposit-modal {
  transition:
    opacity 180ms ease,
    transform 320ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 320ms ease;
}

.auth-modal-root.deposit-modal-root.open.is-minimized-for-kyc {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 160ms ease,
    visibility 160ms ease;
}

/* KYC acima da modal de saque (ambas .auth-modal-root z-index 3200; saque é criada depois no DOM). */
.kyc-modal-root {
  z-index: 3240;
}

.withdraw-fee-confirm-root {
  z-index: 3250;
}

/* Especificidade acima de `.auth-modal` (definido mais abaixo no ficheiro). */
.withdraw-fee-confirm-root .auth-modal {
  width: min(92vw, 420px);
  max-width: 420px;
  max-height: min(88vh, 560px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  border-radius: 20px;
  border: 1px solid rgba(94, 168, 255, 0.22);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(56, 189, 248, 0.14) 0%, transparent 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    linear-gradient(165deg, rgba(17, 26, 46, 0.97) 0%, rgba(8, 12, 24, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 56px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(34, 211, 238, 0.08);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.withdraw-fee-confirm-root .auth-modal::before {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #10b981 0%, #06b6d4 45%, #6366f1 100%);
  border-radius: 20px 20px 0 0;
}

.withdraw-fee-confirm-root.is-wfee-loading .auth-modal-backdrop {
  pointer-events: none;
  cursor: wait;
}

.withdraw-fee-banner-wrap {
  margin: 0 0 0;
  border-radius: 0;
  overflow: hidden;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.withdraw-fee-banner-img {
  width: 100%;
  display: block;
  max-height: 148px;
  object-fit: cover;
  vertical-align: middle;
}

.withdraw-fee-head {
  padding: 18px 18px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.withdraw-fee-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 253, 250, 0.98);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(6, 182, 212, 0.35) 100%);
  border: 1px solid rgba(45, 212, 191, 0.45);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.withdraw-fee-title {
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
  font-family: var(--ui-font-accent);
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #f8fafc;
  text-shadow: 0 1px 18px rgba(56, 189, 248, 0.12);
}

.withdraw-fee-summary {
  margin: 12px 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.withdraw-fee-summary-title {
  font-family: var(--ui-font-main), ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  margin: 0 0 10px;
}

.withdraw-fee-summary-dl {
  margin: 0;
  padding: 0;
}

.withdraw-fee-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 38%) 1fr;
  gap: 8px 12px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--ui-font-main), "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.withdraw-fee-summary-row:last-of-type {
  border-bottom: none;
  padding-bottom: 2px;
}

.withdraw-fee-summary-row dt {
  margin: 0;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.98);
}

.withdraw-fee-summary-row dd {
  margin: 0;
  font-weight: 600;
  color: #f1f5f9;
  text-align: right;
  word-break: break-word;
}

.withdraw-fee-summary-hint {
  margin: 10px 0 0;
  font-family: var(--ui-font-main), "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.88);
}

.withdraw-fee-body {
  margin: 0;
  padding: 14px 18px 6px;
  font-family: var(--ui-font-main), "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.68;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(226, 232, 240, 0.92);
  white-space: pre-wrap;
  -webkit-font-smoothing: antialiased;
}

.withdraw-fee-pix-card {
  margin: 14px 18px 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85) 0%, rgba(8, 15, 30, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 8px 28px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.withdraw-fee-pix-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.withdraw-fee-pix-value {
  font-family: var(--ui-font-main), ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.5rem, 5vw, 1.85rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #ecfdf5;
  background: linear-gradient(180deg, #fff 0%, #a5f3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgba(34, 211, 238, 0.25));
}

@supports not (background-clip: text) {
  .withdraw-fee-pix-value {
    color: #e0f2fe;
    filter: none;
  }
}

.withdraw-fee-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 18px 0 16px;
  padding-top: 4px;
}

.withdraw-fee-btn {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  font-family: var(--ui-font-main);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    background 0.18s ease;
}

.withdraw-fee-btn:active:not(:disabled):not(.is-loading) {
  transform: scale(0.98);
}

.withdraw-fee-btn--primary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 95%;
  max-width: 100%;
  box-sizing: border-box;
  color: #fff;
  background: linear-gradient(165deg, #22c55e 0%, #0d9488 48%, #0891b2 100%);
  border: 1px solid rgba(52, 211, 153, 0.45);
  box-shadow:
    0 6px 22px rgba(16, 185, 129, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.withdraw-fee-btn--primary:hover:not(:disabled):not(.is-loading) {
  filter: brightness(1.06);
  box-shadow:
    0 10px 28px rgba(16, 185, 129, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.withdraw-fee-btn--primary.is-loading:disabled {
  opacity: 1;
  cursor: wait;
  filter: none;
}

.withdraw-fee-btn--primary.is-loading .js-wfee-ok-label {
  opacity: 0;
}

.withdraw-fee-btn--primary .withdraw-fee-submit-spinner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  opacity: 0;
  pointer-events: none;
}

.withdraw-fee-btn--primary.is-loading .withdraw-fee-submit-spinner {
  opacity: 1;
  animation: withdraw-fee-submit-spin 0.75s linear infinite;
}

@keyframes withdraw-fee-submit-spin {
  to {
    transform: rotate(360deg);
  }
}

.withdraw-fee-btn:disabled:not(.is-loading) {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .withdraw-fee-btn,
  .withdraw-fee-btn--primary.is-loading .withdraw-fee-submit-spinner {
    transition: none;
    animation: none;
  }
}

.kyc-modal-root .auth-modal-backdrop.kyc-modal-backdrop {
  background: rgba(2, 6, 18, 0.72);
  backdrop-filter: blur(10px);
}

.kyc-modal-root .auth-modal.kyc-modal {
  position: relative;
  width: min(94vw, 420px);
  max-width: 420px;
  max-height: min(90vh, 640px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  border-radius: 22px;
  font-family: var(--ui-font-main), "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  border: 1px solid rgba(94, 168, 255, 0.24);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 55%),
    radial-gradient(90% 55% at 0% 100%, rgba(34, 211, 238, 0.12) 0%, transparent 48%),
    linear-gradient(168deg, rgba(17, 26, 46, 0.98) 0%, rgba(8, 12, 24, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 28px 64px rgba(0, 0, 0, 0.58),
    0 0 88px rgba(56, 189, 248, 0.1);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 175, 235, 0.55) rgba(12, 20, 36, 0.82);
  scrollbar-gutter: stable;
}

.kyc-modal-root .auth-modal.kyc-modal::-webkit-scrollbar {
  width: 7px;
}

.kyc-modal-root .auth-modal.kyc-modal::-webkit-scrollbar-track {
  margin: 14px 0;
  background: rgba(10, 18, 32, 0.92);
  border-radius: 100px;
  border: 1px solid rgba(88, 145, 215, 0.14);
}

.kyc-modal-root .auth-modal.kyc-modal::-webkit-scrollbar-thumb {
  border-radius: 100px;
  background: linear-gradient(180deg, rgba(115, 195, 255, 0.72) 0%, rgba(52, 115, 195, 0.68) 100%);
  box-shadow: 0 0 10px rgba(70, 150, 230, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.kyc-modal-root .auth-modal.kyc-modal::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(135, 210, 255, 0.88) 0%, rgba(65, 135, 215, 0.82) 100%);
}

.kyc-modal-root .auth-modal.kyc-modal::before {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #6366f1 0%, #22d3ee 45%, #a78bfa 100%);
  border-radius: 22px 22px 0 0;
}

.kyc-modal-glow {
  pointer-events: none;
  position: absolute;
  inset: -40% -30% auto;
  height: 55%;
  background: radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.22) 0%, transparent 70%);
  opacity: 0.85;
}

.kyc-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.55);
  color: rgba(226, 232, 240, 0.95);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}

.kyc-modal-close:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(56, 189, 248, 0.35);
}

.kyc-modal-close:active {
  transform: scale(0.94);
}

.kyc-modal-inner {
  position: relative;
  z-index: 1;
  padding: 22px 18px 20px;
  font-family: var(--ui-font-main), "Segoe UI", system-ui, sans-serif;
}

.kyc-modal-head {
  margin-bottom: 16px;
  padding-right: 36px;
}

.kyc-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--ui-font-main), "Segoe UI", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 249, 255, 0.98);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(6, 182, 212, 0.35) 100%);
  border: 1px solid rgba(129, 140, 248, 0.45);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
  margin-bottom: 10px;
}

.kyc-modal-root .kyc-modal-title,
.kyc-modal-root .auth-modal-title.kyc-modal-title {
  margin: 0 0 8px;
  padding: 0;
  border: none;
  font-family: var(--ui-font-accent), "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.12rem, 4vw, 1.32rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #f8fafc;
  text-shadow: 0 1px 20px rgba(56, 189, 248, 0.14);
}

.kyc-modal-lead {
  margin: 0;
  font-family: var(--ui-font-main), "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(203, 213, 225, 0.95);
  white-space: pre-wrap;
}

.kyc-upload-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.kyc-drop-zone {
  position: relative;
  display: grid;
  grid-template-columns: 32px auto minmax(0, 1fr) 26px;
  grid-template-rows: auto auto auto auto;
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
  padding: 12px 12px 12px 10px;
  border-radius: 16px;
  cursor: pointer;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.65) 0%, rgba(8, 15, 30, 0.88) 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.18s ease,
    background 0.2s ease;
}

.kyc-drop-zone:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.12) inset,
    0 8px 28px rgba(0, 0, 0, 0.35);
}

.kyc-drop-zone.is-dragover {
  border-style: solid;
  border-color: rgba(34, 211, 238, 0.65);
  background: linear-gradient(145deg, rgba(30, 58, 138, 0.35) 0%, rgba(15, 23, 42, 0.92) 100%);
  transform: scale(1.01);
}

.kyc-drop-zone.is-ready {
  border-style: solid;
  border-color: rgba(52, 211, 153, 0.45);
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.22) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.kyc-drop-zone__step {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ui-font-accent), "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: rgba(226, 232, 240, 0.95);
  background: rgba(51, 65, 85, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.kyc-drop-zone.is-ready .kyc-drop-zone__step {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.45) 0%, rgba(6, 182, 212, 0.35) 100%);
  border-color: rgba(52, 211, 153, 0.4);
}

.kyc-drop-zone__icon {
  grid-column: 2;
  grid-row: 1;
  color: rgba(56, 189, 248, 0.85);
  line-height: 0;
  align-self: center;
}

.kyc-drop-zone__name {
  grid-column: 3;
  grid-row: 1;
  font-family: var(--ui-font-main), "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.25;
}

.kyc-drop-zone__hint {
  grid-column: 2 / 4;
  grid-row: 2;
  font-family: var(--ui-font-main), "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1.35;
}

.kyc-drop-zone__file {
  grid-column: 2 / 4;
  grid-row: 3;
  margin-top: 2px;
  font-family: var(--ui-font-main), "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(167, 243, 208, 0.95);
  word-break: break-all;
  min-height: 0;
}

/* Faixa fixa: a imagem nunca aumenta a altura do cartão (crop com cover). */
.kyc-drop-zone__preview {
  grid-column: 1 / -1;
  grid-row: 4;
  margin-top: 8px;
  box-sizing: border-box;
  width: 100%;
  height: 56px;
  max-height: 56px;
  min-height: 56px;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 3;
  pointer-events: none;
  flex-shrink: 0;
}

.kyc-drop-zone__preview[src] {
  display: block;
}

.kyc-drop-zone__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.kyc-drop-zone__ok {
  grid-column: 4;
  grid-row: 1 / span 3;
  justify-self: end;
  align-self: center;
  color: rgba(52, 211, 153, 0);
  transition: color 0.2s ease;
  line-height: 0;
}

.kyc-drop-zone.is-ready .kyc-drop-zone__ok {
  color: rgba(52, 211, 153, 0.95);
}

.kyc-submit-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  font-family: var(--ui-font-main), "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(165deg, #22c55e 0%, #0d9488 48%, #0891b2 100%);
  box-shadow:
    0 8px 26px rgba(16, 185, 129, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.kyc-submit-btn:hover:not(:disabled) {
  filter: brightness(1.07);
  box-shadow:
    0 12px 32px rgba(16, 185, 129, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.kyc-submit-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.kyc-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.25);
  box-shadow: none;
}

.kyc-modal-trust {
  margin: 14px 0 0;
  text-align: center;
  font-family: var(--ui-font-main), "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(148, 163, 184, 0.88);
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .kyc-drop-zone,
  .kyc-submit-btn,
  .kyc-modal-close {
    transition: none;
  }

  .kyc-drop-zone.is-dragover {
    transform: none;
  }

  .auth-modal-root.withdraw-modal-root.open.is-minimized-for-kyc,
  .auth-modal-root.deposit-modal-root.open.is-minimized-for-kyc {
    transition: none;
  }
}

/* O X fica antes dos painéis no DOM; o hero (margem negativa) cobria o canto — precisa ficar por cima. */
.affiliate-modal-root .auth-modal.affiliate-modal .auth-modal-close {
  z-index: 30;
}

.affiliate-modal-root .auth-modal.affiliate-modal {
  width: min(96vw, 440px);
  max-width: 440px;
  max-height: min(92vh, 620px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 175, 235, 0.55) rgba(12, 20, 36, 0.82);
}

.affiliate-modal-root .auth-modal.affiliate-modal::-webkit-scrollbar {
  width: 7px;
}

.affiliate-modal-root .auth-modal.affiliate-modal::-webkit-scrollbar-track {
  margin: 12px 0;
  background: rgba(10, 18, 32, 0.92);
  border-radius: 100px;
  border: 1px solid rgba(88, 145, 215, 0.14);
}

.affiliate-modal-root .auth-modal.affiliate-modal::-webkit-scrollbar-thumb {
  border-radius: 100px;
  background: linear-gradient(180deg, rgba(115, 195, 255, 0.72) 0%, rgba(52, 115, 195, 0.68) 100%);
  box-shadow: 0 0 10px rgba(70, 150, 230, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.affiliate-modal-root .auth-modal.affiliate-modal::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(135, 210, 255, 0.88) 0%, rgba(65, 135, 215, 0.82) 100%);
}

.affiliate-modal-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* —— Intro (primeira tela: programa de afiliados) —— */
.affiliate-intro {
  position: relative;
  margin: -6px -16px 14px -16px;
  padding: 18px 16px 16px;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  background: linear-gradient(
    155deg,
    rgba(45, 88, 150, 0.42) 0%,
    rgba(18, 28, 48, 0.75) 45%,
    rgba(90, 55, 20, 0.22) 100%
  );
  border-bottom: 1px solid rgba(120, 170, 230, 0.22);
}

.affiliate-intro-glow {
  position: absolute;
  right: -30%;
  top: -60%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 200, 120, 0.28) 0%, transparent 68%);
  pointer-events: none;
}

.affiliate-intro-icon-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.affiliate-intro-icon {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.affiliate-intro-title {
  position: relative;
  margin: 0 0 8px;
  font-family: var(--ui-font-accent);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  color: #f0f7ff;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .affiliate-intro-title {
    background: linear-gradient(90deg, #e8f2ff 0%, #c8ddff 45%, #f5e6c8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.affiliate-intro-tagline {
  position: relative;
  margin: 0;
  font-family: var(--ui-font-main);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
  color: rgba(210, 224, 248, 0.92);
}

.affiliate-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
}

.affiliate-perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(120, 164, 225, 0.22);
  background: rgba(6, 12, 22, 0.55);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  cursor: default;
}

.affiliate-perk:hover,
.affiliate-perk:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(160, 205, 255, 0.48);
  box-shadow: 0 8px 20px rgba(4, 10, 22, 0.45);
  outline: none;
}

.affiliate-perk-ic {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(70, 120, 190, 0.4), rgba(25, 38, 68, 0.85));
  color: #9fd0ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.affiliate-perk-ic svg {
  width: 20px;
  height: 20px;
}

.affiliate-perk-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.affiliate-perk-txt strong {
  font-family: var(--ui-font-main);
  font-size: 13px;
  font-weight: 800;
  color: #f0f6ff;
  letter-spacing: 0.01em;
}

.affiliate-perk-txt span {
  font-family: var(--ui-font-main);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(170, 198, 236, 0.88);
}

.affiliate-msg-details {
  margin: 0 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(110, 155, 215, 0.28);
  background: rgba(5, 12, 24, 0.5);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.affiliate-msg-details:hover {
  border-color: rgba(140, 185, 240, 0.38);
}

.affiliate-msg-details[open] {
  border-color: rgba(150, 200, 255, 0.42);
}

.affiliate-msg-summary {
  list-style: none;
  cursor: default;
  padding: 11px 14px;
  font-family: var(--ui-font-main);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: rgba(200, 220, 250, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  user-select: none;
}

.affiliate-msg-summary::-webkit-details-marker {
  display: none;
}

.affiliate-msg-summary::after {
  content: none;
}

.affiliate-msg-field {
  margin: 0;
  padding: 0 12px 12px;
}

.affiliate-msg-field .affiliate-modal-textarea {
  margin-top: 0;
}

.auth-submit.affiliate-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(52, 168, 102, 0.98), rgba(24, 110, 62, 0.99));
  border: 1px solid rgba(120, 220, 160, 0.5);
  box-shadow: 0 4px 16px rgba(12, 70, 40, 0.5);
  color: #f4fff8;
}

.auth-submit.affiliate-cta:hover:not(:disabled) {
  filter: brightness(1.07);
  box-shadow: 0 6px 20px rgba(20, 90, 55, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .affiliate-perk,
  .affiliate-msg-summary::after {
    transition: none;
  }

  .affiliate-perk:hover,
  .affiliate-perk:focus-visible {
    transform: none;
  }
}

.affiliate-modal-lead {
  margin: 0 0 8px;
  font-family: var(--ui-font-main);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  color: rgba(200, 214, 240, 0.9);
}

.affiliate-modal-rejected-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(229, 156, 92, 0.45);
  background: rgba(40, 22, 8, 0.55);
  font-family: var(--ui-font-main);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
  color: rgba(255, 214, 170, 0.95);
}

.affiliate-modal-textarea {
  min-height: 56px;
  resize: vertical;
}

.affiliate-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.affiliate-modal-actions .auth-submit {
  flex: 1 1 160px;
}

.affiliate-modal-actions .avatar-btn-secondary {
  flex: 1 1 120px;
}

.affiliate-modal-meta {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(160, 186, 224, 0.82);
}

/* —— Painel: pedido pendente (mesma energia visual da solicitação, sem mexer no request) —— */
.js-affiliate-panel-pending {
  gap: 0;
}

.affiliate-pending-hero {
  position: relative;
  margin: -6px -16px 14px -16px;
  padding: 18px 16px 16px;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  background: linear-gradient(
    152deg,
    rgba(38, 72, 128, 0.48) 0%,
    rgba(22, 32, 52, 0.78) 42%,
    rgba(95, 62, 28, 0.28) 100%
  );
  border-bottom: 1px solid rgba(130, 175, 235, 0.24);
}

.affiliate-pending-glow {
  position: absolute;
  left: -25%;
  top: -55%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(120, 190, 255, 0.22) 0%, transparent 65%);
  pointer-events: none;
}

.affiliate-pending-icon-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.affiliate-pending-icon {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.38));
}

.affiliate-pending-orbit {
  transform-origin: 24px 24px;
  animation: affiliatePendingOrbit 16s linear infinite;
}

.affiliate-pending-title {
  position: relative;
  margin: 0 0 8px;
  font-family: var(--ui-font-accent);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  color: #f0f7ff;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .affiliate-pending-title {
    background: linear-gradient(92deg, #e4f0ff 0%, #c4d8ff 42%, #f2e2b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.affiliate-pending-tagline {
  position: relative;
  margin: 0;
  font-family: var(--ui-font-main);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 600;
  text-align: center;
  color: rgba(210, 224, 248, 0.93);
}

.affiliate-pending-date-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(120, 175, 240, 0.32);
  background: linear-gradient(135deg, rgba(12, 22, 42, 0.72), rgba(8, 14, 26, 0.55));
  box-shadow: 0 6px 18px rgba(4, 10, 22, 0.35);
}

.affiliate-pending-date-ic {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(70, 120, 190, 0.42), rgba(22, 34, 62, 0.88));
  color: #a8d4ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.affiliate-pending-date-ic svg {
  width: 20px;
  height: 20px;
}

.affiliate-pending-date-text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--ui-font-main);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  color: rgba(220, 232, 255, 0.96);
}

.affiliate-pending-steps {
  display: flex;
  flex-direction: column;
  margin: 0 0 12px;
  padding: 4px 0 2px;
}

.affiliate-pending-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  padding: 4px 4px 14px 2px;
}

.affiliate-pending-step:last-child {
  padding-bottom: 2px;
}

.affiliate-pending-step-dot {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  border: 2px solid rgba(120, 164, 210, 0.38);
  background: rgba(6, 12, 24, 0.85);
  z-index: 1;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.affiliate-pending-step:not(:last-child) .affiliate-pending-step-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 2px;
  height: 14px;
  margin-top: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(110, 165, 230, 0.45), rgba(60, 90, 140, 0.15));
}

.affiliate-pending-step--done .affiliate-pending-step-dot {
  border-color: rgba(100, 210, 160, 0.75);
  background: linear-gradient(145deg, rgba(55, 170, 120, 0.4), rgba(18, 48, 38, 0.65));
  box-shadow: 0 0 12px rgba(60, 200, 140, 0.2);
}

.affiliate-pending-step--active .affiliate-pending-step-dot {
  border-color: rgba(150, 205, 255, 0.95);
  background: linear-gradient(145deg, rgba(70, 140, 220, 0.5), rgba(22, 36, 68, 0.75));
  box-shadow:
    0 0 0 0 rgba(120, 190, 255, 0.4),
    0 4px 14px rgba(40, 100, 180, 0.35);
  animation: affiliatePendingDotPulse 2.2s ease-out infinite;
}

.affiliate-pending-step-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding-top: 1px;
}

.affiliate-pending-step-body strong {
  font-family: var(--ui-font-main);
  font-size: 13px;
  font-weight: 800;
  color: #f2f7ff;
  letter-spacing: 0.01em;
}

.affiliate-pending-step-body span {
  font-family: var(--ui-font-main);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(165, 195, 236, 0.88);
}

.affiliate-pending-footnote {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(120, 160, 220, 0.28);
  background: rgba(5, 12, 24, 0.42);
  font-family: var(--ui-font-main);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 600;
  color: rgba(175, 200, 235, 0.82);
}

.affiliate-modal-footer-btn {
  width: 100%;
  margin-top: 4px;
  flex: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
}

.affiliate-pending-dismiss.affiliate-modal-footer-btn {
  margin-top: 2px;
}

@keyframes affiliatePendingOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes affiliatePendingDotPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(120, 190, 255, 0.35),
      0 4px 14px rgba(40, 100, 180, 0.35);
  }
  55% {
    box-shadow:
      0 0 0 8px rgba(120, 190, 255, 0),
      0 4px 18px rgba(50, 120, 200, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .affiliate-pending-orbit {
    animation: none;
  }

  .affiliate-pending-step--active .affiliate-pending-step-dot {
    animation: none;
  }
}

/* —— Painel: dashboard do afiliado (abas + KPI estilo admin) —— */
.js-affiliate-panel-dashboard {
  gap: 0;
}

.affiliate-dash-toolbar {
  margin: 0 0 10px;
}

.affiliate-dash-title-sm {
  margin: 0 0 4px;
  font-family: var(--ui-font-accent);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f0f7ff;
}

.affiliate-dash-code-line {
  margin: 0;
  font-family: var(--ui-font-main);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  color: rgba(185, 204, 238, 0.88);
}

.affiliate-dash-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0 -2px 12px;
  padding: 2px 0 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 175, 235, 0.45) rgba(10, 18, 32, 0.75);
}

.affiliate-dash-tab {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(120, 165, 220, 0.28);
  background: rgba(8, 14, 26, 0.55);
  color: rgba(175, 198, 235, 0.88);
  font-family: var(--ui-font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.affiliate-dash-tab:hover {
  border-color: rgba(150, 195, 245, 0.42);
  color: #e8f0ff;
}

.affiliate-dash-tab.is-active {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(56, 120, 200, 0.22);
  color: #f2f7ff;
  box-shadow: 0 0 0 1px rgba(56, 140, 220, 0.15);
}

.affiliate-dash-panel {
  margin-bottom: 12px;
  min-height: 120px;
}

.affiliate-link-copy-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 12px;
}

.affiliate-link-copy-row .auth-input {
  flex: 1;
  min-width: 0;
  font-size: 11px;
}

.affiliate-copy-icon-btn {
  flex-shrink: 0;
  width: 44px;
  min-height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  color: #f4fff8;
  background: linear-gradient(145deg, rgba(52, 168, 102, 0.98), rgba(24, 110, 62, 0.99));
  box-shadow: 0 2px 10px rgba(12, 70, 40, 0.45);
  transition: filter 0.15s ease, transform 0.12s ease;
}

.affiliate-copy-icon-btn:hover {
  filter: brightness(1.06);
}

.affiliate-copy-icon-btn:active {
  transform: scale(0.98);
}

.affiliate-copy-icon-btn:focus-visible {
  outline: 2px solid rgba(130, 220, 170, 0.75);
  outline-offset: 2px;
}

/* Cards admin-kpi dentro do modal (tema espelhado, sem admin.css) */
.affiliate-modal-root .affiliate-kpi-scope {
  --a-surface: rgba(12, 18, 30, 0.78);
  --a-border: rgba(255, 255, 255, 0.07);
  --a-muted: rgba(155, 175, 210, 0.88);
  --a-muted2: rgba(125, 148, 185, 0.78);
  --a-text: #f1f5ff;
  --a-accent-bright: #93c5fd;
}

.affiliate-modal-root .affiliate-kpi-scope .admin-kpi-grid {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.affiliate-modal-root .affiliate-kpi-scope .admin-kpi-grid--affiliate-dash {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.affiliate-modal-root .affiliate-kpi-scope .admin-kpi-grid--affiliate-mini {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.affiliate-modal-root .affiliate-kpi-scope .admin-kpi {
  position: relative;
  padding: 0.75rem 0.82rem;
  border-radius: 12px;
  background: var(--a-surface);
  border: 1px solid var(--a-border);
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.affiliate-modal-root .affiliate-kpi-scope .admin-kpi:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.affiliate-modal-root .affiliate-kpi-scope .admin-kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--a-kpi-accent, #38bdf8), transparent);
  opacity: 0.9;
}

.affiliate-modal-root .affiliate-kpi-scope .admin-kpi-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.affiliate-modal-root .affiliate-kpi-scope .admin-kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--a-kpi-bg, rgba(96, 165, 250, 0.12));
  color: var(--a-kpi-accent, #38bdf8);
  flex-shrink: 0;
}

.affiliate-modal-root .affiliate-kpi-scope .admin-kpi-label {
  margin: 0;
  font-family: var(--ui-font-main);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--a-muted);
  line-height: 1.25;
}

.affiliate-modal-root .affiliate-kpi-scope .admin-kpi-value {
  margin: 0;
  font-family: var(--ui-font-main);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--a-text);
  line-height: 1.15;
  white-space: normal;
  word-break: break-word;
}

.affiliate-modal-root .affiliate-kpi-scope .admin-kpi-hint {
  margin: 0.3rem 0 0;
  font-family: var(--ui-font-main);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--a-muted2);
  line-height: 1.3;
}

.affiliate-leads-table-wrap--tab {
  max-height: 200px;
  margin-top: 4px;
}

/* Filtros + listas do painel afiliado */
.affiliate-filters {
  margin: 0 0 12px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(110, 155, 215, 0.22);
  background: rgba(6, 12, 24, 0.42);
}

.affiliate-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: flex-end;
  margin-bottom: 8px;
}

.affiliate-filters-row:last-child {
  margin-bottom: 0;
}

.affiliate-filters-row--dense {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 400px) {
  .affiliate-filters-row--dense {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.affiliate-filters-row--cad-type {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: flex-end;
}

.affiliate-filters-row--cad-type .affiliate-filter-field--type {
  flex: 0 0 auto;
  min-width: min(100%, 168px);
}

.affiliate-filters-row--cad-type .affiliate-filter-field--cad-value {
  flex: 1 1 200px;
  min-width: 0;
}

.affiliate-filters-row--cad-type .profile-faux-select {
  width: 100%;
}

.affiliate-filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.affiliate-filter-field .auth-input[type="date"] {
  min-height: 38px;
  padding: 8px 10px;
}

.affiliate-filter-label {
  font-family: var(--ui-font-main);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(155, 185, 225, 0.82);
}

.affiliate-filter-control {
  font-family: var(--ui-font-main);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.affiliate-list-block {
  position: relative;
  min-height: 100px;
}

.affiliate-table-scroll {
  max-height: min(42vh, 280px);
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 12px;
  border: 1px solid rgba(100, 140, 200, 0.26);
  background: rgba(5, 10, 20, 0.42);
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 175, 235, 0.45) rgba(10, 18, 32, 0.85);
}

.affiliate-table-scroll.is-hidden {
  display: none;
}

.affiliate-data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ui-font-main);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-feature-settings: "tnum" 1, "lnum" 1;
  line-height: 1.35;
  color: rgba(218, 228, 248, 0.95);
}

.affiliate-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 11px;
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(165, 192, 232, 0.88);
  background: linear-gradient(180deg, rgba(14, 22, 40, 0.98) 0%, rgba(12, 20, 36, 0.96) 100%);
  border-bottom: 1px solid rgba(90, 130, 195, 0.28);
  white-space: nowrap;
}

.affiliate-data-table tbody td {
  padding: 9px 11px;
  border-bottom: 1px solid rgba(70, 100, 150, 0.14);
  vertical-align: top;
  word-break: break-word;
}

.affiliate-data-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.affiliate-data-table tbody tr:hover td {
  background: rgba(96, 165, 250, 0.06);
}

.affiliate-data-table tbody tr:last-child td {
  border-bottom: none;
}

.affiliate-data-table td.affiliate-cell-deposit {
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}
.affiliate-data-table td.affiliate-cell-deposit--sim {
  color: rgba(74, 222, 128, 0.95);
}
.affiliate-data-table td.affiliate-cell-deposit--nao {
  color: rgba(248, 113, 113, 0.95);
}

.affiliate-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 22px 16px 20px;
  border-radius: 12px;
  border: 1px dashed rgba(120, 165, 220, 0.28);
  background: linear-gradient(165deg, rgba(12, 20, 38, 0.55) 0%, rgba(8, 14, 26, 0.4) 100%);
}

.affiliate-empty-state[hidden] {
  display: none !important;
}

.affiliate-empty-icon {
  color: rgba(130, 175, 235, 0.55);
  margin-bottom: 2px;
}

.affiliate-empty-title {
  margin: 0;
  font-family: var(--ui-font-accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(225, 235, 255, 0.95);
}

.affiliate-empty-desc {
  margin: 0;
  max-width: 28em;
  font-family: var(--ui-font-main);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(165, 190, 228, 0.82);
}

@media (prefers-reduced-motion: reduce) {
  .affiliate-dash-tab,
  .affiliate-modal-root .affiliate-kpi-scope .admin-kpi,
  .affiliate-copy-icon-btn {
    transition: none;
  }

  .affiliate-modal-root .affiliate-kpi-scope .admin-kpi:hover {
    transform: none;
  }
}

.affiliate-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.affiliate-metric-card {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(120, 164, 225, 0.35);
  background: rgba(8, 14, 26, 0.65);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.affiliate-metric-label {
  font-family: var(--ui-font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(160, 186, 224, 0.75);
}

.affiliate-metric-value {
  font-family: var(--ui-font-main);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f0f6ff;
}

.affiliate-link-field {
  margin-bottom: 14px;
}

.affiliate-link-field .auth-input {
  font-size: 12px;
}

.affiliate-leads-table-wrap {
  max-height: 160px;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 10px;
  border: 1px solid rgba(100, 140, 200, 0.28);
  background: rgba(5, 10, 20, 0.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 175, 235, 0.5) rgba(10, 18, 32, 0.85);
}

.affiliate-leads-table-wrap::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.affiliate-leads-table-wrap::-webkit-scrollbar-track {
  margin: 4px;
  background: rgba(10, 18, 32, 0.9);
  border-radius: 100px;
}

.affiliate-leads-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 100px;
  background: linear-gradient(180deg, rgba(110, 188, 248, 0.65) 0%, rgba(50, 110, 185, 0.62) 100%);
}

.affiliate-leads-table-wrap::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(130, 205, 255, 0.8) 0%, rgba(60, 125, 200, 0.75) 100%);
}

.affiliate-leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-weight: 600;
}

.affiliate-leads-table thead th {
  position: sticky;
  top: 0;
  padding: 8px 10px;
  text-align: left;
  background: rgba(12, 22, 40, 0.95);
  color: rgba(180, 204, 236, 0.85);
  border-bottom: 1px solid rgba(100, 140, 200, 0.22);
}

.affiliate-leads-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(80, 110, 160, 0.18);
  color: rgba(214, 226, 248, 0.88);
  word-break: break-word;
}

.affiliate-leads-table tbody tr:last-child td {
  border-bottom: none;
}

.affiliate-leads-empty {
  text-align: center;
  color: rgba(160, 186, 224, 0.65);
  font-weight: 600;
}

.auth-submit.js-affiliate-submit-request.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.kyc-form input[type="file"] {
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  color: rgba(200, 214, 240, 0.9);
}

.deposit-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.withdraw-key-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.deposit-amount-input {
  text-align: left;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding-right: 12px;
}

.deposit-limit-hint {
  margin-top: 6px;
  font-family: var(--ui-font-main);
  font-size: 11px;
  font-weight: 600;
  color: rgba(173, 196, 230, 0.82);
  letter-spacing: 0.01em;
}

.deposit-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.deposit-quick-btn {
  position: relative;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(120, 164, 225, 0.42);
  background: rgba(10, 18, 33, 0.78);
  color: #e9f2ff;
  font-family: var(--ui-font-main);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.deposit-quick-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 205, 255, 0.62);
  box-shadow: 0 8px 18px rgba(6, 14, 25, 0.45);
  background: rgba(13, 25, 44, 0.86);
}

.deposit-quick-btn.is-popular {
  border-color: rgba(229, 184, 92, 0.85);
  box-shadow: 0 0 0 1px rgba(220, 163, 44, 0.45), 0 10px 20px rgba(19, 13, 4, 0.38);
}

.deposit-quick-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(232, 187, 95, 0.95);
  background: linear-gradient(135deg, rgba(46, 30, 4, 0.95), rgba(78, 53, 8, 0.92));
  color: #ffd982;
  font-family: var(--ui-font-main);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.user-profile-trigger {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  min-width: 0;
  max-width: min(72vw, 280px);
  border: 1px solid rgba(122, 175, 255, 0.38);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(18, 26, 44, 0.94), rgba(10, 16, 30, 0.96));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  cursor: pointer;
  color: #e8f2ff;
  font-family: var(--ui-font-main);
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.user-profile-quick-deposit.none {
  display: none !important;
}

.user-profile-quick-deposit {
  position: fixed;
  top: 14px;
  right: 14px;
  flex-shrink: 0;
  z-index: 2601;
  height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(156, 255, 190, 0.92);
  border-radius: 12px;
  background: linear-gradient(135deg, #3bf278 0%, #15cf57 45%, #0ea246 100%);
  color: #f3fff7;
  font-family: var(--ui-font-main);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(7, 104, 42, 0.62), 0 0 0 2px rgba(58, 242, 120, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
  animation: profileDepositPulse 1.1s ease-in-out infinite;
}

.user-profile-quick-deposit:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 14px 30px rgba(7, 104, 42, 0.62), 0 0 0 4px rgba(58, 242, 120, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.user-profile-quick-deposit-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #e8ffe9;
  box-shadow: 0 0 0 0 rgba(232, 255, 233, 0.75);
  animation: profileDepositDotPulse 1.8s ease-out infinite;
  vertical-align: middle;
}

@keyframes profileDepositPulse {
  0%,
  100% {
    box-shadow: 0 10px 24px rgba(7, 104, 42, 0.52), 0 0 0 0 rgba(38, 217, 99, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
  50% {
    box-shadow: 0 14px 34px rgba(12, 171, 68, 0.66), 0 0 0 8px rgba(38, 217, 99, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.36);
  }
}

@keyframes profileDepositDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 255, 233, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(232, 255, 233, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 255, 233, 0);
  }
}

.user-profile-trigger:hover {
  border-color: rgba(140, 200, 255, 0.55);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(90, 180, 255, 0.12);
}

.user-profile-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ui-font-accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0a1020;
  background: linear-gradient(145deg, #8ecbff 0%, #4a9fff 45%, #2563d4 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.user-profile-avatar.has-image {
  color: transparent;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.95), 0 0 0 4px rgba(129, 140, 248, 0.7);
}

.user-profile-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.user-profile-email {
  font-size: 12px;
  font-weight: 700;
  color: #c8daf5;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile-balance-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.user-profile-balance-refresh {
  flex-shrink: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(125, 255, 176, 0.28);
  border-radius: 8px;
  background: rgba(20, 40, 32, 0.75);
  color: #9ee8c0;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.user-profile-balance-refresh:hover {
  background: rgba(30, 70, 50, 0.88);
  border-color: rgba(125, 255, 176, 0.45);
  color: #c6ffe0;
}

.user-profile-balance-refresh:active {
  transform: scale(0.94);
}

.user-profile-balance-refresh:disabled,
.user-profile-balance-refresh[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.user-profile-balance-refresh:focus-visible {
  outline: 2px solid rgba(125, 255, 176, 0.65);
  outline-offset: 2px;
}

.user-profile-balance-refresh-svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-profile-balance-refresh.is-loading .user-profile-balance-refresh-svg {
  animation: profile-balance-refresh-spin 0.55s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes profile-balance-refresh-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .user-profile-balance-refresh.is-loading .user-profile-balance-refresh-svg {
    animation: none;
  }
}

.user-profile-balance {
  font-size: 13px;
  font-weight: 800;
  color: #7dffb0;
  letter-spacing: 0.03em;
  text-shadow: 0 0 12px rgba(125, 255, 176, 0.25);
  transition: color 180ms ease, text-shadow 180ms ease;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.user-profile-balance.wallet-balance-down {
  color: #ff5d5d;
  text-shadow: 0 0 14px rgba(255, 93, 93, 0.35);
}

.user-profile-balance.wallet-balance-up {
  color: #1f8a49;
  text-shadow: 0 0 14px rgba(31, 138, 73, 0.35);
}

.user-profile-chevron {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(160, 195, 235, 0.85);
  margin-left: 2px;
  transition: transform 180ms ease;
}

.user-profile-root.is-menu-open .user-profile-chevron {
  transform: rotate(180deg);
}

.user-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  min-width: 100%;
  width: max-content;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(99, 179, 255, 0.35);
  background: rgba(12, 18, 34, 0.98);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 0ms linear 180ms;
}

.user-profile-root.is-menu-open .user-profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 180ms ease, transform 180ms ease, visibility 0ms linear 0ms;
}

@media (max-width: 740px) {
  .user-profile-quick-deposit {
    height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }
}

.user-profile-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #e8f2ff;
  font-family: var(--ui-font-main);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.user-profile-menu-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  opacity: 0.92;
  flex-shrink: 0;
}

.user-profile-menu-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

.user-profile-menu-item:hover {
  background: rgba(88, 157, 255, 0.18);
}

.user-profile-menu-item-danger {
  color: #ff9a9a;
}

.user-profile-menu-item-danger:hover {
  background: rgba(255, 100, 100, 0.12);
  color: #ffb4b4;
}

.bet-ui-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.88), rgba(8, 12, 22, 0.92));
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: padding 220ms ease, gap 220ms ease;
}

/* Barra “aba” — só na rodada com aposta; toque expande/recolhe o corpo. */
.bet-panel-peek {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: none;
  border-radius: 12px;
  background: rgba(88, 157, 255, 0.16);
  color: #e8f2ff;
  font-family: var(--ui-font-main);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 160ms ease, filter 160ms ease;
}

.bet-panel-peek:hover {
  background: rgba(88, 157, 255, 0.26);
  filter: brightness(1.06);
}

.bet-panel-peek-chevron {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(210, 228, 255, 0.92);
  transform: rotate(0deg);
  transition: transform 220ms ease;
}

.bet-ui-wrapper.is-round-collapsed .bet-panel-peek-chevron {
  transform: rotate(180deg);
}

.bet-shell-wrapper.auth-mode.bet-round-in-progress .bet-panel-peek {
  display: flex;
}

.bet-panel-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  max-height: 420px;
  opacity: 1;
  transition: max-height 260ms ease, opacity 200ms ease, margin 200ms ease;
}

.bet-ui-wrapper.is-round-collapsed .bet-panel-body {
  max-height: 0;
  opacity: 0;
  margin: 0;
  pointer-events: none;
  gap: 0;
}

.bet-ui-wrapper.is-round-collapsed {
  padding: 8px 12px 10px;
  gap: 0;
}

.bet-shell-wrapper.auth-mode.bet-round-in-progress {
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
}

/* HUD da rodada — canto superior direito (perfil fica à esquerda). */
.bet-round-hud {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 2520;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(168px, calc(100vw - 24px));
  pointer-events: none;
}

.bet-round-hud.none {
  display: none !important;
}

/* Entrada em escadinha: da direita → esquerda, um card após o outro */
.bet-round-hud .bet-round-card {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(160deg, rgba(16, 24, 42, 0.92), rgba(8, 12, 24, 0.94));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translate3d(40px, 0, 0);
  transition:
    opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.bet-round-hud .bet-round-card:nth-child(1) {
  transform: translate3d(44px, -5px, 0);
}

.bet-round-hud .bet-round-card:nth-child(2) {
  transform: translate3d(48px, 4px, 0);
}

.bet-round-hud .bet-round-card:nth-child(3) {
  transform: translate3d(52px, 13px, 0);
}

.bet-round-hud.is-hud-enter .bet-round-card {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
}

.bet-round-hud.is-hud-enter .bet-round-card:nth-child(1) {
  transition-delay: 0.06s;
}

.bet-round-hud.is-hud-enter .bet-round-card:nth-child(2) {
  transition-delay: 0.15s;
}

.bet-round-hud.is-hud-enter .bet-round-card:nth-child(3) {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .bet-round-hud .bet-round-card {
    transition-duration: 0.01ms;
    transition-delay: 0s !important;
    transform: none;
    opacity: 1;
  }

  .bet-round-hud.is-hud-enter .bet-round-card {
    transform: none;
  }
}

.bet-round-card-k {
  display: block;
  font-family: var(--ui-font-main);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(174, 197, 236, 0.88);
  margin-bottom: 3px;
}

.bet-round-card-v {
  display: block;
  font-family: var(--ui-font-main);
  font-size: 15px;
  font-weight: 800;
  color: #f2f7ff;
  line-height: 1.2;
  word-break: break-word;
}

.bet-round-card:last-child .bet-round-card-v {
  color: #7dffb3;
}

.bet-round-idle {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.48);
  background: linear-gradient(165deg, rgba(66, 18, 27, 0.92), rgba(40, 10, 18, 0.95));
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.bet-round-idle-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.bet-round-idle-label {
  font-family: var(--ui-font-main);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(254, 202, 202, 0.95);
}

.bet-round-idle-value {
  font-family: var(--ui-font-main);
  font-size: 12px;
  font-weight: 800;
  color: #fff1f2;
  font-variant-numeric: tabular-nums;
}

.bet-round-idle-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(127, 29, 29, 0.55);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.bet-round-idle-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f43f5e 0%, #ef4444 48%, #fb7185 100%);
  box-shadow: 0 0 14px rgba(248, 113, 113, 0.55);
  transition: width 0.1s linear;
}

.bet-round-idle.is-warning .bet-round-idle-fill {
  animation: bet-round-idle-drip 0.9s ease-in-out infinite;
}

@keyframes bet-round-idle-drip {
  0%,
  100% {
    filter: brightness(1);
    transform: scaleY(1);
  }
  50% {
    filter: brightness(1.25);
    transform: scaleY(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bet-round-idle-fill {
    transition-duration: 0.01ms;
  }
  .bet-round-idle.is-warning .bet-round-idle-fill {
    animation: none;
  }
}

/* Após F5 com rodada aberta: gesto real do usuário antes de iniciar (Chrome / input / áudio). */
.open-round-resume-gate.none {
  display: none !important;
}

.open-round-resume-gate {
  position: fixed;
  inset: 0;
  z-index: 2740;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(5, 10, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}

.open-round-resume-gate-card {
  width: min(92vw, 380px);
  padding: 22px 20px 20px;
  border-radius: 16px;
  border: 1px solid rgba(122, 175, 255, 0.35);
  background: linear-gradient(165deg, rgba(18, 26, 44, 0.97), rgba(8, 12, 24, 0.98));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.open-round-resume-gate-text {
  margin: 0 0 18px;
  font-family: var(--ui-font-main);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #c8daf5;
}

.open-round-resume-gate-btn {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  font-family: var(--ui-font-main);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  color: #0a1020;
  background: linear-gradient(135deg, #8ecbff 0%, #4a9fff 45%, #2563d4 100%);
  box-shadow: 0 6px 24px rgba(37, 99, 212, 0.45);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.open-round-resume-gate-btn:hover {
  filter: brightness(1.06);
}

.open-round-resume-gate-btn:active {
  transform: scale(0.98);
}

/* Contagem regressiva antes da rodada (demo e aposta real) */
.round-countdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 2750;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: transparent;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.round-countdown-overlay.none {
  display: none !important;
}

.round-countdown-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  /* Só overlay visual: se pointer-events:auto, o ecrã inteiro rouba o arrasto até ao canvas do jogo. */
  pointer-events: none;
}

.round-countdown-inner {
  width: 100%;
  max-width: min(92vw, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Números e GO! — claro com sombra forte para ler sobre o jogo (overlay só com blur) */
.round-countdown-text {
  font-family: var(--ui-font-accent);
  font-size: clamp(72px, 20vw, 148px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: center;
  display: block;
  color: #f0f5ff;
  -webkit-text-stroke: 0 transparent;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.85),
    0 2px 18px rgba(0, 0, 0, 0.55),
    0 4px 28px rgba(0, 0, 0, 0.35);
}

.round-countdown-text.is-go {
  font-size: clamp(56px, 15vw, 112px);
  letter-spacing: 0.02em;
  color: #e8fff4;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 2px 20px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(45, 212, 130, 0.35);
}

.round-countdown-text.is-pulse {
  animation: round-countdown-pop 0.42s cubic-bezier(0.34, 1.48, 0.64, 1) both;
}

@keyframes round-countdown-pop {
  from {
    transform: scale(0.78);
    opacity: 0.65;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .round-countdown-text.is-pulse {
    animation: none;
  }

  .round-countdown-overlay {
    transition-duration: 0.01ms;
  }
}

/* Encerrar / Sacar Ganhos — acima do canvas (#root); sobe quando a aposta está só no peek */
.demo-encerrar-round-btn {
  position: fixed;
  left: 50%;
  bottom: max(24px, calc(12px + env(safe-area-inset-bottom, 0px)));
  transform: translateX(-50%) translateY(12px);
  z-index: 4000;
  padding: 14px 36px;
  border: none;
  border-radius: 999px;
  font-family: var(--ui-font-main);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  pointer-events: auto;
  background: linear-gradient(180deg, #34d97a, #16a34a);
  box-shadow:
    0 4px 0 rgba(14, 90, 48, 0.55),
    0 10px 28px rgba(20, 120, 70, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  opacity: 0;
  transition:
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    bottom 0.28s ease,
    filter 0.15s ease;
}

/* Painel de aposta minimizado (só peek): afasta o botão da barra inferior */
body.bet-sacar-ganhos-lift .demo-encerrar-round-btn:not(.none) {
  bottom: max(108px, calc(88px + env(safe-area-inset-bottom, 0px)));
}

@keyframes demo-encerrar-sacar-pulse {
  0%,
  100% {
    box-shadow:
      0 4px 0 rgba(14, 90, 48, 0.55),
      0 10px 28px rgba(20, 120, 70, 0.45),
      0 0 0 0 rgba(125, 255, 180, 0.35);
  }
  50% {
    box-shadow:
      0 4px 0 rgba(14, 90, 48, 0.55),
      0 14px 36px rgba(20, 120, 70, 0.55),
      0 0 28px 10px rgba(125, 255, 180, 0.45);
  }
}

.demo-encerrar-round-btn.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  animation: demo-encerrar-sacar-pulse 2.1s ease-in-out infinite;
}

.demo-encerrar-round-btn:hover {
  filter: brightness(1.08);
}

.demo-encerrar-round-btn:active {
  transform: translateX(-50%) translateY(2px);
  animation: none;
  box-shadow:
    0 2px 0 rgba(14, 90, 48, 0.55),
    0 6px 18px rgba(20, 120, 70, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.demo-encerrar-round-btn.none {
  display: none !important;
  animation: none;
}

.demo-encerrar-round-btn:disabled {
  opacity: 0.65;
  cursor: wait;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .demo-encerrar-round-btn {
    transition-duration: 0.01ms;
    transform: translateX(-50%);
  }

  .demo-encerrar-round-btn.is-visible {
    transform: translateX(-50%);
    animation: none;
  }
}

.bet-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.auth-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 14px 14px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(13, 19, 34, 0.9), rgba(8, 12, 22, 0.94));
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.guest-banner-slot {
  width: 100%;
  min-width: 260px;
  height: 100px;
  border-radius: 12px;
  border: 1px solid rgba(132, 178, 255, 0.35);
  background: rgba(11, 19, 35, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.guest-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ui-fade-panel {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  filter: blur(2px);
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
  will-change: opacity, transform, filter;
}

.ui-fade-panel.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.guest-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
}

.guest-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  min-width: 114px;
  height: 42px;
  font-family: var(--ui-font-main);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #fff;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 14px rgba(7, 13, 25, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.guest-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
}

.guest-btn:active {
  transform: translateY(1px) scale(0.99);
}

.guest-btn-secondary {
  border-color: rgba(159, 183, 232, 0.34);
  background: linear-gradient(180deg, #2d3b57, #1a2438);
}

.guest-btn-primary {
  border-color: rgba(110, 174, 255, 0.5);
  background: linear-gradient(180deg, #4d8fff, #2f68d8);
}

.guest-btn-demo {
  min-width: 238px;
  height: 46px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  border-color: rgba(89, 255, 166, 0.58);
  background: linear-gradient(180deg, #36dc73, #1ba857);
  box-shadow: 0 0 0 0 rgba(54, 220, 115, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 20px rgba(20, 136, 72, 0.5);
  animation: demoPulse 1.8s ease-in-out infinite, demoFloat 2.8s ease-in-out infinite;
}

.guest-btn-demo:hover {
  box-shadow: 0 0 0 8px rgba(54, 220, 115, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 24px rgba(20, 136, 72, 0.58);
}

@keyframes demoPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(54, 220, 115, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 20px rgba(20, 136, 72, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(54, 220, 115, 0), inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 20px rgba(20, 136, 72, 0.5);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(54, 220, 115, 0), inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 20px rgba(20, 136, 72, 0.5);
  }
}

@keyframes demoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

.guest-btn-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.guest-btn-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.bet-ui-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.bet-limit-hint {
  margin-top: -2px;
  margin-bottom: 2px;
  text-align: center;
  font-family: var(--ui-font-main);
  font-size: 11px;
  font-weight: 700;
  color: rgba(174, 197, 236, 0.82);
  letter-spacing: 0.01em;
}

.bet-step-btn,
.bet-submit-btn {
  border: none;
  border-radius: 12px;
  font-family: var(--ui-font-main);
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}

.bet-step-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.1);
}

.bet-submit-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(0.15);
  transform: none;
  box-shadow: none;
}

.auth-modal-root {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: none;
}

.reset-password-modal-root {
  z-index: 3300;
}

.auth-modal-root.visible {
  display: block;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 180ms ease;
}

.auth-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(92vw, 360px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.95), rgba(8, 12, 22, 0.98));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  padding: 16px 16px 10px;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.auth-modal-root.open .auth-modal-backdrop {
  opacity: 1;
}

.auth-modal-root.open .auth-modal {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

body.auth-modal-open #root {
  pointer-events: none;
}

/* Rodada a dinheiro ativa: o #root precisa receber arraste/toque no canvas.
   Cobre falhas de sincronização de body.auth-modal-open (welcome/demo não
   chamavam updateBodyModalClass) e garante input sobre a regra acima. */
body.bet-gameplay-active #root {
  pointer-events: auto !important;
}

/* #game-ui vem depois dos canvas no DOM; se receber hits, o gesto não chega ao Pixi/Three. */
body.bet-gameplay-active #game-ui {
  pointer-events: none !important;
}

/* O shell em auth-mode não cobre a viewport inteira, mas pointer-events:auto no wrapper
   pode interferir em hit-testing em alguns navegadores; filhos com auto continuam clicáveis. */
body.bet-gameplay-active .bet-shell-wrapper.auth-mode.bet-round-in-progress {
  pointer-events: none;
}

body.bet-gameplay-active
  .bet-shell-wrapper.auth-mode.bet-round-in-progress
  .bet-ui-wrapper:not(.is-round-collapsed),
body.bet-gameplay-active
  .bet-shell-wrapper.auth-mode.bet-round-in-progress
  .bet-panel-peek {
  pointer-events: auto;
}

/* Painel de aposta recolhido: só o “peek” intercepta clique; o cartão não cobre o jogo.
   !important cobre style inline de showPanel (pointer-events: auto). */
.bet-shell-wrapper.auth-mode.bet-round-in-progress .bet-ui-wrapper.is-round-collapsed {
  pointer-events: none !important;
}

.bet-shell-wrapper.auth-mode.bet-round-in-progress .bet-ui-wrapper.is-round-collapsed .bet-panel-peek {
  pointer-events: auto !important;
}

body.auth-modal-open {
  overflow: hidden;
}

.auth-modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: none;
  background: transparent;
  color: #aebbd4;
  font-size: 18px;
  cursor: pointer;
}

.auth-modal-title {
  margin: 2px 0 8px;
  font-family: var(--ui-font-accent);
  font-size: 21px;
  color: #f1f6ff;
  letter-spacing: 0.3px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(120, 173, 255, 0.25);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form.js-auth-register {
  margin-top: 0.55rem;
  gap: 12px;
}

.auth-register-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2px;
  animation: auth-register-hero-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes auth-register-hero-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-register-banner {
  width: 100%;
  height: 86px;
  border-radius: 12px;
  border: 1px solid rgba(132, 178, 255, 0.38);
  background: rgba(11, 19, 35, 0.75);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 20px rgba(0, 0, 0, 0.35);
}

.auth-register-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-register-lead {
  margin: 0;
  font-family: var(--ui-font-main);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(195, 214, 245, 0.92);
  letter-spacing: 0.02em;
  padding: 0 2px;
}

.auth-modal-root.open .auth-register-hero {
  animation-delay: 0.04s;
}

@media (prefers-reduced-motion: reduce) {
  .auth-register-hero {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .auth-modal-root.open .auth-register-hero {
    animation-delay: 0s;
  }
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ui-font-main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #a8c0ea;
  padding-left: 2px;
}

.auth-label-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7fc2ff;
}

.auth-label-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.auth-password-wrap {
  position: relative;
}

.auth-input {
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(118, 171, 245, 0.52);
  background: linear-gradient(180deg, rgba(10, 16, 30, 0.9), rgba(7, 12, 24, 0.94));
  color: #f1f6ff;
  padding: 0 13px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 600;
}

.auth-input::placeholder {
  color: #9fb5db;
  font-weight: 500;
}

.auth-eye-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #a9b9d8;
  cursor: pointer;
}

.auth-eye-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.auth-eye-btn.is-open {
  color: #59c3ff;
}

.register-viewport {
  overflow: hidden;
  width: 100%;
  transition: height 220ms ease;
}

.register-slider {
  display: flex;
  width: 200%;
  align-items: flex-start;
  transition: transform 240ms ease;
}

.register-slider.is-step-2 {
  transform: translateX(-50%);
}

.register-step {
  width: 50%;
  padding-right: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-combo {
  position: relative;
  display: flex;
  align-items: center;
}

.country-trigger {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  min-width: 82px;
  border: 1px solid rgba(99, 179, 255, 0.35);
  border-radius: 8px;
  background: rgba(15, 24, 42, 0.82);
  color: #e8f2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  cursor: pointer;
}

.country-trigger:disabled {
  opacity: 0.62;
  cursor: default;
  pointer-events: none;
}

.country-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 5;
  width: 132px;
  max-height: 104px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid rgba(99, 179, 255, 0.35);
  background: rgba(10, 16, 31, 0.98);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(88, 180, 255, 0.55) rgba(20, 32, 54, 0.65);
}

.country-menu::-webkit-scrollbar {
  width: 6px;
}

.country-menu::-webkit-scrollbar-track {
  margin: 4px 0;
  background: rgba(18, 28, 48, 0.85);
  border-radius: 100px;
  border: 1px solid rgba(88, 150, 220, 0.12);
}

.country-menu::-webkit-scrollbar-thumb {
  border-radius: 100px;
  background: linear-gradient(180deg, rgba(120, 200, 255, 0.75) 0%, rgba(58, 140, 230, 0.65) 100%);
  box-shadow: 0 0 8px rgba(90, 180, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.country-menu::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(140, 215, 255, 0.9) 0%, rgba(70, 160, 245, 0.85) 100%);
}

.country-menu.none {
  display: none;
}

.country-option {
  width: 100%;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #e8f2ff;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 8px;
  cursor: pointer;
}

.country-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.country-flag-svg {
  width: 22px;
  height: 15px;
  display: block;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.country-dial {
  font-family: var(--ui-font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.country-option:hover {
  background: rgba(88, 157, 255, 0.16);
}

.auth-phone-input {
  padding-left: 98px;
}

.auth-input:focus {
  border-color: rgba(58, 187, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(58, 187, 255, 0.2);
}

.auth-submit {
  height: 42px;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #2dd86e, #138f45);
  cursor: pointer;
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.auth-submit.js-deposit-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.auth-submit.js-deposit-submit.is-loading:disabled {
  opacity: 1;
  cursor: wait;
  filter: none;
}

.auth-submit.js-deposit-submit.is-loading .js-deposit-submit-label {
  opacity: 0;
}

.auth-submit.js-deposit-submit .deposit-submit-spinner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  opacity: 0;
  pointer-events: none;
}

.auth-submit.js-deposit-submit.is-loading .deposit-submit-spinner {
  opacity: 1;
  animation: deposit-submit-spin 0.75s linear infinite;
}

.auth-submit.js-withdraw-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.auth-submit.js-withdraw-submit.is-loading:disabled {
  opacity: 1;
  cursor: wait;
  filter: none;
}

.auth-submit.js-withdraw-submit.is-loading .js-withdraw-submit-label {
  opacity: 0;
}

.auth-submit.js-withdraw-submit .withdraw-submit-spinner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  opacity: 0;
  pointer-events: none;
}

.auth-submit.js-withdraw-submit.is-loading .withdraw-submit-spinner {
  opacity: 1;
  animation: deposit-submit-spin 0.75s linear infinite;
}

@keyframes deposit-submit-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-link-btn {
  align-self: flex-start;
  margin: 0 0 4px;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--ui-font-main);
  font-size: 12px;
  font-weight: 700;
  color: #7fc2ff;
  text-decoration: underline;
  cursor: pointer;
}

.auth-link-btn:hover {
  color: #b8e0ff;
}

.auth-link-btn.auth-link-btn-back {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  margin-bottom: 2px;
  color: #fff;
  text-decoration: none;
}

.auth-link-btn.auth-link-btn-back:hover {
  color: #fff;
  opacity: 0.9;
}

.auth-link-btn-back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.auth-link-btn-back-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

.welcome-modal-root {
  position: fixed;
  inset: 0;
  z-index: 3600;
  display: none;
}

.welcome-modal-root.open {
  display: block;
}

.welcome-modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 85% at 50% 18%, rgba(88, 140, 255, 0.18), transparent 58%),
    rgba(4, 8, 18, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome-modal-root.open .welcome-modal-backdrop {
  opacity: 1;
}

.welcome-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  width: min(92vw, 448px);
  max-height: min(88vh, 620px);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid rgba(140, 180, 255, 0.24);
  background: linear-gradient(
    165deg,
    rgba(24, 34, 58, 0.96) 0%,
    rgba(12, 18, 36, 0.98) 42%,
    rgba(8, 12, 26, 0.99) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 100px rgba(80, 130, 255, 0.1);
  color: #e8f2ff;
  font-family: var(--ui-font-main);
  overflow: hidden;
  opacity: 0;
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome-modal-root.open .welcome-modal {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.welcome-modal-glow {
  position: absolute;
  top: -42%;
  left: 50%;
  width: 130%;
  height: 58%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse closest-side, rgba(100, 165, 255, 0.24), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.welcome-modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #aeb9d4;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.welcome-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f6ff;
}

.welcome-modal-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  padding: 22px 20px 18px;
}

.welcome-modal-head {
  flex-shrink: 0;
  padding-right: 40px;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(101, 173, 255, 0.45);
  background: linear-gradient(180deg, rgba(56, 110, 200, 0.35), rgba(36, 72, 140, 0.25));
  color: #d9e9ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.welcome-title {
  margin: 12px 0 6px;
  font-size: 22px;
  line-height: 1.22;
  font-family: var(--ui-font-accent);
  letter-spacing: 0.02em;
  color: #f4f8ff;
}

.welcome-lead {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(175, 200, 240, 0.9);
}

.welcome-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 4px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 2px 4px 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(88, 150, 220, 0.45) rgba(20, 32, 54, 0.45);
}

.welcome-steps::-webkit-scrollbar {
  width: 5px;
}

.welcome-steps::-webkit-scrollbar-thumb {
  background: rgba(88, 150, 220, 0.45);
  border-radius: 100px;
}

.welcome-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(117, 162, 238, 0.22);
  background: linear-gradient(135deg, rgba(22, 34, 58, 0.75), rgba(12, 22, 42, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #dce8ff;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  animation: welcome-step-in 0.44s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.welcome-step:nth-child(1) {
  animation-delay: 0.06s;
}

.welcome-step:nth-child(2) {
  animation-delay: 0.12s;
}

.welcome-step:nth-child(3) {
  animation-delay: 0.18s;
}

.welcome-step:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes welcome-step-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-step-dot {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #5a9dff, #2f68d8);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow:
    0 0 0 2px rgba(15, 24, 42, 0.85),
    0 4px 12px rgba(47, 104, 216, 0.45);
}

.welcome-step-text {
  flex: 1;
  min-width: 0;
}

.welcome-modal-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.welcome-demo-btn {
  font-family: var(--ui-font-main);
  width: 100%;
  height: 48px;
  border: 1px solid rgba(89, 255, 166, 0.55);
  border-radius: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  background: linear-gradient(180deg, #36dc73, #1ba857);
  cursor: pointer;
  box-shadow:
    0 0 0 0 rgba(54, 220, 115, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 28px rgba(20, 136, 72, 0.48);
  animation: demoPulse 1.8s ease-in-out infinite;
  transition: filter 0.15s ease, transform 0.12s ease;
}

.welcome-demo-btn:hover {
  filter: brightness(1.06);
}

.welcome-demo-btn:active {
  transform: translateY(1px);
}

.welcome-skip-btn {
  font-family: var(--ui-font-main);
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #b8cce8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.welcome-skip-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #e2edff;
}

@media (prefers-reduced-motion: reduce) {
  .welcome-modal-backdrop,
  .welcome-modal {
    transition-duration: 0.01ms;
  }

  .welcome-step {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .welcome-demo-btn {
    animation: none;
  }
}

/* Mobile: painel inicial (Entrar / Cadastrar / Demo) + modais de auth e boas-vindas */
@media (max-width: 540px) {
  .bet-shell-wrapper.guest-mode {
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: min(400px, calc(100vw - 20px));
    max-width: calc(100vw - 16px);
    align-items: stretch;
    box-sizing: border-box;
  }

  .auth-cta-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px 12px;
    margin: 0;
  }

  .guest-banner-slot {
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 84px;
    max-height: 128px;
    aspect-ratio: 16 / 9;
  }

  .guest-row {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .guest-btn,
  .guest-btn-demo {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .guest-btn-demo {
    letter-spacing: 0.4px;
  }

  /* Centrar com padding seguro; modal com scroll interno (teclado / ecrãs baixos) */
  .auth-modal-root.open.visible {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: max(8px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px))
      max(10px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
  }

  .auth-modal-root .auth-modal {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    max-height: min(92dvh, 92vh);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    /* Mobile caret bugfix: transforms on modal ancestors can desync input caret position. */
    transform: none;
    padding: 44px 14px 12px;
    box-sizing: border-box;
  }

  .auth-modal-root.open .auth-modal {
    transform: none;
  }

  .avatar-modal-root .auth-modal,
  .profile-edit-modal-root .auth-modal,
  .change-password-modal-root .auth-modal {
    max-width: 100%;
  }

  .auth-modal-close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    right: 8px;
    top: 8px;
    font-size: 22px;
    line-height: 1;
    border-radius: 10px;
    color: #c5d4ef;
  }

  .auth-modal-close:active {
    background: rgba(255, 255, 255, 0.06);
  }

  .auth-modal-title {
    font-size: 18px;
    margin-top: 0;
    padding-right: 42px;
    padding-bottom: 8px;
  }

  .auth-input {
    font-size: 16px;
  }

  .auth-register-banner {
    height: auto;
    min-height: 70px;
    max-height: 132px;
    aspect-ratio: 16 / 9;
  }

  .auth-register-lead {
    font-size: 12px;
  }

  .welcome-modal-root.open {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: max(8px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px))
      max(10px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
  }

  .welcome-modal {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 420px;
    max-height: min(90dvh, 90vh);
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    transform: scale(0.97);
    display: flex;
    flex-direction: column;
  }

  .welcome-modal-root.open .welcome-modal {
    transform: scale(1);
  }

  .welcome-modal-body {
    padding: 18px 16px 16px;
    min-height: 0;
  }

  .welcome-modal-head {
    padding-right: 44px;
  }

  .welcome-modal-close {
    width: 42px;
    height: 42px;
    right: 8px;
    top: 8px;
    font-size: 24px;
  }

  .welcome-title {
    font-size: 18px;
    line-height: 1.25;
    margin: 8px 0 4px;
  }

  .welcome-lead {
    font-size: 12.5px;
  }

  .welcome-steps {
    margin-top: 12px;
    margin-bottom: 0;
  }

  .welcome-step {
    font-size: 12.5px;
    padding: 10px 10px;
    gap: 10px;
  }

  .welcome-step-dot {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .welcome-demo-btn {
    height: 46px;
    font-size: 13px;
  }

  .welcome-skip-btn {
    height: 42px;
    font-size: 12.5px;
  }
}

.demo-result-modal-root {
  position: fixed;
  inset: 0;
  z-index: 3650;
  display: none;
}

.demo-result-modal-root.open {
  display: block;
}

.demo-result-modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 20%, rgba(88, 140, 255, 0.12), transparent 55%),
    rgba(4, 8, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-result-modal-root.open .demo-result-modal-backdrop {
  opacity: 1;
}

.demo-result-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 400px);
  max-height: min(88vh, 640px);
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(140, 180, 255, 0.22);
  background:
    linear-gradient(165deg, rgba(24, 34, 58, 0.94) 0%, rgba(10, 16, 32, 0.97) 45%, rgba(8, 12, 26, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(80, 130, 255, 0.08);
  padding: 0;
  color: #e8f2ff;
  font-family: var(--ui-font-main);
  opacity: 0;
  transform: translate(-50%, -48%) scale(0.94);
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-result-modal-root.open .demo-result-modal {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.demo-result-modal-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 140%;
  height: 55%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse closest-side, rgba(100, 160, 255, 0.2), transparent 72%);
  pointer-events: none;
  opacity: 0.85;
}

.demo-result-modal-root.demo-result--win .demo-result-modal-glow {
  background: radial-gradient(ellipse closest-side, rgba(90, 255, 170, 0.18), transparent 72%);
}

.demo-result-modal-root.demo-result--lose .demo-result-modal-glow {
  background:
    radial-gradient(ellipse closest-side, rgba(52, 211, 153, 0.12), transparent 55%),
    radial-gradient(ellipse closest-side, rgba(255, 170, 100, 0.1), transparent 72%);
}

.demo-result-modal-root.demo-result--win .demo-result-modal {
  border-color: rgba(130, 245, 190, 0.34);
  background:
    radial-gradient(ellipse 110% 58% at 50% -8%, rgba(90, 255, 170, 0.13), transparent 58%),
    linear-gradient(168deg, rgba(12, 38, 34, 0.97) 0%, rgba(8, 20, 28, 0.985) 48%, rgba(6, 12, 22, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 28px 72px rgba(0, 0, 0, 0.58),
    0 0 120px rgba(45, 210, 130, 0.15);
}

.demo-result-modal-root.demo-result--win .demo-result-hero {
  display: none;
}

.demo-result-modal-root.demo-result--win .demo-result-modal-body {
  padding: 20px 22px 24px;
}

.demo-result-modal-root.demo-result--lose .demo-result-modal {
  border-color: rgba(255, 170, 100, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(255, 140, 60, 0.1);
}

.demo-result-hero {
  display: flex;
  justify-content: center;
  padding: 22px 20px 6px;
  position: relative;
  z-index: 1;
}

.demo-result-hero-win,
.demo-result-hero-lose {
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-result-modal-root.demo-result--lose .demo-result-hero-win,
.demo-result-modal-root.demo-result--win .demo-result-hero-lose {
  display: none;
}

.demo-result-hero-svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.demo-result-lose-scene {
  position: relative;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-result-lose-aurora {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.42) 0%, rgba(16, 185, 129, 0.12) 52%, transparent 72%);
  animation: demo-result-lose-aurora-pulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

.demo-result-lose-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  border: 2px solid rgba(52, 211, 153, 0.38);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 28px rgba(52, 211, 153, 0.18);
  animation: demo-result-lose-orbit-spin 11s linear infinite;
  pointer-events: none;
}

.demo-result-lose-orbit .demo-result-lose-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fef9c3, #fbbf24);
  box-shadow:
    0 0 14px rgba(251, 191, 36, 0.85),
    0 0 2px rgba(255, 255, 255, 0.5) inset;
}

.demo-result-lose-orbit .demo-result-lose-dot:nth-child(1) {
  transform: rotate(0deg) translateY(-41px);
}

.demo-result-lose-orbit .demo-result-lose-dot:nth-child(2) {
  transform: rotate(120deg) translateY(-41px);
}

.demo-result-lose-orbit .demo-result-lose-dot:nth-child(3) {
  transform: rotate(240deg) translateY(-41px);
}

.demo-result-lose-core {
  position: relative;
  z-index: 2;
  animation: demo-result-lose-float 2.75s ease-in-out infinite;
}

.demo-result-lose-gift {
  width: 78px;
  height: 78px;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(16, 185, 129, 0.5));
}

.demo-result-lose-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 2px rgba(167, 243, 208, 0.95);
  pointer-events: none;
  z-index: 3;
  animation: demo-result-lose-spark 2s ease-in-out infinite;
  opacity: 0;
}

.demo-result-lose-spark--1 {
  top: 8%;
  left: 22%;
  animation-delay: 0s;
}

.demo-result-lose-spark--2 {
  top: 18%;
  right: 12%;
  animation-delay: 0.35s;
}

.demo-result-lose-spark--3 {
  bottom: 16%;
  left: 14%;
  animation-delay: 0.7s;
}

.demo-result-lose-spark--4 {
  bottom: 10%;
  right: 20%;
  animation-delay: 1.05s;
}

@keyframes demo-result-lose-aurora-pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes demo-result-lose-orbit-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes demo-result-lose-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-5px) scale(1.03);
  }
  70% {
    transform: translateY(-2px) scale(1.01);
  }
}

@keyframes demo-result-lose-spark {
  0%,
  100% {
    transform: scale(0.35);
    opacity: 0;
  }
  40% {
    transform: scale(1.15);
    opacity: 1;
  }
  55% {
    transform: scale(0.8);
    opacity: 0.85;
  }
}

.demo-result-modal-root.demo-result--lose .demo-result-hero-lose {
  animation: demo-result-lose-hero-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes demo-result-lose-hero-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.demo-result-modal-body {
  position: relative;
  z-index: 1;
  padding: 8px 22px 22px;
}

.demo-result-win-block {
  margin: 0 0 18px;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

.demo-result-win-block--hidden {
  display: none !important;
}

.demo-result-win-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(16, 52, 42, 0.72) 0%, rgba(8, 28, 24, 0.82) 45%, rgba(6, 22, 20, 0.88) 100%);
  border: 1px solid rgba(120, 255, 190, 0.26);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2) inset,
    0 20px 48px rgba(0, 0, 0, 0.35),
    0 0 60px rgba(40, 200, 120, 0.1);
}

.demo-result-modal-root.demo-result--win.open .demo-result-win-card {
  animation: demo-result-win-card-reveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes demo-result-win-card-reveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.demo-result-win-accent-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    90deg,
    #14805a,
    #3dffb8,
    #fff3b0,
    #3dffb8,
    #14805a
  );
  background-size: 220% 100%;
  animation: demo-result-win-bar-flow 3.5s ease-in-out infinite;
}

@keyframes demo-result-win-bar-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.demo-result-win-card-inner {
  padding: 16px 18px 18px;
  position: relative;
}

.demo-result-win-card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 55%);
  pointer-events: none;
  border-radius: 0 0 18px 18px;
}

.demo-result-win-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.demo-result-win-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(210, 255, 230, 0.95);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(130, 255, 200, 0.2);
}

.demo-result-win-badge-ok {
  display: flex;
  color: #8fffc9;
  filter: drop-shadow(0 0 12px rgba(100, 255, 180, 0.35));
  animation: demo-result-win-ok-pulse 2s ease-in-out infinite;
}

@keyframes demo-result-win-ok-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.06);
  }
}

.demo-result-win-card .demo-result-amount {
  margin: 4px 0 10px;
  position: relative;
  z-index: 1;
  font-family: var(--ui-font-accent);
  font-size: clamp(2rem, 9vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  color: #c9ffe4;
  text-shadow:
    0 0 40px rgba(100, 255, 180, 0.35),
    0 2px 0 rgba(0, 40, 30, 0.45);
}

.demo-result-win-lead {
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(200, 230, 218, 0.82);
}

.demo-result-win-proof {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  position: relative;
  z-index: 1;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(100, 220, 160, 0.16);
}

.demo-result-win-proof-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #9dffc4;
  background: rgba(80, 200, 140, 0.12);
  border: 1px solid rgba(130, 255, 200, 0.15);
}

.demo-result-win-proof .demo-result-badge {
  margin: 0;
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(225, 240, 255, 0.9);
}

.demo-result-badge-pct {
  font-weight: 800;
  color: #d4ffe7;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
  background: linear-gradient(180deg, rgba(90, 220, 150, 0.35), rgba(40, 160, 100, 0.25));
  border: 1px solid rgba(160, 255, 200, 0.22);
  white-space: nowrap;
}

.demo-result-badge-soft {
  color: rgba(200, 220, 240, 0.75);
  font-weight: 600;
}

.demo-result-title {
  margin: 0 0 10px;
  font-family: var(--ui-font-accent);
  font-size: clamp(1.25rem, 4.5vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.demo-result-modal-root.demo-result--lose .demo-result-title {
  color: #ffe7c2;
  text-shadow: 0 0 40px rgba(255, 160, 80, 0.2);
}

.demo-result-modal-root.demo-result--win .demo-result-title {
  color: #f4fffa;
  font-size: clamp(1.15rem, 4vw, 1.32rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.demo-result-modal-root.demo-result--win .demo-result-copy {
  color: rgba(205, 225, 245, 0.88);
  font-size: 13.5px;
}

.demo-result-copy {
  margin: 0 0 20px;
  color: rgba(195, 212, 252, 0.92);
  line-height: 1.5;
  font-size: 14px;
}

.demo-result-copy-bonus {
  display: inline;
  font-weight: 800;
  color: #34d399;
  text-shadow: 0 0 24px rgba(52, 211, 153, 0.35);
  letter-spacing: -0.01em;
}

.demo-result-actions {
  display: grid;
  gap: 10px;
}

.demo-result-btn {
  position: relative;
  height: 48px;
  border-radius: 14px;
  font-family: var(--ui-font-main);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
  transition:
    transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.2s ease,
    filter 0.18s ease;
}

.demo-result-btn-label {
  position: relative;
  z-index: 1;
}

.demo-result-btn-shine {
  position: absolute;
  inset: 0;
  left: -100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.22) 45%, transparent 70%);
  transition: left 0.55s ease;
  pointer-events: none;
}

.demo-result-btn-primary:hover .demo-result-btn-shine {
  left: 100%;
}

.demo-result-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.demo-result-btn:active {
  transform: translateY(0) scale(0.985);
}

.demo-result-btn:focus-visible {
  outline: 2px solid rgba(120, 190, 255, 0.85);
  outline-offset: 2px;
}

.demo-result-btn-primary {
  color: #fff;
  border-color: rgba(130, 200, 255, 0.45);
  background: linear-gradient(180deg, #5b9dff 0%, #3670e6 48%, #2958c7 100%);
  box-shadow:
    0 4px 0 rgba(20, 60, 140, 0.45),
    0 12px 28px rgba(50, 110, 220, 0.35);
}

.demo-result-btn-primary:hover {
  box-shadow:
    0 5px 0 rgba(20, 60, 140, 0.45),
    0 16px 36px rgba(50, 110, 220, 0.42);
}

.demo-result-btn-primary:active {
  box-shadow:
    0 2px 0 rgba(20, 60, 140, 0.45),
    0 8px 20px rgba(50, 110, 220, 0.3);
}

.demo-result-btn-secondary {
  color: #e8f2ff;
  border-color: rgba(150, 175, 230, 0.35);
  background: linear-gradient(180deg, rgba(45, 58, 88, 0.95) 0%, rgba(24, 32, 52, 0.98) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 8px 20px rgba(0, 0, 0, 0.25);
}

.demo-result-btn-secondary:hover {
  border-color: rgba(180, 200, 255, 0.45);
  background: linear-gradient(180deg, rgba(55, 70, 105, 0.98) 0%, rgba(30, 40, 68, 0.99) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .demo-result-modal-backdrop {
    transition: none;
  }

  .demo-result-modal {
    transition: none;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .demo-result-modal-root.demo-result--lose .demo-result-hero-lose {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .demo-result-lose-aurora,
  .demo-result-lose-orbit,
  .demo-result-lose-core,
  .demo-result-lose-spark {
    animation: none !important;
  }

  .demo-result-lose-aurora {
    opacity: 0.85;
    transform: none;
  }

  .demo-result-lose-orbit {
    transform: none;
  }

  .demo-result-lose-core {
    transform: none;
  }

  .demo-result-lose-spark {
    opacity: 0.55;
    transform: scale(1);
  }

  .demo-result-modal-root.demo-result--win.open .demo-result-win-card {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .demo-result-win-accent-bar {
    animation: none;
  }

  .demo-result-win-badge-ok {
    animation: none;
  }

  .demo-result-btn:hover,
  .demo-result-btn:active {
    transform: none;
  }

  .demo-result-btn-shine {
    display: none;
  }
}

.bet-step-btn:hover,
.bet-submit-btn:hover {
  filter: brightness(1.08);
}

.bet-step-btn:active,
.bet-submit-btn:active {
  transform: translateY(1px) scale(0.99);
}

.bet-step-btn {
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
  background: linear-gradient(180deg, #2c3f71, #1b2a50);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 14px rgba(10, 20, 45, 0.45);
}

.bet-input {
  font-family: var(--ui-font-main);
  width: 182px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(99, 179, 255, 0.55);
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #e8f2ff;
  background: linear-gradient(180deg, rgba(15, 22, 39, 0.95), rgba(11, 16, 30, 0.92));
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 4px 10px rgba(0, 0, 0, 0.35);
}

.bet-input:focus {
  border-color: rgba(58, 187, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(58, 187, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.bet-submit-btn {
  min-width: 182px;
  height: 42px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: linear-gradient(180deg, #30d66b, #138f45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 16px rgba(15, 110, 56, 0.42);
  padding: 0 20px;
}

/* HUD de pontuação do jogo base: oculto na versão com apostas; o DOM (.js-score) permanece para leitura. */
#game-ui .score-container {
  display: none !important;
}

/* Modais: perda em aposta real e saldo abaixo do mínimo */
.real-round-modal-root {
  font-family: var(--ui-font-main);
  position: fixed;
  inset: 0;
  z-index: 3750;
  display: none;
}

.real-round-modal-root.open {
  display: block;
  overflow-x: hidden;
}

.real-round-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 70% at 50% 0%, rgba(99, 132, 255, 0.14), transparent 55%),
    rgba(4, 8, 18, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.real-round-modal-root.open .real-round-modal-backdrop {
  opacity: 1;
}

.real-round-modal-root--lose .real-round-modal-backdrop {
  background:
    radial-gradient(ellipse 120% 70% at 50% 0%, rgba(220, 38, 38, 0.16), transparent 55%),
    rgba(10, 4, 8, 0.82);
}

.real-round-modal-root--win .real-round-modal-backdrop {
  background:
    radial-gradient(ellipse 120% 70% at 50% 0%, rgba(16, 185, 129, 0.2), transparent 55%),
    rgba(4, 12, 10, 0.82);
}

.real-round-modal--win-panel {
  border-color: rgba(52, 211, 153, 0.5);
  background: linear-gradient(165deg, rgba(12, 38, 32, 0.97) 0%, rgba(8, 22, 18, 0.99) 50%, rgba(6, 14, 12, 1) 100%);
  box-shadow:
    0 0 0 1px rgba(167, 243, 208, 0.15) inset,
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 72px rgba(16, 185, 129, 0.2);
}

.real-round-modal-glow--win-green {
  background:
    radial-gradient(ellipse closest-side at 50% 0%, rgba(52, 211, 153, 0.35), transparent 68%),
    radial-gradient(ellipse 90% 50% at 50% 18%, rgba(5, 150, 105, 0.2), transparent 72%);
}

.real-round-win-inner {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0 auto;
}

.real-round-win-chip {
  display: table;
  margin: 0 auto 12px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #064e3b;
  background: linear-gradient(90deg, #6ee7b7, #34d399);
  border: 1px solid rgba(167, 243, 208, 0.65);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}

.real-round-win-title {
  color: #ecfdf5;
  margin-bottom: 12px;
}

.real-round-modal-root--win .real-round-hero-icon--win-check {
  margin-top: 2px;
  margin-bottom: 8px;
}

.real-round-win-icon-svg {
  max-width: min(72px, 20vw);
  height: auto;
}

.real-round-win-profit {
  margin: 0 0 14px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #a7f3d0;
  line-height: 1.45;
  word-break: break-word;
}

.real-round-win-lead,
.real-round-win-copy {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: center;
  color: rgba(209, 250, 229, 0.95);
}

.real-round-win-copy {
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: rgba(220, 252, 231, 0.88);
}

.real-round-win-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.real-round-win-cta {
  position: relative;
  height: 48px;
  width: 100%;
  border-radius: 14px;
  font-family: var(--ui-font-main);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(167, 243, 208, 0.55);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #6ee7b7 0%, #10b981 48%, #059669 100%);
  box-shadow:
    0 4px 0 rgba(6, 78, 59, 0.45),
    0 12px 28px rgba(16, 185, 129, 0.4);
  transition:
    transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.2s ease,
    filter 0.18s ease;
}

.real-round-win-cta-shine {
  position: absolute;
  inset: 0;
  left: -100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.28) 45%, transparent 70%);
  transition: left 0.55s ease;
  pointer-events: none;
}

.real-round-win-cta:hover .real-round-win-cta-shine {
  left: 100%;
}

.real-round-win-cta-label {
  position: relative;
  z-index: 1;
  color: #fff;
}

.real-round-win-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 5px 0 rgba(6, 78, 59, 0.45),
    0 16px 36px rgba(16, 185, 129, 0.48);
}

.real-round-win-cta:active {
  transform: translateY(0) scale(0.985);
  box-shadow:
    0 2px 0 rgba(6, 78, 59, 0.45),
    0 8px 20px rgba(16, 185, 129, 0.35);
}

.real-round-win-cta:focus-visible {
  outline: 2px solid rgba(167, 243, 208, 0.95);
  outline-offset: 2px;
}

.real-round-modal-close--win {
  color: #d1fae5;
  background: rgba(6, 95, 70, 0.45);
}

.real-round-modal-close--win:hover {
  background: rgba(5, 150, 105, 0.6);
  color: #fff;
}

.real-round-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  box-sizing: border-box;
  width: min(92vw, 400px);
  max-width: calc(100vw - 24px);
  max-height: min(88vh, 620px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 26px 24px 24px;
  transform: translate(-50%, -48%) scale(0.95);
  opacity: 0;
  border-radius: 22px;
  border: 1px solid rgba(140, 180, 255, 0.22);
  background: linear-gradient(165deg, rgba(22, 30, 52, 0.96) 0%, rgba(10, 14, 28, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(90, 130, 255, 0.09);
  color: #e8f2ff;
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.real-round-modal-root.open .real-round-modal {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.real-round-modal--lose-panel {
  border-color: rgba(255, 120, 145, 0.65);
  background: linear-gradient(165deg, rgba(56, 14, 28, 0.97) 0%, rgba(22, 8, 14, 0.99) 55%, rgba(12, 6, 10, 1) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 100, 130, 0.14) inset,
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 0 88px rgba(244, 63, 94, 0.42);
}

.real-round-modal-glow--lose-red {
  background:
    radial-gradient(ellipse closest-side at 50% 0%, rgba(255, 120, 140, 0.45), transparent 62%),
    radial-gradient(ellipse 90% 50% at 50% 18%, rgba(244, 63, 94, 0.28), transparent 72%);
}

.real-round-lose-inner {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0 auto;
}

.real-round-lose-chip {
  display: table;
  margin: 0 auto 12px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, #ff6d8a 0%, #f43f5e 50%, #e11d48 100%);
  border: 1px solid rgba(255, 185, 200, 0.9);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 4px 18px rgba(244, 63, 94, 0.5),
    0 0 28px rgba(255, 90, 120, 0.35);
}

.real-round-lose-title {
  color: #fff5f5;
  margin-bottom: 12px;
}

.real-round-modal-root--lose .real-round-hero-icon {
  margin-top: 2px;
  margin-bottom: 8px;
}

.real-round-lose-icon-svg {
  max-width: min(72px, 20vw);
  height: auto;
}

.real-round-lose-stake {
  margin: 0 0 14px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fca5a5;
  line-height: 1.4;
  word-break: break-word;
}

.real-round-lose-lead,
.real-round-lose-copy {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: center;
  color: rgba(254, 226, 226, 0.92);
}

.real-round-lose-copy {
  margin-bottom: 20px;
  color: rgba(254, 242, 242, 0.86);
  font-size: 0.88rem;
}

.real-round-lose-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

/* Botão primário no padrão da demo, em vermelho (CTA pós-perda) */
.real-round-lose-cta {
  position: relative;
  height: 48px;
  width: 100%;
  border-radius: 14px;
  font-family: var(--ui-font-main);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(255, 170, 190, 0.95);
  overflow: hidden;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, #ff7c96 0%, #f43f5e 38%, #e11d48 72%, #be123c 100%);
  box-shadow:
    0 4px 0 rgba(136, 19, 55, 0.5),
    0 12px 32px rgba(244, 63, 94, 0.55),
    0 0 40px rgba(255, 90, 120, 0.35);
  transition:
    transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.2s ease,
    filter 0.18s ease;
}

.real-round-lose-cta-shine {
  position: absolute;
  inset: 0;
  left: -100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.25) 45%, transparent 70%);
  transition: left 0.55s ease;
  pointer-events: none;
}

.real-round-lose-cta:hover .real-round-lose-cta-shine {
  left: 100%;
}

.real-round-lose-cta-label {
  position: relative;
  z-index: 1;
}

.real-round-lose-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow:
    0 5px 0 rgba(136, 19, 55, 0.5),
    0 16px 40px rgba(244, 63, 94, 0.62),
    0 0 52px rgba(255, 110, 140, 0.42);
}

.real-round-lose-cta:active {
  transform: translateY(0) scale(0.985);
  box-shadow:
    0 2px 0 rgba(136, 19, 55, 0.5),
    0 8px 22px rgba(244, 63, 94, 0.45);
}

.real-round-lose-cta:focus-visible {
  outline: 2px solid rgba(252, 165, 165, 0.95);
  outline-offset: 2px;
}

.real-round-modal-close--lose {
  color: #fff5f5;
  background: rgba(244, 63, 94, 0.35);
}

.real-round-modal-close--lose:hover {
  background: rgba(225, 29, 72, 0.65);
  color: #fff;
}

.real-round-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #b8c9e8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.real-round-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.real-round-modal-glow {
  position: absolute;
  top: -36%;
  left: 50%;
  width: 130%;
  height: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse closest-side, rgba(251, 146, 60, 0.16), transparent 72%);
  pointer-events: none;
}

.real-round-modal-glow--broke {
  background: radial-gradient(ellipse closest-side, rgba(52, 211, 153, 0.2), transparent 70%);
}

.real-round-hero-icon {
  display: flex;
  justify-content: center;
  margin: 4px 0 10px;
  position: relative;
  z-index: 1;
}

.real-round-hero-icon svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.real-round-modal-title {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.25;
}

.real-round-modal-copy,
.real-round-modal-lead,
.real-round-modal-sub {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(216, 230, 255, 0.88);
  text-align: center;
}

.real-round-modal-lead {
  font-size: 1.02rem;
  color: #e8f2ff;
}

.real-round-modal-root--broke .real-round-modal {
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 100px rgba(45, 212, 130, 0.12);
}

.real-round-offer-chip {
  display: table;
  margin: 0 auto 10px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #065f46;
  background: linear-gradient(90deg, #a7f3d0, #6ee7b7);
  box-shadow: 0 2px 12px rgba(45, 212, 130, 0.35);
  position: relative;
  z-index: 1;
}

.real-round-bonus {
  color: #6ee7b7;
}

.real-round-modal-sub {
  font-size: 0.86rem;
  opacity: 0.85;
  margin-bottom: 18px;
}

.real-round-actions-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.real-round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.real-round-btn:active {
  transform: translateY(1px) scale(0.99);
}

.real-round-btn-primary {
  color: #04120a;
  background: linear-gradient(180deg, #5eead4, #14b8a6);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 10px 28px rgba(20, 184, 166, 0.45);
}

.real-round-btn-primary:hover {
  filter: brightness(1.05);
}

.real-round-btn-shout {
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.real-round-btn-ghost {
  background: transparent;
  color: rgba(200, 216, 245, 0.85);
  border: 1px solid rgba(148, 176, 220, 0.35);
  box-shadow: none;
}

.real-round-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

@media (max-width: 480px) {
  .real-round-modal {
    padding: 22px 18px 20px;
  }

  .real-round-modal--lose-panel {
    padding: 22px 16px 20px;
  }

  .real-round-modal--win-panel {
    padding: 22px 16px 20px;
  }

  .real-round-modal-title {
    font-size: 1.2rem;
  }

  .real-round-lose-title {
    font-size: 1.15rem;
  }

  .real-round-win-title {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .real-round-lose-cta-shine {
    transition: none;
  }

  .real-round-lose-cta:hover .real-round-lose-cta-shine {
    left: -100%;
  }

  .real-round-win-cta-shine {
    transition: none;
  }

  .real-round-win-cta:hover .real-round-win-cta-shine {
    left: -100%;
  }
}

/* Modo Copa (admin): leve realce — o fundo amarelo/verde vem do gradiente JS em .background-gradient */
body[data-helix-world-cup="1"] canvas#three.canvas,
body[data-helix-world-cup="1"] canvas#pixi.helix-world-cup-canvas {
  filter: saturate(1.06);
}
