/* NX PROFILE V1.8 — somente perfil, sem alterar funcoes ou dados. */
html:has(body.nx18-profile-route) { background: #050506; }
body.nx18-profile-route .profile-container {
  background: #050506 !important;
  color: #f6f6f7;
  min-height: calc(100dvh - 72px);
  height: auto !important;
  padding: 0 0 92px;
  overflow: visible !important;
  scrollbar-width: none;
}
body.nx18-profile-route .profile-container::-webkit-scrollbar { display: none; }

/* O banner VIP original continua intacto. */
body.nx18-profile-route .profile-container > .user-profile:nth-of-type(2) {
  margin: 8px 12px 0;
  padding: 15px 12px 10px !important;
  width: auto !important;
  background: linear-gradient(145deg,#444449 0%,#252529 62%,#1e1e22 100%) !important;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 17px;
  box-shadow: 0 9px 26px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.035);
}
body.nx18-profile-route .profile-container > .user-profile:nth-of-type(2) > .w-full.flex.justify {
  display: flex !important;
  align-items: center !important;
  min-width: 0;
}
body.nx18-profile-route .profile-container .avatar-section { flex: 0 0 50px; }
body.nx18-profile-route .profile-container .avatar-section img.bordafoto {
  width: 50px !important; height: 50px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid #9994a8 !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,.055);
}
body.nx18-profile-route .profile-container .user-details {
  flex: 1 1 auto !important;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
body.nx18-profile-route .profile-container .user-details > .flex.flex-col:first-child {
  flex: 1 1 auto; min-width: 0;
}
body.nx18-profile-route .profile-container .user-details > .flex.flex-col:first-child p {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body.nx18-profile-route .profile-container .user-details .text-color { color: #f6f6f7 !important; }
body.nx18-profile-route .profile-container .user-details > .flex.flex-col:last-child {
  flex: 0 0 auto; max-width: 44%; min-width: 92px;
}
body.nx18-profile-route .profile-container .user-details .borisg.background-bottom-navigation {
  background: rgba(5,5,8,.19) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  padding: 5px 7px !important; border-radius: 11px;
  min-height: 39px; justify-content: flex-end;
}
body.nx18-profile-route .profile-container .user-details .textsss {
  color: #fff !important; font-size: 16px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
body.nx18-profile-route .profile-container .user-details .imghd { border: 0 !important; margin-right: 3px !important; }
body.nx18-profile-route .profile-container .user-details .imghd img {
  width: 20px !important; height: 20px !important; margin: 0 !important;
}
body.nx18-profile-route .profile-container > .user-profile:nth-of-type(2) > .grid.grid-cols-3 {
  margin-top: 10px !important; padding: 7px 2px 2px !important;
  gap: 0 !important; border-top: 1px solid rgba(255,255,255,.12);
}
body.nx18-profile-route .profile-container > .user-profile:nth-of-type(2) > .grid.grid-cols-3 > button {
  min-height: 62px; padding: 7px 3px;
  border-radius: 10px; color: #fafafa !important;
  font-size: 13px; line-height: 1.25;
  transition: background-color .18s ease, transform .18s ease;
}
body.nx18-profile-route .profile-container > .user-profile:nth-of-type(2) > .grid.grid-cols-3 > button:active {
  transform: scale(.96); background: rgba(255,255,255,.09);
}
body.nx18-profile-route .profile-container > .user-profile:nth-of-type(2) > .grid.grid-cols-3 > button img {
  width: auto; height: 30px !important; max-width: 35px; object-fit: contain;
  margin-bottom: 6px !important;
}
body.nx18-profile-route .profile-container > .user-profile:nth-of-type(2) > .w-full.flex.p-1 {
  margin-top: 2px; padding: 5px 0 !important;
}
body.nx18-profile-route .profile-container > .user-profile:nth-of-type(2) > .w-full.flex.p-1 button {
  font-size: 12px; color: #d0cbd7 !important;
}

/* Os itens do perfil agora sao cards separados, como na referencia. */
body.nx18-profile-route .profile-container > .wallet-info {
  padding: 12px 13px 16px !important;
  margin: 0 !important;
  display: grid !important;
  gap: 9px !important;
  background: #050506 !important;
  border: 0 !important;
}
body.nx18-profile-route .profile-container > .wallet-info > .btn-nav {
  display: flex !important;
  align-items: center !important;
  width: 100%; min-width: 0; min-height: 62px;
  margin: 0 !important;
  padding: 12px 45px 12px 17px !important;
  border-radius: 14px !important;
  border: 1px solid #28282d !important;
  background: #1b1b1e !important;
  color: #f1f1f4 !important;
  font-size: 15px; font-weight: 500;
  line-height: 1.3; letter-spacing: -.12px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
body.nx18-profile-route .profile-container > .wallet-info > .btn-nav:hover {
  background: #242428 !important;
  border-color: #3c3943 !important;
}
body.nx18-profile-route .profile-container > .wallet-info > .btn-nav:active {
  transform: scale(.985);
  background: #29282e !important;
}
body.nx18-profile-route .profile-container > .wallet-info > .btn-nav:focus-visible {
  outline: 2px solid #9462bc; outline-offset: 2px;
}
body.nx18-profile-route .profile-container > .wallet-info > .btn-nav .icon-left {
  flex: 0 0 26px;
  width: 26px !important; height: 26px !important;
  margin: 0 17px 0 0 !important;
  object-fit: contain;
  filter: grayscale(1) brightness(2.2);
  opacity: .93;
}
body.nx18-profile-route .profile-container > .wallet-info > .btn-nav .fa-chevron-right {
  right: 17px !important;
  color: #9998a0 !important;
  font-size: 15px; opacity: .9;
  transition: transform .18s ease;
}
body.nx18-profile-route .profile-container > .wallet-info > .btn-nav:hover .fa-chevron-right {
  transform: translateX(2px);
}

/* Modais de perfil/PIX e senha de saque: apenas a aparencia. */
body.nx18-profile-route .modal-container {
  z-index: 70 !important;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)) !important;
}
body.nx18-profile-route .modal-container > .relative {
  width: 100% !important;
  max-width: 420px !important;
}
body.nx18-profile-route .modal-container .modal-content {
  width: 100%; max-height: calc(100dvh - 42px); overflow-y: auto;
  background: #202024 !important;
  color: #f7f7f8 !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 72px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.035) !important;
  padding: 16px !important;
  animation: nx18-modal-in .24s ease-out both;
}
body.nx18-profile-route .modal-container .modal-content h2,
body.nx18-profile-route .modal-container .modal-content h3,
body.nx18-profile-route .modal-container .modal-content .text-color {
  color: #f6f6f8 !important;
}
body.nx18-profile-route .modal-container .modal-content input,
body.nx18-profile-route .modal-container .modal-content select,
body.nx18-profile-route .modal-container .modal-content textarea {
  background: #121215 !important;
  color: #f8f8fa !important;
  border: 1px solid #42414a !important;
  border-radius: 11px !important;
  min-height: 43px;
}
body.nx18-profile-route .modal-container .modal-content input::placeholder {
  color: #91919a !important;
}
body.nx18-profile-route .modal-container .modal-content input:focus,
body.nx18-profile-route .modal-container .modal-content select:focus {
  outline: 2px solid rgba(160,107,202,.7) !important;
  outline-offset: 1px;
}
body.nx18-profile-route .modal-container .modal-content button.botose,
body.nx18-profile-route .modal-container .modal-content button[type="submit"] {
  background: #5b2382 !important;
  color: #fff !important;
  border-radius: 11px !important;
  min-height: 44px;
  font-weight: 600;
}
body.nx18-profile-route .modal-container .modal-content button.botose:active,
body.nx18-profile-route .modal-container .modal-content button[type="submit"]:active {
  filter: brightness(1.14);
}
/* O modal de receber comissoes tambem ganha o mesmo acabamento. */
body.nx18-profile-route #nx-aff-shell .nx-modal {
  background: #202024 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 20px !important;
  box-shadow: 0 23px 75px rgba(0,0,0,.77), inset 0 1px 0 rgba(255,255,255,.04) !important;
  padding: 18px !important;
}
body.nx18-profile-route #nx-aff-shell .nx-modal::backdrop {
  background: rgba(0,0,0,.78) !important;
  backdrop-filter: blur(3px);
}

@keyframes nx18-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 365px) {
  body.nx18-profile-route .profile-container > .user-profile:nth-of-type(2) {
    margin-left: 9px; margin-right: 9px; padding: 12px 9px !important;
  }
  body.nx18-profile-route .profile-container .user-details { gap: 3px; }
  body.nx18-profile-route .profile-container .user-details .textsss { font-size: 14px; }
  body.nx18-profile-route .profile-container > .wallet-info { padding: 10px 9px 15px !important; }
  body.nx18-profile-route .profile-container > .wallet-info > .btn-nav { min-height: 59px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body.nx18-profile-route .profile-container .btn-nav,
  body.nx18-profile-route .profile-container button,
  body.nx18-profile-route .modal-container .modal-content {
    animation: none !important; transition: none !important;
  }
}
