/* TradeVision v1.6.2 funding, wallet and settlement screens */
.ets-app.ets-ui-v162 {
  --tv-page-surface: #1b2229;
  --tv-page-surface-2: #20272e;
  --tv-page-border: rgba(148, 163, 184, .13);
}

.ets-ui-v162 .ets-funding-page {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

.ets-ui-v162 .ets-funding-head {
  align-items: flex-start;
  margin: 4px 0 30px;
}

.ets-ui-v162 .ets-funding-head h1 {
  font-size: clamp(27px, 2.2vw, 38px);
  letter-spacing: -.035em;
}

.ets-ui-v162 .ets-funding-head p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.ets-ui-v162 .ets-funding-head .ets-actions button,
.ets-ui-v162 .ets-wallet-actions button {
  min-width: 118px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: #282f38;
  color: #eef2f6;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

.ets-ui-v162 .ets-funding-head .ets-actions button.primary,
.ets-ui-v162 .ets-wallet-actions button.primary {
  border-color: var(--tv-gold-light);
  background: linear-gradient(135deg, #ffd63d, #f5bd28);
  color: #171208;
  box-shadow: 0 10px 24px rgba(245, 189, 40, .18);
}

.ets-ui-v162 .ets-wallet-tabs {
  display: flex;
  gap: 28px;
  margin: 0 0 30px;
  padding: 0 8px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(148, 163, 184, .22);
}

.ets-ui-v162 .ets-wallet-tabs a {
  position: relative;
  min-width: max-content;
  padding: 0 0 16px;
  color: #93a3b6;
  font-size: 14px;
  font-weight: 800;
}

.ets-ui-v162 .ets-wallet-tabs a.active {
  color: #f4f6f8;
}

.ets-ui-v162 .ets-wallet-tabs a.active:after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #ffd02f;
  content: "";
}

.ets-ui-v162 .ets-wallet-summary-v2 {
  display: flex;
  min-height: 164px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding: 30px 34px;
  border: 1px solid var(--tv-page-border);
  border-radius: 16px;
  background: var(--tv-page-surface);
  box-shadow: none;
}

.ets-ui-v162 .ets-wallet-summary-v2 > div {
  display: grid;
  gap: 10px;
}

.ets-ui-v162 .ets-wallet-summary-v2 span {
  color: #8698ad;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ets-ui-v162 .ets-wallet-summary-v2 strong {
  color: #f6f7f8;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 850;
  letter-spacing: -.04em;
}

.ets-ui-v162 .ets-wallet-summary-v2 strong small {
  color: #8190a2;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.ets-ui-v162 .ets-wallet-summary-v2 em {
  color: #18d38f;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.ets-ui-v162 .ets-wallet-summary-icon {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 16px;
  background: rgba(148, 163, 184, .13);
  color: rgba(148, 163, 184, .23) !important;
}

.ets-ui-v162 .ets-wallet-summary-icon svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.5;
}

.ets-ui-v162 .ets-wallet-assets-panel,
.ets-ui-v162 .ets-request-table-panel {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--tv-page-border);
  border-radius: 16px;
  background: var(--tv-page-surface);
  box-shadow: none;
}

.ets-ui-v162 .ets-wallet-assets-table,
.ets-ui-v162 .ets-request-table {
  min-width: 760px;
}

.ets-ui-v162 .ets-wallet-assets-table th,
.ets-ui-v162 .ets-request-table th {
  height: 58px;
  padding: 16px 30px;
  color: #8194ab;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  background: #1d242b;
}

.ets-ui-v162 .ets-wallet-assets-table td,
.ets-ui-v162 .ets-request-table td {
  min-height: 72px;
  padding: 18px 30px;
  border-bottom-color: rgba(148, 163, 184, .1);
  color: #dbe2ea;
  font-size: 12px;
}

.ets-ui-v162 .ets-wallet-assets-table tbody tr:last-child td,
.ets-ui-v162 .ets-request-table tbody tr:last-child td {
  border-bottom: 0;
}

.ets-ui-v162 .ets-wallet-assets-table td:last-child,
.ets-ui-v162 .ets-wallet-assets-table th:last-child {
  text-align: right;
}

.ets-ui-v162 .ets-wallet-assets-table td > strong,
.ets-ui-v162 .ets-request-table td > strong {
  display: block;
  color: #f7f8f9;
  font-weight: 850;
}

.ets-ui-v162 .ets-asset-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ets-ui-v162 .ets-asset-cell > span:last-child {
  display: grid;
  gap: 2px;
}

.ets-ui-v162 .ets-asset-cell strong {
  color: #f4f6f8;
  font-size: 14px;
}

.ets-ui-v162 .ets-asset-cell small,
.ets-ui-v162 .ets-asset-price,
.ets-ui-v162 .ets-usdt-value,
.ets-ui-v162 .ets-request-date small {
  display: block;
  margin-top: 3px;
  color: #7f91a7;
  font-size: 10px;
}

