/* Professional functional P2P market */
.professional-market {
  padding-top: 24px;
}

.market-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 153, 255, .1), rgba(5, 11, 22, .78) 48%, rgba(8, 201, 139, .05));
  box-shadow: 0 16px 42px rgba(0, 0, 0, .18);
}

.market-hero h2,
.market-hero p {
  margin: 0;
}

.market-hero h2 {
  margin-top: 4px;
  font-size: clamp(26px, 3vw, 36px);
}

.market-hero > div:first-child > p:last-child {
  max-width: 650px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.market-index-card {
  min-width: 220px;
  display: grid;
  justify-items: end;
  gap: 3px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.market-index-card span,
.market-index-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.market-index-card strong {
  font-size: 31px;
  line-height: 1.1;
}

.market-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
}

.market-intent-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(460px, 100%);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #070c14;
}

.market-intent-tabs button {
  min-height: 56px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.market-intent-tabs button span,
.market-intent-tabs button small {
  display: block;
}

.market-intent-tabs button span {
  font-weight: 850;
}

.market-intent-tabs button small {
  font-size: 10px;
}

.market-intent-tabs.buy button.active {
  border-color: rgba(8, 201, 139, .4);
  background: rgba(8, 201, 139, .13);
  color: var(--green);
}

.market-intent-tabs.sell button.active {
  border-color: rgba(0, 153, 255, .42);
  background: rgba(0, 153, 255, .13);
  color: var(--blue-2);
}

.market-post-ad {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.market-post-ad span {
  color: var(--blue-2);
  font-size: 19px;
  font-weight: 400;
}

.market-filter-panel {
  display: grid;
  grid-template-columns: 110px minmax(150px, .8fr) minmax(180px, 1fr) minmax(170px, .8fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.market-filter-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.market-filter-field > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.market-filter-field input,
.market-filter-field select,
.market-filter-field.asset strong {
  width: 100%;
  min-width: 0;
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #050b16;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
}

.market-filter-field input:focus,
.market-filter-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, .08);
}

.market-filter-field.asset strong {
  color: var(--blue-2);
}

.market-filter-submit,
.market-filter-clear {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.market-filter-submit {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
}

.market-filter-clear {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

.market-results-panel {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.market-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.market-results-head h3,
.market-results-head p {
  margin: 0;
}

.market-results-head h3 {
  font-size: 17px;
}

.market-results-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.market-refresh-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 750;
  cursor: pointer;
}

.market-refresh-button span {
  color: var(--blue-2);
  font-size: 16px;
}

.market-offer-table {
  display: grid;
}

.market-offer-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(115px, .62fr) minmax(220px, 1.15fr) minmax(150px, .8fr) minmax(140px, auto);
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.market-offer-row:last-child {
  border-bottom: 0;
}

.market-offer-row:not(.market-offer-header):hover {
  background: rgba(0, 153, 255, .035);
}

.market-offer-header {
  min-height: 42px;
  padding-top: 9px;
  padding-bottom: 9px;
  background: rgba(255, 255, 255, .018);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.market-trader-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.market-trader-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 153, 255, .3);
  border-radius: 50%;
  background: rgba(0, 153, 255, .1);
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 900;
}

.market-trader-cell strong,
.market-trader-cell small,
.market-price-cell strong,
.market-price-cell small,
.market-liquidity-cell strong,
.market-liquidity-cell small,
.market-action-cell small {
  display: block;
}

.market-trader-cell strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-trader-cell small,
.market-price-cell small,
.market-liquidity-cell small,
.market-action-cell small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.market-trader-cell small i {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--green);
}

.market-price-cell strong {
  color: var(--green);
  font-size: 20px;
}

.market-price-cell strong.sell-price {
  color: var(--blue-2);
}

.market-liquidity-cell strong {
  font-size: 13px;
}

.market-payment-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.market-payment-cell span {
  padding: 5px 8px;
  border: 1px solid rgba(0, 153, 255, .22);
  border-radius: 999px;
  background: rgba(0, 153, 255, .07);
  color: var(--blue-2);
  font-size: 9px;
  font-weight: 750;
}

.market-action-cell {
  display: grid;
  justify-items: stretch;
  gap: 2px;
  text-align: center;
}

.market-trade-button {
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}

.market-action-cell small {
  color: var(--green);
}

.professional-market-empty {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 34px;
  text-align: center;
}

.professional-market-empty > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 153, 255, .32);
  border-radius: 14px;
  background: rgba(0, 153, 255, .09);
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 950;
}

.professional-market-empty h3,
.professional-market-empty p {
  margin: 0;
}

.professional-market-empty p {
  max-width: 480px;
  color: var(--muted);
  font-size: 12px;
}

.professional-market-empty > div {
  display: flex;
  gap: 9px;
  margin-top: 8px;
}

.market-loading-state {
  min-height: 360px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: center;
  gap: 12px;
}

.market-loading-state > div {
  height: 100px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: marketShimmer 1.4s infinite linear;
}

.market-loading-state p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

@keyframes marketShimmer {
  to { background-position: -200% 0; }
}

.market-api-state {
  min-height: 280px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 75, 103, .28);
  border-radius: 11px;
  background: rgba(255, 75, 103, .045);
}

.market-api-state > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 75, 103, .12);
  color: var(--red);
  font-weight: 900;
}

.market-api-state h3,
.market-api-state p {
  margin: 0;
}

.market-api-state p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .market-filter-panel {
    grid-template-columns: 110px repeat(3, minmax(150px, 1fr));
  }

  .market-filter-submit,
  .market-filter-clear {
    grid-row: 2;
  }

  .market-offer-header {
    display: none;
  }

  .market-offer-table {
    gap: 10px;
    padding: 12px;
  }

  .market-offer-row:not(.market-offer-header) {
    grid-template-columns: minmax(0, 1fr) minmax(130px, auto);
    gap: 12px 18px;
    min-height: 0;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
  }

  .market-liquidity-cell,
  .market-payment-cell {
    grid-column: 1;
  }

  .market-action-cell {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }
}

@media (max-width: 720px) {
  .professional-market {
    padding-top: 16px;
  }

  .market-hero,
  .market-mode-bar,
  .market-results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-index-card {
    width: 100%;
    justify-items: start;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .market-mode-bar,
  .market-intent-tabs,
  .market-post-ad {
    width: 100%;
  }

  .market-post-ad {
    justify-content: center;
  }

  .market-filter-panel,
  .market-loading-state {
    grid-template-columns: 1fr;
  }

  .market-filter-submit,
  .market-filter-clear {
    grid-row: auto;
  }

  .market-offer-row:not(.market-offer-header) {
    grid-template-columns: 1fr;
  }

  .market-liquidity-cell,
  .market-payment-cell,
  .market-action-cell {
    grid-column: 1;
    grid-row: auto;
  }

  .market-action-cell {
    margin-top: 4px;
  }

  .market-loading-state p {
    grid-column: 1;
  }

  .market-api-state {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .market-api-state > span {
    justify-self: center;
  }
}
/* Compact market header and red Sell state */
.professional-market .market-hero.compact {
  min-height: 76px;
  padding: 14px 18px;
  gap: 20px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: none;
}

.professional-market .market-hero.compact h2 {
  margin: 0;
  font-size: 22px;
}

.professional-market .market-hero.compact > div:first-child > p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.professional-market .market-hero.compact .market-index-card {
  min-width: 190px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding-left: 20px;
}

.professional-market .market-hero.compact .market-index-card > span {
  color: var(--muted);
  font-size: 10px;
}

.professional-market .market-hero.compact .market-index-card > div {
  display: grid;
  justify-items: end;
  gap: 1px;
}

.professional-market .market-hero.compact .market-index-card strong {
  font-size: 21px;
}

.professional-market .market-hero.compact .market-index-card small {
  font-size: 9px;
}

.market-intent-tabs.sell button.active {
  border-color: rgba(255, 75, 103, .48);
  background: rgba(255, 75, 103, .13);
  color: var(--red);
}

.market-price-cell strong.sell-price {
  color: var(--red);
}

@media (max-width: 720px) {
  .professional-market .market-hero.compact {
    gap: 12px;
  }

  .professional-market .market-hero.compact .market-index-card {
    min-width: 0;
    justify-content: space-between;
    padding: 11px 0 0;
  }

  .professional-market .market-hero.compact .market-index-card > div {
    justify-items: end;
  }
}
/* Professional dashboard workspace */
.dashboard-page {
  width: min(100%, 1760px);
  padding-top: 24px;
}

.dashboard-page h1,
.dashboard-page h2,
.dashboard-page h3,
.dashboard-page p {
  margin-bottom: 0;
}

.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.dashboard-eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.dashboard-welcome h1 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.dashboard-welcome > div:first-child > p:last-child {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-profile-status {
  min-width: 280px;
  display: grid;
  grid-template-columns: 42px 1fr 34px;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 27, 38, .86);
}

.dashboard-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 184, 255, .38);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(0, 153, 255, .19), rgba(0, 153, 255, .05));
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 950;
}

.dashboard-profile-status strong,
.dashboard-profile-status span {
  display: block;
}

.dashboard-profile-status strong {
  max-width: 165px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-profile-status div > span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.dashboard-profile-status i,
.dashboard-network i,
.dashboard-live i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--muted-2);
}

.dashboard-profile-status i.success,
.dashboard-live i,
.dashboard-network i {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 201, 139, .12);
}

.dashboard-profile-status i.pending {
  background: var(--yellow);
}

.dashboard-profile-status i.danger {
  background: var(--red);
}

.dashboard-profile-status > a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--muted);
}

.dashboard-profile-status > a:hover {
  background: var(--surface-3);
  color: var(--blue-2);
}

.dashboard-profile-status svg {
  width: 17px;
  height: 17px;
}

.dashboard-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, .85fr);
  gap: 16px;
}

.dashboard-balance-card,
.dashboard-market-card,
.dashboard-quick-section,
.dashboard-status-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.dashboard-balance-card,
.dashboard-market-card {
  min-height: 350px;
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.dashboard-balance-card::before,
.dashboard-market-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 184, 255, .75), transparent);
  pointer-events: none;
}

.dashboard-balance-card::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(0, 153, 255, .08);
  filter: blur(10px);
  pointer-events: none;
}

.dashboard-card-head,
.dashboard-card-head > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  position: relative;
  z-index: 1;
}

.dashboard-card-head h2 {
  margin: 0;
  font-size: 15px;
}

.dashboard-card-icon,
.dashboard-shortcut-icon,
.dashboard-status-icon {
  display: grid;
  place-items: center;
  color: var(--blue-2);
  background: rgba(0, 153, 255, .1);
  border: 1px solid rgba(0, 153, 255, .24);
}

.dashboard-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.dashboard-card-icon svg {
  width: 18px;
  height: 18px;
}

.dashboard-card-icon.market {
  color: var(--green);
  background: rgba(8, 201, 139, .09);
  border-color: rgba(8, 201, 139, .25);
}

.dashboard-network,
.dashboard-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0, 0, 0, .14);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dashboard-balance-value {
  display: flex;
  align-items: baseline;
  gap: 9px;
  position: relative;
  z-index: 1;
  margin: 25px 0 20px;
}

.dashboard-balance-value > strong {
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -.045em;
}

.dashboard-balance-value > span {
  color: var(--blue-2);
  font-size: 14px;
  font-weight: 900;
}

.dashboard-balance-value > small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
}

.dashboard-balance-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.dashboard-balance-breakdown > div {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: rgba(4, 11, 21, .38);
}

.dashboard-balance-breakdown span,
.dashboard-balance-breakdown strong {
  display: block;
}

.dashboard-balance-breakdown span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.dashboard-balance-breakdown strong {
  font-size: 13px;
}

.dashboard-balance-breakdown strong small {
  color: var(--muted);
  font-size: 8px;
}

.dashboard-balance-breakdown .available strong {
  color: var(--green);
}

.dashboard-balance-breakdown .escrow strong {
  color: var(--blue-2);
}

.dashboard-balance-breakdown .pending strong {
  color: var(--yellow);
}

.dashboard-wallet-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
  z-index: 1;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.dashboard-wallet-action {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-3);
  font-size: 11px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.dashboard-wallet-action:hover,
.dashboard-shortcut:hover,
.dashboard-status-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 184, 255, .48);
}

.dashboard-wallet-action span {
  display: grid;
  place-items: center;
}

.dashboard-wallet-action svg {
  width: 15px;
  height: 15px;
}

.dashboard-wallet-action.buy {
  border-color: rgba(8, 201, 139, .32);
  color: var(--green);
  background: rgba(8, 201, 139, .1);
}

.dashboard-wallet-action.sell {
  border-color: rgba(255, 75, 103, .32);
  color: var(--red);
  background: rgba(255, 75, 103, .1);
}

.dashboard-market-card {
  display: grid;
  align-content: start;
  background: linear-gradient(145deg, var(--surface), rgba(9, 28, 47, .95));
}

.dashboard-rate-value {
  display: grid;
  margin: 28px 0 20px;
}

.dashboard-rate-value strong {
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -.04em;
}

.dashboard-rate-value span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.dashboard-rate-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dashboard-rate-range > div {
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 9px;
  background: rgba(0, 0, 0, .2);
}

.dashboard-rate-range span,
.dashboard-rate-range strong {
  display: block;
}

.dashboard-rate-range span {
  color: var(--muted);
  font-size: 9px;
}

.dashboard-rate-range strong {
  margin-top: 2px;
  color: var(--green);
  font-size: 14px;
}

.dashboard-rate-range strong.sell {
  color: var(--red);
}

.dashboard-escrow-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.dashboard-escrow-note svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: var(--green);
}

.dashboard-market-link {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), #16bcf1);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.dashboard-market-link svg,
.dashboard-section-heading > a svg,
.dashboard-shortcut-arrow svg,
.dashboard-status-arrow svg {
  width: 13px;
  height: 13px;
}

.dashboard-quick-section {
  margin-top: 16px;
  padding: 18px;
  background: rgba(20, 27, 36, .72);
}

.dashboard-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.dashboard-section-heading h2 {
  margin: 0;
  font-size: 17px;
}

.dashboard-section-heading > a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--blue-2);
  font-size: 10px;
  font-weight: 850;
}

.dashboard-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.dashboard-shortcut {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 10px;
  background: var(--surface-3);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.dashboard-shortcut-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.dashboard-shortcut-icon svg {
  width: 16px;
  height: 16px;
}

.dashboard-shortcut h3 {
  margin: 0;
  font-size: 12px;
}

.dashboard-shortcut p {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-shortcut-arrow {
  display: grid;
  place-items: center;
  color: var(--muted-2);
}

.dashboard-account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.dashboard-status-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: start;
  gap: 13px;
  padding: 18px;
  transition: border-color .18s ease, transform .18s ease;
}

.dashboard-status-card.kyc {
  background: linear-gradient(135deg, rgba(0, 98, 174, .12), var(--surface) 68%);
}

.dashboard-status-card.security {
  background: linear-gradient(135deg, rgba(8, 201, 139, .07), var(--surface) 68%);
}

.dashboard-status-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.dashboard-status-icon svg {
  width: 19px;
  height: 19px;
}

.dashboard-status-copy > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-status-copy h3 {
  margin: 10px 0 5px;
  font-size: 15px;
}

.dashboard-status-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.dashboard-status-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-3);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-status-badge.success {
  color: var(--green);
  background: rgba(8, 201, 139, .1);
}

.dashboard-status-badge.pending {
  color: var(--yellow);
  background: rgba(246, 184, 63, .1);
}

.dashboard-status-badge.danger {
  color: var(--red);
  background: rgba(255, 75, 103, .1);
}

.dashboard-status-progress {
  height: 4px;
  overflow: hidden;
  margin: 13px 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.dashboard-status-progress span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
}

.dashboard-status-copy > small {
  color: var(--muted);
  font-size: 8px;
}

.dashboard-status-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 9px;
}

.dashboard-status-copy li {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dashboard-status-copy li svg {
  width: 11px;
  height: 11px;
  color: var(--green);
}

.dashboard-status-arrow {
  display: grid;
  place-items: center;
  padding-top: 4px;
  color: var(--muted-2);
}

@media (max-width: 1180px) {
  .dashboard-primary-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
  }

  .dashboard-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-balance-value > small {
    display: none;
  }
}

@media (max-width: 900px) {
  .dashboard-primary-grid,
  .dashboard-account-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-balance-card,
  .dashboard-market-card {
    min-height: 0;
  }

  .dashboard-market-card {
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
  }

  .dashboard-market-card .dashboard-card-head,
  .dashboard-market-link {
    grid-column: 1 / -1;
  }

  .dashboard-rate-value {
    margin-bottom: 10px;
  }
}

@media (max-width: 680px) {
  .dashboard-page {
    padding-top: 18px;
  }

  .dashboard-welcome {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-profile-status {
    min-width: 0;
    width: 100%;
  }

  .dashboard-balance-card,
  .dashboard-market-card,
  .dashboard-quick-section,
  .dashboard-status-card {
    border-radius: 12px;
  }

  .dashboard-balance-card,
  .dashboard-market-card {
    padding: 17px;
  }

  .dashboard-balance-value {
    flex-wrap: wrap;
    margin: 22px 0 17px;
  }

  .dashboard-balance-breakdown {
    grid-template-columns: 1fr;
  }

  .dashboard-wallet-actions,
  .dashboard-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-market-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-market-card .dashboard-card-head,
  .dashboard-market-link {
    grid-column: auto;
  }

  .dashboard-shortcut p {
    white-space: normal;
  }

  .dashboard-status-card {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 15px;
  }

  .dashboard-status-icon {
    width: 38px;
    height: 38px;
  }

  .dashboard-status-arrow {
    display: none;
  }
}

/* Professional account workspace: settings, trades, and wallet */
.dashboard-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.dashboard-profile-status {
  align-self: center;
  justify-self: end;
}

.dashboard-profile-status > div,
.dashboard-avatar {
  align-self: center;
}

.dashboard-avatar {
  line-height: 1;
  text-align: center;
}

.professional-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.professional-page-head h1 {
  margin: 3px 0 5px;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.professional-page-head > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.professional-primary-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), #16bdf2);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.professional-primary-link svg {
  width: 16px;
  height: 16px;
}

.professional-loading-card,
.professional-error-card {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.professional-loading-card > span {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 184, 255, .18);
  border-top-color: var(--blue-2);
  border-radius: 50%;
  animation: professional-spin .8s linear infinite;
}

.professional-loading-card strong,
.professional-loading-card small {
  display: block;
}

.professional-loading-card small,
.professional-error-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.professional-error-card {
  justify-content: flex-start;
  border-color: rgba(255, 75, 103, .28);
}

.professional-error-card > svg {
  width: 25px;
  height: 25px;
  color: var(--red);
}

.professional-error-card h3 {
  margin: 0;
}

.professional-error-card button {
  margin-left: auto;
}

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

/* Settings */
.professional-settings-page {
  width: min(100%, 1640px);
  padding-top: 24px;
}

.professional-settings-head {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--surface), rgba(5, 28, 49, .92));
  overflow: hidden;
  position: relative;
}

.professional-settings-head::after {
  content: "";
  position: absolute;
  top: -100px;
  right: 12%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(0, 153, 255, .08);
  pointer-events: none;
}

.professional-settings-person {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.professional-settings-person > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 184, 255, .45);
  border-radius: 14px;
  background: rgba(0, 153, 255, .12);
  color: var(--blue-2);
  font-size: 19px;
  font-weight: 900;
}

.professional-settings-person h1 {
  margin: 1px 0 3px;
  font-size: 27px;
  line-height: 1;
}

.professional-settings-person small {
  color: var(--muted);
  font-size: 10px;
}

.professional-settings-state {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  padding: 10px 12px;
  border: 1px solid rgba(0, 184, 255, .2);
  border-radius: 11px;
  background: rgba(3, 10, 20, .42);
}

.professional-settings-state > svg {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.professional-settings-state strong,
.professional-settings-state small {
  display: block;
}

.professional-settings-state strong {
  font-size: 11px;
}

.professional-settings-state small {
  color: var(--muted);
  font-size: 9px;
}

.professional-settings-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.professional-settings-page .professional-settings-nav {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.settings-nav-label {
  padding: 5px 9px 9px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.professional-settings-page .settings-tab {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 13px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  text-align: left;
  white-space: normal;
}

.professional-settings-page .settings-tab > svg:first-child {
  width: 17px;
  height: 17px;
}

.professional-settings-page .settings-tab > svg:last-child {
  width: 11px;
  height: 11px;
  opacity: .4;
}

.professional-settings-page .settings-tab span,
.professional-settings-page .settings-tab strong,
.professional-settings-page .settings-tab small {
  display: block;
}

.professional-settings-page .settings-tab strong {
  color: var(--text);
  font-size: 11px;
}

.professional-settings-page .settings-tab small {
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 8px;
}

.professional-settings-page .settings-tab:hover {
  background: rgba(255, 255, 255, .035);
}

.professional-settings-page .settings-tab.active {
  border-color: rgba(0, 184, 255, .25);
  background: rgba(0, 153, 255, .1);
  color: var(--blue-2);
}

.professional-settings-page .settings-content {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.settings-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 60px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 27, 36, .7);
}

.settings-content-head h2 {
  margin: 1px 0 0;
  font-size: 20px;
}

.settings-content-head > a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-2);
  font-size: 9px;
  font-weight: 800;
}

.settings-content-head svg {
  width: 11px;
  height: 11px;
}

.professional-settings-page .settings-identity {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 153, 255, .08), var(--surface));
}

.professional-settings-page .settings-avatar-wrap {
  display: grid;
  place-items: center;
}

.professional-settings-page .settings-avatar {
  width: 70px;
  height: 70px;
  border: 1px solid rgba(0, 184, 255, .4);
  border-radius: 18px;
  background: rgba(0, 153, 255, .14);
  color: var(--blue-2);
  font-size: 26px;
}

.professional-settings-page .settings-id-main {
  align-self: center;
}

.professional-settings-page .settings-id-main h3 {
  margin: 5px 0 0;
  font-size: 20px;
}

.professional-settings-page .settings-card {
  border-radius: 12px;
  background: var(--surface);
}

.professional-settings-page .settings-form-card,
.professional-settings-page .settings-card-flat,
.professional-settings-page .settings-payment-card {
  padding: 20px;
}

.professional-settings-page .settings-card-head {
  margin-bottom: 12px;
}

.professional-settings-page .settings-card-head h3 {
  font-size: 15px;
}

.professional-settings-page .settings-card-head h3 svg {
  width: 17px;
  height: 17px;
  color: var(--blue-2);
}

.professional-settings-page .settings-card-head p {
  font-size: 10px;
}

.professional-settings-page .settings-form-grid {
  gap: 11px;
}

.professional-settings-page .form-field {
  gap: 5px;
  font-size: 10px;
}

.professional-settings-page .form-field input,
.professional-settings-page .form-field select,
.professional-settings-page textarea {
  min-height: 42px;
  border-radius: 9px;
  font-size: 11px;
}

.professional-settings-page .settings-form-actions {
  margin-top: 13px;
}

.professional-settings-page .settings-form-actions .app-button {
  min-height: 39px;
  font-size: 11px;
}

.professional-settings-page .settings-row {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 11px;
  min-height: 60px;
  padding: 11px 0;
}

.professional-settings-page .settings-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  color: var(--blue-2);
  background: rgba(0, 153, 255, .08);
}

.professional-settings-page .settings-row-icon svg {
  width: 16px;
  height: 16px;
}

.professional-settings-page .settings-row-main strong {
  font-size: 11px;
}

.professional-settings-page .settings-row-main small {
  margin-top: 2px;
  font-size: 9px;
}

.professional-settings-page .settings-action,
.professional-settings-page .settings-badge {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 9px;
}

