.route-loading {
  min-height: 100vh;
  background: #f2f2f2;
}

/* Never expose the server-rendered demo values while account data is loading. */
#app[data-hydrating="true"] {
  position: relative;
  min-height: 100vh;
  background: #f2f2f2;
}

#app[data-hydrating="true"] > * {
  visibility: hidden;
}

#app[data-hydrating="true"]::after {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  color: #666;
  font-size: 14px;
  content: "Carregando seus dados...";
  pointer-events: none;
}

#app[data-hydration-error="true"] > *:not(.app-data-state) {
  display: none;
}

.app-data-state {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  color: #666;
  font-size: 14px;
  text-align: center;
}

.app-data-state p {
  max-width: 280px;
  margin: 0;
  line-height: 1.5;
}

/* The generated page styles use white text for fields on dark forms. Keep
   the transfer-key selector intentionally light so its native options remain
   readable on every browser. */
.account-key-select {
  display: inline-block;
  width: 100%;
  min-height: 44px;
  margin-top: 24px;
  padding: 9px 14px;
  border: 1px solid #c9c9c9 !important;
  border-radius: 10px;
  background-color: #fff !important;
  color: #36485c !important;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  outline: none;
  cursor: pointer;
  color-scheme: light;
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

.account-key-select:focus,
.account-key-select:focus-visible {
  border-color: #50b949 !important;
  box-shadow: 0 0 0 3px rgb(80 185 73 / 18%);
}

.account-key-select:hover {
  border-color: #8e9aaa !important;
}

.account-key-select:invalid {
  color: #737b86 !important;
  font-weight: 400;
}

.account-key-select option {
  background: #fff;
  color: #36485c;
  font-size: 15px;
}

/* Invite banner layout: keep long links and compact stats inside their grid. */
.invite-hero {
  height: clamp(360px, 88vw, 410px);
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
}

.invite-hero__image {
  display: block;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.invite-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 4vw, 24px);
  padding-inline: clamp(24px, 9vw, 42px);
}

.invite-summary__item,
.invite-detail,
.invite-action,
.team-level-grid > div {
  min-width: 0;
}