.ets-ui-v162 .ets-asset-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  background: #2d3742;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.ets-ui-v162 .ets-asset-icon.btc { background: #f7931a; }
.ets-ui-v162 .ets-asset-icon.eth { background: #323b4b; color: #8091c7; }
.ets-ui-v162 .ets-asset-icon.usdt { background: #159d8c; }
.ets-ui-v162 .ets-asset-icon.usdc { background: #2775ca; }
.ets-ui-v162 .ets-asset-icon.xrp { background: #f5f7f8; color: #111923; }
.ets-ui-v162 .ets-asset-icon.bnb { background: #f3ba2f; color: #111923; }
.ets-ui-v162 .ets-asset-icon.sol { background: linear-gradient(135deg, #9945ff, #14f195); }
.ets-ui-v162 .ets-asset-icon.doge { background: #c2a633; }
.ets-ui-v162 .ets-muted-value { color: #718297 !important; }

.ets-ui-v162 .ets-request-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.ets-ui-v162 .ets-request-stat {
  display: grid;
  min-height: 103px;
  align-content: center;
  gap: 12px;
  padding: 22px 24px;
  border: 1px solid var(--tv-page-border);
  border-radius: 16px;
  background: var(--tv-page-surface);
}

.ets-ui-v162 .ets-request-stat span {
  color: #8a9cb1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ets-ui-v162 .ets-request-stat strong {
  color: #f7f8f9;
  font-size: 25px;
  line-height: 1;
}

.ets-ui-v162 .ets-request-stat.pending { border-color: rgba(255, 208, 47, .14); }
.ets-ui-v162 .ets-request-stat.pending span,
.ets-ui-v162 .ets-request-stat.pending strong { color: #ffd02f; }
.ets-ui-v162 .ets-request-stat.approved { border-color: rgba(24, 211, 143, .14); }
.ets-ui-v162 .ets-request-stat.approved span,
.ets-ui-v162 .ets-request-stat.approved strong { color: #18d38f; }
.ets-ui-v162 .ets-request-stat.rejected { border-color: rgba(255, 73, 104, .14); }
.ets-ui-v162 .ets-request-stat.rejected span,
.ets-ui-v162 .ets-request-stat.rejected strong { color: #ff4968; }

.ets-ui-v162 .ets-request-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #aab6c3;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ets-ui-v162 .ets-request-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.ets-ui-v162 .ets-request-status.pending { color: #ffd02f; }
.ets-ui-v162 .ets-request-status.approved { color: #18d38f; }
.ets-ui-v162 .ets-request-status.rejected { color: #ff4968; }

.ets-ui-v162 .ets-proof-cell {
  display: flex;
  min-width: 220px;
  align-items: center;
  gap: 12px;
}

.ets-ui-v162 .ets-proof-cell > div {
  display: grid;
  gap: 3px;
}

.ets-ui-v162 .ets-proof-cell small {
  color: #788a9e;
  font-size: 9px;
}

.ets-ui-v162 .ets-proof-thumb {
  display: block;
  width: 62px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 7px;
  background: #111820;
}

.ets-ui-v162 .ets-proof-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ets-ui-v162 .ets-proof-file,
.ets-ui-v162 .ets-no-proof {
  display: grid;
  min-width: 68px;
  min-height: 38px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 7px;
  color: #d8b65d;
  font-size: 10px;
}

.ets-ui-v162 .ets-no-proof { color: #6f8195; }
.ets-ui-v162 .ets-request-date { text-align: right; }
.ets-ui-v162 .ets-request-date strong { color: #f4f6f8; }
.ets-ui-v162 .ets-destination {
  display: block;
  max-width: 180px;
  overflow: hidden;
  color: #a9b5c3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ets-ui-v162 .ets-request-empty-row td { padding: 0 !important; }
.ets-ui-v162 .ets-request-empty {
  display: grid;
  min-height: 210px;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #75879c;
}

.ets-ui-v162 .ets-request-empty span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #536172;
}

.ets-ui-v162 .ets-request-empty svg { width: 38px; height: 38px; }
.ets-ui-v162 .ets-request-empty p { margin: 0; font-size: 12px; }

.ets-ui-v162 .ets-funding-modal {
  width: min(620px, 100%);
  padding: 30px;
  border-radius: 18px;
  background: #161e26;
}

.ets-ui-v162 .ets-modal-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--tv-gold-light);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ets-ui-v162 .ets-funding-modal h3 {
  margin-bottom: 6px;
  color: #f7f8f9;
  font-size: 25px;
}

.ets-ui-v162 .ets-funding-modal > p { margin: 0 0 22px; font-size: 12px; }
.ets-ui-v162 .ets-funding-form { gap: 15px; }
.ets-ui-v162 .ets-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ets-ui-v162 .ets-funding-form label {
  display: grid;
  gap: 7px;
  color: #9aabba;
  font-size: 10px;
  font-weight: 800;
}

.ets-ui-v162 .ets-funding-form input,
.ets-ui-v162 .ets-funding-form select {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 9px;
  outline: 0;
  background: #0d151c;
  color: #eef2f5;
  font: inherit;
}

.ets-ui-v162 .ets-funding-form input:focus,
.ets-ui-v162 .ets-funding-form select:focus {
  border-color: rgba(220, 174, 69, .65);
  box-shadow: 0 0 0 3px rgba(220, 174, 69, .09);
}

.ets-ui-v162 .ets-proof-upload {
  padding: 15px;
  border: 1px dashed rgba(220, 174, 69, .32);
  border-radius: 10px;
  background: rgba(220, 174, 69, .035);
}

.ets-ui-v162 .ets-proof-upload small { color: #718397; font-weight: 500; }
.ets-ui-v162 .ets-submit-wide { width: 100%; min-height: 48px; border-radius: 10px; font-weight: 900; }

@media (max-width: 1050px) {
  .ets-ui-v162 .ets-request-table-panel { overflow-x: auto; }
  .ets-ui-v162 .ets-request-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .ets-ui-v162 .ets-funding-head { margin-bottom: 22px; }
  .ets-ui-v162 .ets-funding-head .ets-actions { width: 100%; }
  .ets-ui-v162 .ets-funding-head .ets-actions button { width: 100%; }
  .ets-ui-v162 .ets-wallet-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .ets-ui-v162 .ets-wallet-actions button { width: 100%; min-width: 0; padding-inline: 8px; }
  .ets-ui-v162 .ets-wallet-summary-v2 { min-height: 138px; padding: 24px; }
  .ets-ui-v162 .ets-wallet-summary-icon { width: 64px; height: 64px; }
  .ets-ui-v162 .ets-wallet-summary-icon svg { width: 34px; height: 34px; }
  .ets-ui-v162 .ets-form-grid { grid-template-columns: 1fr; }
  .ets-ui-v162 .ets-funding-modal { padding: 24px 18px; }

  .ets-ui-v162 .ets-wallet-assets-panel,
  .ets-ui-v162 .ets-request-table-panel { overflow: visible; border: 0; background: transparent; }
  .ets-ui-v162 .ets-wallet-assets-table,
  .ets-ui-v162 .ets-request-table { min-width: 0; border-collapse: separate; border-spacing: 0 10px; }
  .ets-ui-v162 .ets-wallet-assets-table thead,
  .ets-ui-v162 .ets-request-table thead { display: none; }
  .ets-ui-v162 .ets-wallet-assets-table tbody,
  .ets-ui-v162 .ets-wallet-assets-table tr,
  .ets-ui-v162 .ets-wallet-assets-table td,
  .ets-ui-v162 .ets-request-table tbody,
  .ets-ui-v162 .ets-request-table tr,
  .ets-ui-v162 .ets-request-table td { display: block; width: 100%; }
  .ets-ui-v162 .ets-wallet-assets-table tr,
  .ets-ui-v162 .ets-request-table tr:not(.ets-request-empty-row) {
    overflow: hidden;
    border: 1px solid var(--tv-page-border);
    border-radius: 14px;
    background: var(--tv-page-surface);
  }
  .ets-ui-v162 .ets-wallet-assets-table td,
  .ets-ui-v162 .ets-request-table td {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    text-align: right !important;
    white-space: normal;
  }
  .ets-ui-v162 .ets-wallet-assets-table td:before,
  .ets-ui-v162 .ets-request-table td:before {
    flex: 0 0 105px;
    color: #74869a;
    content: attr(data-label);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
  }
  .ets-ui-v162 .ets-wallet-assets-table td:first-child,
  .ets-ui-v162 .ets-request-table td:first-child { padding-top: 16px; }
  .ets-ui-v162 .ets-wallet-assets-table td:last-child,
  .ets-ui-v162 .ets-request-table td:last-child { padding-bottom: 16px; border-bottom: 0; }
  .ets-ui-v162 .ets-proof-cell { min-width: 0; justify-content: flex-end; }
  .ets-ui-v162 .ets-destination { max-width: 185px; }
  .ets-ui-v162 .ets-request-date { text-align: right; }
  .ets-ui-v162 .ets-request-empty-row { border: 1px solid var(--tv-page-border) !important; }
}

@media (max-width: 480px) {
  .ets-ui-v162 .ets-request-stats { gap: 10px; }
  .ets-ui-v162 .ets-request-stat { min-height: 88px; padding: 17px; }
  .ets-ui-v162 .ets-request-stat strong { font-size: 22px; }
  .ets-ui-v162 .ets-wallet-tabs { gap: 20px; padding-inline: 2px; }
  .ets-ui-v162 .ets-wallet-summary-v2 { align-items: flex-start; }
  .ets-ui-v162 .ets-wallet-summary-icon { display: none; }
  .ets-ui-v162 .ets-wallet-actions { grid-template-columns: 1fr 1fr; }
  .ets-ui-v162 .ets-wallet-actions button:last-child { grid-column: 1 / -1; }
  .ets-ui-v162 .ets-proof-cell { align-items: flex-end; flex-direction: column; }
}