.professional-settings-page .settings-note {
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid rgba(0, 153, 255, .2);
  border-radius: 10px;
  background: rgba(0, 153, 255, .06);
  font-size: 10px;
}

.professional-settings-page .payment-method-editor {
  border-radius: 10px;
}

.professional-settings-page .payment-method-entry {
  border-radius: 10px;
}

/* Trades */
.professional-trades-page {
  width: min(100%, 1560px);
  padding-top: 24px;
}

.trade-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.trade-overview-grid > div {
  min-height: 92px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.trade-overview-grid span,
.trade-overview-grid strong,
.trade-overview-grid small {
  display: block;
}

.trade-overview-grid span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.trade-overview-grid strong {
  margin: 4px 0 2px;
  font-size: 24px;
}

.trade-overview-grid small {
  color: var(--muted-2);
  font-size: 8px;
}

.trade-overview-grid .active strong {
  color: var(--blue-2);
}

.trade-overview-grid .completed strong {
  color: var(--green);
}

.professional-trade-list-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.trade-list-filters {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 13, 22, .32);
}

.trade-list-filters button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.trade-list-filters button b {
  min-width: 20px;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.trade-list-filters button.active {
  border-color: rgba(0, 184, 255, .22);
  background: rgba(0, 153, 255, .1);
  color: var(--blue-2);
}

.professional-trade-list {
  display: grid;
}

.professional-trade-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .065);
  transition: background .16s ease;
}

.professional-trade-row:last-child {
  border-bottom: 0;
}

.professional-trade-row:hover {
  background: rgba(255, 255, 255, .025);
}

.trade-row-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(180px, 1.5fr) minmax(130px, .7fr) minmax(130px, .75fr) 24px;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.trade-direction {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(8, 201, 139, .25);
  border-radius: 10px;
  background: rgba(8, 201, 139, .08);
  color: var(--green);
}

.trade-direction.sell {
  border-color: rgba(255, 75, 103, .25);
  background: rgba(255, 75, 103, .08);
  color: var(--red);
}

.trade-direction svg {
  width: 17px;
  height: 17px;
}

.trade-counterparty small,
.trade-counterparty strong,
.trade-counterparty em,
.trade-row-amount strong,
.trade-row-amount small,
.trade-row-state b,
.trade-row-state small {
  display: block;
}

.trade-counterparty small,
.trade-row-amount small,
.trade-row-state small {
  color: var(--muted);
  font-size: 8px;
}

.trade-counterparty strong,
.trade-row-amount strong {
  margin: 2px 0;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-counterparty em {
  color: var(--muted-2);
  font-size: 8px;
  font-style: normal;
}

.trade-row-state b {
  width: max-content;
  max-width: 100%;
  margin-bottom: 3px;
  padding: 4px 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 153, 255, .1);
  color: var(--blue-2);
  font-size: 8px;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.trade-row-state b.success {
  color: var(--green);
  background: rgba(8, 201, 139, .1);
}

.trade-row-state b.warning {
  color: var(--yellow);
  background: rgba(246, 184, 63, .1);
}

.trade-row-state b.danger {
  color: var(--red);
  background: rgba(255, 75, 103, .1);
}

.trade-row-open {
  color: var(--muted-2);
}

.trade-row-open svg {
  width: 13px;
  height: 13px;
}

.trade-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px 10px 0;
}

.trade-row-actions .app-button,
.trade-row-actions .app-ghost-button,
.trade-row-actions .danger-button {
  min-height: 32px;
  padding: 0 9px;
  font-size: 8px;
  white-space: nowrap;
}

.trade-row-actions .app-muted,
.trade-row-actions .status-pill {
  font-size: 8px;
  white-space: nowrap;
}

.professional-trade-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.professional-trade-empty > svg {
  width: 28px;
  height: 28px;
  color: var(--blue-2);
}

.professional-trade-empty h3,
.professional-trade-empty p {
  margin: 0;
}

.professional-trade-empty p {
  color: var(--muted);
  font-size: 10px;
}

.professional-trades-page.trade-detail-page {
  width: min(100%, 1700px);
}

.professional-trades-page .trade-room-header,
.professional-trades-page .escrow-main,
.professional-trades-page .escrow-side,
.professional-trades-page .appeal-card,
.professional-trades-page .dispute-panel {
  border-radius: 12px;
}

.professional-trades-page .trade-room-header {
  padding: 14px 17px;
  border: 1px solid var(--line);
  background: var(--surface);
}

/* Wallet */
.professional-wallet-page {
  width: min(100%, 1560px);
  padding-top: 24px;
}

.wallet-network-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 9px;
  font-weight: 800;
}

.wallet-network-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 201, 139, .12);
}

.professional-wallet-summary {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--surface), rgba(4, 29, 51, .9));
}

.wallet-total-block {
  display: flex;
  align-items: center;
  gap: 13px;
}

.wallet-summary-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 184, 255, .3);
  border-radius: 13px;
  background: rgba(0, 153, 255, .1);
  color: var(--blue-2);
}

.wallet-summary-icon svg {
  width: 22px;
  height: 22px;
}

.wallet-total-block p,
.wallet-total-block h2,
.wallet-total-block small {
  margin: 0;
}

.wallet-total-block p,
.wallet-total-block small {
  color: var(--muted);
  font-size: 9px;
}

.wallet-total-block h2 {
  margin: 2px 0;
  font-size: clamp(29px, 3.1vw, 42px);
  line-height: 1;
}

.wallet-total-block h2 span {
  color: var(--blue-2);
  font-size: 12px;
}

.professional-balance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.professional-balance-grid > div {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 9px;
  background: rgba(2, 9, 18, .35);
}

.professional-balance-grid span,
.professional-balance-grid strong {
  display: block;
}

.professional-balance-grid span {
  color: var(--muted);
  font-size: 8px;
}

.professional-balance-grid strong {
  margin-top: 3px;
  font-size: 11px;
}

.professional-balance-grid strong small {
  color: var(--muted);
  font-size: 7px;
}

.professional-balance-grid .available strong {
  color: var(--green);
}

.professional-balance-grid .locked strong {
  color: var(--blue-2);
}

.professional-balance-grid .pending strong {
  color: var(--yellow);
}

.professional-wallet-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 13px 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, .28);
}

.professional-wallet-tabs button {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
}

.professional-wallet-tabs button > svg {
  width: 17px;
  height: 17px;
}

.professional-wallet-tabs button span,
.professional-wallet-tabs button strong,
.professional-wallet-tabs button small {
  display: block;
  text-align: left;
}

.professional-wallet-tabs button strong {
  color: var(--text);
  font-size: 10px;
}

.professional-wallet-tabs button small {
  margin-top: 1px;
  font-size: 8px;
}

.professional-wallet-tabs button.active {
  border-color: rgba(0, 184, 255, .28);
  background: rgba(0, 153, 255, .11);
  color: var(--blue-2);
}

.professional-wallet-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, .62fr);
  gap: 13px;
  align-items: start;
}

.wallet-operation-panel,
.wallet-activity-panel {
  min-width: 0;
}

.professional-wallet-page .wallet-panel {
  margin: 0;
  padding: 20px;
  border-radius: 13px;
  background: var(--surface);
}

.professional-wallet-page .sheet-head {
  margin-bottom: 12px;
}

.professional-wallet-page .sheet-head h2 {
  font-size: 19px;
}

.professional-wallet-page .wallet-network-grid {
  gap: 8px;
  margin: 11px 0;
}

.professional-wallet-page .wallet-network-card {
  min-height: 118px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 13px;
  border-radius: 10px;
}

.professional-wallet-page .wallet-network-card .network-mark {
  width: 38px;
  height: 38px;
  font-size: 10px;
}

.professional-wallet-page .wallet-network-card strong {
  font-size: 11px;
}

.professional-wallet-page .wallet-network-card small {
  font-size: 8px;
}

.professional-wallet-page .network-status {
  padding: 4px 7px;
  font-size: 7px;
}

.professional-wallet-page .deposit-address-detail {
  grid-template-columns: 94px minmax(0, 1fr) auto;
  padding: 13px;
  border-radius: 10px;
}

.professional-wallet-page .deposit-qr-card {
  width: 82px;
  height: 82px;
}

.professional-wallet-page .deposit-address-main span,
.professional-wallet-page .deposit-address-main small {
  font-size: 8px;
}

.professional-wallet-page .deposit-address-main strong {
  font-size: 10px;
}

.wallet-activity-panel {
  min-height: 260px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.wallet-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.wallet-activity-head h3 {
  margin: 1px 0 0;
  font-size: 14px;
}

.wallet-activity-head > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(0, 153, 255, .09);
  color: var(--blue-2);
}

.wallet-activity-head svg {
  width: 15px;
  height: 15px;
}

.wallet-activity-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 24px 10px;
  text-align: center;
}

.wallet-activity-empty > svg {
  width: 24px;
  height: 24px;
  color: var(--muted-2);
}

.wallet-activity-empty strong {
  font-size: 11px;
}

.wallet-activity-empty p {
  max-width: 220px;
  margin: 0;
  color: var(--muted);
  font-size: 8px;
}

.wallet-activity-panel > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--blue-2);
  font-size: 9px;
  font-weight: 800;
}

.wallet-activity-panel > a svg {
  width: 11px;
  height: 11px;
}

.wallet-feature-preview {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 14px 0;
  padding: 15px;
  border: 1px solid rgba(0, 153, 255, .2);
  border-radius: 10px;
  background: rgba(0, 153, 255, .06);
}

.wallet-feature-preview > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(0, 153, 255, .11);
  color: var(--blue-2);
}

.wallet-feature-preview svg {
  width: 18px;
  height: 18px;
}

.wallet-feature-preview h3 {
  margin: 0 0 5px;
  font-size: 13px;
}

.wallet-feature-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .professional-settings-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .professional-balance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .professional-wallet-workspace {
    grid-template-columns: 1fr;
  }

  .wallet-activity-panel {
    min-height: 210px;
  }

  .professional-trade-row {
    grid-template-columns: 1fr;
  }

  .trade-row-actions {
    justify-content: flex-end;
    padding: 0 14px 12px;
  }
}

@media (max-width: 860px) {
  .professional-settings-layout {
    grid-template-columns: 1fr;
  }

  .professional-settings-page .professional-settings-nav {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .settings-nav-label {
    display: none;
  }

  .professional-settings-page .settings-tab {
    width: auto;
    min-width: 150px;
    flex: 0 0 auto;
  }

  .professional-wallet-summary {
    grid-template-columns: 1fr;
  }

  .trade-row-main {
    grid-template-columns: 40px minmax(150px, 1fr) minmax(120px, .7fr) 24px;
  }

  .trade-row-state {
    display: none;
  }
}

@media (max-width: 680px) {
  .dashboard-welcome {
    grid-template-columns: 1fr;
  }

  .dashboard-profile-status {
    width: 100%;
    justify-self: stretch;
  }

  .professional-page-head,
  .professional-settings-head {
    align-items: stretch;
    flex-direction: column;
  }

  .professional-primary-link {
    width: 100%;
  }

  .professional-settings-state {
    width: max-content;
  }

  .settings-content-head > a {
    display: none;
  }

  .professional-settings-page .settings-form-grid,
  .professional-settings-page .settings-row {
    grid-template-columns: 1fr;
  }

  .professional-settings-page .settings-row-aside {
    justify-self: start;
  }

  .professional-settings-page .settings-identity {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .trade-overview-grid,
  .professional-wallet-tabs,
  .professional-wallet-page .wallet-network-grid {
    grid-template-columns: 1fr;
  }

  .trade-list-filters {
    overflow-x: auto;
  }

  .trade-list-filters button {
    flex: 0 0 auto;
  }

  .trade-row-main {
    grid-template-columns: 38px minmax(0, 1fr) 20px;
  }

  .trade-row-amount,
  .trade-row-state {
    display: none;
  }

  .professional-wallet-tabs button {
    justify-content: flex-start;
    padding: 0 14px;
  }

  .professional-balance-grid {
    grid-template-columns: 1fr 1fr;
  }

  .professional-wallet-page .wallet-network-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .professional-wallet-page .network-status {
    grid-column: 2;
    justify-self: start;
  }

  .professional-wallet-page .deposit-address-detail {
    grid-template-columns: 1fr;
  }

  .professional-wallet-page .deposit-qr-card {
    width: 110px;
    height: 110px;
  }
}
/* BRX command center and dashboard header refinement */
.dashboard-profile-status {
  min-width: 258px;
  min-height: 68px;
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  gap: 11px;
  padding: 10px 11px;
  border-color: rgba(0, 184, 255, .2);
  background: linear-gradient(135deg, rgba(22, 31, 43, .96), rgba(8, 21, 35, .96));
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.dashboard-profile-status:hover {
  border-color: rgba(0, 184, 255, .5);
  background: linear-gradient(135deg, rgba(27, 39, 53, .98), rgba(8, 26, 45, .98));
  transform: translateY(-1px);
}

.dashboard-profile-status .dashboard-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.dashboard-profile-copy,
.dashboard-profile-copy small,
.dashboard-profile-copy strong,
.dashboard-profile-copy em {
  min-width: 0;
  display: block;
}

.dashboard-profile-copy small {
  margin-bottom: 1px;
  color: var(--muted-2);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.dashboard-profile-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-profile-copy em {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.dashboard-profile-copy em i {
  flex: 0 0 auto;
}

.dashboard-profile-open {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, .025);
}

.dashboard-profile-open svg {
  width: 13px;
  height: 13px;
}

.dashboard-market-card {
  grid-template-rows: auto auto auto auto auto;
  align-content: start;
  gap: 12px;
}

.dashboard-market-card .dashboard-rate-value {
  margin: 14px 0 4px;
}

.dashboard-market-card .dashboard-escrow-note {
  min-height: 30px;
  align-items: center;
  margin: 2px 0 0;
  line-height: 1.45;
}

.dashboard-market-card .dashboard-market-link {
  margin-top: 0;
}

/* Admin console */
.admin-console-page {
  width: min(100%, 1780px);
  display: grid;
  gap: 16px;
  padding-top: 20px;
}

.admin-console-hero,
.admin-console-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.admin-console-hero {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  background:
    linear-gradient(115deg, rgba(0, 153, 255, .12), transparent 48%),
    linear-gradient(145deg, var(--surface), rgba(7, 26, 44, .96));
}

.admin-console-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-2), transparent);
}

.admin-console-hero::after {
  content: "";
  position: absolute;
  top: -150px;
  right: 12%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(0, 153, 255, .07);
  filter: blur(6px);
  pointer-events: none;
}

.admin-console-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.admin-console-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 184, 255, .38);
  border-radius: 15px;
  background: rgba(0, 153, 255, .12);
  color: var(--blue-2);
  box-shadow: 0 14px 32px rgba(0, 120, 255, .12);
}

.admin-console-mark svg {
  width: 27px;
  height: 27px;
}

.admin-console-title h1 {
  margin: 2px 0 6px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -.035em;
}

.admin-console-title > div > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.admin-console-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  z-index: 1;
}

.admin-access-badge,
.admin-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(8, 201, 139, .25);
  border-radius: 999px;
  background: rgba(8, 201, 139, .08);
  color: var(--green);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-access-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 201, 139, .13);
}

.admin-refresh-button,
.admin-process-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(0, 184, 255, .27);
  border-radius: 9px;
  background: rgba(0, 153, 255, .1);
  color: var(--blue-2);
  font-size: 9px;
  font-weight: 850;
}

.admin-process-button {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), #16bdf2);
  color: #fff;
}

.admin-refresh-button svg,
.admin-process-button svg {
  width: 14px;
  height: 14px;
}

.admin-console-section {
  min-width: 0;
  padding: 18px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.admin-metrics-section {
  background: rgba(21, 27, 36, .72);
}

.admin-console-section-head {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.admin-console-section-head h2 {
  margin: 1px 0 0;
  font-size: 18px;
}

.admin-console-section-head small,
.admin-console-section-head > span:not(.admin-section-badge) {
  color: var(--muted);
  font-size: 8px;
}

.admin-console-section-head > svg {
  width: 22px;
  height: 22px;
  color: var(--blue-2);
}

.admin-section-badge {
  border-color: rgba(0, 153, 255, .25);
  background: rgba(0, 153, 255, .08);
  color: var(--blue-2);
}

.admin-section-badge.warning {
  border-color: rgba(246, 184, 63, .26);
  background: rgba(246, 184, 63, .08);
  color: var(--yellow);
}

.admin-section-badge svg {
  width: 12px;
  height: 12px;
}

.admin-console-page .professional-admin-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.admin-console-page .admin-stat-card {
  min-width: 0;
  min-height: 105px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 13px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--surface-3), rgba(10, 22, 36, .92));
  box-shadow: none;
}

.admin-console-page .admin-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.admin-console-page .admin-stat-icon svg {
  width: 16px;
  height: 16px;
}

.admin-console-page .admin-stat-card > div {
  min-width: 0;
}

.admin-console-page .admin-stat-card > div > span,
.admin-console-page .admin-stat-card > div > strong,
.admin-console-page .admin-stat-card > div > small {
  display: block;
}

.admin-console-page .admin-stat-card > div > span {
  color: var(--muted);
  font-size: 8px;
}

.admin-console-page .admin-stat-card > div > strong {
  margin: 3px 0 2px;
  overflow: hidden;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.1;
  text-overflow: ellipsis;
}

.admin-console-page .admin-stat-card > div > small {
  color: var(--muted-2);
  font-size: 7px;
  line-height: 1.35;
}

.admin-console-page .admin-stat-card.shield .admin-stat-icon,
.admin-console-page .admin-stat-card.trades .admin-stat-icon {
  color: var(--yellow);
  background: rgba(246, 184, 63, .1);
}

.admin-console-page .admin-stat-card.lock .admin-stat-icon,
.admin-console-page .admin-stat-card.upload .admin-stat-icon {
  color: var(--red);
  background: rgba(255, 75, 103, .09);
}

.admin-console-page .admin-stat-card.market .admin-stat-icon,
.admin-console-page .admin-stat-card.activity .admin-stat-icon {
  color: var(--green);
  background: rgba(8, 201, 139, .09);
}

.professional-admin-review-grid {
  grid-template-columns: minmax(290px, .72fr) minmax(0, 1.28fr);
  gap: 12px;
}

.admin-console-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 11px;
  background: var(--surface-2);
}

.admin-panel-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(5, 12, 21, .24);
}

.admin-panel-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-panel-head > div > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(0, 153, 255, .09);
  color: var(--blue-2);
}

.admin-panel-head svg {
  width: 15px;
  height: 15px;
}

.admin-panel-head h3,
.admin-panel-head p {
  margin: 0;
}

.admin-panel-head h3 {
  font-size: 12px;
}

.admin-panel-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.admin-console-page #kycQueue,
.admin-console-page #kycDetail {
  max-height: 620px;
  overflow: auto;
  padding: 10px;
}

.admin-console-page .admin-list {
  gap: 6px;
}

.admin-console-page .admin-queue-row {
  min-height: 54px;
  padding: 10px 11px;
  border-radius: 9px;
  background: rgba(7, 15, 25, .5);
  transition: border-color .16s ease, background .16s ease;
}

.admin-console-page button.admin-queue-row:hover {
  border-color: rgba(0, 184, 255, .4);
  background: rgba(0, 153, 255, .07);
}

.admin-console-page .admin-queue-row strong {
  font-size: 10px;
}

.admin-console-page .admin-queue-row small {
  font-size: 8px;
}

.admin-console-page .settings-badge {
  font-size: 7px;
}

.admin-console-page .admin-submission-summary {
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 10px;
}

.admin-console-page .admin-submission-summary > div,
.admin-console-page .admin-setting-tile {
  padding: 10px;
  border-radius: 9px;
}

.admin-console-page .admin-submission-summary span,
.admin-console-page .admin-setting-tile span,
.admin-console-page .admin-setting-tile small {
  font-size: 8px;
}

.admin-console-page .admin-submission-summary strong,
.admin-console-page .admin-setting-tile strong {
  display: block;
  margin-top: 3px;
  font-size: 10px;
}

.admin-console-page .kyc-image-grid {
  gap: 7px;
}

.admin-console-page .kyc-image-card {
  border-radius: 9px;
}

.admin-console-page .kyc-image-card img {
  height: 170px;
}

.admin-console-page .kyc-image-card figcaption,
.admin-console-page .kyc-image-card.empty {
  padding: 8px;
  font-size: 8px;
}

.admin-console-page .admin-actions {
  gap: 7px;
  margin-top: 10px;
}

.admin-console-page .admin-actions .app-button,
.admin-console-page .admin-actions .danger-button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 8px;
}

.admin-disputes-card {
  background: linear-gradient(135deg, rgba(246, 184, 63, .035), var(--surface) 52%);
}

.admin-console-page .admin-dispute-row {
  align-items: center;
}

.admin-console-page .dispute-list .admin-queue-row {
  margin-bottom: 6px;
}

.admin-console-page .admin-ops-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-console-page .admin-operation-panel {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
}

.admin-console-page .admin-operation-panel.audit-logs {
  grid-column: span 2;
}

.admin-operation-head {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.admin-operation-head h4 {
  margin: 0;
  font-size: 11px;
}

.admin-operation-head > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 153, 255, .08);
  color: var(--blue-2);
}

.admin-operation-head svg {
  width: 13px;
  height: 13px;
}

.admin-console-page .admin-mini-list {
  padding: 5px 10px;
}

.admin-console-page .admin-mini-row {
  min-width: 0;
  align-items: center;
  padding: 8px 0;
}

.admin-console-page .admin-mini-row > span {
  min-width: 0;
}

.admin-console-page .admin-mini-row strong,
.admin-console-page .admin-mini-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-console-page .admin-mini-row strong {
  font-size: 9px;
}

.admin-console-page .admin-mini-row small {
  font-size: 7px;
}

.admin-console-page .outline-button.tiny {
  min-height: 26px;
  padding: 0 7px;
  font-size: 7px;
}

