/* ==========================================================================
   AXIONMESK — Histórico de operações (aba Extrato da carteira)
   ========================================================================== */

/* -------------------------------------------------- resumo */
.act-resumo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.act-resumo__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .06);
}

.act-resumo__item span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8996AA;
}

.act-resumo__item b {
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 17px;
  font-weight: 800;
  color: #F5F7FA;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.act-resumo__item b.is-up { color: #0ECB81; }
.act-resumo__item b.is-down { color: #F6465D; }

/* -------------------------------------------------- lista */
.act-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* -------------------------------------------------- item */
.act-item {
  display: flex;
  gap: 12px;
  padding: 13px;
  border-radius: 14px;
  background: linear-gradient(168deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .065);
  transition: border-color .16s ease, transform .12s ease, background .16s ease;
}

.act-item:hover {
  border-color: rgba(255, 255, 255, .12);
  background: linear-gradient(168deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}

.act-item__ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 900;
}

.act-item__ico i {
  font-style: normal;
  line-height: 1;
}

.act-item__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.act-item__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.act-item__titulo {
  font-size: 13.5px;
  font-weight: 800;
  color: #F5F7FA;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.act-item__valor {
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
  color: #F5F7FA;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: 0 0 auto;
}

.act-item--deposito .act-item__valor { color: #0ECB81; }
.act-item--saque .act-item__valor { color: #F6465D; }
.act-item--conversao .act-item__valor { color: #386BFF; }

.act-item__detalhe {
  font-size: 11.5px;
  color: #8996AA;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.act-item__foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.act-item__tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .06);
  color: #8996AA;
  line-height: 1.4;
}

.act-item__st {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 5px;
  line-height: 1.4;
}

.act-item__st.is-ok {
  background: rgba(14, 203, 129, .13);
  color: #0ECB81;
}

.act-item__st.is-err {
  background: rgba(246, 70, 93, .13);
  color: #F6465D;
}

.act-item__st.is-pend {
  background: rgba(56,107,255, .13);
  color: #386BFF;
}

.act-item__data {
  margin-left: auto;
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  color: #59606B;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* -------------------------------------------------- vazio / loading */
.act-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  padding: 42px 20px;
  border: 1px dashed rgba(255, 255, 255, .1);
  border-radius: 16px;
  color: #8996AA;
  font-size: 13px;
}

.act-empty__ico {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 6px;
  opacity: .75;
}

.act-empty b {
  font-size: 14.5px;
  font-weight: 800;
  color: #F5F7FA;
}

.act-empty p {
  margin: 0;
  max-width: 300px;
  line-height: 1.5;
  font-size: 12.5px;
}

.act-empty__spin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .12);
  border-top-color: #386BFF;
  animation: actSpin .7s linear infinite;
  margin-bottom: 4px;
}

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

/* -------------------------------------------------- mobile */
@media (max-width: 900px) {
  .act-resumo { gap: 6px; }

  .act-resumo__item { padding: 9px 10px; border-radius: 10px; }
  .act-resumo__item span { font-size: 8.5px; }
  .act-resumo__item b { font-size: 15px; }

  .act-list { gap: 7px; }

  .act-item {
    padding: 11px;
    gap: 10px;
    border-radius: 13px;
  }

  .act-item__ico {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    font-size: 14px;
  }

  .act-item__titulo { font-size: 13px; }
  .act-item__valor { font-size: 12.5px; }
  .act-item__detalhe { font-size: 11px; }
  .act-item__data { font-size: 10px; }
}

@media (max-width: 380px) {
  .act-resumo__item b { font-size: 13.5px; }
  .act-item__titulo { font-size: 12.5px; }
  .act-item__valor { font-size: 12px; }
}

/* -------------------------------------------------- acessibilidade */
@media (prefers-reduced-motion: reduce) {
  .act-item,
  .act-empty__spin {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   CARDS RÁPIDOS NO MOBILE — estavam em 1 coluna e ficavam gigantes

   CAUSA: css/auth.css linha 789: @media (max-width:560px) { .wallet-cards:
   grid-template-columns: 1fr } → cada card ocupava ~200px de altura.

   Correção: 2 colunas compactas, com ícone e valor na mesma linha.
   ========================================================================== */
@media (max-width: 900px) {
  .wallet-cards {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }

  .wallet-cards .wcard {
    flex-direction: row !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 10px 11px !important;
    border-radius: 12px !important;
    min-height: 0 !important;
    height: auto !important;
    transition: border-color .15s ease !important;
  }

  .wallet-cards .wcard:hover { transform: none !important; }

  .wallet-cards .wcard__icon {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    border-radius: 9px !important;
    font-size: 14px !important;
  }

  /* rótulo e valor empilhados ao lado do ícone */
  .wallet-cards .wcard__label {
    font-size: 10px !important;
    line-height: 1.2 !important;
    color: #8996AA !important;
  }

  .wallet-cards .wcard__value {
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #F5F7FA !important;
    font-variant-numeric: tabular-nums;
  }

  /* agrupa label+value numa coluna sem alterar o HTML */
  .wallet-cards .wcard__icon + .wcard__label { margin-top: 0 !important; }
}

@media (max-width: 380px) {
  .wallet-cards .wcard { padding: 9px 10px !important; gap: 8px !important; }
  .wallet-cards .wcard__icon { width: 28px !important; height: 28px !important; flex-basis: 28px !important; font-size: 12px !important; }
  .wallet-cards .wcard__value { font-size: 13px !important; }
  .wallet-cards .wcard__label { font-size: 9.5px !important; }
}

/* ==========================================================================
   ESPAÇO PARA A BARRA INFERIOR — o último item ficava escondido
   ========================================================================== */
@media (max-width: 900px) {
  #wtab-activity {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .act-list { margin-bottom: 4px; }
}

/* ==========================================================================
   SALDO CRIPTO — "Saldo Cripto $ 47.060.31" → "US$ 47.060,31"

   O card escrevia o valor já formatado em en-US ($ com ponto decimal).
   Aqui normalizamos para pt-BR: vírgula decimal e ponto de milhar.
   ========================================================================== */
@media (min-width: 901px) {
  .wallet-cards .wcard__value { font-variant-numeric: tabular-nums; }
}