.invite-summary__item > div:last-child {
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.invite-details {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(10px, 3vw, 18px);
  align-items: stretch;
  bottom: clamp(84px, 22%, 105px);
  padding-inline: clamp(24px, 9vw, 42px);
}

.invite-detail {
  align-self: stretch;
  padding: 8px;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 10px;
  background: rgb(0 0 0 / 28%);
  padding-inline: 8px;
}

.invite-detail > div:first-child {
  font-size: clamp(13px, 3.5vw, 15px);
  line-height: 1.2;
}

.invite-value {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.invite-value--code {
  font-size: clamp(17px, 5.2vw, 23px);
  line-height: 1.1;
}

.invite-value--url {
  font-size: clamp(9px, 2.7vw, 12px);
  line-height: 1.35;
}

.invite-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  bottom: clamp(16px, 4%, 22px);
  padding-inline: clamp(24px, 9vw, 42px);
}

.invite-action {
  overflow: hidden;
  padding-inline: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-level-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-level-grid > div {
  overflow: hidden;
  text-align: center;
}

.team-level-grid .text-xl {
  font-size: clamp(15px, 4.5vw, 20px);
  line-height: 1.15;
}

.team-level-grid .text-sm {
  font-size: clamp(10px, 3vw, 14px);
  line-height: 1.2;
  white-space: nowrap;
}

/* Home layout: keep image cards and quick actions inside the viewport. */
.home-page {
  width: 100%;
  max-width: 450px;
  margin-inline: auto;
  overflow: hidden;
  padding-bottom: 12px;
}

.home-hero {
  height: clamp(220px, 68vw, 287px);
  min-height: 220px;
}

.home-hero__image {
  display: block;
  object-position: center top;
}

.home-hero__copy {
  bottom: clamp(22px, 8%, 34px);
  gap: 12px;
  padding-inline: clamp(14px, 5vw, 20px);
}

.home-hero__text,
.home-hero__action {
  min-width: 0;
}

.home-hero__text {
  padding-left: 0;
}

.home-hero__title,
.home-hero__subtitle {
  overflow-wrap: anywhere;
}

.home-hero__title {
  font-size: clamp(13px, 3.8vw, 15px);
  line-height: 1.2;
}

.home-hero__subtitle {
  line-height: 1.3;
}

.home-hero__action {
  flex: 0 0 auto;
  padding-right: 0;
}

.home-quick-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: clamp(4px, 1.5vw, 10px);
  padding-inline: 8px;
}

.home-quick-action {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
}

.home-quick-action span {
  display: block;
  line-height: 1.2;
  text-align: center;
}

.home-mission-banner {
  overflow: hidden;
}

.home-mission-banner__image {
  display: block;
  min-height: 82px;
  height: auto;
  object-fit: cover;
}

.home-mission-banner__content {
  top: 50%;
  right: 3%;
  left: 58%;
  width: 39%;
  gap: 4px;
  transform: translateY(-50%);
  text-align: center;
}

.home-mission-banner__content > div:first-child {
  font-size: clamp(14px, 4.5vw, 20px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.home-mission-banner__content > div:last-child {
  margin-top: 2px;
  padding-inline: clamp(16px, 5vw, 26px);
  white-space: nowrap;
}

.home-balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(6px, 2vw, 10px);
}

.home-balance-card,
.home-balance-side {
  min-width: 0;
}

.home-balance-card {
  overflow: hidden;
}

.home-balance-card > img {
  display: block;
  width: 100%;
  height: auto;
}

.home-balance-side {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, 2vw, 10px);
  margin-left: 0;
}

.home-balance-value {
  bottom: clamp(10px, 8%, 18px);
  top: auto;
  min-width: 0;
  padding-inline: clamp(8px, 3vw, 14px);
}

.home-balance-value > div {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

@media (max-width: 360px) {
  .home-quick-actions {
    padding-inline: 5px;
  }

  .home-quick-action {
    font-size: 10px;
  }

  .home-hero__copy {
    gap: 8px;
  }

  .home-mission-banner__content > div:first-child {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .invite-hero {
    height: 400px;
  }

  .invite-hero__image {
    object-position: 58% center;
  }

  .invite-details {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    bottom: 108px;
  }

  .invite-action {
    font-size: 14px;
  }
}

.app-clickable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 140ms ease,
    opacity 140ms ease;
}

.app-clickable:active,
button:active:not(:disabled) {
  opacity: 0.82;
  transform: scale(0.97);
}

/* Keep the product catalog limited to the four available offers. */
.product-list > :nth-child(n + 5) {
  display: none;
}

.route-enter {
  animation: route-fade-in-forward 220ms ease-out both;
}

.route-enter--back {
  animation-name: route-fade-in-back;
}

::view-transition-old(root) {
  animation: route-out-forward 180ms cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(root) {
  animation: route-in-forward 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

html[data-nav-direction="back"]::view-transition-old(root) {
  animation-name: route-out-back;
}

html[data-nav-direction="back"]::view-transition-new(root) {
  animation-name: route-in-back;
}

.van-tabbar-item--active .van-tabbar-item__icon {
  animation: nav-icon-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-toast {
  position: fixed;
  z-index: 5000;
  left: 50%;
  bottom: 96px;
  width: max-content;
  max-width: min(360px, calc(100vw - 40px));
  padding: 10px 16px;
  color: #fff;
  background: rgba(0, 0, 0, 0.82);
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  transform: translateX(-50%);
  transition: opacity 180ms ease;
}

.app-overlay {
  position: fixed;
  z-index: 4900;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
}

.app-dialog {
  width: min(360px, 100%);
  overflow: hidden;
  border-radius: 8px;
  background: #f1f1f3;
  color: #222;
  text-align: left;
}

.app-dialog__body {
  padding: 22px 20px 18px;
}

.app-dialog__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.app-dialog__message {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.app-dialog__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #d7d7d7;
}

.app-dialog__actions button {
  height: 46px;
  border: 0;
  background: #fff;
  color: #222;
  font-size: 15px;
}

.app-dialog__actions button + button {
  border-left: 1px solid #d7d7d7;
  background: #000;
  color: #fff;
}

.app-overlay[data-dialog-tone="destructive"] .app-dialog__actions button[data-dialog="confirm"] {
  background: #bd3434;
  color: #fff;
  font-weight: 600;
}

.app-overlay[data-dialog-tone="destructive"] .app-dialog__actions button[data-dialog="confirm"]:hover {
  background: #a92e2e;
}

.van-notice-bar__content {
  animation: local-notice 12s linear infinite;
}

@keyframes local-notice {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes route-out-forward {
  to {
    opacity: 0;
    transform: translateX(-14px);
  }
}

@keyframes route-in-forward {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
}

@keyframes route-out-back {
  to {
    opacity: 0;
    transform: translateX(14px);
  }
}

@keyframes route-in-back {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }
}

@keyframes route-fade-in-forward {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
}

@keyframes route-fade-in-back {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
}

@keyframes nav-icon-in {
  from {
    opacity: 0.55;
    transform: translateY(3px) scale(0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .van-notice-bar__content,
  .route-enter,
  .van-tabbar-item--active .van-tabbar-item__icon {
    animation: none;
  }

  .app-clickable,
  button {
    transition: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* Recharge problem page (formerly a lazy-loaded Vue stylesheet). */
[data-v-3ee5287c] .van-field {
  background-color: #fff !important;
  border-bottom: 1px solid #eee !important;
}

[data-v-3ee5287c] .van-field__control {
  color: #333 !important;
  font-size: 16px !important;
}

[data-v-3ee5287c] .van-field__control::placeholder {
  color: #666 !important;
}

[data-v-3ee5287c] .van-uploader {
  display: block;
  width: 100%;
}

[data-v-3ee5287c] .van-uploader__wrapper {
  justify-content: center;
}

[data-v-3ee5287c] .van-uploader__preview {
  margin: 0 auto;
}

[data-v-3ee5287c] .van-uploader__input-wrapper {
  width: 100%;
}

[data-v-3ee5287c] .van-button {
  color: #fff !important;
}

/* Regulation page intentionally stays empty. */
.regulation-page {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.regulation-header {
  width: 100%;
  max-width: 450px;
  margin-inline: auto;
}

.regulation-header__inner {
  min-height: 64px;
  box-shadow: 0 1px 4px rgb(0 0 0 / 6%);
}

.regulation-back {
  border-radius: 8px;
}

.regulation-back:active {
  background: rgb(0 0 0 / 6%);
}

/* Recharge and withdrawal forms: keep the amount controls visible and aligned
   over their respective banners at every supported viewport width. */
.recharge-page,
.withdrawal-page {
  width: 100%;
  padding-bottom: 24px;
  overflow: hidden;
}

.recharge-header,
.withdrawal-header {
  width: 100%;
  max-width: 450px;
  margin-inline: auto;
}

.recharge-header__inner,
.withdrawal-header__inner {
  min-height: 64px;
  box-shadow: 0 1px 4px rgb(0 0 0 / 6%);
}

.recharge-main {
  margin-top: 64px;
  padding: 12px 16px 24px;
  min-height: 196px;
  box-sizing: border-box;
}

.recharge-main > .recharge-hero__background,
.recharge-main > .recharge-hero__artwork,
.recharge-main > .recharge-hero__content {
  position: absolute;
}

.recharge-main::before {
  display: block;
  height: 0;
  content: "";
}

.recharge-main > .recharge-hero__background {
  top: 12px;
  right: 16px;
  left: 16px;
  width: calc(100% - 32px);
  height: 172px;
  min-height: 0;
  border-radius: 14px;
  object-fit: cover;
}

.recharge-main > .recharge-hero__artwork {
  top: 12px;
  right: 16px;
  bottom: auto;
  height: 172px;
  overflow: hidden;
  border-radius: 0 14px 14px 0;
  pointer-events: none;
}

.recharge-main > .recharge-hero__artwork img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: right bottom;
}

.recharge-main > .recharge-hero__content {
  top: 12px;
  left: 16px;
  width: min(64%, 270px);
  height: 172px;
  padding: 20px 18px;
  text-align: left;
  z-index: 1;
}

.recharge-hero__title {
  color: #d7e7f7 !important;
  font-size: 20px !important;
  line-height: 1.2;
}

.recharge-amount {
  margin-top: 18px !important;
}

.recharge-amount__symbol,
.withdrawal-amount__symbol {
  z-index: 2;
  color: #27435e !important;
  font-size: 17px !important;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.recharge-amount__symbol {
  left: 12px !important;
}

.recharge-amount__input,
.withdrawal-amount__input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px 10px 48px !important;
  border: 1px solid rgb(39 67 94 / 28%) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #1f3347 !important;
  caret-color: #1f3347;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  outline: none;
  box-shadow: 0 2px 8px rgb(17 42 67 / 12%);
}

.recharge-amount__input::placeholder,
.withdrawal-amount__input::placeholder {
  color: #748292 !important;
  opacity: 1;
}

.recharge-amount__input:focus,
.withdrawal-amount__input:focus {
  border-color: #5b88b3 !important;
  box-shadow: 0 0 0 3px rgb(91 136 179 / 20%);
}

.recharge-quick-grid {
  position: relative;
  z-index: 2;
  margin: 4px 0 0 !important;
  padding: 12px !important;
  gap: 10px !important;
}

.recharge-quick-option {
  min-width: 0;
  color: #516170 !important;
  font-size: 15px;
}

.recharge-channel-card {
  position: relative;
  z-index: 2;
  margin-inline: 0 !important;
  padding: 16px !important;
}

.withdrawal-main {
  margin-top: 64px;
  min-height: 0;
}

.withdrawal-main > .withdrawal-hero__background {
  display: block;
  width: 100%;
  height: 330px;
  min-height: 0;
  object-fit: cover;
}

.withdrawal-balance {
  top: 34px !important;
  z-index: 1;
}

.withdrawal-hero__icon {
  top: 120px !important;
  z-index: 1;
}

.withdrawal-hero__icon img {
  width: min(70%, 270px);
  height: auto !important;
  object-fit: contain;
}

.withdrawal-amount {
  right: 0;
  bottom: 22px !important;
  z-index: 2;
}

.withdrawal-amount__field {
  padding-inline: 20px !important;
}

.withdrawal-amount__symbol {
  left: 30px;
  padding-left: 0 !important;
}

.withdrawal-bank-card {
  margin-inline: 18px !important;
  padding: 6px 12px !important;
}

.withdrawal-confirm button {
  max-width: calc(100% - 36px);
}

.withdrawal-note {
  margin-inline: 18px !important;
}

.recharge-back,
.withdrawal-back {
  border-radius: 8px;
}

.recharge-back:active,
.withdrawal-back:active {
  background: rgb(0 0 0 / 6%);
}

@media (max-width: 380px) {
  .recharge-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recharge-main > .recharge-hero__content {
    width: 68%;
    padding-inline: 14px;
  }

  .recharge-hero__title {
    font-size: 18px !important;
  }
}

/* Compact account layout: preserve the original artwork while removing
   decorative gaps that make the page feel sparse on small screens. */
.my-page {
  width: 100%;
  max-width: 450px;
  margin-inline: auto;
  padding-bottom: 84px;
  overflow: hidden;
}

.my-profile-banner {
  height: clamp(270px, 70vw, 290px);
  overflow: hidden;
}

.my-profile-banner__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  object-fit: cover;
  object-position: center top;
}

.my-profile-identity {
  top: 23%;
  height: 82px;
  padding-inline: 18px;
}

.my-profile-summary {
  bottom: 30px;
  height: 74px;
  padding-inline: 18px;
  gap: 18px;
}

.my-profile-summary > div {
  min-width: 0;
}

.my-profile-summary p {
  margin-top: 0 !important;
  line-height: 1.2;
}

.my-account-actions {
  min-height: 70px;
  height: 70px;
  margin: 10px 14px 0;
  gap: 0;
}

.my-account-actions > div {
  min-width: 0;
}

.my-account-actions img {
  max-height: 24px;
  width: auto;
}

.my-account-actions span {
  margin-top: 5px !important;
  line-height: 1.15;
}

.my-account-task {
  height: 82px;
  min-height: 82px;
  margin: 10px 14px 0;
  overflow: hidden;
}

.my-account-task > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.my-account-task__content {
  top: 0;
  right: 0;
  height: 100%;
  margin-right: 10px;
  padding-left: 12px;
  gap: 2px;
}

.my-account-task__content > div {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.my-account-task__content > div:nth-child(2) {
  font-size: 11px;
}

.my-account-task__content > div:last-child {
  padding-inline: 24px;
  line-height: 1.35;
}

.my-account-links {
  margin: 16px 14px 0;
  column-gap: 8px;
  row-gap: 12px;
}

.my-account-links > div,
.my-account-links > a {
  min-width: 0;
}

.my-account-links > div > div,
.my-account-links > a > div {
  padding-top: 4px !important;
}

.my-account-links span {
  max-width: 100%;
  padding-top: 4px !important;
  padding-bottom: 2px !important;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.my-account-admin-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.my-account-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 28px);
  min-height: 48px;
  margin: 22px 14px 0;
  padding: 10px 18px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  color: #c33a3a;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgb(0 0 0 / 5%);
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.my-account-logout:hover {
  border-color: #d7a5a5;
  background: #fff8f8;
}

.my-account-logout:focus-visible {
  border-color: #c33a3a;
  outline: 3px solid rgb(195 58 58 / 16%);
  outline-offset: 2px;
}

.my-account-logout:active:not(:disabled) {
  background: #fceeee;
  transform: scale(0.985);
}

.my-account-logout:disabled {
  opacity: 0.55;
  cursor: wait;
}

.my-account-logout__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  font-size: 18px;
}

.my-account-logout__label {
  letter-spacing: 0;
}

@media (max-width: 360px) {
  .my-profile-banner {
    height: 282px;
  }

  .my-profile-summary {
    gap: 10px;
  }

  .my-account-links {
    column-gap: 4px;
  }

  .my-account-links span {
    font-size: 9px;
  }
}