.admin-console-bottom-grid {
  display: grid;
  grid-template-columns: minmax(370px, .82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: start;
}

.admin-console-page .limit-editor {
  gap: 7px;
}

.admin-console-page .limit-row {
  grid-template-columns: 110px 1fr 1fr;
  gap: 8px;
  padding: 10px;
  border-radius: 9px;
}

.admin-console-page .limit-row > strong {
  align-self: center;
  font-size: 10px;
}

.admin-console-page .limit-row .form-field {
  gap: 4px;
  font-size: 8px;
}

.admin-console-page .limit-row input {
  min-height: 36px;
  font-size: 9px;
}

.admin-console-page .limit-editor > .app-button {
  min-height: 36px;
  justify-self: end;
  font-size: 9px;
}

.admin-console-page .admin-settings-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.admin-console-page .admin-setting-tile {
  min-height: 78px;
  background: var(--surface-2);
}

.admin-loading-state,
.admin-empty-state {
  min-height: 126px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 18px;
  text-align: center;
}

.admin-loading-state > span {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(0, 184, 255, .15);
  border-top-color: var(--blue-2);
  border-radius: 50%;
  animation: professional-spin .8s linear infinite;
}

.admin-loading-state strong,
.admin-empty-state strong {
  font-size: 9px;
}

.admin-empty-state > svg {
  width: 24px;
  height: 24px;
  color: var(--muted-2);
}

.admin-empty-state > span {
  max-width: 300px;
  color: var(--muted);
  font-size: 8px;
}

.admin-access-denied .warning-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-access-denied .warning-card > svg {
  width: 28px;
  height: 28px;
  color: var(--red);
}

.admin-access-denied .warning-card p {
  margin: 0;
}

.admin-access-denied .warning-card a {
  margin-left: auto;
}

@media (max-width: 1280px) {
  .admin-console-page .professional-admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .professional-admin-review-grid,
  .admin-console-bottom-grid {
    grid-template-columns: 1fr;
  }

  .admin-console-page .admin-ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .admin-console-hero,
  .admin-console-title,
  .admin-console-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-console-actions {
    width: 100%;
  }

  .admin-refresh-button {
    margin-left: auto;
  }

  .admin-console-page .professional-admin-stats,
  .admin-console-page .admin-ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-console-page .admin-operation-panel.audit-logs {
    grid-column: auto;
  }

  .admin-console-page .admin-submission-summary,
  .admin-console-page .admin-settings-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-console-page .limit-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .admin-console-page .professional-admin-stats,
  .admin-console-page .admin-ops-grid,
  .admin-console-page .admin-submission-summary,
  .admin-console-page .admin-settings-grid,
  .admin-console-page .kyc-image-grid {
    grid-template-columns: 1fr;
  }

  .admin-console-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-refresh-button {
    width: 100%;
    margin-left: 0;
  }

  .admin-console-page .admin-dispute-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-console-page .admin-actions.inline {
    width: 100%;
  }

  .admin-console-page .admin-actions.inline button {
    flex: 1;
  }
}

/* Trade list scale and completion alignment */
.professional-trades-page.trade-list-page {
  width: min(100%, 1700px);
  padding-top: 30px;
}

.professional-trades-page .professional-page-head {
  margin-bottom: 26px;
}

.professional-trades-page .professional-page-head h1 {
  font-size: clamp(34px, 3.4vw, 46px);
}

.professional-trades-page .professional-page-head > div > p:last-child {
  font-size: 14px;
}

.professional-trades-page .professional-primary-link {
  min-height: 48px;
  padding: 0 20px;
  font-size: 13px;
}

.professional-trades-page .trade-overview-grid {
  gap: 14px;
  margin-bottom: 18px;
}

.professional-trades-page .trade-overview-grid > div {
  min-height: 112px;
  padding: 19px 20px;
  border-radius: 13px;
}

.professional-trades-page .trade-overview-grid span {
  font-size: 11px;
}

.professional-trades-page .trade-overview-grid strong {
  margin: 6px 0 3px;
  font-size: 30px;
}

.professional-trades-page .trade-overview-grid small {
  font-size: 10px;
}

.professional-trades-page .professional-trade-list-card {
  border-radius: 14px;
}

.professional-trades-page .trade-list-filters {
  gap: 7px;
  padding: 12px 14px;
}

.professional-trades-page .trade-list-filters button {
  min-height: 42px;
  padding: 0 15px;
  font-size: 12px;
}

.professional-trades-page .trade-list-filters button b {
  min-width: 23px;
  padding: 3px 6px;
  font-size: 9px;
}

.professional-trades-page .professional-trade-row {
  min-height: 94px;
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
}

.professional-trades-page .trade-row-main {
  grid-template-columns: 46px minmax(220px, 1.55fr) minmax(145px, .7fr) minmax(145px, .75fr) 26px;
  gap: 16px;
  padding: 17px 20px;
}

.professional-trades-page .trade-direction {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.professional-trades-page .trade-direction svg {
  width: 19px;
  height: 19px;
}

.professional-trades-page .trade-counterparty small,
.professional-trades-page .trade-row-amount small,
.professional-trades-page .trade-row-state small {
  font-size: 10px;
}

.professional-trades-page .trade-counterparty strong,
.professional-trades-page .trade-row-amount strong {
  margin: 3px 0;
  font-size: 13px;
}

.professional-trades-page .trade-counterparty em {
  font-size: 9px;
}

.professional-trades-page .trade-row-state b {
  margin-bottom: 5px;
  padding: 5px 9px;
  font-size: 10px;
}

.professional-trades-page .trade-row-open svg {
  width: 15px;
  height: 15px;
}

.professional-trades-page .trade-row-actions {
  min-width: 118px;
  justify-content: flex-end;
  padding: 14px 18px 14px 0;
}

.professional-trades-page .trade-row-actions :is(.trade-primary-action, .trade-secondary-action) {
  min-height: 36px !important;
  flex: 0 0 auto;
  padding: 0 11px;
  font-size: 10px;
}

.trade-list-result {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 94px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.trade-list-result svg {
  width: 13px;
  height: 13px;
}

.trade-list-result.success {
  border-color: rgba(8, 201, 139, .28);
  background: rgba(8, 201, 139, .09);
  color: var(--green);
}

.trade-list-result.warning {
  border-color: rgba(246, 184, 63, .3);
  background: rgba(246, 184, 63, .09);
  color: var(--yellow);
}

@media (max-width: 1100px) {
  .professional-trades-page .professional-trade-row {
    grid-template-columns: 1fr;
  }

  .professional-trades-page .trade-row-actions {
    min-width: 0;
    padding: 0 18px 14px;
  }
}

@media (max-width: 860px) {
  .professional-trades-page .trade-row-main {
    grid-template-columns: 46px minmax(170px, 1fr) minmax(130px, .7fr) 24px;
  }
}

@media (max-width: 680px) {
  .professional-trades-page.trade-list-page {
    padding-top: 22px;
  }

  .professional-trades-page .trade-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .professional-trades-page .trade-overview-grid > div {
    min-height: 92px;
    padding: 14px;
  }

  .professional-trades-page .trade-overview-grid strong {
    font-size: 24px;
  }

  .professional-trades-page .trade-row-main {
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    gap: 12px;
    padding: 15px;
  }

  .professional-trades-page .trade-direction {
    width: 42px;
    height: 42px;
  }

  .professional-trades-page .trade-row-actions {
    justify-content: flex-start;
    padding: 0 15px 14px 69px;
  }
}

/* Admin console readability and workspace hierarchy. */
.admin-console-page {
  width: min(100%, 1640px);
  gap: 20px;
  padding-top: 28px;
}

.admin-console-page .admin-console-hero {
  min-height: 150px;
  padding: 28px 30px;
  border-radius: 18px;
}

.admin-console-page .admin-console-title {
  gap: 18px;
}

.admin-console-page .admin-console-mark {
  width: 64px;
  height: 64px;
  border-radius: 17px;
}

.admin-console-page .admin-console-title h1 {
  margin-bottom: 8px;
  font-size: clamp(32px, 3vw, 44px);
}

.admin-console-page .admin-console-title > div > p:last-child {
  max-width: 760px;
  font-size: 14px;
  line-height: 1.55;
}

.admin-console-page .admin-access-badge,
.admin-console-page .admin-section-badge {
  min-height: 38px;
  padding: 0 13px;
  font-size: 10px;
}

.admin-console-page .admin-refresh-button,
.admin-console-page .admin-process-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 12px;
}

.admin-console-page .admin-console-section {
  padding: 24px;
  border-radius: 16px;
}

.admin-console-page .admin-console-section-head {
  min-height: 54px;
  margin-bottom: 18px;
}

.admin-console-page .admin-console-section-head h2 {
  font-size: 22px;
}

.admin-console-page .admin-console-section-head small,
.admin-console-page .admin-console-section-head > span:not(.admin-section-badge) {
  font-size: 11px;
  line-height: 1.5;
}

.admin-console-page .professional-admin-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-console-page .admin-stat-card {
  min-height: 122px;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 13px;
}

.admin-console-page .admin-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

.admin-console-page .admin-stat-icon svg {
  width: 19px;
  height: 19px;
}

.admin-console-page .admin-stat-card > div > span {
  font-size: 11px;
  font-weight: 800;
}

.admin-console-page .admin-stat-card > div > strong {
  margin: 5px 0 4px;
  font-size: clamp(21px, 1.8vw, 27px);
}

.admin-console-page .admin-stat-card > div > small {
  font-size: 10px;
  line-height: 1.45;
}

.admin-console-page .professional-admin-review-grid {
  grid-template-columns: minmax(340px, .78fr) minmax(0, 1.22fr);
  gap: 16px;
}

.admin-console-page .admin-console-panel {
  border-radius: 14px;
}

.admin-console-page .admin-panel-head {
  min-height: 68px;
  padding: 14px 16px;
}

.admin-console-page .admin-panel-head > div > span {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.admin-console-page .admin-panel-head h3 {
  font-size: 15px;
}

.admin-console-page .admin-panel-head p {
  margin-top: 3px;
  font-size: 11px;
}

.admin-console-page #kycQueue,
.admin-console-page #kycDetail {
  padding: 14px;
}

.admin-console-page .admin-list {
  gap: 9px;
}

.admin-console-page .admin-queue-row {
  min-height: 68px;
  padding: 13px 14px;
  border-radius: 11px;
}

.admin-console-page .admin-queue-row strong {
  font-size: 13px;
}

.admin-console-page .admin-queue-row small {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.4;
}

.admin-console-page .settings-badge {
  font-size: 9px;
}

.admin-console-page .admin-submission-summary {
  gap: 10px;
  margin-bottom: 14px;
}

.admin-console-page .admin-submission-summary > div,
.admin-console-page .admin-setting-tile {
  padding: 13px;
  border-radius: 11px;
}

.admin-console-page .admin-submission-summary span,
.admin-console-page .admin-setting-tile span,
.admin-console-page .admin-setting-tile small {
  font-size: 10px;
  line-height: 1.45;
}

.admin-console-page .admin-submission-summary strong,
.admin-console-page .admin-setting-tile strong {
  margin-top: 5px;
  font-size: 13px;
}

.admin-console-page .kyc-image-card figcaption,
.admin-console-page .kyc-image-card.empty {
  font-size: 10px;
}

.admin-console-page .admin-actions .app-button,
.admin-console-page .admin-actions .danger-button {
  min-height: 40px;
  padding: 0 14px;
  font-size: 11px;
}

.admin-console-page .admin-ops-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-console-page .admin-operation-panel {
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 13px;
}

.admin-console-page .admin-operation-head {
  min-height: 56px;
  padding: 12px 14px;
}

.admin-console-page .admin-operation-head h4 {
  font-size: 14px;
}

.admin-console-page .admin-operation-head > span {
  width: 34px;
  height: 34px;
}

.admin-console-page .admin-mini-list {
  padding: 7px 14px;
}

.admin-console-page .admin-mini-row {
  min-height: 48px;
  padding: 10px 0;
}

.admin-console-page .admin-mini-row strong {
  font-size: 12px;
}

.admin-console-page .admin-mini-row small {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.4;
}

.admin-console-page .outline-button.tiny {
  min-height: 32px;
  padding: 0 10px;
  font-size: 10px;
}

.admin-console-page .admin-console-bottom-grid {
  grid-template-columns: minmax(430px, .9fr) minmax(0, 1.1fr);
  gap: 20px;
}

.admin-console-page .limit-editor {
  gap: 10px;
}

.admin-console-page .limit-row {
  grid-template-columns: 125px 1fr 1fr;
  gap: 10px;
  padding: 13px;
  border-radius: 11px;
}

.admin-console-page .limit-row > strong {
  font-size: 13px;
}

.admin-console-page .limit-row .form-field {
  font-size: 11px;
}

.admin-console-page .limit-row input {
  min-height: 44px;
  font-size: 12px;
}

.admin-console-page .limit-editor > .app-button {
  min-height: 42px;
  font-size: 11px;
}

.admin-console-page .admin-settings-grid {
  gap: 10px;
}

.admin-console-page .admin-setting-tile {
  min-height: 96px;
}

.admin-console-page .admin-loading-state strong,
.admin-console-page .admin-empty-state strong {
  font-size: 12px;
}

.admin-console-page .admin-empty-state > span {
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 1360px) {
  .admin-console-page .professional-admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-console-page .professional-admin-review-grid,
  .admin-console-page .admin-console-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .admin-console-page .professional-admin-stats,
  .admin-console-page .admin-ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-console-page .admin-operation-panel.audit-logs {
    grid-column: auto;
  }

  .admin-console-page .limit-row {
    grid-template-columns: 1fr;
  }
}

/* Keep dashboard profile initials optically centered after broad span rules. */
.dashboard-profile-status .dashboard-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  text-align: center;
}

/* Profile image upload and avatar rendering. */
.dashboard-profile-status .dashboard-avatar,
.professional-settings-page .settings-avatar,
.professional-settings-page .settings-head-avatar {
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  text-align: center;
}

.dashboard-profile-status .dashboard-avatar.has-image,
.professional-settings-page .settings-avatar.has-image,
.professional-settings-page .settings-head-avatar.has-image {
  background: #07111f;
}

.dashboard-profile-status .dashboard-avatar img,
.professional-settings-page .settings-avatar img,
.professional-settings-page .settings-head-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.professional-settings-page .settings-head-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 1px solid rgba(0, 184, 255, .36);
  border-radius: 16px;
  background: rgba(0, 153, 255, .14);
  color: var(--blue-2);
  font-size: 22px;
  font-weight: 950;
}

.professional-settings-page .settings-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.professional-settings-page .settings-avatar-upload,
.professional-settings-page .settings-avatar-remove {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(0, 184, 255, .28);
  border-radius: 8px;
  background: rgba(0, 153, 255, .1);
  color: #d9efff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.professional-settings-page .settings-avatar-upload svg {
  width: 15px;
  height: 15px;
}

.professional-settings-page .settings-avatar-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.professional-settings-page .settings-avatar-remove {
  border-color: rgba(255, 75, 103, .26);
  background: rgba(255, 75, 103, .08);
  color: #ffc1ca;
}

.professional-settings-page .settings-avatar-help {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 760px) {
  .professional-settings-page .settings-head-avatar {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 50%;
    font-size: 17px;
  }

  .professional-settings-page .settings-avatar-actions {
    gap: 6px;
    margin-top: 9px;
  }

  .professional-settings-page .settings-avatar-upload,
  .professional-settings-page .settings-avatar-remove {
    min-height: 32px;
    padding: 0 10px;
    font-size: 10px;
  }

  .professional-settings-page .settings-avatar-help {
    display: none;
  }
}

/* Profile page parity with Settings profile. */
.professional-profile-page {
  width: min(100%, 1180px);
  display: grid;
  gap: 16px;
  padding-top: 24px;
}

.profile-view-head .app-button {
  min-height: 42px;
}

.profile-view-identity {
  min-height: 150px;
}

.profile-view-identity .settings-id-main p {
  max-width: 640px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.profile-view-card {
  padding: 20px;
}

/* Admin command center refinement. */
.admin-users-section {
  background: linear-gradient(135deg, rgba(0, 153, 255, .045), var(--surface));
}

.admin-user-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.admin-user-search {
  min-height: 46px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(166, 190, 226, .16);
  border-radius: 10px;
  background: rgba(4, 10, 18, .72);
  color: var(--blue-2);
}

.admin-user-search svg {
  width: 17px;
  height: 17px;
}

.admin-user-search input {
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.admin-user-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-user-filters button {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(166, 190, 226, .14);
  border-radius: 10px;
  background: rgba(4, 10, 18, .58);
  color: var(--muted);
  font-weight: 900;
}

.admin-user-filters button.active {
  border-color: rgba(0, 184, 255, .45);
  background: rgba(0, 153, 255, .1);
  color: var(--blue-2);
}

.admin-user-filters span,
.admin-user-filters strong {
  font-size: 11px;
}

.admin-user-table {
  overflow: hidden;
  border: 1px solid rgba(166, 190, 226, .13);
  border-radius: 12px;
  background: rgba(3, 8, 15, .42);
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) 120px 120px 90px 120px 110px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 14px;
  border-top: 1px solid rgba(166, 190, 226, .1);
}

.admin-user-row:first-child {
  border-top: 0;
}

.admin-user-head {
  min-height: 42px;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-user-main {
  min-width: 0;
}

.admin-user-main strong,
.admin-user-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-main strong {
  color: var(--text);
  font-size: 13px;
}

.admin-user-main small {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10px;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(166, 190, 226, .08);
  color: #c5d3e9;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.admin-pill.active,
.admin-pill.approved {
  color: #92ffe1;
  background: rgba(8, 201, 139, .12);
}

.admin-pill.suspended,
.admin-pill.rejected {
  color: #ffc1ca;
  background: rgba(255, 75, 103, .12);
}

.admin-pill.pending {
  color: #ffe2a0;
  background: rgba(246, 184, 63, .12);
}

.admin-user-actions {
  justify-self: end;
}

.admin-console-page .admin-mini-row strong {
  font-size: 12px;
}

.admin-console-page .admin-mini-row small {
  font-size: 10px;
  line-height: 1.45;
}

.admin-console-page .admin-operation-head h4,
.admin-console-page .admin-panel-head h3,
.admin-console-page .admin-console-section-head h2 {
  letter-spacing: 0;
}

/* Market filters use the compact sheet interaction on all viewports. */
.professional-market .market-filter-panel {
  display: none;
}

.professional-market .market-mobile-filters {
  display: grid;
  grid-template-columns: .7fr 1fr 1.25fr;
  gap: 10px;
  margin: 0 0 18px;
}

.market-mobile-filter,
.market-mobile-filters button {
  min-width: 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 9, 17, .72);
  color: var(--muted);
}

.market-mobile-filter {
  justify-content: center;
  color: var(--blue-2);
}

.market-mobile-filter strong,
.market-mobile-filters button strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-mobile-filters button > span {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 15px;
  transform: rotate(90deg);
}

.market-mobile-filters button.active,
.market-quick-amounts button.active,
.market-payment-options button.active {
  border-color: rgba(0, 184, 255, .48);
  color: var(--blue-2);
  background: rgba(0, 153, 255, .1);
}

.market-filter-sheet-backdrop {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(3px);
}

.market-filter-sheet {
  width: min(100%, 760px);
  max-height: 82dvh;
  display: grid;
  gap: 18px;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background: #05070b;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, .55);
}

.market-sheet-confirm {
  border: 1px solid var(--blue) !important;
  background: linear-gradient(135deg, var(--blue), #17c7ff) !important;
  color: #fff !important;
}

/* Wallet readability pass. */
.professional-wallet-page .professional-page-head p,
.wallet-total-block p,
.wallet-total-block small,
.professional-balance-grid span,
.professional-balance-grid strong small,
.professional-wallet-tabs button small,
.professional-wallet-page .wallet-network-card small,
.professional-wallet-page .deposit-address-main span,
.professional-wallet-page .deposit-address-main small,
.wallet-activity-empty p,
.wallet-feature-preview p {
  font-size: 12px;
  line-height: 1.5;
}

.professional-balance-grid strong,
.professional-wallet-tabs button strong,
.professional-wallet-page .wallet-network-card strong,
.professional-wallet-page .deposit-address-main strong,
.wallet-activity-empty strong,
.wallet-feature-preview h3 {
  font-size: 15px;
  line-height: 1.35;
}

.professional-wallet-page .sheet-head h2,
.wallet-activity-head h3 {
  font-size: 20px;
}

.professional-wallet-page .network-status {
  font-size: 10px;
}

.wallet-activity-panel > a {
  min-height: 44px;
  font-size: 12px;
}

@media (max-width: 980px) {
  .admin-user-toolbar,
  .admin-user-filters,
  .admin-user-row {
    grid-template-columns: 1fr;
  }

  .admin-user-head {
    display: none;
  }

  .admin-user-row {
    align-items: start;
    gap: 8px;
    padding: 14px;
  }

  .admin-user-actions {
    justify-self: stretch;
  }

  .admin-user-actions .outline-button {
    width: 100%;
  }
}

/* Profile and settings identity cleanup. */
.professional-profile-page .profile-summary-card,
.professional-settings-page .settings-profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 176px;
  padding: 26px 30px;
  border: 1px solid rgba(0, 184, 255, .22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 153, 255, .12), rgba(5, 13, 25, .92) 58%, rgba(8, 201, 139, .06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.professional-profile-page .profile-summary-card .settings-avatar,
.professional-settings-page .settings-profile-card .settings-avatar {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 6px solid rgba(166, 190, 226, .18);
  background: linear-gradient(135deg, var(--blue), #17c7ff);
  color: #fff;
  font-size: 48px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .26);
}

.profile-summary-main h1,
.professional-settings-page .settings-profile-main h3 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.profile-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-summary-meta span,
.professional-settings-page .settings-profile-main > small,
.professional-settings-page .settings-profile-main .settings-muted {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--muted);
  font-size: 13px;
}

.profile-summary-meta span {
  padding: 0 10px;
  border: 1px solid rgba(166, 190, 226, .13);
  border-radius: 999px;
  background: rgba(4, 10, 18, .52);
}

.professional-profile-page .profile-summary-card .app-button {
  min-width: 148px;
}

.professional-settings-page .settings-profile-main .app-label {
  margin: 0;
}

.professional-settings-page .settings-profile-main .settings-muted {
  gap: 7px;
  margin-top: 3px;
}

.professional-settings-page .settings-profile-facts {
  padding: 20px;
}

/* Professional payment method list. */
.professional-settings-page .settings-payment-card {
  min-height: auto;
}

.professional-settings-page .settings-payment-card .payment-method-list {
  display: block;
  margin-top: 18px;
  border-top: 1px solid rgba(166, 190, 226, .14);
}

.professional-settings-page .settings-payment-card .payment-method-entry {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid rgba(166, 190, 226, .14);
  border-radius: 0;
  background: transparent;
}

.professional-settings-page .settings-payment-card .payment-provider-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.professional-settings-page .settings-payment-card .settings-row-main strong {
  font-size: 15px;
}

.professional-settings-page .settings-payment-card .settings-row-main small {
  font-size: 12px;
}

.professional-settings-page .settings-payment-card .payment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 760px) {
  .professional-profile-page .profile-summary-card,
  .professional-settings-page .settings-profile-card {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
    min-height: 0;
    padding: 20px;
  }

  .professional-profile-page .profile-summary-card .settings-avatar,
  .professional-settings-page .settings-profile-card .settings-avatar {
    width: 86px;
    height: 86px;
    border-width: 5px;
    font-size: 34px;
  }

  .professional-profile-page .profile-summary-card .app-button {
    width: 100%;
  }

  .professional-settings-page .settings-payment-card .payment-method-entry {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 16px 0;
  }

  .professional-settings-page .settings-payment-card .payment-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .professional-settings-page .settings-payment-card .payment-actions > * {
    flex: 1;
    justify-content: center;
  }
}

/* Final avatar containment pass for Profile and Settings. */
.professional-profile-page .profile-summary-card,
.professional-settings-page .settings-profile-card {
  overflow: hidden;
}

.professional-profile-page .profile-summary-card .settings-avatar-wrap,
.professional-settings-page .settings-profile-card .settings-avatar-wrap {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  flex: 0 0 110px;
}

.professional-profile-page .profile-summary-card .settings-avatar,
.professional-settings-page .settings-profile-card .settings-avatar {
  width: 110px !important;
  height: 110px !important;
  max-width: 110px;
  max-height: 110px;
  aspect-ratio: 1 / 1;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 110px;
  border-radius: 50% !important;
  line-height: 1;
}

.professional-profile-page .profile-summary-card .settings-avatar img,
.professional-settings-page .settings-profile-card .settings-avatar img,
.professional-profile-page .settings-head-avatar img,
.professional-settings-page .settings-head-avatar img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

.professional-profile-page .profile-summary-main,
.professional-settings-page .settings-profile-main {
  min-width: 0;
}

.professional-profile-page .profile-summary-main h1,
.professional-settings-page .settings-profile-main h3 {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(28px, 3.1vw, 38px);
}

.professional-settings-page .settings-profile-card {
  min-height: 150px;
}

.professional-settings-page .settings-avatar-help {
  max-width: 520px;
}

/* BRX P2P market: Binance-inspired structure with BRX theme. */
.brx-p2p-market {
  width: min(100%, 1840px);
  padding-top: 18px;
  color: var(--text);
}

.p2p-product-tabs {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 24px;
  border-bottom: 1px solid rgba(166, 190, 226, .12);
  color: var(--muted);
  font-size: 15px;
  font-weight: 850;
}

.p2p-product-tabs strong,
.p2p-product-tabs span,
.p2p-product-tabs a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.p2p-product-tabs strong {
  color: #fff;
}

.p2p-product-tabs strong::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--blue-2);
}

