/* ================= AxionMesk — páginas internas (auth, conta, admin) ================= */

body.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* ---------- Auth (login/cadastro) ---------- */
.auth-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-aside {
  background: linear-gradient(160deg, #131F33 0%, #0B1220 100%);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.auth-aside h2 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.auth-aside p { color: var(--text-muted); max-width: 380px; margin-bottom: 32px; }
.auth-aside__list { display: flex; flex-direction: column; gap: 18px; }
.auth-aside__item { display: flex; gap: 12px; align-items: flex-start; }
.auth-aside__check {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: rgba(56,107,255,.16); color: var(--yellow);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card { width: 100%; max-width: 400px; }
.auth-card .logo { margin-bottom: 28px; }
.auth-card__title { font-size: 22px; font-weight: 800; margin-bottom: 20px; letter-spacing: -.02em; }
.auth-link {
  color: var(--yellow); font-size: 13px; text-decoration: none;
  font-weight: 600; display: block;
}
.auth-link:hover { text-decoration: underline; }
.auth-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ---------- KYC: envio de documentos ---------- */
.kyc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px;
}
@media (max-width: 720px) { .kyc-grid { grid-template-columns: 1fr; } }
.kyc-slot {
  background: var(--bg-3); border: 1px dashed var(--border); border-radius: 12px;
  padding: 20px 16px; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 8px; transition: border-color .15s;
}
.kyc-slot.filled { border-style: solid; border-color: var(--green); }
.kyc-slot__icon { font-size: 26px; }
.kyc-slot__title { font-weight: 600; font-size: 14px; }
.kyc-slot__hint { font-size: 12px; color: var(--text-muted); }
.kyc-slot__preview {
  display: none; width: 100%; max-width: 200px; border-radius: 8px;
  margin-top: 6px; border: 1px solid var(--border);
}
.kyc-slot.filled .kyc-slot__preview { display: block; }
.kyc-slot.filled .kyc-slot__icon { display: none; }

/* Perfil financeiro do KYC */
.kyc-profile {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px;
}
@media (max-width: 720px) { .kyc-profile { grid-template-columns: 1fr; } }

/* Pessoa politicamente exposta */
.kyc-pep {
  margin-top: 20px; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
}
.kyc-pep__title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.kyc-pep__hint { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin: 0 0 12px; }
.kyc-radio {
  display: inline-flex; align-items: center; gap: 8px; margin-right: 22px;
  font-size: 14px; cursor: pointer;
}
.kyc-radio input { width: 17px; height: 17px; accent-color: var(--yellow); }

/* Declaração de veracidade */
.kyc-declare {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 20px;
  font-size: 13px; color: var(--text-muted); line-height: 1.5; cursor: pointer;
}
.kyc-declare input { accent-color: var(--yellow); }

/* ---------- Ajustes gerais: seletor de cores ---------- */
.theme-grid { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.theme-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px; border-radius: 8px; background: var(--bg-3);
  border: 1px solid var(--border); margin-bottom: 8px;
}
.theme-row__name { font-weight: 600; font-size: 14px; }
.theme-row__hint { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.theme-row input[type="color"] {
  width: 52px; height: 40px; flex: none; cursor: pointer;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-2); padding: 2px;
}
.theme-preview {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px;
}
.theme-preview__btn {
  background: var(--yellow); color: #131F33; font-weight: 700; font-size: 14px;
  padding: 12px 20px; border-radius: 8px; text-align: center;
}
.theme-preview__card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px;
}

/* ---------- Ajustes gerais: galeria de logos ---------- */
.logo-picker {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 10px;
}
@media (max-width: 900px) { .logo-picker { grid-template-columns: repeat(4, 1fr); } }
.logo-opt {
  aspect-ratio: 1; display: grid; place-items: center; cursor: pointer;
  background: var(--bg-3); border: 2px solid var(--border); border-radius: 10px;
  transition: border-color .15s, transform .1s;
}
.logo-opt:hover { transform: translateY(-2px); }
.logo-opt.active { border-color: var(--yellow); background: rgba(56,107,255,.10); }
.logo-opt svg { width: 30px; height: 30px; }
.brand-preview span svg { display: block; }
.auth-tabs {
  display: flex; gap: 8px; margin-bottom: 28px;
  background: var(--bg-2); padding: 4px; border-radius: 10px;
}
.auth-tab {
  flex: 1; padding: 10px; border: 0; background: transparent;
  color: var(--text-muted); font-family: inherit; font-weight: 600;
  font-size: 14px; border-radius: 7px; cursor: pointer;
}
.auth-tab.active { background: #1B2A44; color: var(--text); }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 7px; }
.auth-field input {
  width: 100%; height: 48px; padding: 0 14px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: inherit; font-size: 15px;
  outline: none; transition: border-color .15s;
}
.auth-field input:focus { border-color: var(--yellow); }
.auth-field input::placeholder { color: var(--text-muted); }

.auth-msg {
  font-size: 13px; padding: 11px 14px; border-radius: 8px; display: none;
}
.auth-msg.show { display: block; }
.auth-msg.error { background: rgba(246,70,93,.12); color: #F6465D; }
.auth-msg.ok { background: rgba(14,203,129,.12); color: var(--green); }

/* ---------- Divisor + botão Google ---------- */
.auth-sep {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 16px; color: var(--text-muted); font-size: 12px;
}
.auth-sep::before, .auth-sep::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.google-wrap { position: relative; }
.btn-google {
  width: 100%; height: 48px; display: flex; align-items: center; justify-content: center;
  gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background .15s, box-shadow .15s;
}
.btn-google:hover { background: #f5f5f5; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.btn-google:active { background: #eee; }
.btn-google svg { flex-shrink: 0; }

/* O botão oficial do Google fica sobreposto, transparente, cobrindo o nosso
   botão — assim o clique dispara o popup confiável do GIS sem perder o visual. */
.google-native {
  position: absolute; inset: 0; overflow: hidden; opacity: 0;
}
.google-native > div, .google-native iframe {
  width: 100% !important; height: 100% !important;
}

.auth-hint {
  margin-top: 20px; padding: 14px; border-radius: 8px;
  background: var(--bg-2); border: 1px dashed var(--border);
  font-size: 12px; color: var(--text-muted); line-height: 1.7;
}
.auth-hint b { color: var(--yellow); }

/* ---------- Layout app interno ---------- */
.app-header {
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 40;
}
.app-header__right { display: flex; align-items: center; gap: 14px; }

/* ---------- Responsivo: cabeçalho das páginas internas ---------- */
@media (max-width: 900px) {
  .app-header {
    padding: 0 14px; height: auto; min-height: 60px;
    flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 10px;
  }
  /* Os links de navegação viram uma faixa rolável horizontalmente */
  .app-header__right {
    order: 2; width: 100%; gap: 6px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 4px; flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .app-header__right::-webkit-scrollbar { display: none; }
  .app-header__right > * { flex: none; }
  .app-header__right .btn--link { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
}

@media (max-width: 560px) {
  .app-header .logo__text { font-size: 17px; }
  .app-header__right .avatar { width: 32px; height: 32px; font-size: 13px; }
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--yellow); color: #131F33;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.badge {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .03em;
}
.badge--ok { background: rgba(14,203,129,.15); color: var(--green); }
.badge--pending { background: rgba(56,107,255,.16); color: var(--yellow); }
.badge--no { background: rgba(132,142,156,.15); color: var(--text-muted); }
.badge--danger { background: rgba(246,70,93,.15); color: var(--red); }
.badge--admin { background: rgba(56,107,255,.2); color: var(--yellow); }

.page-body { padding: 32px 24px 64px; max-width: 1200px; margin: 0 auto; width: 100%; }
.page-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.02em; }
.page-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }

/* ---------- Cards de saldo ---------- */
.balance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.balance-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 20px;
}
.balance-card__coin { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.balance-card__val { font-size: 22px; font-weight: 800; }

/* ---------- Tabelas ---------- */
.table-wrap { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; font-size: 12px; color: var(--text-muted); font-weight: 600;
  padding: 14px 16px; background: #1a1e24; border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
tbody td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.02); }

/* ---------- Admin controls ---------- */
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar input, .toolbar select {
  height: 40px; padding: 0 12px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: inherit; font-size: 14px; outline: none;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--yellow); }
.toolbar input { flex: 1; min-width: 200px; }

.btn--sm { padding: 7px 12px; font-size: 13px; border-radius: 6px; }
.btn--ghost { background: var(--bg-3); color: var(--text); }
.btn--ghost:hover { background: #363c45; }
.btn--danger { background: rgba(246,70,93,.15); color: var(--red); }
.btn--danger:hover { background: rgba(246,70,93,.25); }
.btn--ok { background: rgba(14,203,129,.15); color: var(--green); }
.btn--ok:hover { background: rgba(14,203,129,.25); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
}
.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.modal__head h3 { font-size: 17px; }
.modal__close { background: transparent; border: 0; color: var(--text-muted); font-size: 22px; cursor: pointer; line-height: 1; }
.modal__close:hover { color: var(--text); }
.modal__body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.modal__foot { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-box { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.stat-box__label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.stat-box__value { font-size: 24px; font-weight: 800; }

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .balance-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 720px; }
}
/* ============================================================
   ÁREA DE MERCADOS / NEGOCIAÇÃO
   ============================================================ */

/* ---------- Mercados ---------- */
.market-toolbar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.market-toolbar input {
  flex: 1; min-width: 220px; height: 44px; padding: 0 14px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: inherit; font-size: 14px; outline: none;
}
.market-toolbar input:focus { border-color: var(--yellow); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  padding: 7px 14px; border-radius: 20px; background: var(--bg-2);
  border: 1px solid var(--border); color: var(--text-muted);
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.chip:hover { color: var(--text); }
.chip.active { background: var(--yellow); color: #131F33; border-color: var(--yellow); }

.coin-row { cursor: pointer; }
.coin-cell { display: flex; align-items: center; gap: 12px; }
.coin-icon {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px;
}
.coin-name { font-weight: 600; }
.coin-symbol { font-size: 12px; color: var(--text-muted); }
.price-up { color: var(--green); font-weight: 600; }
.price-down { color: var(--red); font-weight: 600; }
.row-actions { display: flex; gap: 8px; }
.mini-spark { width: 90px; height: 30px; }

/* ---------- Negociar (trade) ---------- */
.trade-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}
.trade-left { display: flex; flex-direction: column; gap: 16px; }

.pair-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px;
}
.pair-header__name { display: flex; align-items: center; gap: 12px; }
.pair-header__big { font-size: 22px; font-weight: 800; }
.pair-header__price { font-size: 24px; font-weight: 800; }
.pair-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.pair-stat__label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.pair-stat__value { font-size: 14px; font-weight: 600; }

.chart-panel { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.chart-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.chart-tfs { display: flex; gap: 6px; }
.chart-tf {
  padding: 5px 10px; border-radius: 6px; background: transparent; border: 0;
  color: var(--text-muted); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.chart-tf:hover { color: var(--text); }
.chart-tf.active { background: var(--bg-3); color: var(--yellow); }
#chart { width: 100%; height: 340px; display: block; }

/* ---------- Painel de ordem ---------- */
.order-panel { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.side-toggle { display: flex; gap: 8px; margin-bottom: 16px; }
.side-btn {
  flex: 1; padding: 11px; border-radius: 8px; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 14px; background: var(--bg-3); color: var(--text-muted);
}
.side-btn.buy.active { background: var(--green); color: #fff; }
.side-btn.sell.active { background: var(--red); color: #fff; }

.order-field { margin-bottom: 12px; }
.order-field label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.order-field input {
  width: 100%; height: 44px; padding: 0 12px; background: var(--bg-3);
  border: 1px solid var(--border); border-radius: 8px; color: var(--text);
  font-family: inherit; font-size: 14px; outline: none;
}
.order-field input:focus { border-color: var(--yellow); }
.order-quick { display: flex; gap: 6px; margin-top: 6px; }
.order-quick button {
  flex: 1; padding: 5px; font-size: 11px; border-radius: 6px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); cursor: pointer; font-family: inherit;
}
.order-quick button:hover { color: var(--yellow); border-color: var(--yellow); }
.order-total {
  display: flex; justify-content: space-between; padding: 12px 0;
  font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border);
}
.order-total strong { color: var(--text); }
.order-balance { font-size: 12px; color: var(--text-muted); margin-top: 10px; text-align: center; }

/* ---------- Ordens abertas ---------- */
.orders-panel { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.orders-tabs { display: flex; gap: 4px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.orders-tab {
  padding: 6px 12px; border-radius: 6px; background: transparent; border: 0;
  color: var(--text-muted); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.orders-tab.active { background: var(--bg-3); color: var(--text); }

.pnl-up { color: var(--green); font-weight: 600; }
.pnl-down { color: var(--red); font-weight: 600; }

@media (max-width: 1000px) {
  .trade-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ÁREA DE DEPÓSITO
   ============================================================ */
.deposit-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.deposit-panel {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
}
.deposit-panel__title { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.deposit-panel__desc { font-size: 14px; color: var(--text-muted); }

.amount-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.amount-quick button {
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-3); color: var(--text); cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600;
}
.amount-quick button:hover { border-color: var(--yellow); color: var(--yellow); }

.charge-info { margin: 18px 0; }
.charge-info__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.charge-info__row span:first-child { color: var(--text-muted); }
.charge-info__row:last-child { border-bottom: 0; }

.copy-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px;
}
.copy-box code {
  flex: 1; font-size: 12px; word-break: break-all; color: var(--text);
  font-family: 'SF Mono', Menlo, monospace;
}
.copy-btn {
  flex: none; padding: 7px 12px; border-radius: 7px; border: 0;
  background: var(--yellow); color: #131F33; font-weight: 700;
  font-family: inherit; font-size: 12px; cursor: pointer;
}
.copy-btn:hover { background: var(--yellow-dark); }

.deposit-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(56,107,255,.10); border: 1px solid rgba(56,107,255,.25);
  border-radius: 10px; padding: 13px; margin-top: 16px;
  font-size: 12.5px; color: var(--text-muted); line-height: 1.6;
}

@media (max-width: 860px) {
  .deposit-wrap { grid-template-columns: 1fr; }
}

/* ============================================================
   ÁREA DO CARTÃO AXIONMESK
   ============================================================ */
.card-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Cartão visual */
.bnx-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  max-width: 420px;
  border-radius: 18px;
  padding: 24px;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,.45);
  transition: filter .3s;
}
.bnx-card--inativo {
  background: linear-gradient(135deg, #24334D 0%, #1E2326 60%, #15181d 100%);
  filter: grayscale(.35);
}
.bnx-card--ativo {
  background: linear-gradient(135deg, #386BFF 0%, #caa007 45%, #131F33 130%);
}
.bnx-card__logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 18px;
}
.bnx-card__chip {
  width: 46px; height: 34px; border-radius: 7px; margin: 22px 0 18px;
  background: linear-gradient(135deg, #f6e27a, #c9a227);
  position: relative;
}
.bnx-card__chip::after {
  content: ''; position: absolute; inset: 8px; border-radius: 4px;
  border: 1px solid rgba(0,0,0,.25);
}
.bnx-card__num {
  font-size: 21px; letter-spacing: 3px;
  font-family: 'SF Mono', Menlo, monospace; margin-bottom: 20px;
}
.bnx-card__row { display: flex; justify-content: space-between; align-items: flex-end; }
.bnx-card__label { font-size: 9px; opacity: .8; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 3px; }
.bnx-card__holder { font-size: 14px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.bnx-card__exp { font-size: 14px; font-weight: 600; }
.bnx-card__brand {
  position: absolute; top: 22px; right: 24px;
  font-size: 13px; font-weight: 800; letter-spacing: .06em;
}
.bnx-card__status {
  position: absolute; bottom: 20px; right: 24px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 20px;
}
.bnx-card--ativo .bnx-card__status { background: rgba(0,0,0,.28); }
.bnx-card--inativo .bnx-card__status { background: rgba(246,70,93,.25); color: #ff9aa8; }
.bnx-card__lock {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(11,14,17,.45); backdrop-filter: blur(1.5px);
  font-size: 34px;
}
.bnx-card--ativo .bnx-card__lock { display: none; }

/* Painel lateral */
.card-side { display: flex; flex-direction: column; gap: 16px; }
.card-box {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
}
.card-box h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.card-box p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

.token-wallet {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; margin: 16px 0;
}
.token-wallet__label { font-size: 12px; color: var(--text-muted); }
.token-wallet__value { font-size: 20px; font-weight: 800; color: var(--yellow); }

.progress {
  height: 10px; border-radius: 6px; background: var(--bg-3);
  overflow: hidden; margin: 6px 0 8px;
}
.progress__bar { height: 100%; background: var(--yellow); border-radius: 6px; transition: width .4s; }
.progress__bar--full { background: var(--green); }

.benefits { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.benefit { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-muted); }
.benefit b { color: var(--text); font-weight: 600; }
.benefit__check { color: var(--yellow); font-weight: 700; }

@media (max-width: 900px) {
  .card-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   ABAS GENÉRICAS (Usuários / Meios de pagamento / etc.)
   ============================================================ */
.wallet-tabs { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.wallet-tab {
  padding: 10px 18px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text-muted); cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600;
}
.wallet-tab:hover { color: var(--text); }
.wallet-tab.active { background: var(--yellow); color: #131F33; border-color: var(--yellow); }

.wallet-section { display: none; }
.wallet-section.active { display: block; }

/* Layout de duas colunas usado nos painéis de config (ex.: pagamentos) */
.withdraw-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.withdraw-panel { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.withdraw-panel h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.withdraw-panel p.desc { font-size: 13.5px; color: var(--text-muted); margin-bottom: 20px; }

@media (max-width: 900px) {
  .withdraw-layout { grid-template-columns: 1fr; }
}
/* ============================================================
   CHAT DE SUPORTE
   ============================================================ */
.chat-wrap {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
  display: flex; flex-direction: column; height: 620px; max-width: 820px; overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border); background: #1a1e24;
}
.chat-head__avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--yellow);
  display: grid; place-items: center; font-size: 20px; flex: none;
}
.chat-head__name { font-weight: 700; }
.chat-head__status { font-size: 12px; color: var(--green); display: flex; align-items: center; gap: 6px; }

.chat-body {
  flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px;
  background: var(--bg);
}
.chat-msg { max-width: 72%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.chat-msg--user { align-self: flex-end; background: var(--yellow); color: #131F33; border-bottom-right-radius: 4px; }
.chat-msg--admin { align-self: flex-start; background: var(--bg-3); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg__time { display: block; font-size: 10px; opacity: .65; margin-top: 4px; }
.chat-msg__who { font-size: 11px; font-weight: 700; margin-bottom: 3px; opacity: .85; }

.chat-empty { text-align: center; color: var(--text-muted); margin: auto; font-size: 14px; }
.chat-empty__icon { font-size: 40px; margin-bottom: 10px; opacity: .6; }

.chat-input {
  display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); background: var(--bg-2);
}
.chat-input input {
  flex: 1; height: 46px; padding: 0 14px; background: var(--bg-3);
  border: 1px solid var(--border); border-radius: 10px; color: var(--text);
  font-family: inherit; font-size: 14px; outline: none;
}
.chat-input input:focus { border-color: var(--yellow); }

/* Painel de atendimento (admin) */
.support-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.conv-list { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; max-height: 620px; overflow-y: auto; }
.conv-item {
  padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s;
}
.conv-item:hover { background: rgba(255,255,255,.03); }
.conv-item.active { background: rgba(56,107,255,.10); border-left: 3px solid var(--yellow); }
.conv-item__name { font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.conv-item__last { font-size: 12px; color: var(--text-muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 900px) {
  .support-layout { grid-template-columns: 1fr; }
  .chat-wrap { height: 520px; }
}/* ---------- Painel de dados do cliente (admin/suporte) ---------- */
.client-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.client-info__item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.client-info__label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 4px;
}
.client-info__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}/* ---------- Carteira: aba BRL ---------- */
.brl-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 560px) {
  .brl-actions { grid-template-columns: 1fr; }
}/* ============================================================
   CARTEIRA — visual renovado
   ============================================================ */

/* Hero do patrimônio */
.wallet-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, #131F33 0%, #15181d 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 30px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.wallet-hero::after {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,107,255,.20), transparent 70%);
}
.wallet-hero__label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.wallet-hero__value { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.wallet-hero__sub { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.wallet-hero__actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* Alocação (barra de proporção) */
.alloc {
  height: 14px; border-radius: 8px; overflow: hidden;
  display: flex; background: var(--bg-3); margin-bottom: 14px;
}
.alloc__seg { height: 100%; transition: width .5s; }
.alloc-legend { display: flex; flex-direction: column; gap: 8px; }
.alloc-legend__item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.alloc-legend__dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.alloc-legend__name { color: var(--text-muted); }
.alloc-legend__val { margin-left: auto; font-weight: 600; }

/* Cards rápidos */
.wallet-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px;
}
.wcard {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s, transform .1s;
}
.wcard:hover { border-color: var(--yellow); transform: translateY(-2px); }
.wcard__icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; font-size: 17px; font-weight: 700;
}
.wcard__label { font-size: 12px; color: var(--text-muted); }
.wcard__value { font-size: 20px; font-weight: 800; }

/* Painel de saldo */
.balance-panel {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: 26px;
}
.balance-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.balance-panel__label { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.balance-panel__value { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.balance-panel__coin {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #131F33; font-size: 22px; font-weight: 800;
}
.balance-panel__desc { font-size: 13.5px; color: var(--text-muted); margin: 14px 0 20px; max-width: 520px; }

.brl-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 900px) {
  .wallet-hero { grid-template-columns: 1fr; }
  .wallet-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .brl-actions { grid-template-columns: 1fr; }
  .wallet-cards { grid-template-columns: 1fr; }
  .wallet-hero__value { font-size: 32px; }
}/* ============================================================
   ÁREA DE SAQUE — visual renovado
   ============================================================ */
.wd-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
}
.wd-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.wd-card__head h3 { font-size: 18px; font-weight: 800; }
.wd-card__icon {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-size: 20px;
  background: rgba(246,70,93,.15);
}

.wd-label {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 8px;
}
.wd-avail { color: var(--yellow); font-weight: 700; }

/* Seletor de ativos em tiles */
.wd-assets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.wd-asset {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-3); cursor: pointer; transition: all .15s;
}
.wd-asset:hover { border-color: var(--yellow); transform: translateY(-2px); }
.wd-asset.active { border-color: var(--yellow); background: rgba(56,107,255,.1); }
.wd-asset__icon {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 13px;
}
.wd-asset__icon svg { display: block; width: 20px; height: 20px; }
.wd-asset__sym { font-size: 12px; font-weight: 700; }

/* Campo de valor grande */
.wd-amount {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 12px; padding: 0 16px; height: 62px;
}
.wd-amount:focus-within { border-color: var(--yellow); }
.wd-amount__prefix { font-size: 22px; font-weight: 800; color: var(--text-muted); }
.wd-amount input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--text); font-size: 24px; font-weight: 700; font-family: inherit;
}
.wd-amount input::placeholder { color: var(--text-muted); font-weight: 400; }

/* Endereço */
.wd-addr {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 12px; padding: 0 14px; height: 50px;
}
.wd-addr:focus-within { border-color: var(--yellow); }
.wd-addr input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--text); font-size: 14px; font-family: inherit;
}
.wd-addr input::placeholder { color: var(--text-muted); }

.wd-note {
  font-size: 11.5px; color: var(--text-muted); text-align: center;
  margin-top: 12px;
}

/* Histórico em timeline */
.wd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.wd-item:last-child { border-bottom: 0; }
.wd-item__icon {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.wd-item__main { flex: 1; min-width: 0; }
.wd-item__amount { font-weight: 700; font-size: 14px; }
.wd-item__date { font-size: 11px; color: var(--text-muted); }
.wd-item__right { text-align: right; }

@media (max-width: 560px) {
  .wd-assets { grid-template-columns: repeat(3, 1fr); }
  .wd-amount input { font-size: 20px; }
}
/* ============================================================
   ÁREA NFT — marketplace
   ============================================================ */

/* Hero */
.nft-hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
  background: linear-gradient(135deg, #1a1040 0%, #131F33 55%, #0B1220 100%);
  border: 1px solid var(--border); border-radius: 22px; padding: 40px;
  margin-bottom: 32px; position: relative; overflow: hidden;
}
.nft-hero::before {
  content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(124,58,237,.35), transparent 70%);
}
.nft-hero__badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: #C4B5FD; background: rgba(124,58,237,.18); border: 1px solid rgba(124,58,237,.4);
  padding: 6px 14px; border-radius: 20px; margin-bottom: 16px;
}
.nft-hero__title { font-size: 36px; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; }
.nft-hero__desc { font-size: 15px; color: var(--text-muted); max-width: 520px; margin-bottom: 24px; }
.nft-hero__stats { display: flex; gap: 34px; }
.nft-hero__stats div { display: flex; flex-direction: column; }
.nft-hero__stats strong { font-size: 26px; font-weight: 900; color: var(--yellow); }
.nft-hero__stats span { font-size: 12px; color: var(--text-muted); }
.nft-hero__art {
  height: 260px; border-radius: 18px; position: relative; overflow: hidden;
  box-shadow: 0 20px 50px rgba(124,58,237,.35);
}
.nft-hero__art svg { width: 100%; height: 100%; display: block; }

/* Seções */
.nft-section { margin-bottom: 40px; }
.nft-section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.nft-section__title { font-size: 22px; font-weight: 800; }
.nft-search input {
  height: 42px; min-width: 260px; padding: 0 14px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 10px; color: var(--text);
  font-family: inherit; font-size: 14px; outline: none;
}
.nft-search input:focus { border-color: var(--yellow); }

/* Destaque */
.nft-featured {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
}
.nft-featured__art { position: relative; min-height: 280px; overflow: hidden; }
.nft-featured__art svg { width: 100%; height: 100%; display: block; }
.nft-featured__info { padding: 26px; display: flex; flex-direction: column; justify-content: center; }
.nft-featured__collection { font-size: 13px; color: var(--yellow); font-weight: 700; margin-bottom: 8px; }
.nft-featured__name { font-size: 26px; font-weight: 900; margin-bottom: 10px; }
.nft-featured__creator { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.nft-featured__price-label { font-size: 12px; color: var(--text-muted); }
.nft-featured__price { font-size: 24px; font-weight: 900; color: var(--green); margin-bottom: 20px; }
.nft-featured__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Grid de cards */
.nft-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.nft-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.nft-card:hover { transform: translateY(-5px); border-color: var(--yellow); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.nft-card__art { position: relative; height: 200px; overflow: hidden; }
.nft-card__art svg { width: 100%; height: 100%; display: block; transition: transform .35s; }
.nft-card:hover .nft-card__art svg { transform: scale(1.08); }
.nft-card__rarity {
  position: absolute; top: 12px; left: 12px; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 20px;
  backdrop-filter: blur(6px); color: #fff;
}
.rarity-Lendária { background: rgba(239,68,68,.85); }
.rarity-Épica { background: rgba(168,85,247,.85); }
.rarity-Rara { background: rgba(59,130,246,.85); }
.rarity-Incomum { background: rgba(16,185,129,.85); }
.nft-card__sold {
  position: absolute; inset: 0; background: rgba(11,14,17,.7);
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 14px;
  letter-spacing: .04em;
}
.nft-card__body { padding: 14px; }
.nft-card__collection { font-size: 11px; color: var(--text-muted); margin-bottom: 3px; }
.nft-card__name { font-size: 15px; font-weight: 700; margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nft-card__foot { display: flex; align-items: center; justify-content: space-between; }
.nft-card__price-label { font-size: 10px; color: var(--text-muted); }
.nft-card__price { font-size: 15px; font-weight: 800; color: var(--green); }
.nft-card__likes { font-size: 12px; color: var(--text-muted); }

/* Modal */
.nft-modal__art { height: 240px; border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.nft-modal__art svg { width: 100%; height: 100%; display: block; }
.nft-modal__row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.nft-modal__row span:first-child { color: var(--text-muted); }
.nft-modal__row:last-child { border-bottom: 0; }

@media (max-width: 1000px) {
  .nft-grid { grid-template-columns: repeat(2, 1fr); }
  .nft-featured { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nft-hero { grid-template-columns: 1fr; padding: 28px; }
  .nft-hero__title { font-size: 28px; }
  .nft-hero__art { height: 180px; font-size: 64px; }
}
@media (max-width: 560px) {
  .nft-grid { grid-template-columns: 1fr; }
}

/* ---------- NFT: favoritos, ordenação e detalhe ---------- */
.nft-search { display: flex; gap: 10px; flex-wrap: wrap; }
.nft-sort {
  height: 42px; padding: 0 14px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: inherit; font-size: 14px; cursor: pointer;
}
.nft-sort:focus { border-color: var(--yellow); outline: none; }

.nft-card__fav {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; cursor: pointer; font-size: 17px; display: grid; place-items: center;
  background: rgba(11,14,17,.55); color: #fff; backdrop-filter: blur(6px);
  transition: transform .15s, background .15s;
}
.nft-card__fav:hover { transform: scale(1.12); }
.nft-card__fav.active { background: rgba(246,70,93,.9); }

.nft-back {
  display: inline-block; margin-bottom: 20px; color: var(--text-muted);
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.nft-back:hover { color: var(--yellow); }

.nft-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; margin-bottom: 48px; }
.nft-detail__art {
  border-radius: 20px; overflow: hidden; aspect-ratio: 1/1;
  box-shadow: 0 24px 60px rgba(0,0,0,.5); border: 1px solid var(--border);
}
.nft-detail__art svg { width: 100%; height: 100%; display: block; }
.nft-detail__collection { font-size: 14px; color: var(--yellow); font-weight: 700; margin-bottom: 10px; }
.rarity-txt { color: var(--text-muted); font-weight: 600; }
.nft-detail__name { font-size: 34px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 8px; }
.nft-detail__creator { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; }

.nft-detail__pricebox {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 22px; margin-bottom: 20px;
}
.nft-detail__plabel { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.nft-detail__price { font-size: 28px; font-weight: 900; color: var(--green); }
.nft-detail__likes {
  font-size: 16px; font-weight: 800; color: #fff; cursor: pointer;
  background: rgba(246,70,93,.15); border: 1px solid rgba(246,70,93,.4);
  padding: 10px 18px; border-radius: 12px; margin-left: auto;
}
.nft-detail__likes:hover { background: rgba(246,70,93,.28); }
.nft-detail__rows {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px;
  padding: 8px 20px; margin-bottom: 20px;
}

@media (max-width: 900px) {
  .nft-detail { grid-template-columns: 1fr; gap: 24px; }
  .nft-detail__name { font-size: 26px; }
}
/* ---------- NFT: hero actions ---------- */
.nft-hero__actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- NFT: coleções em destaque ---------- */
.nft-collections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.nft-col-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.nft-col-card:hover { transform: translateY(-5px); border-color: var(--yellow); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.nft-col-card__cover { height: 130px; overflow: hidden; position: relative; }
.nft-col-card__cover svg { width: 100%; height: 100%; display: block; }
.nft-col-card__body { padding: 14px; }
.nft-col-card__name { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.nft-col-card__meta { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.nft-col-card__minis { display: flex; gap: 8px; }
.nft-col-card__mini {
  width: 46px; height: 46px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); flex: none;
}
.nft-col-card__mini svg { width: 100%; height: 100%; display: block; }

/* ---------- NFT: tendências ---------- */
.nft-trending { display: flex; flex-direction: column; gap: 10px; }
.nft-trend {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 18px; cursor: pointer; transition: border-color .15s, transform .1s;
}
.nft-trend:hover { border-color: var(--yellow); transform: translateX(4px); }
.nft-trend__rank {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 900; font-size: 14px;
  background: var(--bg-3); color: var(--text-muted);
}
.nft-trend:nth-child(1) .nft-trend__rank { background: #386BFF; color: #131F33; }
.nft-trend:nth-child(2) .nft-trend__rank { background: #C0C0C0; color: #131F33; }
.nft-trend:nth-child(3) .nft-trend__rank { background: #CD7F32; color: #131F33; }
.nft-trend__art { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex: none; }
.nft-trend__art svg { width: 100%; height: 100%; display: block; }
.nft-trend__info { flex: 1; min-width: 0; }
.nft-trend__name { font-size: 15px; font-weight: 700; }
.nft-trend__col { font-size: 12px; color: var(--text-muted); }
.nft-trend__right { text-align: right; }
.nft-trend__price { font-size: 15px; font-weight: 800; color: var(--green); }
.nft-trend__likes { font-size: 12px; color: var(--text-muted); }

@media (max-width: 1000px) {
  .nft-collections { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .nft-collections { grid-template-columns: 1fr; }
}/* ============================================================
   NFT — Painel de filtros profissional
   ============================================================ */
.filters {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; margin-bottom: 24px;
}
.filters__top {
  display: flex; gap: 14px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin-bottom: 16px;
}

/* Busca com ícone */
.filters__search {
  flex: 1; min-width: 260px; display: flex; align-items: center; gap: 10px;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 10px;
  padding: 0 14px; height: 44px; color: var(--text-muted);
}
.filters__search:focus-within { border-color: var(--yellow); }
.filters__search input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--text); font-family: inherit; font-size: 14px;
}
.filters__search input::placeholder { color: var(--text-muted); }

/* Abas de ordenação */
.filters__sort {
  display: flex; gap: 4px; background: var(--bg-3); padding: 4px; border-radius: 10px;
}
.sort-tab {
  padding: 8px 14px; border: 0; border-radius: 7px; background: transparent;
  color: var(--text-muted); font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.sort-tab:hover { color: var(--text); }
.sort-tab.active { background: var(--yellow); color: #131F33; }

/* Linhas de filtros */
.filters__row {
  display: flex; align-items: center; gap: 14px; padding: 10px 0;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.filters__label {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .04em; min-width: 110px;
}
.filters__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.fchip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--bg-3); color: var(--text-muted); cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; transition: all .15s;
}
.fchip:hover { color: var(--text); border-color: #3a424c; }
.fchip.active { background: var(--yellow); color: #131F33; border-color: var(--yellow); }
.fchip b {
  font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 10px;
  background: rgba(255,255,255,.1);
}
.fchip.active b { background: rgba(0,0,0,.18); }

/* Resultado + limpar */
.filters__result {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px;
}
.filters__result span { color: var(--text-muted); }
.filters__clear {
  background: transparent; border: 0; color: var(--yellow); cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600;
}
.filters__clear:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .filters__top { flex-direction: column; align-items: stretch; }
  .filters__sort { overflow-x: auto; }
  .filters__label { min-width: auto; }
}/* ============================================================
   SELECT PROFISSIONAL (global)
   Sobrescreve os selects simples de todo o sistema para um
   visual moderno e consistente, com seta customizada.
   ============================================================ */
select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  height: 46px !important;
  padding: 0 42px 0 16px !important;
  background-color: var(--bg-3) !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23386BFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  color: var(--text) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: border-color .15s, box-shadow .15s, background-color .15s !important;
  line-height: 46px !important;
}
select:hover {
  border-color: #3a424c !important;
  background-color: #2f363f !important;
}
select:focus {
  outline: none !important;
  border-color: var(--yellow) !important;
  box-shadow: 0 0 0 3px rgba(56,107,255,.16) !important;
}
/* Opções (funciona bem em navegadores que respeitam) */
select option {
  background: #131F33;
  color: var(--text);
  padding: 10px;
}

/* Variante compacta (toolbar) */
select.select--sm { height: 42px !important; font-size: 13px !important; }
/* ============================================================
   ÁREA DE NEGOCIAR (Trade) — estilo profissional
   ============================================================ */

/* Layout base */
.trade-page .app-header { border-bottom: 1px solid var(--border); }
.trade-wrap { padding: 14px 18px 40px; max-width: 1600px; margin: 0 auto; }

/* Sub-nav de mercado */
.trade-subnav {
  display: flex; align-items: center; gap: 20px;
  padding: 0 18px; height: 46px;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  position: sticky; top: 64px; z-index: 30;
}
.trade-subnav__tabs { display: flex; gap: 4px; }
.mtab {
  padding: 8px 16px; border: 0; border-radius: 8px; background: transparent;
  color: var(--text-muted); font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: color .15s, background .15s;
}
.mtab:hover { color: var(--text); }
.mtab.active { color: var(--yellow); background: rgba(56,107,255,.1); }
.trade-subnav__pair { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.tsp__price { color: var(--green); }
.tsp__chg { font-size: 13px; }
.trade-subnav__badge {
  margin-left: auto; font-size: 12px; color: var(--text-muted);
  background: var(--bg-3); padding: 5px 12px; border-radius: 20px;
}

/* Barra do par */
.pair-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 18px; margin-bottom: 12px; flex-wrap: wrap;
}
.pair-bar__left { display: flex; align-items: center; gap: 20px; }
.pair-picker {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
}
.pair-picker:hover { border-color: var(--yellow); }
.pair-bar__price { display: flex; align-items: baseline; gap: 12px; }
.pbp__value { font-size: 24px; font-weight: 900; }
.pbp__chg { font-size: 14px; font-weight: 700; }
.pair-bar__stats { display: flex; gap: 26px; flex-wrap: wrap; }
.pbs { display: flex; flex-direction: column; gap: 3px; }
.pbs span { font-size: 11px; color: var(--text-muted); }
.pbs b { font-size: 13px; font-weight: 700; }

/* Grade principal */
.trade-main {
  display: grid; grid-template-columns: 290px 1fr 300px; gap: 12px; margin-bottom: 12px;
}
.panel {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.panel__tabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.ptab {
  padding: 6px 12px; border: 0; border-radius: 7px; background: transparent;
  color: var(--text-muted); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.ptab.active { background: var(--bg-3); color: var(--text); }

/* Livro de ofertas */
.book-panel { display: flex; flex-direction: column; }
.book-head {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px;
  padding: 8px 12px; font-size: 11px; color: var(--text-muted);
}
.book-head span:last-child, .book-head span:nth-child(2) { text-align: right; }
.book { padding: 0 12px; }
.book-row {
  position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px;
  padding: 3px 0; font-size: 12px; font-variant-numeric: tabular-nums; z-index: 0;
}
.book-row span:last-child, .book-row span:nth-child(2) { text-align: right; }
.book-row__bg { position: absolute; right: 0; top: 0; bottom: 0; z-index: -1; opacity: .12; }
.book-row--ask span:first-child { color: var(--red); }
.book-row--ask .book-row__bg { background: var(--red); }
.book-row--bid span:first-child { color: var(--green); }
.book-row--bid .book-row__bg { background: var(--green); }
.book-mid {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; margin: 4px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.book-mid__price { font-size: 18px; font-weight: 900; }
.book-mid__arrow { font-size: 14px; }

/* Gráfico */
.chart-panel { display: flex; flex-direction: column; }
.chart-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.chart-toolbar__left { display: flex; align-items: center; gap: 14px; }
.chart-type { font-size: 12px; color: var(--text-muted); background: var(--bg-3); padding: 5px 10px; border-radius: 7px; }
.chart-legend { font-size: 12px; color: var(--text-muted); font-weight: 600; }
#chart { width: 100%; height: 420px; display: block; cursor: crosshair; }

/* Painel de ordem */
.order-panel { padding: 14px; }
.order-quote { display: flex; gap: 20px; margin-bottom: 12px; }
.order-quote div { display: flex; flex-direction: column; gap: 2px; }
.order-quote span { font-size: 11px; color: var(--text-muted); }
.order-quote b { font-size: 14px; font-weight: 800; }
.order-types { display: flex; gap: 6px; margin-bottom: 14px; }
.otype {
  flex: 1; padding: 8px; border: 1px solid var(--border); border-radius: 8px;
  background: transparent; color: var(--text-muted); font-family: inherit;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.otype:hover { color: var(--text); }
.otype.active { background: var(--bg-3); color: var(--yellow); border-color: var(--yellow); }
.of-unit { color: var(--text-muted); font-weight: 600; }
.order-range { width: 100%; margin-top: 8px; accent-color: var(--yellow); }
.order-totals { border-top: 1px solid var(--border); margin: 12px 0; padding-top: 8px; }

/* Modal seletor de par */
.pair-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px; border-radius: 10px; cursor: pointer; border: 1px solid transparent;
}
.pair-opt:hover { background: var(--bg-3); }
.pair-opt.active { border-color: var(--yellow); background: rgba(56,107,255,.06); }

/* Rodapé de ordens */
.orders-panel { margin-top: 0; }

/* Responsivo */
@media (max-width: 1200px) {
  .trade-main { grid-template-columns: 1fr 300px; }
  .book-panel { display: none; }
}
@media (max-width: 900px) {
  .trade-main { grid-template-columns: 1fr; }
  .pair-bar__stats { gap: 16px; }
}

/* ============================================================
   PAINEL DE FUTUROS (alavancagem)
   ============================================================ */
.futures-panel {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 22px; margin-top: 12px;
}
.futures-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 20px;
}
.futures-head__title { display: flex; align-items: center; gap: 14px; }
.fh-icon {
  width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center;
  font-size: 22px; background: rgba(56,107,255,.16); color: var(--yellow);
}
.futures-head__title h2 { font-size: 19px; font-weight: 800; }
.futures-head__title p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.futures-head__title p b { color: var(--yellow); }
.futures-head__stats { display: flex; gap: 28px; flex-wrap: wrap; }
.fstat { display: flex; flex-direction: column; gap: 3px; }
.fstat span { font-size: 11px; color: var(--text-muted); }
.fstat b { font-size: 14px; font-weight: 700; }

.futures-controls {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px;
  background: var(--bg-3); border-radius: 12px; padding: 18px; margin-bottom: 18px;
}
.fut-lev label, .fut-mode label { font-size: 13px; color: var(--text-muted); font-weight: 600; display: block; margin-bottom: 10px; }
.fut-lev label b { color: var(--yellow); font-size: 15px; }
.fut-lev__quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.fut-lev__quick button {
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text-muted); font-family: inherit;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.fut-lev__quick button:hover { color: var(--yellow); border-color: var(--yellow); }
.fut-mode__toggle { display: flex; gap: 6px; }
.fut-mode__toggle button {
  flex: 1; padding: 9px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text-muted); font-family: inherit;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.fut-mode__toggle button.active { background: var(--yellow); color: #131F33; border-color: var(--yellow); }

.futures-summary {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 22px;
}
.fx-box {
  background: var(--bg-3); border-radius: 10px; padding: 14px;
  display: flex; flex-direction: column; gap: 5px;
}
.fx-box span { font-size: 11.5px; color: var(--text-muted); }
.fx-box b { font-size: 16px; font-weight: 800; }

.futures-subtitle {
  font-size: 16px; font-weight: 800; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}

@media (max-width: 1000px) {
  .futures-controls { grid-template-columns: 1fr; }
  .futures-summary { grid-template-columns: repeat(2, 1fr); }
}
/* ============================================================
   ÍCONES SVG E BADGES DE CRIPTO
   ============================================================ */
.ico { line-height: 0; }
.ico svg { display: block; width: 100%; height: 100%; }

.coin-badge {
  display: inline-grid; place-items: center; border-radius: 50%; flex: none;
  line-height: 0;
}
.coin-badge svg { display: block; }
/* ---------- Preview de Ganho/Perca (admin) ---------- */
.gp-preview {
  background: var(--bg-3); border-radius: 10px; padding: 14px; margin-top: 6px;
}
.gp-preview__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; font-size: 13px;
}
.gp-preview__row:not(:last-child) { border-bottom: 1px solid var(--border); }
.gp-preview__row span { color: var(--text-muted); }
.gp-preview__row b { font-weight: 700; }
/* ============================================================
   MERCADOS — visual profissional
   ============================================================ */
.mk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.mk-head__stats { display: flex; gap: 26px; flex-wrap: wrap; }
.mkstat { display: flex; flex-direction: column; gap: 3px; }
.mkstat span { font-size: 11.5px; color: var(--text-muted); }
.mkstat b { font-size: 17px; font-weight: 800; }

/* Indicadores globais */
.mk-global { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.mk-global__card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 15px 16px; display: flex; flex-direction: column; gap: 5px;
  transition: border-color .15s, transform .15s;
}
.mk-global__card:hover { border-color: rgba(56,107,255,.35); transform: translateY(-2px); }
.mk-global__label { font-size: 11.5px; color: var(--text-muted); font-weight: 600; letter-spacing: .2px; }
.mk-global__value { font-size: 20px; font-weight: 800; line-height: 1.1; }
.mk-global__value.is-up { color: var(--green); }
.mk-global__value.is-down { color: var(--red); }
.mk-global__sub { font-size: 11.5px; color: var(--text-muted); }
/* Destaques */
.mk-highlight { margin-bottom: 26px; }
.mk-highlight__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mk-highlight__title { font-size: 15px; font-weight: 800; }
.mk-highlight__link { font-size: 12.5px; font-weight: 700; color: var(--yellow); text-decoration: none; }
.mk-highlight__link:hover { text-decoration: underline; }
.mk-highlight__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hl-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.hl-card:hover { border-color: rgba(56,107,255,.4); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.hl-card__top { display: flex; align-items: center; gap: 10px; }
.hl-card__top > div { flex: 1; min-width: 0; }
.hl-card__name { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-card__sym { font-size: 11px; color: var(--text-muted); }
.hl-card__price { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.hl-card__spark { height: 30px; }
.hl-card__spark .mini-spark { width: 100%; height: 30px; }
.hl-card__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.hl-card__meta div { display: flex; flex-direction: column; gap: 2px; }
.hl-card__meta span { color: var(--text-muted); }
.hl-card__meta b { font-weight: 700; font-size: 11.5px; }
.hl-card__cta { width: 100%; margin-top: 2px; }
.mk-foot { margin: 18px 0 4px; font-size: 11.5px; color: var(--text-muted); text-align: center; }
/* Top movers */
.movers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.movers__col { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.movers__title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; }
.mover { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.mover:hover { background: var(--bg-3); }
.mover__info { flex: 1; min-width: 0; }
.mover__sym { font-size: 13px; font-weight: 700; }
.mover__price { font-size: 11.5px; color: var(--text-muted); }
.mover__chg { font-size: 13px; font-weight: 700; }

/* Controles */
.mk-controls { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.mk-search {
  flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 0 14px; height: 44px;
}
.mk-search:focus-within { border-color: var(--yellow); }
.mk-search input { flex: 1; background: transparent; border: 0; outline: none; color: var(--text); font-family: inherit; font-size: 14px; }
.mk-search input::placeholder { color: var(--text-muted); }
.mk-sort { display: flex; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 10px; border: 1px solid var(--border); }
.mk-sort .sort-tab { padding: 8px 14px; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.mk-sort .sort-tab:hover { color: var(--text); }
.mk-sort .sort-tab.active { background: var(--yellow); color: #131F33; }

/* Tabela */
.mk-table tbody tr:hover { background: var(--bg-3); }
.mk-table thead th { position: sticky; top: 0; z-index: 2; }
.chg-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12.5px; font-weight: 700; }
.chg-up { background: rgba(14,203,129,.14); color: var(--green); }
.chg-down { background: rgba(246,70,93,.14); color: var(--red); }

@media (max-width: 1100px) {
  .mk-global { grid-template-columns: repeat(2, 1fr); }
  .mk-highlight__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .movers { grid-template-columns: 1fr; }
  .hide-md { display: none; }
}
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .mk-sort { overflow-x: auto; max-width: 100%; }
  .mk-global { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mk-global__value { font-size: 17px; }
  .mk-highlight__grid { grid-template-columns: 1fr; }
}