.p2p-product-tabs svg {
  width: 20px;
  height: 20px;
  color: var(--blue-2);
}

.p2p-product-tabs a {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.p2p-product-tabs a + a {
  margin-left: 0;
}

.brx-p2p-market .p2p-trade-toolbar {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  margin: 0 0 20px;
}

.brx-p2p-market .market-intent-tabs {
  width: 278px;
  min-height: 60px;
  padding: 5px;
  border-radius: 10px;
  background: #111821;
}

.brx-p2p-market .market-intent-tabs button {
  min-height: 48px;
  border-radius: 7px;
}

.brx-p2p-market .market-intent-tabs button span {
  font-size: 14px;
  font-weight: 950;
}

.brx-p2p-market .market-intent-tabs button small {
  display: none;
}

.brx-p2p-market .market-intent-tabs.buy button.active,
.brx-p2p-market .market-intent-tabs.sell button.active {
  border-color: transparent;
  background: #26303c;
  color: #fff;
}

.brx-p2p-market .p2p-rate-pill {
  justify-self: end;
  min-width: 150px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 184, 255, .22);
  border-radius: 10px;
  background: rgba(0, 153, 255, .07);
}

.brx-p2p-market .p2p-rate-pill strong {
  color: var(--blue-2);
  font-size: 20px;
}

.brx-p2p-market .market-post-ad {
  min-height: 40px;
  border-color: rgba(0, 184, 255, .24);
  background: rgba(0, 153, 255, .09);
  color: #dff5ff;
}

.market-asset-rail {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 42px;
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.market-asset-rail button {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.market-asset-rail button.active {
  color: #fff;
}

.market-asset-rail small {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(8, 201, 139, .12);
  color: var(--green);
  font-size: 11px;
}

.market-asset-rail button:disabled {
  opacity: .72;
  cursor: default;
}

.brx-p2p-market .p2p-filter-panel {
  grid-template-columns: minmax(260px, 398px) minmax(250px, 324px) 60px minmax(210px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brx-p2p-market .market-filter-field > span {
  display: none;
}

.brx-p2p-market .market-filter-field input,
.brx-p2p-market .market-filter-field select,
.brx-p2p-market .market-field-combo {
  height: 60px;
  border: 1px solid rgba(166, 190, 226, .2);
  border-radius: 10px;
  background: #121922;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.brx-p2p-market .market-field-combo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.brx-p2p-market .market-field-combo input {
  height: 58px;
  border: 0;
  background: transparent;
}

.brx-p2p-market .market-field-combo b {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
  padding-left: 14px;
  border-left: 1px solid rgba(166, 190, 226, .22);
  color: #fff;
  font-size: 14px;
}

.brx-p2p-market .p2p-filter-button {
  width: 60px;
  height: 60px;
  min-height: 60px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(166, 190, 226, .2);
  border-radius: 10px;
  background: #121922;
  color: #fff;
}

.brx-p2p-market .p2p-filter-button svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.brx-p2p-market .market-filter-field.sort {
  justify-self: end;
  min-width: 214px;
}

.brx-p2p-market .market-filter-clear {
  min-height: 60px;
  border-radius: 10px;
}

.brx-p2p-market .market-mobile-filters {
  display: none;
}

.brx-p2p-market .market-results-panel {
  margin-top: 34px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brx-p2p-market .market-results-head {
  min-height: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(166, 190, 226, .16);
}

.brx-p2p-market .market-results-head h3 {
  font-size: 15px;
  font-weight: 850;
}

.brx-p2p-market .market-results-head p {
  color: var(--muted);
  font-size: 11px;
}

.brx-p2p-market .market-refresh-button {
  border-color: transparent;
  background: transparent;
  color: var(--blue-2);
}

.brx-p2p-market .market-offer-table {
  display: grid;
}

.brx-p2p-market .market-offer-row {
  grid-template-columns: minmax(270px, 1.45fr) minmax(160px, .72fr) minmax(300px, 1.18fr) minmax(250px, 1fr) minmax(170px, auto);
  gap: 28px;
  min-height: 156px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(166, 190, 226, .14);
  background: transparent;
}

.brx-p2p-market .market-offer-header {
  min-height: 44px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-transform: none;
}

.brx-p2p-market .market-offer-row:not(.market-offer-header):hover {
  background: rgba(0, 153, 255, .025);
}

.brx-p2p-market .market-trader-avatar {
  width: 38px;
  height: 38px;
  background: #eef2f7;
  border-color: transparent;
  color: #111821;
  font-size: 12px;
}

.brx-p2p-market .p2p-advertiser-cell strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 16px;
}

.brx-p2p-market .p2p-advertiser-cell strong em {
  padding: 2px 4px;
  border-radius: 4px;
  background: #ff3f73;
  color: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
}

.brx-p2p-market .p2p-advertiser-cell strong i {
  width: 13px;
  height: 13px;
  display: inline-block;
  border-radius: 4px;
  background: linear-gradient(135deg, #7b5cff, #b18cff);
  transform: rotate(45deg);
}

.brx-p2p-market .p2p-advertiser-cell small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.brx-p2p-market .p2p-advertiser-cell small b {
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 10px;
  background: rgba(166, 190, 226, .22);
  vertical-align: -2px;
}

.brx-p2p-market .p2p-trust-row {
  display: flex !important;
  gap: 18px;
}

.brx-p2p-market .p2p-trust-row span::before {
  content: "";
  width: 12px;
  height: 12px;
  display: inline-block;
  margin-right: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  vertical-align: -1px;
}

.brx-p2p-market .market-price-cell strong {
  color: #fff;
  font-size: 20px;
}

.brx-p2p-market .market-price-cell strong::before {
  content: "ETB ";
  color: var(--muted);
  font-size: 12px;
}

.brx-p2p-market .market-price-cell small,
.brx-p2p-market .market-liquidity-cell small {
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
}

.brx-p2p-market .market-liquidity-cell strong {
  color: #fff;
  font-size: 15px;
  font-weight: 850;
}

.brx-p2p-market .p2p-payment-list {
  display: grid;
  gap: 12px;
}

.brx-p2p-market .p2p-payment-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.brx-p2p-market .p2p-payment-list i {
  width: 4px;
  height: 14px;
  flex: 0 0 4px;
  border-radius: 999px;
  background: var(--dot, var(--blue-2));
}

.brx-p2p-market .market-action-cell {
  align-self: center;
  gap: 12px;
}

.brx-p2p-market .market-trade-button {
  min-width: 176px;
  min-height: 54px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 950;
}

.brx-p2p-market .market-trade-button.buy-button {
  background: #00c087;
  color: #03140f;
}

.brx-p2p-market .market-trade-button.sell-button {
  background: #f6465d;
  color: #fff;
}

.brx-p2p-market .market-action-cell small {
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline dotted;
}

/* P2P cleanup: USDT-only market, desktop filters, admin labels. */
.p2p-nav-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  object-fit: contain;
}

.p2p-market-topline {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(166, 190, 226, .14);
}

.p2p-market-title,
.p2p-market-topline nav,
.p2p-market-topline nav a {
  display: flex;
  align-items: center;
}

.p2p-market-title {
  gap: 10px;
}

.p2p-market-title strong {
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.p2p-market-title small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.p2p-market-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(0, 184, 255, .25);
  border-radius: 8px;
  background: rgba(0, 153, 255, .1);
  color: var(--blue-2);
}

.p2p-market-icon .p2p-nav-icon {
  width: 19px;
  height: 19px;
}

.p2p-market-topline nav {
  gap: 22px;
}

.p2p-market-topline nav a:not(.market-post-ad) {
  min-height: 38px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.p2p-market-topline nav a:not(.market-post-ad):hover {
  color: var(--blue-2);
}

.brx-p2p-market .p2p-product-tabs,
.brx-p2p-market .market-asset-rail {
  display: none !important;
}

@media (min-width: 761px) {
  .brx-p2p-market .p2p-trade-toolbar {
    grid-template-columns: 276px minmax(120px, 1fr);
    gap: 18px;
  }

  .brx-p2p-market .market-mobile-filters {
    display: none !important;
  }

  .brx-p2p-market .p2p-filter-panel,
  .professional-market.brx-p2p-market .market-filter-panel.p2p-filter-panel {
    display: grid !important;
    grid-template-columns: minmax(210px, 1fr) minmax(240px, 1.15fr) 56px minmax(180px, .72fr) auto;
    gap: 14px;
  }

  .brx-p2p-market .market-filter-field input,
  .brx-p2p-market .market-filter-field select,
  .brx-p2p-market .market-field-combo {
    height: 54px;
  }

  .brx-p2p-market .market-field-combo input {
    height: 52px;
  }

  .brx-p2p-market .p2p-filter-button {
    width: 56px;
    height: 54px;
    min-height: 54px;
  }

  .brx-p2p-market .market-filter-clear {
    min-height: 54px;
  }

  .brx-p2p-market .market-offer-row {
    grid-template-columns: minmax(235px, 1.2fr) minmax(132px, .62fr) minmax(215px, .95fr) minmax(160px, .7fr) minmax(132px, 150px);
    gap: 18px;
    min-height: 138px;
    padding: 22px 0;
  }

  .brx-p2p-market .market-trade-button {
    min-width: 132px;
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    font-size: 14px;
  }

  .brx-p2p-market .market-action-cell {
    min-width: 0;
    overflow: hidden;
  }
}

.brx-p2p-market .p2p-advertiser-cell strong em {
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-row {
  grid-template-columns: minmax(220px, 1.25fr) 90px minmax(170px, .8fr) 112px 105px 70px 100px 150px;
}

.admin-user-balance {
  min-width: 0;
}

.admin-user-balance > strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.admin-user-balance > small {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 7px;
  margin-top: 4px;
}

.admin-user-balance > small b {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-user-balance > small b:first-child { color: var(--green); }

@media (max-width: 980px) {
  .admin-user-balance {
    padding: 10px 12px;
    border: 1px solid rgba(166, 190, 226, .12);
    border-radius: 9px;
    background: rgba(4, 10, 18, .45);
  }

  .admin-user-balance::before {
    content: "USDT balance";
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .admin-user-balance > strong { font-size: 15px; }
  .admin-user-balance > small b { font-size: 9px; }
}

.admin-pill.trader-label.neutral {
  color: var(--muted);
  background: rgba(166, 190, 226, .08);
}

.admin-pill.trader-label.active {
  color: var(--blue-2);
  background: rgba(0, 153, 255, .12);
}

/* P2P final table cleanup. */
.app-nav .p2p-nav-icon,
.mobile-bottom-nav .p2p-nav-icon,
.p2p-market-icon .p2p-nav-icon {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  flex: 0 0 22px;
  filter: none;
}

.brx-p2p-market .market-results-panel {
  padding-top: 0;
}

.brx-p2p-market .market-results-head {
  display: none !important;
}

.brx-p2p-market .market-offer-table {
  margin-top: 8px;
  border-top: 1px solid rgba(166, 190, 226, .16);
}

.brx-p2p-market .p2p-trust-row {
  gap: 16px;
}

.brx-p2p-market .p2p-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brx-p2p-market .p2p-trust-row svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
}

.brx-p2p-market .market-action-cell {
  align-items: stretch;
}

.brx-p2p-market .market-action-cell small {
  display: none !important;
}

@media (min-width: 761px) {
  .brx-p2p-market .market-offer-row {
    grid-template-columns: minmax(210px, 1.05fr) minmax(110px, .5fr) minmax(185px, .82fr) minmax(145px, .62fr) minmax(118px, 128px) !important;
    gap: 12px !important;
    min-height: 118px;
    padding: 18px 0;
  }

  .brx-p2p-market .market-offer-header {
    min-height: auto;
    padding: 14px 0 12px;
  }

  .brx-p2p-market .market-trader-cell {
    gap: 12px;
  }

  .brx-p2p-market .market-trader-avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brx-p2p-market .market-price-cell strong {
    font-size: 26px;
  }

  .brx-p2p-market .market-liquidity-cell strong,
  .brx-p2p-market .market-payment-cell span {
    font-size: 15px;
  }

  .brx-p2p-market .market-trade-button {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 46px;
    padding: 0 10px !important;
    font-size: 14px;
    white-space: nowrap;
  }
}

/* Render black noun P2P PNG in BRX cyan on dark UI. */
.p2p-nav-icon {
  filter: brightness(0) saturate(100%) invert(53%) sepia(99%) saturate(2545%) hue-rotate(162deg) brightness(103%) contrast(103%) !important;
}

/* P2P row simplification and BRX chat workspace. */
@media (min-width: 761px) {
  .brx-p2p-market .p2p-filter-panel,
  .professional-market.brx-p2p-market .market-filter-panel.p2p-filter-panel {
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.15fr) minmax(190px, .72fr) auto !important;
  }
}

.brx-p2p-market .p2p-filter-button {
  display: none !important;
}

.brx-p2p-market .market-trader-cell strong {
  font-weight: 760 !important;
}

.brx-p2p-market .market-trader-cell small {
  font-weight: 520 !important;
}

.brx-p2p-market .market-price-cell strong {
  font-size: 30px !important;
  font-weight: 760 !important;
  letter-spacing: 0 !important;
}

.brx-p2p-market .market-price-cell strong::before {
  font-size: 12px !important;
  font-weight: 650 !important;
}

.brx-p2p-market .market-liquidity-cell strong {
  font-weight: 760 !important;
}

.brx-p2p-market .market-offer-header {
  font-weight: 650 !important;
  text-transform: none !important;
}

.brx-p2p-market .p2p-trust-row {
  margin-top: 8px !important;
  color: var(--muted) !important;
}

.brx-p2p-market .p2p-trust-row span {
  gap: 0 !important;
}

.brx-p2p-market .p2p-trust-row span::before,
.brx-p2p-market .p2p-trust-row svg {
  display: none !important;
}

.p2p-chat-page {
  width: min(100%, 1840px);
  padding-top: 14px;
}

.p2p-chat-shell {
  min-height: calc(100vh - 180px);
  display: grid;
  grid-template-columns: 78px minmax(290px, 360px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111821;
}

.p2p-chat-sidebar {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  background: #26313e;
}

.p2p-chat-account,
.p2p-chat-rail span,
.p2p-chat-contact > span,
.p2p-chat-room-head > div > span {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.p2p-chat-account span,
.p2p-chat-contact > span,
.p2p-chat-room-head > div > span {
  width: 48px;
  height: 48px;
  background: #eef3f8;
  color: #111821;
  font-weight: 780;
}

.p2p-chat-account {
  gap: 8px;
  color: var(--text);
  text-align: center;
}

.p2p-chat-account strong {
  max-width: 58px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
}

.p2p-chat-rail {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
}

.p2p-chat-rail span {
  position: relative;
  width: 42px;
  height: 42px;
  color: var(--muted);
}

.p2p-chat-rail span.active {
  color: var(--blue-2);
  background: rgba(0, 153, 255, .12);
}

.p2p-chat-rail svg,
.p2p-chat-search svg,
.p2p-chat-welcome svg {
  width: 20px;
  height: 20px;
}

.p2p-chat-list-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  border-right: 1px solid var(--line);
  background: #121821;
}

.p2p-chat-list-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 18px 14px;
}

.p2p-chat-list-panel h2,
.p2p-chat-list-panel p {
  margin: 0;
}

.p2p-chat-list-panel h2 {
  font-size: 20px;
  font-weight: 780;
}

.p2p-chat-list-panel p,
.p2p-chat-contact small,
.p2p-chat-contact em,
.p2p-chat-room-head small,
.p2p-chat-welcome span {
  color: var(--muted);
}

.p2p-chat-list-panel header a,
.p2p-chat-room-head a {
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 760;
}

.p2p-chat-search {
  height: 42px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0 18px 18px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151c27;
  color: var(--muted);
}

.p2p-chat-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.p2p-chat-tabs {
  display: flex;
  gap: 18px;
  padding: 0 18px 8px;
  border-bottom: 1px solid var(--line);
}

.p2p-chat-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.p2p-chat-tabs button.active {
  color: var(--text);
}

.p2p-chat-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue-2);
}

.p2p-chat-contacts {
  min-height: 0;
  overflow-y: auto;
}

.p2p-chat-contact {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  color: var(--text);
}

.p2p-chat-contact:hover,
.p2p-chat-contact.active {
  background: rgba(0, 153, 255, .08);
}

.p2p-chat-contact strong,
.p2p-chat-contact small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p2p-chat-contact strong {
  font-weight: 720;
}

.p2p-chat-contact em {
  font-style: normal;
  font-size: 11px;
}

.p2p-chat-room {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #15191f;
}

.p2p-chat-welcome,
.p2p-chat-room-loading,
.p2p-chat-loading {
  min-height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.p2p-chat-welcome strong {
  color: var(--text);
  font-weight: 720;
}

.p2p-chat-welcome.compact {
  min-height: 360px;
}

.p2p-chat-room-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.p2p-chat-room-head > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.p2p-chat-room-head strong,
.p2p-chat-room-head small {
  display: block;
}

.p2p-chat-room-messages {
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
}

.p2p-chat-message {
  max-width: min(70%, 620px);
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

.p2p-chat-message.mine {
  margin-left: auto;
}

.p2p-chat-message p {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px 10px 10px 3px;
  background: #1c232d;
  line-height: 1.45;
}

.p2p-chat-message.mine p {
  border-color: rgba(0, 153, 255, .32);
  border-radius: 10px 10px 3px 10px;
  background: rgba(0, 153, 255, .16);
}

.p2p-chat-message small {
  color: var(--muted-2);
  font-size: 10px;
}

.p2p-chat-message.mine small {
  text-align: right;
}

.p2p-chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.p2p-chat-compose textarea {
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #101721;
  color: var(--text);
  font: inherit;
}

.p2p-chat-compose textarea:focus {
  border-color: rgba(0, 184, 255, .42);
}

.p2p-chat-compose .app-button {
  min-height: 44px;
  padding: 0 20px;
  background: var(--blue);
}

#p2pChatError {
  grid-column: 1 / -1;
  color: #ff7890;
  font-size: 11px;
}

#p2pChatError:empty {
  display: none;
}

.p2p-chat-closed {
  margin: 0;
  padding: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

/* Final dashboard and P2P chat cleanup. */
body[data-route="p2p-chat"] {
  overflow: hidden;
}

body[data-route="p2p-chat"] #app {
  height: calc(100dvh - 112px);
  overflow: hidden;
}

body[data-route="p2p-chat"] .p2p-chat-page {
  height: 100%;
  padding-top: 0;
  overflow: hidden;
}

body[data-route="p2p-chat"] .p2p-chat-shell {
  height: 100%;
  min-height: 0;
  grid-template-columns: 98px minmax(300px, 360px) minmax(0, 1fr);
}

.p2p-chat-sidebar {
  grid-template-rows: 1fr;
  align-items: start;
  justify-items: center;
  background: #1e2936;
}

.p2p-chat-account {
  width: 100%;
  gap: 7px;
  padding-top: 6px;
}

.p2p-chat-account span {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(148, 163, 184, .25);
  background: #eef3f8;
  color: #07111d;
  font-size: 18px;
}

.p2p-chat-account span.has-image {
  overflow: hidden;
  background: #101721;
}

.p2p-chat-account span.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p2p-chat-account strong {
  max-width: 82px;
  color: var(--text);
  font-size: 11px;
  font-weight: 720;
}

.p2p-chat-account small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.p2p-chat-list-panel,
.p2p-chat-room {
  min-height: 0;
}

.p2p-chat-tabs {
  gap: 0;
}

.p2p-chat-contacts,
.p2p-chat-room-messages {
  scrollbar-width: thin;
}

.ads-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.dashboard-welcome {
  align-items: center;
  margin-bottom: 26px;
}

.dashboard-welcome h1 {
  font-size: clamp(26px, 2.35vw, 36px);
  font-weight: 760;
  line-height: 1.12;
}

.dashboard-market-card .dashboard-rate-value strong {
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 680;
  opacity: .82;
}

.dashboard-market-card .dashboard-rate-value span,
.dashboard-market-card .dashboard-rate-range strong {
  opacity: .78;
}

.dashboard-balance-breakdown {
  grid-template-columns: minmax(0, 1fr);
  max-width: 348px;
}

.app-nav a:not(.active):not(:hover) .p2p-nav-icon,
.mobile-bottom-nav a:not(.active):not(:hover) .p2p-nav-icon {
  filter: brightness(0) saturate(100%) invert(70%) sepia(9%) saturate(520%) hue-rotate(182deg) brightness(88%) contrast(86%) !important;
  opacity: .88;
}

.app-nav a.active .p2p-nav-icon,
.app-nav a:hover .p2p-nav-icon,
.mobile-bottom-nav a.active .p2p-nav-icon,
.mobile-bottom-nav a:hover .p2p-nav-icon,
.p2p-market-icon .p2p-nav-icon {
  filter: brightness(0) saturate(100%) invert(53%) sepia(99%) saturate(2545%) hue-rotate(162deg) brightness(103%) contrast(103%) !important;
  opacity: 1;
}

/* Keep the chat profile block rectangular while the avatar stays circular. */
.p2p-chat-account {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0;
}

/* Final requested compact pass: dashboard, P2P market, wallet, chat. */
.dashboard-welcome h1 {
  font-size: clamp(20px, 1.75vw, 28px) !important;
  font-weight: 720 !important;
  line-height: 1.08 !important;
}

.dashboard-welcome .dashboard-eyebrow {
  font-size: 11px !important;
}

.site-header .nav a:not(.active):not(:hover) .p2p-nav-icon,
.nav a:not(.active):not(:hover) .p2p-nav-icon,
.app-nav a:not(.active):not(:hover) .p2p-nav-icon,
.mobile-bottom-nav a:not(.active):not(:hover) .p2p-nav-icon {
  filter: brightness(0) saturate(100%) invert(70%) sepia(9%) saturate(520%) hue-rotate(182deg) brightness(88%) contrast(86%) !important;
  opacity: .88 !important;
}

.site-header .nav a.active .p2p-nav-icon,
.site-header .nav a:hover .p2p-nav-icon,
.nav a.active .p2p-nav-icon,
.nav a:hover .p2p-nav-icon,
.app-nav a.active .p2p-nav-icon,
.app-nav a:hover .p2p-nav-icon,
.mobile-bottom-nav a.active .p2p-nav-icon,
.mobile-bottom-nav a:hover .p2p-nav-icon,
.p2p-market-icon .p2p-nav-icon {
  filter: brightness(0) saturate(100%) invert(53%) sepia(99%) saturate(2545%) hue-rotate(162deg) brightness(103%) contrast(103%) !important;
  opacity: 1 !important;
}

.brx-p2p-market {
  padding-top: 34px !important;
}

.brx-p2p-market .p2p-market-topline {
  min-height: 48px !important;
  margin-bottom: 26px !important;
  padding-bottom: 16px !important;
}

.brx-p2p-market .p2p-market-title strong {
  font-size: 20px !important;
}

.brx-p2p-market .p2p-market-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
}

.brx-p2p-market .p2p-trade-toolbar {
  margin-bottom: 22px !important;
}

.brx-p2p-market .market-intent-tabs {
  width: min(100%, 300px) !important;
  min-height: 58px !important;
  padding: 5px !important;
  border-radius: 10px !important;
}

.brx-p2p-market .market-intent-tabs button {
  min-height: 46px !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
}

.brx-p2p-market .market-intent-tabs button small {
  display: none !important;
}

.brx-p2p-market .p2p-filter-panel,
.professional-market.brx-p2p-market .market-filter-panel.p2p-filter-panel {
  grid-template-columns: minmax(220px, 360px) minmax(260px, 430px) minmax(190px, 240px) auto !important;
  gap: 14px !important;
  margin-bottom: 34px !important;
}

.brx-p2p-market .market-filter-field {
  min-height: 56px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
}

.brx-p2p-market .market-filter-field > span {
  font-size: 10px !important;
}

.brx-p2p-market .market-filter-field input,
.brx-p2p-market .market-filter-field select,
.brx-p2p-market .market-field-combo b {
  font-size: 15px !important;
  font-weight: 690 !important;
}

.brx-p2p-market .market-offer-header {
  padding: 14px 0 !important;
}

.brx-p2p-market .market-offer-row:not(.market-offer-header) {
  min-height: 112px !important;
  padding: 22px 0 !important;
}

.brx-p2p-market .market-trader-avatar {
  width: 52px !important;
  height: 52px !important;
}

.brx-p2p-market .market-trader-cell strong,
.brx-p2p-market .market-liquidity-cell strong {
  font-size: 16px !important;
  font-weight: 700 !important;
}

.brx-p2p-market .market-price-cell strong {
  font-size: 30px !important;
  font-weight: 700 !important;
}

.brx-p2p-market .market-trade-button {
  min-width: 144px !important;
  min-height: 46px !important;
  border-radius: 9px !important;
  font-size: 14px !important;
}

.professional-wallet-page {
  padding-top: 36px !important;
}

.professional-wallet-page .network-helper {
  display: none !important;
}

.p2p-chat-account span,
.p2p-chat-account span.has-image,
.p2p-chat-account span.has-image img {
  border-radius: 50% !important;
}

.p2p-chat-account span.has-image {
  overflow: hidden !important;
}

.p2p-chat-room > .p2p-chat-welcome {
  grid-row: 1 / -1;
  place-self: stretch;
  min-height: 0;
  height: 100%;
  align-content: center;
  justify-content: center;
}

/* Compact market scale and presence states. */
body[data-route="market"] .brx-p2p-market {
  font-size: 90%;
  padding-top: 24px !important;
}

body[data-route="market"] .brx-p2p-market .p2p-market-topline {
  min-height: 42px !important;
  margin-bottom: 18px !important;
  padding-bottom: 12px !important;
}

body[data-route="market"] .brx-p2p-market .p2p-trade-toolbar {
  margin-bottom: 16px !important;
}

body[data-route="market"] .brx-p2p-market .market-intent-tabs {
  width: 260px !important;
  min-height: 48px !important;
}

body[data-route="market"] .brx-p2p-market .market-intent-tabs button {
  min-height: 38px !important;
  font-size: 14px !important;
}

body[data-route="market"] .brx-p2p-market .p2p-filter-panel,
body[data-route="market"] .professional-market.brx-p2p-market .market-filter-panel.p2p-filter-panel {
  grid-template-columns: minmax(200px, 330px) minmax(230px, 380px) minmax(170px, 220px) auto !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
}

body[data-route="market"] .brx-p2p-market .market-filter-field {
  min-height: 48px !important;
  padding: 0 14px !important;
}

body[data-route="market"] .brx-p2p-market .market-filter-field input,
body[data-route="market"] .brx-p2p-market .market-filter-field select,
body[data-route="market"] .brx-p2p-market .market-field-combo b {
  font-size: 14px !important;
}

body[data-route="market"] .brx-p2p-market .market-offer-header {
  padding: 10px 0 !important;
}

body[data-route="market"] .brx-p2p-market .market-offer-row:not(.market-offer-header) {
  min-height: 96px !important;
  padding: 17px 0 !important;
}

body[data-route="market"] .brx-p2p-market .market-trader-avatar {
  width: 46px !important;
  height: 46px !important;
}

body[data-route="market"] .brx-p2p-market .market-price-cell strong {
  font-size: 27px !important;
}

body[data-route="market"] .brx-p2p-market .market-trade-button {
  min-width: 128px !important;
  min-height: 40px !important;
  font-size: 13px !important;
}

.presence-avatar {
  position: relative;
}

.presence-avatar > i {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid #07111d;
  border-radius: 50%;
  background: #7b8491;
}

.presence-avatar.online > i,
.presence-inline.online > i {
  background: #00c087;
}

.presence-avatar.away > i,
.presence-inline.away > i {
  background: #f0b90b;
}

.presence-avatar.offline > i,
.presence-inline.offline > i {
  background: #7b8491;
}

.presence-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  white-space: nowrap;
}

.presence-inline > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7b8491;
}

body[data-route="p2p-chat"] #app {
  height: calc(100dvh - 112px) !important;
  overflow: hidden;
}

body[data-route="p2p-chat"] .p2p-chat-page {
  box-sizing: border-box;
  height: 100% !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

body[data-route="p2p-chat"] .p2p-chat-shell {
  height: calc(100% - 28px) !important;
  min-height: 0 !important;
  border-radius: 12px !important;
}

.p2p-chat-welcome {
  align-self: stretch;
  justify-self: stretch;
}

/* Final density pass for P2P controls and dashboard rate. */
body[data-route="market"] .brx-p2p-market .market-intent-tabs {
  width: 220px !important;
  min-height: 38px !important;
  padding: 3px !important;
  border-radius: 9px !important;
}

body[data-route="market"] .brx-p2p-market .market-intent-tabs button {
  min-height: 32px !important;
  padding: 0 12px !important;
  border-radius: 7px !important;
  font-size: 13px !important;
}

body[data-route="market"] .brx-p2p-market .p2p-filter-panel,
body[data-route="market"] .professional-market.brx-p2p-market .market-filter-panel.p2p-filter-panel {
  grid-template-columns: minmax(170px, 300px) minmax(210px, 340px) minmax(150px, 190px) auto !important;
  gap: 10px !important;
  margin-bottom: 20px !important;
}

body[data-route="market"] .brx-p2p-market .market-filter-field {
  min-height: 40px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
}

body[data-route="market"] .brx-p2p-market .market-filter-field > span {
  display: none !important;
}

body[data-route="market"] .brx-p2p-market .market-filter-field input,
body[data-route="market"] .brx-p2p-market .market-filter-field select,
body[data-route="market"] .brx-p2p-market .market-field-combo b {
  font-size: 13px !important;
  font-weight: 650 !important;
}

body[data-route="market"] .brx-p2p-market .market-field-combo {
  min-height: 40px !important;
}

body[data-route="market"] .brx-p2p-market .market-liquidity-cell strong {
  font-size: 15px !important;
  font-weight: 650 !important;
  opacity: .92;
}

body[data-route="market"] .brx-p2p-market .market-liquidity-cell small {
  font-size: 15px !important;
  font-weight: 620 !important;
}

body[data-route="market"] .brx-p2p-market .p2p-trust-row {
  gap: 12px !important;
}

body[data-route="market"] .brx-p2p-market .presence-inline {
  width: 8px !important;
  height: 8px !important;
  gap: 0 !important;
  overflow: hidden !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

body[data-route="market"] .brx-p2p-market .presence-inline > i {
  width: 8px !important;
  height: 8px !important;
  flex: 0 0 8px !important;
}

.dashboard-market-card .dashboard-rate-value strong {
  font-size: clamp(28px, 2.35vw, 38px) !important;
  font-weight: 640 !important;
  opacity: .78 !important;
}

/* Professional P2P table polish: cleaner alignment, less weight, no extra row dot. */
body[data-route="market"] .brx-p2p-market {
  padding-left: clamp(42px, 4.6vw, 76px) !important;
  padding-right: clamp(42px, 4.6vw, 76px) !important;
}

body[data-route="market"] .brx-p2p-market .market-offer-table {
  margin-top: 0 !important;
}

body[data-route="market"] .brx-p2p-market .market-offer-row {
  grid-template-columns: minmax(300px, 1.18fr) minmax(140px, .55fr) minmax(260px, .86fr) minmax(180px, .65fr) minmax(132px, .42fr) !important;
  column-gap: 22px !important;
  align-items: center !important;
}

body[data-route="market"] .brx-p2p-market .market-offer-header {
  min-height: 42px !important;
  padding: 8px 0 !important;
  font-size: 13px !important;
  font-weight: 620 !important;
  color: rgba(180, 200, 225, .78) !important;
}

body[data-route="market"] .brx-p2p-market .market-offer-row:not(.market-offer-header) {
  min-height: 88px !important;
  padding: 14px 0 !important;
}

body[data-route="market"] .brx-p2p-market .p2p-advertiser-cell {
  gap: 13px !important;
}

body[data-route="market"] .brx-p2p-market .market-trader-avatar {
  width: 44px !important;
  height: 44px !important;
  font-size: 14px !important;
  font-weight: 690 !important;
  overflow: visible !important;
}

body[data-route="market"] .brx-p2p-market .market-trader-avatar.has-image {
  overflow: hidden !important;
  background: #101721 !important;
}

body[data-route="market"] .brx-p2p-market .market-trader-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

body[data-route="market"] .brx-p2p-market .presence-avatar > i {
  right: 0 !important;
  bottom: 1px !important;
  width: 9px !important;
  height: 9px !important;
}

body[data-route="market"] .brx-p2p-market .p2p-advertiser-cell strong {
  font-size: 15px !important;
  font-weight: 660 !important;
  letter-spacing: 0 !important;
}

body[data-route="market"] .brx-p2p-market .p2p-advertiser-cell small {
  margin-top: 4px !important;
  font-size: 13px !important;
  font-weight: 520 !important;
  color: rgba(177, 199, 229, .84) !important;
}

body[data-route="market"] .brx-p2p-market .p2p-advertiser-cell small b {
  opacity: .35 !important;
}

body[data-route="market"] .brx-p2p-market .p2p-trust-row {
  margin-top: 5px !important;
  font-size: 12px !important;
  color: rgba(177, 199, 229, .72) !important;
}

body[data-route="market"] .brx-p2p-market .presence-inline {
  display: none !important;
}

body[data-route="market"] .brx-p2p-market .market-price-cell strong {
  font-size: 25px !important;
  font-weight: 640 !important;
  letter-spacing: 0 !important;
}

body[data-route="market"] .brx-p2p-market .market-price-cell strong::before {
  font-size: 11px !important;
  font-weight: 620 !important;
  margin-right: 6px !important;
  opacity: .72 !important;
}

body[data-route="market"] .brx-p2p-market .market-liquidity-cell strong,
body[data-route="market"] .brx-p2p-market .market-liquidity-cell small {
  font-size: 14px !important;
  font-weight: 570 !important;
  line-height: 1.45 !important;
}

body[data-route="market"] .brx-p2p-market .market-liquidity-cell strong {
  color: rgba(244, 248, 255, .9) !important;
}

body[data-route="market"] .brx-p2p-market .market-payment-cell span {
  font-size: 14px !important;
  font-weight: 560 !important;
}

body[data-route="market"] .brx-p2p-market .market-trade-button {
  min-width: 124px !important;
  min-height: 38px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}

body[data-route="market"] .brx-p2p-market .p2p-filter-panel,
body[data-route="market"] .professional-market.brx-p2p-market .market-filter-panel.p2p-filter-panel {
  max-width: 1240px !important;
  grid-template-columns: minmax(180px, 300px) minmax(220px, 360px) minmax(150px, 190px) !important;
  margin-bottom: 18px !important;
}

body[data-route="market"] .brx-p2p-market .market-filter-clear {
  min-height: 38px !important;
}

body[data-route="market"] .brx-p2p-market .p2p-market-topline {
  margin-bottom: 15px !important;
}

/* Final P2P compact polish: tighter exchange layout, avatar-only status dots. */
body[data-route="market"] .brx-p2p-market {
  padding-top: 24px !important;
  padding-left: clamp(34px, 4vw, 64px) !important;
  padding-right: clamp(34px, 4vw, 64px) !important;
}

body[data-route="market"] .brx-p2p-market .p2p-market-topline {
  margin-bottom: 12px !important;
  padding-bottom: 14px !important;
}

body[data-route="market"] .brx-p2p-market .p2p-trade-toolbar {
  margin: 0 0 14px !important;
  gap: 18px !important;
}

body[data-route="market"] .brx-p2p-market .market-intent-tabs {
  width: 246px !important;
  min-height: 44px !important;
  padding: 4px !important;
  border-radius: 8px !important;
}

body[data-route="market"] .brx-p2p-market .market-intent-tabs button {
  min-height: 36px !important;
  border-radius: 7px !important;
  font-size: 13px !important;
  font-weight: 620 !important;
}

body[data-route="market"] .brx-p2p-market .p2p-filter-panel,
body[data-route="market"] .professional-market.brx-p2p-market .market-filter-panel.p2p-filter-panel {
  max-width: 1030px !important;
  grid-template-columns: minmax(180px, 260px) minmax(230px, 330px) minmax(150px, 190px) !important;
  gap: 11px !important;
  margin-bottom: 12px !important;
}

body[data-route="market"] .brx-p2p-market .market-filter-field input,
body[data-route="market"] .brx-p2p-market .market-filter-field select,
body[data-route="market"] .brx-p2p-market .market-field-combo {
  height: 46px !important;
  min-height: 46px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

body[data-route="market"] .brx-p2p-market .market-field-combo input {
  height: 44px !important;
}

body[data-route="market"] .brx-p2p-market .market-field-combo b {
  min-height: 26px !important;
  margin-right: 10px !important;
  padding-left: 12px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}

body[data-route="market"] .brx-p2p-market .market-results-panel {
  margin-top: 18px !important;
}

body[data-route="market"] .brx-p2p-market .market-offer-row {
  grid-template-columns: minmax(280px, 1.08fr) minmax(130px, .48fr) minmax(235px, .76fr) minmax(160px, .52fr) minmax(118px, .34fr) !important;
  column-gap: 18px !important;
}

body[data-route="market"] .brx-p2p-market .market-offer-header {
  min-height: 34px !important;
  padding: 6px 0 !important;
  font-size: 12px !important;
  font-weight: 560 !important;
}

body[data-route="market"] .brx-p2p-market .market-offer-row:not(.market-offer-header) {
  min-height: 74px !important;
  padding: 12px 0 !important;
}

body[data-route="market"] .brx-p2p-market .p2p-advertiser-cell {
  gap: 12px !important;
}

body[data-route="market"] .brx-p2p-market .market-trader-avatar {
  width: 42px !important;
  height: 42px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}

body[data-route="market"] .brx-p2p-market .market-trader-avatar.has-image {
  overflow: visible !important;
}

body[data-route="market"] .brx-p2p-market .market-trader-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

body[data-route="market"] .brx-p2p-market .presence-avatar > i {
  right: 0 !important;
  bottom: 1px !important;
  width: 8px !important;
  height: 8px !important;
  border-width: 2px !important;
}

body[data-route="market"] .brx-p2p-market .p2p-advertiser-cell strong {
  font-size: 14px !important;
  font-weight: 620 !important;
}

body[data-route="market"] .brx-p2p-market .p2p-advertiser-cell small {
  margin-top: 3px !important;
  font-size: 12px !important;
  font-weight: 480 !important;
}

body[data-route="market"] .brx-p2p-market .p2p-trust-row {
  margin-top: 4px !important;
  gap: 0 !important;
  color: rgba(177, 199, 229, .78) !important;
}

body[data-route="market"] .brx-p2p-market .p2p-trust-row span::before,
body[data-route="market"] .brx-p2p-market .p2p-trust-row svg,
body[data-route="market"] .brx-p2p-market .presence-inline {
  display: none !important;
  content: none !important;
}

body[data-route="market"] .brx-p2p-market .market-price-cell strong {
  font-size: 21px !important;
  font-weight: 600 !important;
}

body[data-route="market"] .brx-p2p-market .market-price-cell strong::before {
  font-size: 10px !important;
  font-weight: 560 !important;
  margin-right: 5px !important;
}

body[data-route="market"] .brx-p2p-market .market-liquidity-cell strong,
body[data-route="market"] .brx-p2p-market .market-liquidity-cell small,
body[data-route="market"] .brx-p2p-market .market-payment-cell span {
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.38 !important;
}

body[data-route="market"] .brx-p2p-market .market-trade-button {
  min-width: 108px !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  font-weight: 620 !important;
}

/* Professional My Ads desk. */
.professional-ads-page {
  max-width: 1748px;
  padding-top: 28px;
}

.professional-ads-page .ads-console-head {
  min-height: 136px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: 22px 28px;
  overflow: hidden;
  border: 1px solid rgba(0, 184, 255, .18);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(10, 21, 34, .94), rgba(0, 36, 64, .86));
  position: relative;
}

.professional-ads-page .ads-console-head::after {
  content: "";
  position: absolute;
  right: 10%;
  top: -84px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(0, 184, 255, .08);
  pointer-events: none;
}

.ads-console-title,
.ads-console-actions {
  position: relative;
  z-index: 1;
}

.ads-console-title {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.ads-console-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 184, 255, .34);
  border-radius: 12px;
  background: rgba(0, 153, 255, .12);
  color: var(--blue-2);
}

.ads-console-mark svg {
  width: 23px;
  height: 23px;
}

.ads-console-title h1 {
  margin: 2px 0 4px;
  color: #fff;
  font-size: clamp(28px, 2.4vw, 42px);
  font-weight: 720;
  letter-spacing: 0;
}

.ads-console-title p:last-child {
  margin: 0;
  color: rgba(183, 205, 235, .86);
  font-size: 14px;
}

.ads-console-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ads-console-actions > div {
  min-width: 190px;
  padding: 13px 15px;
  border: 1px solid rgba(166, 190, 226, .14);
  border-radius: 10px;
  background: rgba(6, 14, 26, .48);
}

.ads-console-actions span,
.ads-desk-stat small,
.ads-desk-stat em,
.ads-control-note span,
.ad-cell-main small,
.ad-price-cell small,
.ad-inventory-cell small {
  color: rgba(177, 199, 229, .78);
}

.ads-console-actions span,
.ads-desk-stat small {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ads-console-actions strong {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.ads-desk-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.ads-desk-stat {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(166, 190, 226, .14);
  border-radius: 10px;
  background: rgba(18, 25, 34, .72);
}

.ads-desk-stat > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 184, 255, .22);
  border-radius: 10px;
  background: rgba(0, 153, 255, .08);
  color: var(--blue-2);
}

.ads-desk-stat svg {
  width: 19px;
  height: 19px;
}

.ads-desk-stat strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 20px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ads-desk-stat em {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ads-control-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid rgba(166, 190, 226, .14);
  border-radius: 12px;
  background: rgba(6, 14, 26, .52);
}

.ad-status-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.ad-status-switch button {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: rgba(183, 205, 235, .78);
  text-align: left;
}

.ad-status-switch button:hover,
.ad-status-switch button.active {
  border-color: rgba(0, 184, 255, .22);
  background: rgba(0, 153, 255, .11);
  color: #fff;
}

.ad-status-switch button > span {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(166, 190, 226, .08);
  color: currentColor;
}

.ad-status-switch button.active > span {
  background: rgba(0, 184, 255, .16);
  color: var(--blue-2);
}

.ad-status-switch svg {
  width: 15px;
  height: 15px;
}

.ad-status-switch strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 660;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-status-switch small {
  overflow: hidden;
  color: rgba(177, 199, 229, .66);
  font-size: 10px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-status-switch b {
  grid-row: 1 / span 2;
  min-width: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(166, 190, 226, .1);
  color: #d8e7ff;
  font-size: 12px;
  font-weight: 720;
}

.ad-status-switch button.active b {
  background: rgba(0, 184, 255, .2);
  color: var(--blue-2);
}

.ads-control-note {
  min-width: 112px;
  padding: 9px 12px;
  border-left: 1px solid rgba(166, 190, 226, .14);
  text-align: right;
}

.ads-control-note strong {
  display: block;
  color: #fff;
  font-size: 19px;
  font-weight: 680;
}

.ads-control-note span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
}

.ads-exchange-table {
  display: grid;
  border-top: 1px solid rgba(166, 190, 226, .14);
}

.ads-exchange-table .my-ad-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(140px, .54fr) minmax(250px, .9fr) minmax(190px, .72fr) minmax(260px, .82fr);
  align-items: center;
  column-gap: 20px;
  min-height: 88px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(166, 190, 226, .12);
}

.ads-exchange-table .my-ad-header {
  min-height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
  color: rgba(177, 199, 229, .76);
  font-size: 12px;
  font-weight: 640;
}

.ad-cell-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ad-side-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #07111d;
  font-size: 14px;
  font-weight: 800;
}

.ad-side-mark.sell {
  background: #ff4d75;
}

.ad-side-mark.buy {
  background: #00c087;
}

.ad-cell-main strong,
.ad-inventory-cell strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 660;
}

.ad-cell-main small,
.ad-inventory-cell small,
.ad-price-cell small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 520;
}

.ad-cell-main .status-pill {
  width: fit-content;
  margin-top: 8px;
}

.ad-price-cell strong {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: 0;
}

.ad-price-cell strong.sell {
  color: #ff4d75;
}

.ad-price-cell strong.buy {
  color: #00d395;
}

.ad-payment-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ad-payment-cell span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(12, 21, 34, .76);
  color: rgba(207, 225, 255, .9);
  font-size: 12px;
  font-weight: 560;
}

.ads-exchange-row .ad-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.ads-exchange-row .ad-row-actions button,
.ads-exchange-row .ad-row-actions .app-muted {
  min-width: 72px;
  min-height: 36px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 640;
}

.ads-empty-desk {
  min-height: 320px;
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 42px;
  border: 1px dashed rgba(0, 184, 255, .28);
  border-radius: 12px;
  background: rgba(9, 17, 29, .66);
  text-align: center;
}

.ads-empty-desk > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 153, 255, .12);
  color: var(--blue-2);
}

.ads-empty-desk svg {
  width: 26px;
  height: 26px;
}

.ads-empty-desk h2 {
  margin: 4px 0 6px;
  font-size: 28px;
}

.ads-empty-desk p:last-child {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .ads-desk-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ads-exchange-table .my-ad-row {
    grid-template-columns: minmax(220px, 1fr) minmax(120px, .5fr) minmax(210px, .8fr) minmax(160px, .65fr) minmax(210px, .8fr);
    column-gap: 14px;
  }
}

@media (max-width: 900px) {
  .professional-ads-page .ads-console-head,
  .ads-console-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ads-control-panel {
    grid-template-columns: 1fr;
  }

  .ads-control-note {
    border-left: 0;
    border-top: 1px solid rgba(166, 190, 226, .14);
    text-align: left;
  }

  .ad-status-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ads-exchange-table {
    gap: 10px;
    border-top: 0;
  }

  .ads-exchange-table .my-ad-header {
    display: none;
  }

  .ads-exchange-table .my-ad-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 13px;
    padding: 16px;
    border: 1px solid rgba(166, 190, 226, .14);
    border-radius: 12px;
    background: rgba(18, 25, 34, .72);
  }

  .ads-exchange-table .ad-inventory-cell,
  .ads-exchange-table .ad-payment-cell,
  .ads-exchange-table .ad-row-actions {
    grid-column: 1 / -1;
  }

  .ads-exchange-row .ad-row-actions {
    justify-content: stretch;
  }

  .ads-exchange-row .ad-row-actions button,
  .ads-exchange-row .ad-row-actions .app-muted {
    flex: 1;
  }
}

/* My Ads revision: no hero, compact exchange KPI strip. */
.professional-ads-page {
  padding-top: 26px !important;
}

.professional-ads-page .ads-console-head,
.professional-ads-page .ads-console-title,
.professional-ads-page .ads-console-actions {
  display: none !important;
}

.ads-page-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(166, 190, 226, .14);
}

.ads-page-product {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.ads-page-product > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 184, 255, .28);
  border-radius: 8px;
  background: rgba(0, 153, 255, .09);
  color: var(--blue-2);
}

.ads-page-product svg {
  width: 17px;
  height: 17px;
}

.ads-page-product strong {
  color: #fff;
  font-size: 18px;
  font-weight: 680;
}

.ads-page-product small {
  color: rgba(177, 199, 229, .78);
  font-size: 12px;
  font-weight: 600;
}

.ads-page-tools > button {
  min-height: 40px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 660;
}

.ads-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(166, 190, 226, .14);
  border-radius: 10px;
  background: rgba(8, 15, 26, .64);
}

.ads-kpi {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid rgba(166, 190, 226, .1);
}

.ads-kpi:last-child {
  border-right: 0;
}

.ads-kpi small {
  display: block;
  color: rgba(177, 199, 229, .72);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ads-kpi strong {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: rgba(244, 248, 255, .94);
  font-size: 19px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ads-kpi span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: rgba(177, 199, 229, .62);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ads-control-panel {
  margin-bottom: 14px !important;
}

@media (max-width: 900px) {
  .ads-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ads-kpi:nth-child(2) {
    border-right: 0;
  }

  .ads-kpi:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(166, 190, 226, .1);
  }
}

/* My Ads no-icons cleanup. */
.professional-ads-page .ads-kpi-strip,
.professional-ads-page .ads-desk-summary,
.ads-page-product > span,
.ad-status-switch button > span {
  display: none !important;
}

.ad-status-switch button {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

.ad-status-switch button strong {
  grid-column: 1;
}

.ad-status-switch button small {
  grid-column: 1;
}

.ad-status-switch button b {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* P2P advertiser avatars: force true circles and show uploaded images cleanly. */
body[data-route="market"] .brx-p2p-market .market-trader-avatar,
body[data-route="market"] .brx-p2p-market .presence-avatar.market-trader-avatar {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  flex: 0 0 42px !important;
  aspect-ratio: 1 / 1 !important;
  display: inline-grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  border-radius: 50% !important;
  line-height: 1 !important;
}

body[data-route="market"] .brx-p2p-market .market-trader-avatar.has-image {
  background: #101721 !important;
}

body[data-route="market"] .brx-p2p-market .market-trader-avatar.has-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

/* Trade detail lifecycle and audit trail. */
.professional-trades-page.trade-detail-page .trade-detail-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, .72fr);
  gap: 14px;
}

.professional-trades-page .trade-side-panel {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.trade-counterparty-card,
.trade-lifecycle-card,
.trade-audit-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(166, 190, 226, .14);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(22, 29, 39, .94), rgba(9, 17, 29, .94));
}

.trade-counterparty-card strong,
.trade-counterparty-card small {
  display: block;
  overflow-wrap: anywhere;
}

.trade-counterparty-card strong {
  margin-top: 5px;
  color: rgba(244, 248, 255, .96);
  font-size: 15px;
  font-weight: 680;
}

.trade-counterparty-card small {
  margin-top: 4px;
  color: rgba(177, 199, 229, .68);
  font-size: 10px;
}

.trade-lifecycle-head,
.trade-audit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.trade-lifecycle-head h3,
.trade-audit-head h3 {
  margin: 4px 0 2px;
  color: rgba(244, 248, 255, .95);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.trade-lifecycle-head small {
  display: block;
  color: rgba(177, 199, 229, .72);
  font-size: 10px;
  line-height: 1.45;
}

.trade-lifecycle-head > span,
.trade-audit-head > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(0, 184, 255, .26);
  border-radius: 999px;
  background: rgba(0, 153, 255, .09);
  color: var(--blue-2);
  font-size: 10px;
  font-weight: 760;
}

.trade-progress-track {
  height: 5px;
  margin: 13px 0 15px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, .14);
}

.trade-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
}

.professional-trades-page .trade-timeline {
  display: grid;
  gap: 0;
  margin: 0;
}

.professional-trades-page .timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 0 0 15px;
  color: rgba(177, 199, 229, .68);
}

.professional-trades-page .timeline-step:last-child {
  padding-bottom: 0;
}

.professional-trades-page .timeline-step::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: rgba(166, 190, 226, .16);
}

.professional-trades-page .timeline-step:last-child::before {
  display: none;
}

.professional-trades-page .timeline-step > span {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-top: 3px;
  border: 1px solid rgba(166, 190, 226, .26);
  border-radius: 50%;
  background: #121923;
  box-shadow: none;
}

.professional-trades-page .timeline-step.complete > span {
  border-color: rgba(0, 184, 255, .78);
  background: var(--blue-2);
}

.professional-trades-page .timeline-step.current > span {
  border-color: var(--blue-2);
  background: #081523;
  box-shadow: 0 0 0 4px rgba(0, 184, 255, .1);
}

.professional-trades-page .timeline-step.warning > span {
  border-color: rgba(245, 158, 11, .9);
  background: #f59e0b;
}

.professional-trades-page .timeline-step.closed > span {
  border-color: rgba(148, 163, 184, .55);
  background: rgba(148, 163, 184, .55);
}

.professional-trades-page .timeline-step strong,
.professional-trades-page .timeline-step small,
.professional-trades-page .timeline-step em {
  display: block;
  min-width: 0;
}

.professional-trades-page .timeline-step strong {
  color: rgba(244, 248, 255, .92);
  font-size: 11px;
  font-weight: 700;
}

.professional-trades-page .timeline-step small {
  margin-top: 2px;
  color: rgba(177, 199, 229, .74);
  font-size: 9px;
  font-style: normal;
}

.professional-trades-page .timeline-step em {
  margin-top: 3px;
  color: rgba(177, 199, 229, .54);
  font-size: 9px;
  font-style: normal;
  line-height: 1.35;
}

.trade-audit-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.trade-audit-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(166, 190, 226, .1);
  border-radius: 10px;
  background: rgba(3, 9, 18, .36);
}

.trade-audit-item > span {
  min-width: 0;
  align-self: start;
  padding: 5px 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 153, 255, .08);
  color: var(--blue-2);
  font-size: 8px;
  font-weight: 760;
  text-align: center;
  text-overflow: ellipsis;
}

.trade-audit-item strong,
.trade-audit-item small,
.trade-audit-item p {
  display: block;
  min-width: 0;
  margin: 0;
}

.trade-audit-item strong {
  color: rgba(244, 248, 255, .9);
  font-size: 11px;
  font-weight: 680;
}

.trade-audit-item small {
  margin-top: 2px;
  color: rgba(177, 199, 229, .62);
  font-size: 9px;
}

.trade-audit-item p {
  margin-top: 5px;
  color: rgba(177, 199, 229, .76);
  font-size: 10px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}
.turnstile-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 65px;
  margin: 20px auto 10px;
}
.turnstile-slot[data-turnstile-state="loading"]::before {
  content: "Loading human check...";
  color: rgba(177, 199, 229, .72);
  font-size: 13px;
}
.turnstile-slot[data-turnstile-state="ready"]::before {
  content: none;
}
.auth-card .turnstile-slot + .form-error:empty {
  min-height: 0;
  margin: 0;
}
/* Balance privacy and wallet readability polish. */
.dashboard-card-head {
  align-items: center;
}

.dashboard-balance-toggle {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(3, 10, 20, .55);
  color: var(--text);
}

.dashboard-balance-toggle:hover {
  border-color: rgba(0, 153, 255, .38);
  color: var(--blue-2);
}

.dashboard-balance-toggle svg {
  width: 18px;
  height: 18px;
}

.dashboard-balance-card.is-hidden .dashboard-balance-value > strong,
.dashboard-balance-card.is-hidden .dashboard-balance-breakdown strong {
  letter-spacing: .08em;
}

.dashboard-balance-value > span,
.dashboard-balance-breakdown .available strong,
.dashboard-balance-breakdown .escrow strong,
.dashboard-balance-breakdown strong small,
.wallet-total-block h2 span,
.professional-balance-grid .available strong,
.professional-balance-grid .locked strong,
.professional-balance-grid strong small {
  color: #fff;
}

.wallet-network-inset {
  grid-column: 1 / -1;
  min-width: 0;
}

.wallet-network-inset .deposit-address-card {
  margin: 0;
}

/* Mobile settings actions should be easy to tap. */
@media (max-width: 760px) {
  .professional-settings-page .settings-row {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .professional-settings-page .settings-row-aside {
    grid-column: 2 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
    margin-top: 8px !important;
  }

  .professional-settings-page .settings-action,
  .professional-settings-page .settings-badge {
    min-width: 104px !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    justify-content: center !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  .professional-settings-page .settings-avatar-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .professional-settings-page .settings-avatar-upload,
  .professional-settings-page .settings-avatar-remove {
    width: 100% !important;
    min-height: 46px !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }

  .professional-settings-page .settings-avatar-upload svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* Trader identity and smoother Trades loading. */
.trader-name-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.trader-name-line h1,
.trader-name-line h3 {
  min-width: 0;
  margin-bottom: 0;
}

.trader-name-edit {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(0, 184, 255, .28);
  border-radius: 10px;
  background: rgba(0, 153, 255, .1);
  color: var(--blue-2);
}

.trader-name-edit:hover {
  border-color: rgba(0, 184, 255, .5);
  background: rgba(0, 153, 255, .16);
}

.trader-name-edit svg {
  width: 17px;
  height: 17px;
}


.settings-trader-editor {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 10px 0 8px;
}

.trader-name-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.trader-name-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.trader-name-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(0, 184, 255, .24);
  border-radius: 12px;
  background: rgba(3, 10, 20, .72);
  color: #fff;
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.trader-name-field input:focus {
  border-color: rgba(0, 184, 255, .72);
  box-shadow: 0 0 0 3px rgba(0, 184, 255, .12);
}

.trader-name-save {
  min-height: 46px;
  min-width: 88px;
}

.settings-trader-name {
  margin: 2px 0 8px;
}

.trade-list-smooth-shell {
  min-height: 320px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.smooth-placeholder,
.smooth-placeholder-list {
  animation: smooth-shell-pulse 1s ease-in-out infinite alternate;
}

.smooth-placeholder span,
.smooth-placeholder-list span {
  display: block;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(166, 190, 226, .08), rgba(166, 190, 226, .16), rgba(166, 190, 226, .08));
}

.smooth-placeholder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.smooth-placeholder span {
  min-height: 40px;
}

.smooth-placeholder-list {
  display: grid;
  gap: 10px;
}

.smooth-placeholder-list span {
  min-height: 72px;
}

@keyframes smooth-shell-pulse {
  from { opacity: .58; }
  to { opacity: 1; }
}

/* Mobile Settings readability pass. */
@media (max-width: 760px) {
  .professional-settings-page {
    padding-top: 14px !important;
  }

  .professional-settings-head {
    align-items: flex-start !important;
  }

  .professional-settings-person {
    min-width: 0 !important;
  }

  .professional-settings-person h1 {
    font-size: 24px !important;
    line-height: 1.05 !important;
  }

  .professional-settings-person small {
    display: block !important;
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
  }

  .professional-settings-state {
    padding: 12px 14px !important;
  }

  .professional-settings-state strong {
    font-size: 13px !important;
  }

  .professional-settings-state small {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  .professional-settings-page .professional-settings-nav {
    gap: 8px !important;
    padding: 8px !important;
  }

  .settings-nav-label {
    display: none !important;
  }

  .professional-settings-page .settings-tab {
    min-width: 132px !important;
    min-height: 56px !important;
    grid-template-columns: 20px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }

  .professional-settings-page .settings-tab > svg:first-child {
    width: 20px !important;
    height: 20px !important;
  }

  .professional-settings-page .settings-tab strong {
    font-size: 13px !important;
    line-height: 1.15 !important;
  }

  .settings-content-head {
    min-height: 64px !important;
    padding: 14px 16px !important;
  }

  .settings-content-head h2 {
    font-size: 23px !important;
    line-height: 1.05 !important;
  }

  .settings-content-head .app-label {
    font-size: 11px !important;
  }

  .settings-content-head > a {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  .professional-settings-page .settings-card-head h3 {
    font-size: 17px !important;
    line-height: 1.2 !important;
  }

  .professional-settings-page .settings-card-head h3 svg {
    width: 19px !important;
    height: 19px !important;
  }

  .professional-settings-page .settings-card-head p,
  .professional-settings-page .settings-security-block .app-muted {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .professional-settings-page .settings-note {
    min-height: 54px !important;
    gap: 10px !important;
    padding: 13px 14px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  .professional-settings-page .settings-note svg {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
  }

  .professional-settings-page .settings-row {
    min-height: 74px !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 13px !important;
    padding: 14px 0 !important;
  }

  .professional-settings-page .settings-row-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
  }

  .professional-settings-page .settings-row-icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  .professional-settings-page .settings-row-main strong {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  .professional-settings-page .settings-row-main small {
    margin-top: 4px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
  }

  .professional-settings-page .settings-row-aside {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .professional-settings-page .settings-action,
  .professional-settings-page .settings-badge {
    min-height: 44px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
  }

  .professional-settings-page .settings-badge svg {
    width: 16px !important;
    height: 16px !important;
  }

  .professional-settings-page .form-field {
    gap: 7px !important;
    font-size: 13px !important;
  }

  .professional-settings-page .form-field > span,
  .professional-settings-page .trader-name-field > span {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  .professional-settings-page .form-field input,
  .professional-settings-page .form-field select,
  .professional-settings-page textarea,
  .professional-settings-page .trader-name-field input {
    min-height: 48px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
  }

  .professional-settings-page .settings-form-actions .app-button,
  .professional-settings-page .payment-editor-actions .app-button,
  .professional-settings-page .payment-cancel-button,
  .professional-settings-page .payment-add-button {
    min-height: 46px !important;
    font-size: 14px !important;
  }

  .professional-settings-page .settings-id-main h3 {
    font-size: 22px !important;
    line-height: 1.15 !important;
  }

  .professional-settings-page .settings-id-main small,
  .professional-settings-page .settings-muted,
  .professional-settings-page .settings-avatar-help {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .professional-settings-page .secret-code {
    font-size: 16px !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere !important;
  }
}

/* Dashboard balance breakdown without escrow item. */
.dashboard-balance-breakdown {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.dashboard-balance-breakdown > div:only-child {
  grid-column: 1 / -1;
}

/* Dashboard compact single balance tile. */
.dashboard-balance-breakdown:has(> div:only-child) {
  width: fit-content;
  max-width: 100%;
  grid-template-columns: minmax(128px, 180px);
}

.dashboard-balance-breakdown > div:only-child {
  grid-column: auto;
}

/* Two-factor setup QR flow. */
.two-factor-setup-block {
  display: grid;
  gap: 16px;
}

.two-factor-setup-grid {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}

.two-factor-qr-card {
  min-height: 156px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .22);
}

.two-factor-qr-card svg {
  width: 100%;
  height: 100%;
  display: block;
}

.two-factor-secret-panel {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(3, 10, 20, .28);
}

.two-factor-secret-panel > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.two-factor-secret-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.two-factor-confirm-grid {
  align-items: end;
}

.admin-console-page .platform-settings-form {
  display: grid;
  gap: 12px;
}

.admin-console-page .platform-settings-form .form-field {
  display: grid;
  gap: 6px;
}

.admin-console-page .admin-checkbox-line,
.admin-console-page .admin-payment-checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.admin-console-page .admin-payment-checkboxes {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.35);
}

.admin-console-page .admin-payment-checkboxes strong {
  color: var(--text);
  font-size: 13px;
}

.wallet-activity-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 12px 0;
  overflow: auto;
}

.wallet-activity-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: rgba(5, 11, 22, .45);
}

.wallet-activity-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(0, 153, 255, .1);
  color: var(--blue-2);
}

.wallet-activity-row.deposit .wallet-activity-mark {
  background: rgba(8, 201, 139, .12);
  color: var(--green);
}

.wallet-activity-row.withdrawal .wallet-activity-mark {
  background: rgba(255, 255, 255, .08);
  color: var(--muted);
}

.wallet-activity-row.withdrawal.completed .wallet-activity-mark {
  background: rgba(255, 75, 103, .12);
  color: var(--red);
}

.wallet-activity-row.failed .wallet-activity-mark {
  background: rgba(255, 75, 103, .12);
  color: var(--red);
}

.wallet-activity-mark svg {
  width: 15px;
  height: 15px;
}

.wallet-activity-main,
.wallet-activity-side {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.wallet-activity-main strong,
.wallet-activity-side strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.25;
}

.wallet-activity-main small,
.wallet-activity-side small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.25;
}

.wallet-activity-side {
  justify-items: end;
  text-align: right;
}

.wallet-activity-row.deposit .wallet-activity-side strong {
  color: var(--green);
}

.wallet-activity-row.withdrawal .wallet-activity-side strong {
  color: var(--red);
}

.wallet-activity-row.withdrawal.completed .wallet-activity-side strong {
  color: var(--red);
}

.wallet-activity-row.failed .wallet-activity-side strong {
  color: var(--red);
}

.push-notification-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid rgba(30, 167, 255, .2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30, 167, 255, .1), rgba(5, 11, 22, .45));
}
.push-notification-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--blue-2); background: rgba(30,167,255,.12); }
.push-notification-icon svg { width: 20px; height: 20px; }
.push-notification-card > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.push-notification-card strong { color: var(--text); font-size: 13px; }
.push-notification-card small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.push-notification-card em { color: var(--blue-2); font-size: 9px; font-style: normal; }

@media (max-width: 560px) {
  .wallet-activity-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .wallet-activity-side {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }
}

/* BRX P2P order and settlement workspace — focused exchange-style flow. */
.p2p-order-page {
  width: min(100%, 1120px);
  min-height: calc(100vh - var(--header-h, 76px));
  padding: 38px 24px 70px;
}

.order-page-shell { display: block; width: 100%; }
.p2p-order-page .order-page-card {
  position: static;
  width: min(100%, 860px);
  max-height: none;
  margin: 0 auto;
  overflow: visible;
  border: 1px solid rgba(67, 153, 255, .2);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(13, 26, 45, .98), rgba(7, 16, 29, .99));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.p2p-order-page .order-modal-head {
  min-height: 118px;
  padding: 26px 30px 22px;
  border-bottom: 1px solid rgba(120, 164, 210, .15);
}

.p2p-order-page .order-modal-head h3 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.04em; }
.p2p-order-page .order-modal-head p strong { color: #27aaff; font-size: clamp(26px, 4vw, 40px); }
.order-page-back {
  order: -1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(132, 177, 226, .2);
  border-radius: 13px;
  color: #dcecff;
  font-size: 24px;
  text-decoration: none;
  background: rgba(4, 13, 26, .54);
}

.p2p-order-page .order-ticket-summary {
  grid-template-columns: repeat(2, 1fr);
  padding: 20px 30px;
  background: rgba(2, 10, 21, .38);
}
.p2p-order-page .order-modal-body { padding: 26px 30px 8px; }
.p2p-order-page .order-trader { border-color: rgba(103, 161, 222, .17); background: rgba(4, 13, 25, .48); }
.p2p-order-page .order-methods button { border-color: rgba(53, 161, 255, .28); border-radius: 12px; }
.p2p-order-page .order-methods button.active { color: #52baff; border-color: #1e9fff; background: rgba(30, 159, 255, .1); }
.p2p-order-page .order-input-row { min-height: 78px; border-radius: 16px; border-color: rgba(128, 177, 226, .22); background: #050e1c; }
.p2p-order-page .order-input-row input { font-size: clamp(28px, 6vw, 42px); font-weight: 700; }
.p2p-order-page .order-quote { grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid rgba(120, 164, 210, .13); border-radius: 14px; background: rgba(120, 164, 210, .13); }
.p2p-order-page .order-quote > div { padding: 15px 17px; background: #091525; }
.p2p-order-page .order-modal-footer { position: static; padding: 20px 30px 30px; border: 0; background: transparent; }
.p2p-order-page .order-modal-footer .app-button { min-height: 56px; border-radius: 14px; font-size: 16px; background: linear-gradient(90deg, #087df0, #19b7ed); box-shadow: 0 12px 26px rgba(0, 137, 255, .18); }
.order-page-loading, .order-page-error { width: min(100%, 680px); min-height: 360px; margin: 0 auto; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; }
.order-page-loading span { width: 34px; height: 34px; border: 3px solid rgba(43, 169, 255, .2); border-top-color: #2ba9ff; border-radius: 50%; animation: spin .8s linear infinite; }
.order-page-error strong { font-size: 28px; }
.order-page-error p { color: var(--muted); }

/* Settlement screen: amount, payment, proof and chat in a clean two-column room. */
.escrow-workspace { width: min(100%, 1180px); margin: 0 auto; }
.trade-room-header { padding: 8px 0 22px; border: 0; background: transparent; }
.trade-room-heading h2 { font-size: 30px; letter-spacing: -.035em; }
.trade-room-heading > div span { color: #7890ab; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.trade-back-button { border-radius: 12px; background: #091525; border-color: rgba(123, 170, 219, .17); }
.escrow-grid { grid-template-columns: minmax(0, 1.45fr) minmax(320px, .72fr); gap: 18px; }
.escrow-main, .escrow-side > * { border: 1px solid rgba(112, 163, 215, .15); border-radius: 18px; background: linear-gradient(145deg, rgba(12, 25, 43, .98), rgba(7, 16, 29, .98)); box-shadow: none; }
.trade-amount-summary { padding: 25px; border-bottom: 1px solid rgba(117, 166, 214, .12); }
.trade-asset-total h3 { font-size: clamp(36px, 6vw, 54px); }
.trade-asset-total h3 span { color: #8ea4bd; font-size: .4em; }
.trade-summary-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.trade-summary-metrics > div { min-height: 80px; padding: 14px; border: 1px solid rgba(115, 166, 219, .14); border-radius: 12px; background: rgba(4, 13, 25, .42); }
.escrow-stepper { margin: 0 25px; padding: 22px 0; border-bottom: 1px solid rgba(117, 166, 214, .12); }
.payment-instructions { margin: 0; padding: 25px; border: 0; border-radius: 0; background: transparent; }
.payment-instructions > div:first-child h4 { font-size: 34px; color: #f5f9ff; }
.instruction-list { display: grid; gap: 8px; margin: 22px 0; padding: 0; list-style: none; counter-reset: pay-step; }
.instruction-list li { position: relative; min-height: 32px; padding-left: 42px; color: #9cafc4; counter-increment: pay-step; }
.instruction-list li::before { content: counter(pay-step); position: absolute; left: 0; top: -3px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #56baff; font-weight: 800; background: rgba(26, 159, 255, .12); }
.payment-method-card.highlighted { border: 1px solid rgba(42, 156, 255, .3); border-radius: 15px; background: #071321; }
.method-head { border-bottom-color: rgba(112, 163, 215, .14); }
.method-head span { color: #46b4ff; background: rgba(35, 162, 255, .1); }
.payment-detail-row { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 13px 0; }
.payment-detail-row small { grid-column: 1; }
.payment-detail-row strong { grid-column: 1; overflow-wrap: anywhere; }
.payment-detail-row .copy-chip { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #48b4ff; border-color: rgba(65, 176, 255, .25); background: rgba(32, 154, 255, .08); }
.payment-proof-inline { display: grid; gap: 15px; margin-top: 22px; padding: 20px; border: 1px solid rgba(43, 169, 255, .3); border-radius: 16px; background: rgba(13, 40, 66, .5); }
.payment-proof-heading { display: flex; align-items: center; gap: 12px; }
.payment-proof-heading > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #05101e; font-weight: 900; background: #38afff; }
.payment-proof-heading div { display: grid; gap: 3px; }
.payment-proof-heading small { color: #91a7bf; }
.payment-owner-check { display: flex; gap: 10px; align-items: flex-start; color: #c4d2e2; }
.payment-owner-check input { width: 18px; height: 18px; accent-color: #1fa5ff; }
.payment-proof-inline .app-button { min-height: 52px; border-radius: 12px; background: linear-gradient(90deg, #087df0, #19b7ed); }
.trade-countdown-card { margin: 0 25px 20px; grid-template-columns: 1fr auto; align-items: center; border-radius: 14px; }
.trade-countdown-card small { grid-column: 1; }
.trade-countdown-card strong { grid-column: 2; grid-row: 1 / 3; }
.trade-actions-panel { margin: 0 25px 25px; padding-top: 0; border: 0; }
.deposit-note { margin: 0 25px 25px; }
.counterparty-card { padding: 18px; }
.trade-chat-panel { overflow: hidden; }
.trade-chat-head { padding: 17px 18px; border-bottom-color: rgba(110, 162, 215, .14); }
.trade-chat-messages { min-height: 320px; max-height: 480px; padding: 16px; background: rgba(3, 10, 19, .35); }
.trade-chat-bubble { overflow: hidden; }
.trade-chat-form { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 12px; gap: 8px; }
.trade-chat-form textarea { min-height: 44px; max-height: 100px; border-radius: 13px; }
.trade-chat-attach { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(103, 162, 221, .2); border-radius: 50%; color: #59baff; font-size: 25px; cursor: pointer; background: rgba(18, 48, 78, .6); }
.trade-chat-attach input { display: none; }
.trade-chat-file-name { grid-column: 2 / -1; color: #6ebeff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trade-chat-error { grid-column: 2 / -1; }
.chat-image-placeholder { display: block; width: min(100%, 260px); padding: 0; overflow: hidden; border: 0; border-radius: 11px; color: #8fa8c1; background: #071321; cursor: pointer; }
.chat-image-placeholder img { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.p2p-chat-message .chat-image-placeholder { margin-bottom: 7px; }
.p2p-chat-compose { grid-template-columns: 42px minmax(0, 1fr) auto; }
.p2p-chat-compose > small, .p2p-chat-compose > div { grid-column: 2 / -1; }

/* Merchant ad center: restrained pro trading surfaces. */
.professional-ads-page .ads-page-header, .professional-ads-page .ads-overview-card, .professional-ads-page .offer-form {
  border-color: rgba(98, 157, 218, .16);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(12, 25, 43, .98), rgba(7, 16, 29, .98));
  box-shadow: none;
}
.professional-ads-page .ads-exchange-table { overflow: hidden; border: 1px solid rgba(98, 157, 218, .15); border-radius: 16px; }
.professional-ads-page .my-ad-row { border-bottom-color: rgba(98, 157, 218, .12); }
.professional-ads-page .offer-publish-button { background: linear-gradient(90deg, #087df0, #19b7ed); }

/* P2P v2: deliberately flat, Binance-inspired order entry. */
.p2p-order-page { width: 100%; max-width: none; padding: 0; background: #0b111b; }
.binance-order-page {
  width: min(100%, 560px);
  min-height: calc(100dvh - var(--header-h, 72px));
  margin: 0 auto;
  padding: 34px 24px 112px;
  color: #f5f7fa;
  background: #151d29;
}
.binance-order-head { position: relative; min-height: 48px; display: flex; align-items: center; justify-content: center; }
.binance-order-head > a { position: absolute; left: 0; width: 42px; height: 42px; display: grid; place-items: center; color: #e6edf5; text-decoration: none; font-size: 25px; }
.binance-order-head > div { display: flex; align-items: center; gap: 10px; }
.binance-order-head h1 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.usdt-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 900; background: #16a77a; }
.binance-order-price { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 13px 0 30px; color: #a4afbf; font-size: 14px; }
.binance-order-price strong { color: #f4f6f8; font-size: 16px; }
.binance-order-price span { margin-left: 3px; color: #30a7ff; }
.binance-amount-card { padding: 25px 22px 18px; border-radius: 14px; background: #222c3d; }
.binance-amount-tabs { display: flex; gap: 28px; }
.binance-amount-tabs button { position: relative; padding: 0 0 15px; border: 0; color: #7f8a9c; background: transparent; font-size: 18px; font-weight: 700; }
.binance-amount-tabs button.active { color: #fff; }
.binance-amount-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 3px; border-radius: 2px; background: #168fff; }
.binance-amount-input { min-height: 94px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 17px; border-bottom: 1px solid rgba(173, 190, 214, .13); }
.binance-amount-input input { min-width: 0; padding: 0; border: 0; outline: 0; color: #fff; background: transparent; font-size: 54px; font-weight: 600; }
.binance-amount-input input::placeholder { color: #758196; }
.binance-amount-input strong { font-size: 18px; }
.binance-amount-input button { padding: 0; border: 0; color: #32aaff; background: transparent; font-size: 18px; font-weight: 800; }
.binance-order-limit { padding: 18px 0; color: #8d99ab; font-size: 14px; }
.binance-order-receive, .binance-order-fee { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.binance-order-receive { padding: 8px 0; color: #f4f6f8; font-size: 16px; }
.binance-order-receive strong { font-size: 18px; }
.binance-order-fee { padding-top: 8px; color: #7f8b9e; font-size: 12px; }
.binance-payment-card, .binance-advertiser-card { margin-top: 16px; padding: 20px 22px; border-radius: 14px; background: #222c3d; }
.binance-payment-card { display: flex; align-items: center; gap: 10px; }
.binance-payment-card > span { width: 4px; height: 22px; border-radius: 3px; background: #168fff; }
.binance-payment-card > strong { font-size: 18px; }
.binance-payment-card .order-methods { margin-left: auto; }
.binance-advertiser-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.binance-advertiser-card .trader-avatar { width: 42px; height: 42px; flex-basis: 42px; }
.binance-advertiser-card div { display: grid; gap: 3px; }
.binance-advertiser-card small, .binance-advertiser-card em { color: #8e9bad; font-size: 12px; font-style: normal; }
.binance-order-footer { position: fixed; z-index: 20; left: 50%; bottom: 0; width: min(100%, 560px); padding: 14px 24px calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: linear-gradient(180deg, rgba(21, 29, 41, 0), #151d29 23%); }
.order-payment-window { display: grid; grid-template-columns: 32px auto minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 10px; padding: 10px 12px; border: 1px solid rgba(241, 184, 48, .2); border-radius: 9px; background: rgba(241, 184, 48, .07); }
.order-payment-window > svg { width: 18px; height: 18px; justify-self: center; color: #f0b90b; }
.order-payment-window > span { display: grid; }
.order-payment-window small { color: #8fa1b6; font-size: 8px; }
.order-payment-window strong { color: #f4f8fc; font-size: 12px; }
.order-payment-window em { color: #8fa1b6; font-size: 8px; font-style: normal; line-height: 1.4; text-align: right; }
.brx-p2p-market .market-action-methods { display: none; }
.brx-p2p-market .market-action-cell > .p2p-action-payment-time { display: flex !important; align-items: center; justify-content: center; gap: 5px; margin-bottom: 7px; color: #7f94a9; font-size: 10px; white-space: nowrap; text-decoration: none; }
.p2p-action-payment-time svg { width: 14px; height: 14px; color: #7f94a9; }
.binance-order-footer .app-button { width: 100%; min-height: 56px; border: 0; border-radius: 8px; background: #168fff; color: #fff; font-size: 17px; box-shadow: none; }
.binance-order-footer .app-button:disabled { background: #39475c; color: #79869a; opacity: 1; }

/* P2P v2: payment-first settlement room. */
.p2p-settlement-page { width: min(100%, 1180px); margin: 0 auto; color: #f4f7fb; }
.settlement-head { min-height: 86px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 0 4px 18px; }
.settlement-head > div:nth-child(2) { display: grid; gap: 3px; }
.settlement-head small { color: #8291a5; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.settlement-head h1 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.settlement-timer { min-width: 130px; display: grid; justify-items: end; gap: 2px; }
.settlement-timer span { color: #8492a5; font-size: 12px; }
.settlement-timer strong { color: #1aa1ff; font-size: 25px; }
.settlement-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .72fr); gap: 16px; align-items: start; }
.settlement-main, .settlement-chat { min-width: 0; }
.settlement-main { display: grid; gap: 14px; }
.settlement-summary, .settlement-person, .settlement-transfer, .seller-waiting-card, .seller-review-card, .settlement-chat > * { border: 1px solid rgba(136, 164, 198, .14); border-radius: 12px; background: #121b28; }
.settlement-summary { padding: 22px; }
.settlement-summary > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.settlement-summary > div:first-child small { color: #8d9aae; font-size: 13px; }
.settlement-summary > div:first-child strong { font-size: 34px; letter-spacing: -.03em; }
.settlement-summary dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 20px 0 0; overflow: hidden; border-radius: 9px; background: rgba(137, 162, 193, .1); }
.settlement-summary dl > div { display: grid; gap: 5px; padding: 13px; background: #0e1724; }
.settlement-summary dt { color: #78879a; font-size: 11px; }
.settlement-summary dd { margin: 0; font-size: 13px; font-weight: 700; }
.settlement-person { min-height: 68px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px 16px; }
.settlement-person .avatar { width: 40px; height: 40px; }
.settlement-person > div { min-width: 0; display: grid; gap: 1px; }
.settlement-person small, .settlement-person em { color: #8290a3; font-size: 11px; font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.settlement-person a { min-height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 6px; color: #0d1724; background: #39aaff; text-decoration: none; font-size: 12px; font-weight: 800; }
.settlement-transfer { overflow: hidden; }
.settlement-transfer > header { display: flex; gap: 13px; align-items: center; padding: 20px 20px 14px; }
.settlement-transfer > header > span, .payment-proof-heading > span { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 4px; color: #07111e; font-weight: 900; background: #38aaff; }
.settlement-transfer > header small { color: #91a0b4; }
.settlement-transfer > header h2 { margin: 2px 0 0; font-size: 20px; }
.settlement-transfer > header > div { min-width: 0; flex: 1; }
.copy-transfer { min-height: 34px; padding: 0 12px; border: 0; border-radius: 6px; color: #39aaff; background: rgba(41, 158, 255, .1); font-size: 12px; font-weight: 800; }
.settlement-hint { margin: 0; padding: 0 20px 17px; color: #8796aa; font-size: 12px; }
.settlement-transfer .payment-method-list { padding: 0 20px 20px; }
.settlement-transfer .payment-method-card.highlighted { padding: 4px 17px 8px; border-color: rgba(41, 157, 255, .24); border-radius: 10px; background: #0d1826; }
.settlement-transfer .method-head { min-height: 48px; margin: 0; border-bottom: 1px solid rgba(138, 165, 198, .12); }
.settlement-transfer .method-head span { color: #36a9ff; background: rgba(37, 151, 255, .11); }
.settlement-transfer .payment-detail-row { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 12px 0; }
.settlement-transfer .payment-detail-row small { grid-column: 1; }
.settlement-transfer .payment-detail-row strong { grid-column: 1; }
.settlement-transfer .payment-detail-row .copy-chip { grid-column: 2; grid-row: 1 / 3; min-width: 58px; color: #39aaff; border: 0; background: transparent; }
.payment-proof-inline { margin: 0; padding: 20px; border: 0; border-top: 1px solid rgba(138, 165, 198, .12); border-radius: 0; background: transparent; }
.payment-proof-heading { margin-bottom: 3px; }
.payment-proof-inline .form-field input { min-height: 48px; border-radius: 8px; background: #0c1522; }
.payment-proof-inline .receipt-drop { min-height: 116px; border-radius: 8px; background: #0d1724; cursor: pointer; }
.payment-proof-inline .receipt-drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.payment-proof-inline .receipt-drop > span { color: #35a8ff; }
.payment-proof-inline .app-button { min-height: 52px; border-radius: 7px; background: #168fff; }
.payment-owner-check { font-size: 12px; }
.payment-submitted-note { margin: 0 20px 20px; padding: 14px; border-radius: 8px; color: #78d9b8; background: rgba(22, 173, 125, .1); }
.settlement-actions { display: flex; gap: 10px; }
.settlement-actions > * { flex: 1; }
.settlement-main > .deposit-note { margin: 0; border-radius: 9px; font-size: 12px; }
.settlement-chat { display: grid; gap: 12px; }
.settlement-chat .side-section { border: 1px solid rgba(136, 164, 198, .14); }
.settlement-chat .trade-chat-panel { width: 100%; border: 1px solid rgba(136, 164, 198, .14); border-radius: 12px; background: #121b28; }
.settlement-chat .trade-chat-messages { min-height: 390px; max-height: 52dvh; }
.settlement-chat .trade-chat-form { grid-template-columns: 40px minmax(0, 1fr) 42px; }
.binance-payment-head { display: grid; gap: 9px; padding: 8px 0 22px; }
.binance-payment-nav { display: flex; align-items: center; justify-content: space-between; }
.binance-payment-head h1 { margin: 0; font-size: 30px; }
.binance-payment-head p { margin: 0; color: #8e9bad; }
.binance-payment-head p strong { color: #32aaff; }
.binance-cancel-order { border: 0; color: #8f9bad; background: transparent; text-decoration: underline dotted; text-underline-offset: 5px; }
.binance-counterparty { min-height: 68px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 15px; padding: 12px 16px; border: 1px solid rgba(136, 164, 198, .14); border-radius: 12px; background: #121b28; }
.binance-counterparty > div { display: grid; gap: 2px; }
.binance-counterparty small { color: #8794a7; }
.binance-counterparty a { padding: 9px 15px; border-radius: 7px; color: #111827; background: #39aaff; text-decoration: none; font-weight: 800; }
.binance-step-one, .binance-step-two { display: flex; align-items: center; gap: 14px; }
.binance-step-one { padding: 20px; }
.binance-step-one > span, .binance-step-two > span { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; color: #07111e; background: #3aabff; font-weight: 900; }
.binance-step-one h2 { margin: 0; font-size: 20px; }
.binance-pay-amount { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 0 20px 15px 63px; }
.binance-pay-amount small { grid-column: 1; color: #8d9bad; }
.binance-pay-amount strong { grid-column: 1; font-size: 24px; }
.binance-pay-amount button { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.binance-order-details { margin: 0 20px 0 63px; }
.binance-order-details summary { color: #8f9bad; cursor: pointer; }
.binance-order-details dl { display: grid; gap: 9px; margin: 13px 0 0; }
.binance-order-details dl > div { display: flex; justify-content: space-between; gap: 12px; }
.binance-order-details dt { color: #8290a3; }
.binance-order-details dd { margin: 0; }
.binance-step-two { padding: 18px 20px 24px; }
.binance-step-two strong { max-width: 560px; font-size: 15px; line-height: 1.45; }
.mobile-proof-cta { display: none; }
.payment-proof-sheet-backdrop { display: none; }

/* Final responsive hardening for My Ads and settlement actions. */
.professional-ads-page {
  min-width: 0;
  overflow: hidden;
}

.professional-ads-page #adsContent,
.professional-ads-page .ads-exchange-table,
.professional-ads-page .my-ad-row > * {
  min-width: 0;
}

@media (min-width: 901px) {
  .ads-exchange-table .my-ad-row {
    grid-template-columns: minmax(200px, 1.15fr) minmax(110px, .55fr) minmax(180px, .85fr) minmax(140px, .65fr) minmax(220px, .9fr);
  }
}

.ads-exchange-row .ad-row-actions {
  min-width: 0;
}

.ads-exchange-row .ad-row-actions button {
  min-width: 0;
  flex: 1 1 0;
  padding-right: 10px;
  padding-left: 10px;
}

.binance-payment-nav {
  min-width: 0;
  gap: 12px;
}

.binance-payment-nav .trade-status {
  max-width: min(58vw, 240px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Exchange-style dispute center. */
body.dispute-flow-open { overflow: hidden; }

.dispute-flow-backdrop {
  position: fixed;
  z-index: 5200;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 5, 13, .72);
  backdrop-filter: blur(5px);
}

.dispute-review-shell {
  width: 100%;
  margin-top: 18px;
}

.dispute-center {
  width: min(100%, 570px);
  min-width: 0;
  color: #f4f7fb;
  background: #0d1724;
}

.dispute-center.create {
  height: 100dvh;
  overflow-y: auto;
  border-left: 1px solid rgba(116, 157, 204, .18);
  box-shadow: -24px 0 70px rgba(0, 0, 0, .42);
}

.dispute-center.review {
  width: 100%;
  border: 1px solid rgba(116, 157, 204, .16);
  border-radius: 14px;
}

.dispute-center-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(116, 157, 204, .13);
}

.dispute-center-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 184, 63, .32);
  border-radius: 12px;
  color: #f6c55e;
  background: rgba(246, 184, 63, .09);
  font-size: 18px;
  font-weight: 850;
}

.dispute-center-head > div:nth-child(2) { min-width: 0; }
.dispute-center-head span {
  color: #54b7ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dispute-center-head h2 {
  margin: 4px 0 5px;
  font-size: 23px;
  letter-spacing: -.025em;
}

.dispute-center-head p {
  margin: 0;
  color: #8d9db1;
  font-size: 12px;
  line-height: 1.45;
}

.dispute-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(116, 157, 204, .15);
  border-radius: 10px;
  color: #9aabbf;
  background: #111e2d;
  font-size: 23px;
  line-height: 1;
}

.dispute-review-status {
  padding: 7px 10px;
  border-radius: 999px;
  color: #f6c55e !important;
  background: rgba(246, 184, 63, .1);
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.dispute-order-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 24px 0;
  overflow: hidden;
  border: 1px solid rgba(116, 157, 204, .13);
  border-radius: 11px;
  background: #09131f;
}

.dispute-order-strip > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border-right: 1px solid rgba(116, 157, 204, .1);
}

.dispute-order-strip > div:last-child { border-right: 0; }
.dispute-order-strip span {
  color: #78899e;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.dispute-order-strip strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dispute-safety-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 14px 24px 0;
  padding: 13px 14px;
  border-left: 3px solid #2ba9ff;
  border-radius: 8px;
  background: rgba(43, 169, 255, .07);
}

.dispute-safety-note strong { font-size: 12px; }
.dispute-safety-note p {
  margin: 4px 0 0;
  color: #91a1b5;
  font-size: 11px;
  line-height: 1.45;
}

.dispute-safety-note a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(43, 169, 255, .25);
  border-radius: 7px;
  color: #55b8ff;
  text-decoration: none;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.dispute-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  padding: 20px 24px 24px;
}

.dispute-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.dispute-field > span {
  color: #c4d0de;
  font-size: 11px;
  font-weight: 700;
}

.dispute-field em {
  margin-left: 5px;
  color: #718298;
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
}

.dispute-field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(109, 151, 199, .22);
  border-radius: 9px;
  outline: 0;
  color: #f3f7fc;
  background: #091421;
}

.dispute-field :is(input, select) { min-height: 46px; padding: 0 13px; }
.dispute-field textarea { min-height: 104px; padding: 12px 13px; resize: vertical; line-height: 1.5; }
.dispute-field :is(input, select, textarea):focus {
  border-color: rgba(43, 169, 255, .65);
  box-shadow: 0 0 0 3px rgba(43, 169, 255, .08);
}

.dispute-field > small {
  color: #687b92;
  font-size: 9px;
}

.dispute-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 12px;
}

.dispute-upload {
  min-width: 0;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  box-sizing: border-box;
  border: 1px dashed rgba(74, 166, 238, .35);
  border-radius: 9px;
  background: rgba(31, 119, 190, .06);
  cursor: pointer;
}

.dispute-upload.selected { border-style: solid; border-color: rgba(8, 201, 139, .4); }
.dispute-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dispute-upload > span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #48b4ff;
  background: rgba(43, 169, 255, .12);
  font-size: 19px;
}

.dispute-upload > div { min-width: 0; display: grid; gap: 3px; }
.dispute-upload strong,
.dispute-upload small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dispute-upload strong { font-size: 11px; }
.dispute-upload small { color: #71849a; font-size: 9px; }

.dispute-confirm {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #8fa0b4;
  font-size: 10px;
  line-height: 1.45;
}

.dispute-confirm input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  accent-color: #1e9fff;
}

.dispute-form .form-error:empty { display: none; }
.dispute-form .form-error {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 75, 103, .08);
}

.dispute-form-footer {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 10px;
  padding-top: 2px;
}

.dispute-form-footer:has(> :only-child) { grid-template-columns: 1fr; }
.dispute-form-footer button {
  grid-column: auto !important;
  min-height: 48px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.dispute-cancel {
  border: 1px solid rgba(116, 157, 204, .2);
  color: #b8c5d5;
  background: #111e2d;
}

.dispute-submit {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #087df0, #18aeee);
}

.dispute-submit:disabled { opacity: .62; }

.dispute-center .evidence-list {
  margin: 16px 24px 0;
  padding: 0;
}

.dispute-center .evidence-list.empty {
  min-height: 54px;
  padding: 0 14px;
  border: 1px dashed rgba(116, 157, 204, .16);
  border-radius: 9px;
  background: rgba(9, 19, 31, .55);
}

.dispute-center .evidence-item {
  padding: 12px 14px;
  border: 1px solid rgba(116, 157, 204, .14);
  border-radius: 9px;
  background: #09131f;
}

/* Exchange-grade funding wallet */
.wallet-v3 {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 24px 24px 52px;
}

.wallet-page-topbar,
.wallet-page-topbar > div,
.wallet-chain-status,
.wallet-total-block,
.wallet-flow-label,
.wallet-address-label,
.wallet-network-copy > strong,
.wallet-risk-note {
  display: flex;
  align-items: center;
}

.wallet-page-topbar {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.wallet-page-topbar > div { gap: 12px; }
.wallet-page-topbar p,
.wallet-page-topbar h1 { margin: 0; }
.wallet-page-topbar p { color: #7790ab; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wallet-page-topbar h1 { color: #f4f8fc; font-size: 25px; line-height: 1.15; }

.wallet-asset-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(38, 180, 255, .35);
  border-radius: 50%;
  color: #05111e;
  background: linear-gradient(145deg, #45c7ff, #078cef);
  box-shadow: 0 10px 30px rgba(0, 149, 255, .2);
  font-size: 21px;
  font-weight: 900;
}

.wallet-chain-status {
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(79, 211, 162, .18);
  border-radius: 999px;
  color: #8eac9f;
  background: rgba(15, 43, 40, .45);
  font-size: 10px;
  font-weight: 700;
}
.wallet-chain-status i { width: 7px; height: 7px; border-radius: 50%; background: #27d497; box-shadow: 0 0 0 4px rgba(39, 212, 151, .1); }

.wallet-v3 .wallet-balance-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 14px;
  padding: 28px 30px;
  border: 1px solid rgba(44, 162, 236, .24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% -20%, rgba(20, 157, 244, .2), transparent 44%),
    linear-gradient(135deg, #102238, #0b1929 65%, #0a1725);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .16);
}
.wallet-v3 .wallet-balance-card::after { content: ""; position: absolute; right: -60px; bottom: -95px; width: 250px; height: 250px; border: 1px solid rgba(65, 181, 255, .08); border-radius: 50%; }
.wallet-v3 .wallet-total-block { gap: 16px; min-width: 0; }
.wallet-v3 .wallet-summary-icon { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(44, 179, 255, .28); border-radius: 13px; color: #20b7ff; background: rgba(14, 116, 176, .12); }
.wallet-v3 .wallet-summary-icon svg { width: 25px; height: 25px; }
.wallet-v3 .wallet-total-block p { margin: 0 0 3px; color: #88a0b9; font-size: 11px; }
.wallet-v3 .wallet-total-block h2 { margin: 0; color: #f7fbff; font-size: clamp(30px, 3vw, 42px); letter-spacing: -.035em; line-height: 1.08; }
.wallet-v3 .wallet-total-block h2 span { color: #8da1b5; font-size: 13px; letter-spacing: .02em; }
.wallet-v3 .wallet-total-block small { color: #6f879f; font-size: 11px; }

.wallet-v3 .professional-balance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid rgba(125, 166, 207, .13); border-radius: 12px; background: rgba(128, 171, 214, .12); }
.wallet-v3 .professional-balance-grid > div { min-width: 0; padding: 16px; background: rgba(6, 19, 32, .72); }
.wallet-v3 .professional-balance-grid span { display: block; margin-bottom: 7px; color: #7e94aa; font-size: 10px; line-height: 1.25; }
.wallet-v3 .professional-balance-grid strong { color: #eaf2fa; font-size: 15px; white-space: nowrap; }
.wallet-v3 .professional-balance-grid strong small { color: #73899f; font-size: 9px; }
.wallet-v3 .professional-balance-grid .available strong { color: #39d9a0; }

.wallet-v3 .professional-wallet-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 0 0 14px;
  padding: 5px;
  border: 1px solid rgba(119, 158, 197, .14);
  border-radius: 13px;
  background: #091522;
}
.wallet-v3 .professional-wallet-tabs button { display: flex; min-width: 0; min-height: 58px; align-items: center; justify-content: center; gap: 11px; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; color: #768ca3; background: transparent; cursor: pointer; }
.wallet-v3 .professional-wallet-tabs button:hover { color: #bed0e2; background: rgba(255, 255, 255, .025); }
.wallet-v3 .professional-wallet-tabs button.active { border-color: rgba(26, 165, 245, .3); color: #27b8ff; background: linear-gradient(180deg, rgba(13, 126, 194, .2), rgba(10, 75, 119, .17)); box-shadow: inset 0 -2px #16adf5; }
.wallet-v3 .professional-wallet-tabs svg { width: 20px; height: 20px; }
.wallet-v3 .professional-wallet-tabs span { display: grid; gap: 1px; text-align: left; }
.wallet-v3 .professional-wallet-tabs strong { color: currentColor; font-size: 12px; }
.wallet-v3 .professional-wallet-tabs small { color: #667c92; font-size: 9px; }

.wallet-v3 .professional-wallet-workspace { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr); gap: 14px; align-items: start; }
.wallet-v3 .wallet-operation-panel,
.wallet-v3 .wallet-activity-panel { min-width: 0; }
.wallet-v3 .wallet-panel,
.wallet-v3 .wallet-activity-panel { overflow: hidden; border: 1px solid rgba(115, 155, 196, .14); border-radius: 14px; background: #0d1724; box-shadow: 0 14px 40px rgba(0, 0, 0, .12); }
.wallet-v3 .wallet-panel { padding: 24px; }
.wallet-v3 .sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.wallet-v3 .sheet-head h2 { margin: 4px 0; color: #f3f7fb; font-size: 22px; }
.wallet-v3 .sheet-head > div > small { display: block; color: #73889e; font-size: 10px; }
.wallet-v3 .sheet-badge { padding: 7px 10px; border: 1px solid rgba(49, 176, 247, .18); border-radius: 999px; color: #55c4ff; background: rgba(22, 133, 195, .1); font-size: 10px; font-weight: 800; }

.wallet-flow-label { gap: 8px; margin: 0 0 10px; color: #b8c7d7; font-size: 11px; font-weight: 800; }
.wallet-flow-label b,
.wallet-address-label b { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #06131f; background: #26b8ff; font-size: 10px; }

.wallet-v3 .wallet-network-grid { display: grid; gap: 10px; }
.wallet-v3 .wallet-network-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 13px; align-items: center; min-height: 82px; width: 100%; padding: 14px; border: 1px solid rgba(117, 155, 194, .14); border-radius: 11px; color: #dce7f1; background: #091420; text-align: left; cursor: pointer; }
.wallet-v3 .wallet-network-card:hover { border-color: rgba(50, 177, 246, .38); background: #0b1927; }
.wallet-v3 .wallet-network-card.active { border-color: rgba(28, 177, 255, .58); background: linear-gradient(90deg, rgba(12, 90, 139, .2), #0a1724 44%); box-shadow: inset 3px 0 #1cb7ff; }
.wallet-v3 .wallet-network-card.muted { opacity: .58; }
.wallet-v3 .wallet-network-card .network-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; font-size: 9px; font-weight: 900; }
.wallet-v3 .wallet-network-copy { min-width: 0; }
.wallet-v3 .wallet-network-copy > strong { gap: 8px; margin-bottom: 7px; color: #edf5fc; font-size: 12px; }
.wallet-v3 .wallet-network-copy > strong small { padding: 3px 5px; border-radius: 4px; color: #758ca2; background: rgba(124, 158, 191, .1); font-size: 8px; }
.wallet-network-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.wallet-network-meta span { padding: 3px 6px; border: 1px solid rgba(116, 153, 190, .1); border-radius: 5px; color: #758ba1; background: rgba(5, 15, 25, .5); font-size: 8px; }
.wallet-v3 .network-status { justify-self: end; padding: 5px 7px; border-radius: 6px; font-size: 8px; font-weight: 800; }
.wallet-v3 .network-status.live { color: #34d49a; background: rgba(26, 193, 132, .1); }
.wallet-v3 .network-status.soon { color: #7d91a5; background: rgba(125, 145, 165, .08); }
.wallet-v3 .wallet-network-inset { min-width: 0; }

.wallet-v3 .deposit-address-card.deposit-address-detail { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin: 2px 0 0; padding: 18px; border: 1px solid rgba(40, 175, 246, .18); border-radius: 11px; background: linear-gradient(135deg, rgba(13, 67, 102, .16), rgba(5, 15, 25, .68)); }
.wallet-address-label { grid-column: 1 / -1; gap: 9px; padding-bottom: 2px; }
.wallet-address-label span { display: grid; gap: 1px; }
.wallet-address-label strong { color: #d8e5f0; font-size: 11px; }
.wallet-address-label small { color: #71879d; font-size: 9px; }
.wallet-v3 .deposit-qr-card { display: grid; width: 110px; height: 110px; place-items: center; padding: 7px; border-radius: 9px; background: #fff; }
.wallet-v3 .deposit-qr-card svg { width: 100%; height: 100%; }
.wallet-v3 .deposit-address-main { min-width: 0; }
.wallet-v3 .deposit-address-main > span { color: #71879c; font-size: 9px; }
.wallet-v3 .deposit-address-main > strong { display: block; overflow-wrap: anywhere; margin: 6px 0; color: #f0f7fd; font: 700 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.wallet-v3 .deposit-address-main > small { display: block; max-width: 470px; color: #75899d; font-size: 9px; line-height: 1.55; }
.wallet-copy-address { min-height: 40px; padding: 0 13px; border: 1px solid rgba(27, 171, 247, .36); border-radius: 8px; color: #5dc9ff; background: rgba(10, 114, 173, .13); font-size: 10px; font-weight: 800; cursor: pointer; }
.wallet-copy-address:hover { background: rgba(18, 142, 207, .22); }
.wallet-copy-address:disabled { opacity: .55; cursor: wait; }
.wallet-risk-note { gap: 9px; margin-top: 14px; padding: 10px 12px; border-radius: 8px; color: #879bad; background: rgba(221, 165, 49, .06); font-size: 9px; line-height: 1.45; }
.wallet-risk-note svg { flex: 0 0 16px; width: 16px; height: 16px; color: #e4a936; }

.wallet-v3 .withdraw-network-field { margin-bottom: 18px; }
.wallet-v3 .withdraw-network-field > span { display: block; margin-bottom: 8px; color: #8da1b4; font-size: 10px; font-weight: 700; }
.wallet-v3 .withdraw-network-field > div { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 12px; border: 1px solid rgba(114, 153, 192, .15); border-radius: 10px; background: #091420; }
.wallet-v3 .withdraw-network-copy { display: grid; gap: 3px; }
.wallet-v3 .withdraw-network-copy small:last-child { color: #6e8499; font-size: 9px; }
.wallet-v3 .withdraw-network-field b { color: #35d29a; font-size: 9px; }
.wallet-v3 .wallet-action-form { display: grid; gap: 14px; }
.wallet-v3 .wallet-action-form .form-field { margin: 0; }
.wallet-v3 .wallet-action-form .form-field > span { margin-bottom: 7px; color: #8da2b5; font-size: 10px; font-weight: 700; }
.wallet-v3 .wallet-action-form input { min-height: 46px; border-radius: 9px; background: #08131f; }
.wallet-v3 .withdraw-amount-field > div { display: flex; align-items: center; overflow: hidden; border: 1px solid rgba(115, 155, 194, .18); border-radius: 9px; background: #08131f; }
.wallet-v3 .withdraw-amount-field input { flex: 1; min-width: 0; border: 0; }
.wallet-v3 .withdraw-amount-field b { color: #b8c9d9; font-size: 10px; }
.wallet-v3 .withdraw-amount-field button { margin: 0 9px; border: 0; color: #33baff; background: transparent; font-size: 9px; font-weight: 800; }
.wallet-v3 .withdraw-available { display: flex; justify-content: space-between; color: #758ba0; font-size: 9px; }
.wallet-v3 .withdraw-available strong { color: #b8c8d8; }
.wallet-v3 .withdraw-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid rgba(116, 154, 191, .13); border-radius: 9px; background: rgba(115, 153, 191, .12); }
.wallet-v3 .withdraw-summary span { display: grid; gap: 5px; padding: 12px; color: #73899e; background: #091420; font-size: 9px; }
.wallet-v3 .withdraw-summary strong { color: #e3edf5; font-size: 12px; }
.wallet-v3 .withdrawal-flow-primary { min-height: 46px; border: 0; border-radius: 9px; color: #03101b; background: linear-gradient(90deg, #19b6ff, #4bc9ff); font-size: 11px; font-weight: 900; cursor: pointer; }
.wallet-v3 .withdrawal-flow-primary:hover { filter: brightness(1.08); }

.wallet-v3 .wallet-feature-preview { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; margin-bottom: 18px; padding: 14px; border: 1px solid rgba(50, 181, 247, .14); border-radius: 10px; background: rgba(11, 91, 137, .08); }
.wallet-v3 .wallet-feature-preview > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 10px; color: #2dbaff; background: rgba(25, 160, 230, .11); }
.wallet-v3 .wallet-feature-preview h3 { margin: 0 0 3px; color: #e5eef6; font-size: 12px; }
.wallet-v3 .wallet-feature-preview p { margin: 0; color: #74899e; font-size: 9px; line-height: 1.45; }

.wallet-v3 .wallet-activity-panel { padding: 0; }
.wallet-v3 .wallet-activity-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 18px 15px; border-bottom: 1px solid rgba(115, 153, 191, .11); }
.wallet-v3 .wallet-activity-head h3 { margin: 3px 0 0; color: #eef5fb; font-size: 15px; }
.wallet-activity-count { display: grid; min-width: 26px; height: 26px; padding: 0 7px; place-items: center; border-radius: 8px; color: #65cfff; background: rgba(32, 170, 239, .1); font-size: 9px; font-weight: 900; }
.wallet-v3 .wallet-activity-list { padding: 4px 10px; }
.wallet-v3 .wallet-activity-row { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px 7px; border-bottom: 1px solid rgba(116, 153, 190, .09); border-radius: 7px; }
.wallet-v3 .wallet-activity-row:hover { background: rgba(65, 139, 196, .055); }
.wallet-v3 .wallet-activity-mark { width: 34px; height: 34px; }
.wallet-v3 .wallet-activity-main strong { font-size: 10px; }
.wallet-v3 .wallet-activity-main small,
.wallet-v3 .wallet-activity-side small { font-size: 8px; }
.wallet-v3 .wallet-activity-side { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; }
.wallet-v3 .wallet-activity-side strong { font-size: 9px; }
.wallet-v3 .wallet-activity-panel > a { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 10px 10px; padding: 10px; border-radius: 8px; color: #6ebfe9; background: rgba(19, 127, 185, .07); font-size: 9px; font-weight: 700; }
.wallet-v3 .wallet-activity-panel > a svg { width: 12px; }
.wallet-v3 .wallet-activity-empty { padding: 42px 20px; }

@media (max-width: 980px) {
  .wallet-v3 .wallet-balance-card { grid-template-columns: 1fr; gap: 20px; }
  .wallet-v3 .professional-wallet-workspace { grid-template-columns: 1fr; }
  .wallet-v3 .wallet-activity-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .wallet-v3 .wallet-activity-side { grid-column: auto; display: grid; justify-items: end; text-align: right; }
}

/* Keep the familiar balance card while retaining the redesigned wallet flows below. */
.wallet-v3 .wallet-original-summary {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--surface), rgba(4, 29, 51, .9));
  box-shadow: none;
}
.wallet-v3 .wallet-original-summary .wallet-total-block { gap: 13px; }
.wallet-v3 .wallet-original-summary .wallet-summary-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(0, 184, 255, .3);
  border-radius: 13px;
  color: var(--blue-2);
  background: rgba(0, 153, 255, .1);
}
.wallet-v3 .wallet-original-summary .wallet-summary-icon svg { width: 22px; height: 22px; }
.wallet-v3 .wallet-original-summary .wallet-total-block p,
.wallet-v3 .wallet-original-summary .wallet-total-block h2,
.wallet-v3 .wallet-original-summary .wallet-total-block small { margin: 0; }
.wallet-v3 .wallet-original-summary .wallet-total-block p,
.wallet-v3 .wallet-original-summary .wallet-total-block small { color: var(--muted); font-size: 9px; }
.wallet-v3 .wallet-original-summary .wallet-total-block h2 { margin: 2px 0; color: inherit; font-size: clamp(29px, 3.1vw, 42px); line-height: 1; letter-spacing: normal; }
.wallet-v3 .wallet-original-summary .professional-balance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.wallet-v3 .wallet-original-summary .professional-balance-grid > div { min-width: 0; padding: 10px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 9px; background: rgba(2, 9, 18, .35); }
.wallet-v3 .wallet-original-summary .professional-balance-grid span { display: block; min-height: 0; margin: 0; color: var(--muted); font-size: 8px; }
.wallet-v3 .wallet-original-summary .professional-balance-grid strong { display: block; margin-top: 3px; color: inherit; font-size: 11px; white-space: normal; }
.wallet-v3 .wallet-original-summary .professional-balance-grid .available strong { color: var(--green); }
.wallet-v3 .wallet-original-summary .professional-balance-grid .locked strong { color: var(--blue-2); }
.wallet-v3 .wallet-original-summary .professional-balance-grid .pending strong { color: var(--yellow); }

/* Unified trader conversations */
.p2p-chat-room { grid-template-rows: auto auto minmax(0, 1fr) auto; }
.conversation-order-count { margin-top: 3px; color: #647b91 !important; font-size: 8px !important; }
.p2p-conversation-orders { display: flex; gap: 7px; overflow-x: auto; padding: 9px 14px; border-bottom: 1px solid rgba(112, 153, 193, .12); background: #0d1621; scrollbar-width: thin; }
.p2p-conversation-orders a { display: grid; grid-template-columns: auto auto; gap: 2px 8px; flex: 0 0 auto; min-width: 132px; padding: 7px 9px; border: 1px solid rgba(117, 155, 194, .12); border-radius: 7px; color: #8ca0b3; background: rgba(5, 14, 23, .6); text-decoration: none; }
.p2p-conversation-orders a.active { border-color: rgba(31, 169, 246, .4); background: rgba(14, 116, 175, .12); }
.p2p-conversation-orders strong { color: #dce7f1; font-size: 8px; }
.p2p-conversation-orders span { color: #6cc8f7; font-size: 8px; }
.p2p-conversation-orders em { grid-column: 1 / -1; color: #71869a; font-size: 7px; font-style: normal; text-transform: capitalize; }
.p2p-message-order { width: fit-content; padding: 2px 5px; border-radius: 4px; color: #6f879d; background: rgba(101, 137, 171, .08); font-size: 7px; font-style: normal; }
.p2p-chat-message.mine .p2p-message-order { justify-self: end; color: #65bde9; }

/* Admin dispute case review center */
.admin-dispute-cases { display: grid; gap: 18px; }
.admin-dispute-case { overflow: hidden; border: 1px solid rgba(116, 157, 198, .16); border-radius: 14px; background: #0b1521; box-shadow: 0 16px 44px rgba(0, 0, 0, .14); }
.admin-case-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border-bottom: 1px solid rgba(116, 157, 198, .12); background: linear-gradient(135deg, rgba(18, 89, 131, .14), rgba(8, 18, 29, .7)); }
.admin-case-head span,
.admin-case-panel header span,
.admin-case-decision > div > span,
.admin-case-reason > span { color: #5dbce9; font-size: 8px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.admin-case-head h3 { margin: 5px 0 3px; color: #f1f6fb; font-size: 20px; }
.admin-case-head h3 em { color: #8da1b4; font-size: 12px; font-style: normal; font-weight: 700; }
.admin-case-head p { margin: 0; color: #71879c; font-size: 9px; }
.admin-case-head > strong { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgba(239, 179, 52, .22); border-radius: 999px; color: #e9b746; background: rgba(239, 179, 52, .07); font-size: 8px; text-transform: uppercase; }
.admin-case-head > strong i { width: 6px; height: 6px; border-radius: 50%; background: #e9b746; box-shadow: 0 0 0 4px rgba(233, 183, 70, .1); }

.admin-case-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 18px 20px 0; overflow: hidden; border: 1px solid rgba(115, 154, 193, .13); border-radius: 10px; background: rgba(115, 154, 193, .12); }
.admin-case-summary > div { min-width: 0; padding: 13px; background: #09131e; }
.admin-case-summary span,
.admin-case-parties span { display: block; margin-bottom: 5px; color: #71879c; font-size: 8px; }
.admin-case-summary strong { display: block; overflow: hidden; color: #e4edf5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-case-summary > div:first-child strong { color: #3fd9a0; }

.admin-case-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 20px 0; }
.admin-case-parties > div { padding: 12px 14px; border: 1px solid rgba(114, 153, 191, .12); border-radius: 9px; background: rgba(6, 16, 26, .62); }
.admin-case-parties strong { color: #e3edf5; font-size: 11px; }
.admin-case-parties small { display: block; margin-top: 3px; color: #6c8195; font-size: 8px; }
.admin-case-reason { display: grid; gap: 5px; margin: 10px 20px 0; padding: 12px 14px; border-left: 3px solid #e4a932; border-radius: 0 8px 8px 0; background: rgba(228, 169, 50, .055); }
.admin-case-reason strong { color: #d9e4ee; font-size: 10px; line-height: 1.5; }

.admin-case-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 20px 0; }
.admin-case-panel { overflow: hidden; border: 1px solid rgba(115, 154, 193, .12); border-radius: 10px; background: rgba(6, 16, 26, .58); }
.admin-case-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid rgba(115, 154, 193, .1); }
.admin-case-panel h4,
.admin-case-decision h4 { margin: 3px 0 0; color: #e7eff7; font-size: 12px; }
.admin-case-panel header button,
.admin-case-message button,
.admin-evidence-item > button { min-height: 30px; padding: 0 9px; border: 1px solid rgba(35, 169, 242, .28); border-radius: 6px; color: #61c7fa; background: rgba(17, 124, 181, .1); font-size: 8px; font-weight: 800; cursor: pointer; }
.admin-case-panel header em { color: #71879c; font-size: 8px; font-style: normal; }
.admin-case-panel dl { margin: 0; padding: 7px 14px 11px; }
.admin-case-panel dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(115, 154, 193, .075); }
.admin-case-panel dl > div:last-child { border-bottom: 0; }
.admin-case-panel dt { color: #71869a; font-size: 8px; }
.admin-case-panel dd { margin: 0; color: #dbe6ef; font-size: 9px; text-align: right; overflow-wrap: anywhere; }

.admin-case-timeline { display: grid; gap: 0; margin: 0; padding: 11px 14px; list-style: none; }
.admin-case-timeline li { position: relative; display: grid; grid-template-columns: 13px 1fr; gap: 9px; min-height: 42px; }
.admin-case-timeline li:not(:last-child)::after { content: ""; position: absolute; top: 13px; bottom: -2px; left: 5px; width: 1px; background: rgba(112, 153, 193, .2); }
.admin-case-timeline i { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 2px; border: 2px solid #526b82; border-radius: 50%; background: #09131e; }
.admin-case-timeline .done i { border-color: #35d198; background: #35d198; }
.admin-case-timeline .warning i { border-color: #e5aa35; background: #e5aa35; }
.admin-case-timeline span { display: grid; align-content: start; gap: 2px; }
.admin-case-timeline strong { color: #cfdbe6; font-size: 9px; }
.admin-case-timeline small { color: #6d8296; font-size: 8px; }

.admin-case-chat,
.admin-case-evidence { margin: 10px 20px 0; }
.admin-case-chat > div { max-height: 310px; overflow-y: auto; padding: 12px 14px; }
.admin-case-message { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; margin-bottom: 11px; }
.admin-case-message > span { height: fit-content; padding: 4px 6px; border-radius: 5px; color: #5fc7fa; background: rgba(24, 136, 195, .1); font-size: 7px; font-weight: 900; text-align: center; text-transform: uppercase; }
.admin-case-message.seller > span { color: #45d6a0; background: rgba(32, 176, 126, .1); }
.admin-case-message > div { min-width: 0; }
.admin-case-message strong { color: #dbe6ef; font-size: 9px; }
.admin-case-message p { width: fit-content; max-width: 85%; margin: 4px 0; padding: 8px 10px; border-radius: 8px 8px 8px 2px; color: #c9d6e2; background: #111f2e; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.admin-case-message small { display: block; color: #667d92; font-size: 7px; }
.admin-case-message button { margin: 5px 0; }

.admin-case-evidence > div { display: grid; gap: 8px; padding: 12px 14px; }
.admin-evidence-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid rgba(113, 153, 192, .1); border-radius: 8px; background: #09131e; }
.admin-evidence-item > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #62c9fa; background: rgba(24, 142, 204, .1); font-size: 8px; font-weight: 900; }
.admin-evidence-item strong { color: #d9e4ed; font-size: 9px; }
.admin-evidence-item p { margin: 3px 0; color: #93a6b8; font-size: 8px; line-height: 1.45; }
.admin-evidence-item small { color: #647b90; font-size: 7px; }
.admin-case-empty { margin: 0; padding: 18px; color: #71869a; font-size: 9px; text-align: center; }

.admin-case-decision { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(280px, 1.35fr); gap: 14px 18px; margin: 16px 20px 20px; padding: 16px; border: 1px solid rgba(226, 169, 52, .18); border-radius: 10px; background: linear-gradient(135deg, rgba(226, 169, 52, .055), rgba(7, 17, 27, .7)); }
.admin-case-decision > div p { margin: 5px 0 0; color: #788da1; font-size: 8px; line-height: 1.5; }
.admin-case-decision label { display: grid; gap: 6px; }
.admin-case-decision label > span { color: #9cafc0; font-size: 8px; font-weight: 800; }
.admin-case-decision label b { color: #e4a934; font-size: 7px; text-transform: uppercase; }
.admin-case-decision textarea { width: 100%; min-height: 76px; padding: 10px; border: 1px solid rgba(116, 157, 198, .18); border-radius: 8px; outline: 0; color: #e3edf5; background: #07111c; font: inherit; font-size: 9px; resize: vertical; }
.admin-case-decision textarea:focus { border-color: rgba(35, 170, 244, .55); box-shadow: 0 0 0 3px rgba(32, 163, 236, .08); }
.admin-case-error { grid-column: 1 / -1; min-height: 0; color: #ff6a82; font-size: 8px; }
.admin-case-decision footer { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.admin-case-decision footer button { min-height: 42px; border-radius: 8px; font-size: 9px; font-weight: 900; }
.admin-case-decision footer button:disabled { opacity: .42; cursor: not-allowed; }

@media (max-width: 900px) {
  .admin-case-summary { grid-template-columns: repeat(2, 1fr); }
  .admin-case-review-grid { grid-template-columns: 1fr; }
  .admin-case-decision { grid-template-columns: 1fr; }
}
