/* Modern exchange UI – light minimalist (matches site #0052fe accent) */
:root {
  --ex-bg: #f5f5f5;
  --ex-bg-card: #ffffff;
  --ex-border: #eaecef;
  --ex-text: #1e2329;
  --ex-text-secondary: #707a8a;
  --ex-primary: #0052fe;
  --ex-primary-hover: #0046d9;
  --ex-accent: #fcd535;
  --ex-success: #0ecb81;
  --ex-danger: #f6465d;
  --ex-radius: 12px;
  --ex-radius-sm: 8px;
  --ex-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --ex-header-h: 50px;
}

html, body {
  background: var(--ex-bg) !important;
  color: var(--ex-text);
}

/* Override base2 dark input focus */
input:focus, select:focus, textarea:focus {
  background: #fff !important;
  outline: none !important;
  border-color: var(--ex-primary) !important;
  box-shadow: 0 0 0 2px rgba(0, 82, 254, 0.12) !important;
}

.fcy { color: #050505 !important; }
.fcch { color: var(--ex-text-secondary) !important; }
.fcc, .fch { color: var(--ex-text) !important; }
.green, .bgreen { color: var(--ex-success) !important; }
.red, .bred { color: var(--ex-danger) !important; }

/* Page shell */
.ex-page {
  min-height: 100vh;
  background: var(--ex-bg);
  padding-bottom: 80px;
}

.ex-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--ex-header-h);
  line-height: var(--ex-header-h);
  padding: 0 16px;
  background: var(--ex-bg-card);
  border-bottom: 1px solid var(--ex-border);
  box-shadow: var(--ex-shadow);
  display: flex;
  align-items: center;
}

.ex-header .ex-back {
  font-size: 22px;
  color: var(--ex-text);
  margin-right: 12px;
}

.ex-header .ex-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ex-text);
  flex: 1;
}

.ex-header .ex-header-right {
  font-size: 14px;
  color: var(--ex-primary);
}

.ex-body {
  padding: calc(var(--ex-header-h) + 16px) 16px 24px;
}

.ex-page-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--ex-text);
  margin-bottom: 16px;
}

/* Cards */
.ex-card {
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--ex-shadow);
}

.ex-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.ex-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ex-text);
}

.ex-card-sub {
  font-size: 12px;
  color: var(--ex-text-secondary);
  margin-top: 4px;
}

.ex-rate {
  font-size: 22px;
  font-weight: 700;
  color: var(--ex-primary);
  white-space: nowrap;
}

/* Stats row */
.ex-stat-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.ex-stat-item {
  flex: 1;
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--ex-shadow);
}

.ex-stat-item .label {
  font-size: 12px;
  color: var(--ex-text-secondary);
}

.ex-stat-item .value {
  font-size: 18px;
  font-weight: 600;
  color: var(--ex-primary);
  margin-top: 6px;
}

/* Form */
.ex-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  margin-top: 12px;
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius-sm);
  background: #fafafa;
  font-size: 14px;
  color: var(--ex-text);
  box-sizing: border-box;
}

.ex-input::placeholder {
  color: #b7bdc6;
}

/* Buttons */
.ex-btn {
  display: block;
  width: 100%;
  height: 44px;
  line-height: 44px;
  text-align: center;
  border: none;
  border-radius: var(--ex-radius-sm);
  background: var(--ex-primary);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  margin-top: 12px;
  cursor: pointer;
  text-decoration: none;
}

.ex-btn:active { opacity: 0.9; }

.ex-btn-outline {
  background: var(--ex-bg-card);
  color: var(--ex-text) !important;
  border: 1px solid var(--ex-border);
  margin-top: 8px;
}

.ex-btn-outline:hover {
  border-color: var(--ex-primary);
  color: var(--ex-primary) !important;
}

/* Tags */
.ex-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.ex-tag-pending {
  background: rgba(252, 213, 53, 0.2);
  color: #c99400;
}

.ex-tag-done {
  background: rgba(14, 203, 129, 0.15);
  color: var(--ex-success);
}

/* VIP */
.ex-vip-hero {
  text-align: center;
  padding: 20px 16px;
}

.ex-vip-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fcd535, #f0b90b);
  color: #1e2329;
  font-size: 18px;
  font-weight: 700;
}

.ex-vip-stats {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ex-text-secondary);
  line-height: 1.8;
}

.ex-vip-stats b {
  color: var(--ex-primary);
  font-weight: 600;
}

.ex-vip-card.dim {
  opacity: 0.65;
}

.ex-vip-card.active {
  border-color: var(--ex-primary);
  box-shadow: 0 0 0 1px rgba(0, 82, 254, 0.15);
}

/* Quick action bar (assets page) */
.ex-quick-bar {
  width: 100%;
  background: var(--ex-bg-card);
  border-bottom: 1px solid var(--ex-border);
  padding: 12px 10px;
  display: flex;
  justify-content: space-around;
  gap: 8px;
  box-shadow: var(--ex-shadow);
}

.ex-quick-item {
  flex: 1;
  text-align: center;
  text-decoration: none !important;
  color: var(--ex-text) !important;
}

.ex-quick-icon {
  width: 44px;
  height: 44px;
  line-height: 44px;
  margin: 0 auto 6px;
  border-radius: 12px;
  background: #f5f5f5;
  border: 1px solid var(--ex-border);
  font-size: 20px;
  color: var(--ex-primary);
}

.ex-quick-item.primary .ex-quick-icon {
  background: #f5f5f5;
  border-color: var(--ex-border);
}

.ex-quick-label {
  font-size: 12px;
  color: var(--ex-text-secondary);
}

/* Settings menu list */
.ex-menu-panel {
  background: var(--ex-bg-card);
  border-radius: var(--ex-radius);
  border: 1px solid var(--ex-border);
  overflow: hidden;
  margin-top: 16px;
  box-shadow: var(--ex-shadow);
}

.ex-menu-panel .lbox {
  border-bottom: 1px solid var(--ex-border);
  padding: 0 16px;
  height: 56px;
  line-height: 56px;
}

.ex-menu-panel .lbox:last-child {
  border-bottom: none;
}

.ex-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--ex-text-secondary);
  font-size: 14px;
}

/* Footer polish */
.footer {
  background: var(--ex-bg-card) !important;
  border-top: 1px solid var(--ex-border) !important;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.footer a:has(.fcy) .f_op_t {
  background: transparent !important;
  border-radius: 0;
  width: auto;
  height: auto;
  margin: 0;
  display: block;
}

.footer a:has(.fcy) .f_op_t img {
  filter: brightness(0) !important;
}

.footer .f_op_b .fcy {
  color: #050505 !important;
  background: transparent !important;
}

/* Legacy class aliases */
.stake-card {
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--ex-shadow);
}

.btn-primary-tebbit {
  display: block;
  width: 100%;
  height: 44px;
  line-height: 44px;
  text-align: center;
  background: var(--ex-primary);
  color: #fff !important;
  border-radius: var(--ex-radius-sm);
  border: none;
  font-weight: 600;
  text-decoration: none;
}

.asset-stat-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.asset-stat-item {
  flex: 1;
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius);
  padding: 14px;
  text-align: center;
}

.asset-stat-item .label { font-size: 12px; color: var(--ex-text-secondary); }
.asset-stat-item .value { font-size: 18px; font-weight: 600; color: var(--ex-primary); margin-top: 6px; }

.vip-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fcd535, #f0b90b);
  color: #1e2329;
  font-weight: 700;
}

.tag-pending {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  background: rgba(252, 213, 53, 0.2);
  color: #c99400;
}

.tag-done {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  background: rgba(14, 203, 129, 0.15);
  color: var(--ex-success);
}

.cinput {
  border: 1px solid var(--ex-border) !important;
  border-radius: var(--ex-radius-sm) !important;
  background: #fafafa !important;
  color: var(--ex-text) !important;
}

.no_header {
  background: var(--ex-bg-card) !important;
  border-bottom: 1px solid var(--ex-border);
}

.alltn, .showbtn {
  background: var(--ex-primary) !important;
  color: #fff !important;
  border-radius: var(--ex-radius-sm) !important;
}

.allmbox_cbtn {
  border-color: var(--ex-primary) !important;
  color: var(--ex-primary) !important;
}

.listbox {
  border-radius: var(--ex-radius-sm);
  margin-bottom: 10px;
  border: 1px solid var(--ex-border) !important;
  background: #fff;
}

.findbox {
  background: transparent !important;
  padding: 0 12px 80px;
}

.findbox_1 {
  background: var(--ex-bg-card);
  border-radius: var(--ex-radius) var(--ex-radius) 0 0;
  border: 1px solid var(--ex-border);
  border-bottom: none;
  padding: 0 15px;
}

.findbox_3 {
  padding: 0 12px;
  min-width: 80px;
}

.mlistbox {
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-top: none;
  border-radius: 0 0 var(--ex-radius) var(--ex-radius);
  padding: 12px;
}

.mlistbox > a {
  display: block;
  margin-bottom: 10px;
  text-decoration: none !important;
  color: inherit !important;
}

.mlistbox > a:last-child .listbox {
  margin-bottom: 0;
}

/* Asset list item — personal page */
.user-asset-list .listbox,
.mlistbox.user-asset-list .listbox {
  height: auto !important;
  min-height: 0;
  padding: 12px 14px 14px;
  box-sizing: border-box;
  overflow: hidden;
  border-bottom: none !important;
  margin-bottom: 0;
}

.user-asset-list .listbox_title,
.mlistbox.user-asset-list .listbox_title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: auto;
  line-height: 1.3;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ex-border);
  overflow: hidden;
}

.user-asset-list .listbox_title_l,
.user-asset-list .listbox_title_r,
.mlistbox.user-asset-list .listbox_title_l,
.mlistbox.user-asset-list .listbox_title_r {
  float: none !important;
  width: auto !important;
  height: auto;
  line-height: 1.3;
}

.user-asset-list .listbox_title_l {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.user-asset-list .listbox_title_l span {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--ex-text) !important;
}

.user-asset-list .listbox_title_r,
.mlistbox.user-asset-list .listbox_title_r {
  flex-shrink: 0;
  text-align: right;
  padding-left: 8px;
}

.user-asset-list .asset-row,
.mlistbox.user-asset-list .asset-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.15fr);
  column-gap: 8px;
  row-gap: 0;
  width: 100%;
  align-items: start;
}

.user-asset-list .asset-col,
.mlistbox.user-asset-list .asset-col {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-asset-list .asset-col:nth-child(1),
.mlistbox.user-asset-list .asset-col:nth-child(1) {
  text-align: left;
}

.user-asset-list .asset-col:nth-child(2),
.mlistbox.user-asset-list .asset-col:nth-child(2) {
  text-align: center;
}

.user-asset-list .asset-col:nth-child(3),
.mlistbox.user-asset-list .asset-col:nth-child(3) {
  text-align: right;
}

.user-asset-list .asset-label,
.mlistbox.user-asset-list .asset-label {
  display: block;
  font-size: 10px;
  color: var(--ex-text-secondary);
  line-height: 1.25;
  margin: 0;
  white-space: normal;
  word-break: break-word;
  overflow: hidden;
  max-height: 2.5em;
}

.user-asset-list .asset-label-sub {
  display: block;
  font-size: 9px;
  color: #b7bdc6;
  font-weight: normal;
  line-height: 1.2;
  margin-top: 1px;
}

.user-asset-list .asset-val,
.mlistbox.user-asset-list .asset-val {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ex-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.user-asset-list .asset-col:nth-child(2) .asset-val,
.mlistbox.user-asset-list .asset-col:nth-child(2) .asset-val {
  text-align: center;
}

.user-asset-list .asset-col:nth-child(3) .asset-label,
.mlistbox.user-asset-list .asset-col:nth-child(3) .asset-label,
.user-asset-list .asset-col:nth-child(3) .asset-label-sub,
.mlistbox.user-asset-list .asset-col:nth-child(3) .asset-label-sub {
  text-align: right;
}

@media (max-width: 360px) {
  .user-asset-list .asset-row,
  .mlistbox.user-asset-list .asset-row {
    column-gap: 4px;
  }

  .user-asset-list .asset-label,
  .mlistbox.user-asset-list .asset-label {
    font-size: 9px;
  }

  .user-asset-list .asset-val,
  .mlistbox.user-asset-list .asset-val {
    font-size: 11px;
  }
}

.ex-quick-icon i {
  display: inline-block;
  line-height: 44px;
  vertical-align: middle;
}

/* Deposit / withdraw pages */
.ex-deposit-page .contentbox,
.ex-withdraw-page .contentbox {
  height: auto !important;
  min-height: calc(100vh - 45px);
  padding: 5px 15px 40px;
  box-sizing: border-box;
}

.ex-deposit-page .imgbox_4,
.ex-withdraw-page .imgbox_4 {
  height: auto !important;
  min-height: 0;
  padding: 10px 0 16px;
}

.ex-deposit-page .imgbox_7,
.ex-withdraw-page .ex-address-wrap {
  width: 100%;
  height: auto !important;
  min-height: 0;
  line-height: 1.5;
  text-align: center;
  margin-top: 10px;
  padding: 8px 12px;
  box-sizing: border-box;
}

.ex-address-text {
  display: block;
  font-size: 12px;
  color: var(--ex-text);
  word-break: break-all;
  overflow-wrap: anywhere;
  letter-spacing: 0.2px;
  line-height: 1.6;
}

.ex-deposit-page .imgbox_9,
.ex-withdraw-page .imgbox_9 {
  border-color: var(--ex-primary) !important;
  color: var(--ex-primary) !important;
  margin: 12px auto !important;
}

.ex-deposit-page .ex-copy-btn,
.ex-withdraw-page .ex-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  height: 44px;
  margin: 0 auto;
  padding: 0 18px;
  border: 1px solid #14ac5a;
  border-radius: 10px;
  background: #fff;
  color: #14ac5a;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(20, 172, 90, 0.08);
}

.ex-deposit-page .ex-copy-btn i,
.ex-withdraw-page .ex-copy-btn i {
  font-size: 17px;
  line-height: 1;
}

.ex-deposit-page .ex-copy-btn:active,
.ex-withdraw-page .ex-copy-btn:active {
  background: #14ac5a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(20, 172, 90, 0.22);
}

.ex-deposit-page .ex-copy-btn--solid,
.ex-withdraw-page .ex-copy-btn--solid {
  background: #14ac5a;
  color: #fff;
  border-color: #14ac5a;
  box-shadow: 0 4px 12px rgba(20, 172, 90, 0.18);
}

.ex-deposit-page .ex-copy-btn--solid:active,
.ex-withdraw-page .ex-copy-btn--solid:active {
  background: #0f8f4a;
  border-color: #0f8f4a;
}

.ex-deposit-page .ex-copy-btn-wrap,
.ex-withdraw-page .ex-copy-btn-wrap {
  width: 100%;
  text-align: center;
  padding: 4px 14px 0;
}

.ex-deposit-page .imgbox_10,
.ex-withdraw-page .imgbox_10 {
  background: var(--ex-primary) !important;
  border-radius: var(--ex-radius-sm) !important;
}

.ex-deposit-page .imgbox_3,
.ex-withdraw-page .imgbox_3 {
  border-color: var(--ex-primary) !important;
  display: inline-block;
  padding: 0 14px;
  height: 32px;
  line-height: 32px;
  border-radius: var(--ex-radius-sm);
}

.ex-deposit-page .imgbox_1,
.ex-withdraw-page .imgbox_1 {
  height: auto;
  line-height: 1.4;
  margin-bottom: 8px;
}

.ex-deposit-page .imgbox_6,
.ex-withdraw-page .imgbox_6 {
  text-align: center;
  margin: 12px 0;
}

.ex-deposit-page .imgbox_10,
.ex-withdraw-page .imgbox_10 {
  cursor: pointer;
}

.ex-deposit-page .contentbox,
.ex-withdraw-page .contentbox {
  margin-top: var(--ex-header-h);
}

.ex-deposit-page .imgbox_4 {
  border-top: 1px solid var(--ex-border);
  margin-top: 12px;
  padding-top: 12px;
}

.layui-upload-file {
  display: none !important;
  opacity: 0.01;
}

/* Legacy coin select list rows */
.ex-coin-select-page .coinlistbox_info_list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  min-height: 48px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ex-border);
  margin-top: 0;
  height: auto;
}

.ex-coin-select-page .coinlistbox_info_list_l,
.ex-coin-select-page .coinlistbox_info_list_c,
.ex-coin-select-page .coinlistbox_info_list_r {
  float: none;
  width: auto;
  height: auto;
  line-height: 1.4;
}

.ex-coin-select-page .coinlistbox_info_list_r {
  text-align: right;
}

.ex-coin-select-page .coinlistbox {
  margin-top: 0;
  padding: 0;
}

.ex-coin-select-page .lmcoin {
  float: none;
  display: inline-block;
  width: auto;
  min-width: 64px;
  padding: 0 12px;
  height: 32px;
  line-height: 32px;
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius-sm);
  margin-right: 0;
  background: var(--ex-bg-card);
}

.ex-coin-select-page .topbox {
  display: none;
}

.ex-withdraw-page .addressinfo {
  height: auto;
  max-height: 70vh;
  overflow-y: auto;
}

.ex-withdraw-page .addressinfo_5 {
  height: auto !important;
  min-height: 60px;
  max-height: none;
}

.ex-withdraw-page .addressinfo_5 .ex-address-text {
  text-align: left;
  font-size: 13px;
}

/* ========== Home page (tradelist) ========== */
.ex-home-page {
  min-height: 100vh;
  background: var(--ex-bg);
  padding-bottom: 72px;
}

.home-top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 16px;
  background: var(--ex-bg-card);
  border-bottom: 1px solid var(--ex-border);
  box-shadow: var(--ex-shadow);
}

.home-top-bar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.home-top-bar__avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f5f5;
}

.home-top-bar__avatar svg path {
  fill: var(--ex-text-secondary) !important;
}

.home-top-bar__login {
  font-size: 14px;
  font-weight: 500;
  color: var(--ex-text) !important;
}

.home-top-bar__lang {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-top-bar__lang svg path {
  fill: var(--ex-text-secondary) !important;
}

.home-main {
  padding: 12px 16px 0;
}

.home-banner {
  border-radius: var(--ex-radius);
  overflow: hidden;
  box-shadow: var(--ex-shadow);
  margin-bottom: 12px;
}

.home-banner .carousel-inner,
.home-banner .carousel-item,
.home-banner img {
  height: 140px !important;
  object-fit: cover;
  border-radius: var(--ex-radius);
}

.home-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  margin-bottom: 12px;
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius-sm);
}

.home-notice__icon {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--ex-primary);
}

.home-notice__scroll {
  flex: 1;
  min-width: 0;
  height: 24px;
  overflow: hidden;
}

.home-notice__scroll ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-notice__scroll li {
  height: 24px;
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-notice__scroll a {
  font-size: 13px;
  color: var(--ex-text-secondary) !important;
}

.home-notice__more {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--ex-text-secondary);
}

.home-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.home-featured-card {
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius-sm);
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--ex-shadow);
}

.home-featured-card__pair {
  font-size: 11px;
  font-weight: 600;
  color: var(--ex-text);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-featured-card__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--ex-success);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.home-featured-card__change {
  font-size: 11px;
  font-weight: 500;
  color: var(--ex-success);
}

.home-featured-card__price.is-down,
.home-featured-card__change.is-down { color: var(--ex-danger); }

.home-promo {
  margin-bottom: 12px;
  border-radius: var(--ex-radius-sm);
  overflow: hidden;
}

.home-promo img {
  width: 100%;
  display: block;
  border-radius: var(--ex-radius-sm);
}

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 16px 8px;
  margin-bottom: 12px;
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius);
  box-shadow: var(--ex-shadow);
}

.home-quick-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  color: inherit !important;
}

.home-quick-grid__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f5f7fa;
}

.home-quick-grid__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.home-quick-grid__icon--pool {
  background: linear-gradient(135deg, #e9fff5 0%, #eef4ff 100%);
  color: #1d5bff;
  font-size: 24px;
}

.home-quick-grid__icon--team {
  background: linear-gradient(135deg, #fff7ed 0%, #eefdf5 100%);
  color: #0f9f6e;
  font-size: 24px;
}

.home-quick-grid__label {
  font-size: 11px;
  color: var(--ex-text);
  text-align: center;
  line-height: 1.2;
}

.home-market-card {
  background: var(--ex-bg-card);
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.home-market-card__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: none;
  background: transparent;
}

.home-market-card__head span {
  font-size: 12px;
  color: var(--ex-text-secondary);
  font-weight: 500;
}

.home-market-card__head span:nth-child(2) {
  text-align: center;
}

.home-market-card__head span:nth-child(3) {
  text-align: right;
}

.home-market-card .market-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  align-items: center;
  min-height: 56px;
  padding: 10px 16px;
  border-bottom: none;
  text-decoration: none !important;
  color: inherit !important;
}

.market-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  align-items: center;
  min-height: 56px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ex-border);
  text-decoration: none !important;
  color: inherit !important;
}

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

.market-row:active {
  background: #fafafa;
}

.market-row__pair {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.market-row__pair img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: contain;
}

.market-row__pair span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ex-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-row__price {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ex-text);
  font-variant-numeric: tabular-nums;
}

.market-row__change {
  text-align: right;
}

.market-row__change span,
.list_change span {
  display: inline-block;
  min-width: 64px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.market-row__change .bgreen,
.list_change .bgreen {
  background: rgba(14, 203, 129, 0.12) !important;
  color: var(--ex-success) !important;
}

.market-row__change .bred,
.list_change .bred {
  background: rgba(246, 70, 93, 0.12) !important;
  color: var(--ex-danger) !important;
}

.market-row__change .bgfcc,
.list_change .bgfcc {
  background: #f5f5f5 !important;
  color: var(--ex-text-secondary) !important;
}

/* ========== User assets page ========== */
html body.ex-user-page {
  background: #fff !important;
}

.ex-user-page {
  --uo-green: #14ac5a;
  --uo-green-dark: #0a8f4a;
  --uo-shadow-card: 0 4px 16px rgba(16, 24, 40, 0.06);
  min-height: 100vh;
  background: #fff !important;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

.user-page-shell {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 14px 24px;
  overflow-x: hidden;
}

.user-assets-hero {
  padding: 18px 16px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  box-shadow: var(--uo-shadow-card);
}

.user-assets-hero__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #707a8a;
}

.user-assets-hero__tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.user-assets-hero__tools i {
  font-size: 17px;
  color: #9aa5b5;
  cursor: pointer;
  font-family: bootstrap-icons !important;
  font-style: normal;
}

.user-assets-hero__amount {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--uo-green-dark);
}

.user-assets-hero__sub {
  font-size: 14px;
  color: #1e2329;
  font-variant-numeric: tabular-nums;
}

.user-assets-hero__meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f2f5;
  font-size: 12px;
  color: #707a8a;
  font-variant-numeric: tabular-nums;
}

.user-assets-hero__meta span {
  color: #1e2329;
  font-weight: 600;
}

.user-quick-grid {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 8px;
  margin: 0 14px 16px;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  box-shadow: var(--uo-shadow-card);
}

.user-quick-grid--three .user-quick-item {
  flex: 1;
  max-width: none;
}

.user-quick-item {
  flex: 1;
  min-width: 0;
  text-align: center;
  text-decoration: none !important;
  color: #1e2329 !important;
}

.user-quick-item__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 6px;
  border-radius: 10px;
  background: #f8f9fb;
  border: 1px solid #eef0f3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--uo-green-dark);
  font-size: 18px;
}

.user-quick-item__icon i {
  font-family: bootstrap-icons !important;
  font-style: normal;
  line-height: 1;
}

.user-quick-item__label {
  display: block;
  font-size: 11px;
  color: #707a8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-quick-item:active .user-quick-item__icon {
  background: #f0fff8;
  border-color: rgba(20, 172, 90, 0.2);
}

.user-asset-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.user-asset-section__title {
  margin: 0 0 8px 2px;
}

.user-asset-section__title span {
  display: inline-block;
  padding-left: 10px;
  border-left: 3px solid var(--uo-green);
  color: #1e2329;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.ex-user-page .user-asset-list {
  display: grid;
  gap: 10px;
  padding: 0;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--uo-shadow-card);
}

.ex-user-page .user-asset-item {
  display: block;
  padding: 14px;
  border-bottom: 1px solid #f0f2f5;
  background: #fff;
  text-decoration: none !important;
  color: inherit !important;
}

.ex-user-page .user-asset-list > .user-asset-item:last-child {
  border-bottom: none;
}

.ex-user-page .user-asset-item:active {
  background: #fafbfc;
}

.ex-user-page .user-asset-item__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ex-user-page .user-asset-item__logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #f8f9fb;
  border: 1px solid #eef0f3;
}

.ex-user-page .user-asset-item__head strong {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1e2329;
}

.ex-user-page .user-asset-item__head i {
  color: #b7bdc6;
  font-size: 14px;
  flex-shrink: 0;
  font-family: bootstrap-icons !important;
  font-style: normal;
}

.ex-user-page .user-asset-item__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: end;
}

.ex-user-page .user-asset-item__col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 40px;
}

.ex-user-page .user-asset-item__col span {
  display: block;
  font-size: 11px;
  color: #707a8a;
  margin-bottom: 4px;
  line-height: 16px;
  min-height: 16px;
}

.ex-user-page .user-asset-item__col b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1e2329;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  line-height: 18px;
  min-height: 18px;
}

.ex-user-page .user-asset-item__col--right {
  text-align: right;
}

.ex-user-page .user-asset-item__col--spacer {
  visibility: hidden;
  pointer-events: none;
}

.ex-user-page .user-asset-item__logo--mining {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #14ac5a 0%, #0d7a3f 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  border: 1px solid #eef0f3;
  object-fit: unset;
}

.ex-user-page .user-asset-item__logo--mining span {
  line-height: 1;
}

.ex-user-page .dongbox_cbox {
  background: #fff;
  border-radius: 14px;
}

.ex-user-page .showbtn {
  margin-top: 12px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  border-radius: 10px;
  background: var(--uo-green) !important;
  color: #fff !important;
}

.ex-user-page .showbtn .fch,
.ex-user-page .showbtn span {
  color: #fff !important;
}

.ex-user-page .footer {
  background: #fff !important;
  border-top: 1px solid #edf0f2 !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.04);
}

.ex-user-page .f_op_b .fcy {
  color: #050505 !important;
}
.dongbox {
  position: fixed;
  z-index: 99999;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
}

.dongbox_cbox,
.dong_order_c {
  width: 88%;
  max-width: 360px;
  margin: 20vh auto 0;
  background: var(--ex-bg-card);
  border-radius: var(--ex-radius);
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.dong_order_x {
  text-align: right;
  margin-bottom: 8px;
  cursor: pointer;
  color: var(--ex-text-secondary);
}

.dong_order_title {
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--ex-border);
}

/* ========== Personal center (uoption) ========== */
html body.ex-uoption-page,
.ex-uoption-page.ex-page {
  background: #fff !important;
}

.ex-uoption-page {
  --uo-green: #14ac5a;
  --uo-green-dark: #0a8f4a;
  --uo-head-h: 50px;
  --uo-shadow-card: 0 4px 16px rgba(16, 24, 40, 0.06);
  min-height: 100vh;
  background: #fff !important;
  overflow-x: hidden;
  padding-bottom: 32px;
}

.ex-uoption-page .ex-page {
  width: 100%;
  max-width: 100%;
  background: #fff !important;
}

.uoption-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: calc(var(--uo-head-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #eef0f3;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.uoption-head i.bi-arrow-left,
.uoption-head a,
.uoption-head a i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1e2329;
  font-size: 22px;
  text-decoration: none;
  flex-shrink: 0;
  font-family: bootstrap-icons !important;
  font-style: normal;
  line-height: 1;
}

.uoption-head span {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: #1e2329;
}

.uoption-body {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: calc(var(--uo-head-h) + env(safe-area-inset-top, 0px) + 20px) 14px 24px;
  overflow-x: hidden;
  background: #fff;
}

.uoption-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 16px 14px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  box-shadow: var(--uo-shadow-card);
  position: relative;
  z-index: 1;
}

.uoption-profile-card__avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #eef0f3;
  background: #f8f9fb;
}

.uoption-profile-card__info {
  min-width: 0;
  flex: 1;
}

.uoption-profile-card__info h1 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  color: #1e2329;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uoption-vip-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #111827, #374151);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.uoption-vip-badge--none {
  background: #edf0f2;
  color: #707a8a;
}

.uoption-invite {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.uoption-invite__code {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #707a8a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uoption-invite__code strong {
  color: #1e2329;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.uoption-invite__btn {
  flex-shrink: 0;
  border: 1px solid rgba(20, 172, 90, 0.35);
  background: #fff;
  color: var(--uo-green-dark);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.uoption-auth-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(20, 172, 90, 0.25);
  color: #1e2329 !important;
  text-decoration: none !important;
  box-shadow: var(--uo-shadow-card);
}

.uoption-auth-banner__text {
  min-width: 0;
  flex: 1;
}

.uoption-auth-banner strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--uo-green-dark);
}

.uoption-auth-banner p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #707a8a;
  line-height: 1.45;
}

.uoption-auth-banner > i {
  font-size: 18px;
  flex-shrink: 0;
  color: var(--uo-green);
  font-family: bootstrap-icons !important;
  font-style: normal;
}

.uoption-group {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
}

.uoption-group__title {
  margin: 0 0 8px 2px;
}

.uoption-group__title span {
  display: inline-block;
  padding-left: 10px;
  border-left: 3px solid var(--uo-green);
  color: #1e2329;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.uoption-menu {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--uo-shadow-card);
}

.uoption-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f2f5;
  text-decoration: none !important;
  color: inherit !important;
  background: #fff;
}

.uoption-row:last-child {
  border-bottom: none;
}

.uoption-row:active {
  background: #fafbfc;
}

.uoption-row__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f8f9fb;
  border: 1px solid #eef0f3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--uo-green-dark);
  font-size: 17px;
  flex-shrink: 0;
}

.uoption-row__icon i {
  font-family: bootstrap-icons !important;
  font-style: normal;
  display: inline-block;
  line-height: 1;
}

.uoption-row__label {
  min-width: 0;
  font-size: 14px;
  color: #1e2329;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uoption-row__tail {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  max-width: 42%;
  flex-shrink: 0;
  color: #8aa395;
  font-size: 13px;
}

.uoption-row__tail > i {
  flex-shrink: 0;
  font-size: 14px;
  color: #b7bdc6;
  font-family: bootstrap-icons !important;
  font-style: normal;
}

.uoption-row__extra {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #707a8a;
}

.uoption-row__extra em {
  font-style: normal;
}

.uoption-row__badge {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--uo-green-dark);
  background: #f0fff8;
  border: 1px solid rgba(20, 172, 90, 0.2);
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
}

.ex-uoption-page .auth-status--ok { color: var(--uo-green); }
.ex-uoption-page .auth-status--wait { color: #f0a020; }
.ex-uoption-page .auth-status--fail { color: #f6465d; }
.ex-uoption-page .auth-status--none { color: #707a8a; }

.uoption-logout {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  height: 46px;
  line-height: 46px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid #eef0f3;
  background: #fff;
  color: #f6465d !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: var(--uo-shadow-card);
}

.uoption-logout:active {
  background: #fafbfc;
}

/* ========== Record list (deposit/withdraw/bill) ========== */
.ex-record-page,
.ex-bill-page {
  min-height: 100vh;
  background: var(--ex-bg);
  padding-bottom: 80px;
}

.ex-record-page .ex-header,
.ex-bill-page .ex-header,
.ex-detail-page .ex-header,
.ex-coin-select-page .ex-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--ex-header-h);
  line-height: var(--ex-header-h);
  padding: 0 16px;
  background: var(--ex-bg-card);
  border-bottom: 1px solid var(--ex-border);
  box-shadow: var(--ex-shadow);
  display: flex;
  align-items: center;
}

.ex-record-page .ex-back,
.ex-bill-page .ex-back,
.ex-detail-page .ex-back,
.ex-coin-select-page .ex-back {
  font-size: 22px;
  color: var(--ex-text);
  cursor: pointer;
}

.ex-record-page .ex-header-right,
.ex-bill-page .ex-header-right {
  margin-left: auto;
  font-size: 20px;
  color: var(--ex-primary);
}

.ex-record-page .ex-body,
.ex-bill-page .ex-body,
.ex-detail-page .ex-body {
  padding: calc(var(--ex-header-h) + 16px) 16px 24px;
}

.ex-record-panel,
.ex-bill-panel {
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius);
  overflow: hidden;
  box-shadow: var(--ex-shadow);
}

.ex-record-panel > a {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  border-bottom: 1px solid var(--ex-border);
}

.ex-record-panel > a:last-child {
  border-bottom: none;
}

.ex-record-panel .listbox,
.ex-bill-panel .listbox {
  height: auto !important;
  min-height: 0;
  padding: 12px 14px 14px;
  margin-bottom: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.ex-record-panel .listbox_title,
.ex-bill-panel .listbox_title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: auto;
  line-height: 1.3;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ex-border);
}

.ex-record-panel .listbox_title_l,
.ex-record-panel .listbox_title_r,
.ex-bill-panel .listbox_title_l,
.ex-bill-panel .listbox_title_r {
  float: none !important;
  width: auto !important;
  height: auto;
  line-height: 1.3;
}

.ex-record-panel .listbox_title_l span,
.ex-bill-panel .listbox_title_l span {
  font-size: 15px !important;
  font-weight: 600 !important;
}

.ex-record-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(252, 213, 53, 0.15);
  color: #c99400;
}

.ex-record-status.is-done {
.ex-record-status.is-fail { background: rgba(255, 77, 79, 0.12); color: #ff4d4f; }
  background: rgba(14, 203, 129, 0.12);
  color: var(--ex-success);
}

.record-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 8px;
  width: 100%;
}

.record-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.record-col:nth-child(1) { text-align: left; }
.record-col:nth-child(2) { text-align: center; }
.record-col:nth-child(3) { text-align: right; }

.record-label {
  font-size: 10px;
  color: var(--ex-text-secondary);
  line-height: 1.25;
}

.record-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--ex-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bill page tabs */
.ex-bill-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ex-bill-tabs__item {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ex-text-secondary);
  cursor: pointer;
  border-radius: var(--ex-radius-sm);
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
}

.ex-bill-tabs__item.is-active {
  color: var(--ex-primary);
  font-weight: 600;
  border-color: var(--ex-primary);
  background: rgba(0, 82, 254, 0.06);
}

/* ========== Deposit / withdraw form pages ========== */
.ex-deposit-page,
.ex-withdraw-page {
  min-height: 100vh;
  background: #fff !important;
}

.ex-deposit-page .no_header,
.ex-withdraw-page .no_header {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ex-header-h);
  line-height: var(--ex-header-h);
  padding: 0 16px;
  background: var(--ex-bg-card) !important;
  border-bottom: 1px solid var(--ex-border);
  box-shadow: var(--ex-shadow);
}

.ex-deposit-page .contentbox_top,
.ex-withdraw-page .contentbox_top {
  height: auto;
  line-height: 1.3;
  margin-bottom: 12px;
}

.ex-deposit-page .contentbox_top span,
.ex-withdraw-page .contentbox_top span {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: var(--ex-text);
}

.ex-deposit-page .contentbox_line,
.ex-withdraw-page .contentbox_line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius);
  box-shadow: var(--ex-shadow);
  overflow: hidden;
}

.ex-deposit-page .line_1,
.ex-withdraw-page .line_1,
.ex-deposit-page .line_2,
.ex-withdraw-page .line_2 {
  float: none !important;
  width: auto !important;
  height: auto;
  line-height: 1.4;
}

.ex-deposit-page .line_2,
.ex-withdraw-page .line_2 {
  text-align: right;
  flex: 1;
  min-width: 0;
}

.ex-deposit-page .imgbox,
.ex-withdraw-page .imgbox,
.ex-deposit-page .textbox,
.ex-withdraw-page .textbox {
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius);
  box-shadow: var(--ex-shadow);
  padding: 14px;
  margin-top: 12px;
}

.ex-deposit-page .textbox p {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--ex-text-secondary);
}

.ex-deposit-page .textbox p:first-child {
  color: var(--ex-danger);
}

.ex-deposit-page .zz_inputbox,
.ex-withdraw-page .tx_inputbox {
  background: #fafafa;
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius-sm);
  padding: 0 12px;
  height: 44px;
  line-height: 44px;
  display: flex;
  align-items: center;
}

.ex-deposit-page .zz_input,
.ex-withdraw-page .tx_inputbox input {
  background: transparent !important;
  border: none !important;
  width: 100%;
  height: 36px;
  line-height: 36px;
  font-size: 14px;
}

.ex-withdraw-page .tx_inputbox {
  display: flex;
  margin-top: 8px;
}

.ex-withdraw-page .tx_inputbox_l {
  float: none !important;
  flex: 1;
  min-width: 0;
  margin-top: 0 !important;
  height: auto;
}

.ex-withdraw-page .tx_inputbox_r {
  float: none !important;
  flex-shrink: 0;
  width: auto !important;
  margin-top: 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ex-withdraw-page .inputbox_r_l,
.ex-withdraw-page .inputbox_r_r {
  float: none !important;
  width: auto !important;
  height: auto;
  line-height: 1;
}

.ex-withdraw-page .inputbox_r_r {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 82, 254, 0.08);
  color: var(--ex-primary);
  cursor: pointer;
}

.ex-withdraw-page .bottom_btn_box {
  background: var(--ex-bg-card);
  border-top: 1px solid var(--ex-border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
  border-radius: var(--ex-radius) var(--ex-radius) 0 0;
  padding: 16px;
  height: auto;
}

.ex-withdraw-page .addressinfo {
  background: var(--ex-bg-card);
  border-top: 1px solid var(--ex-border);
  border-radius: var(--ex-radius) var(--ex-radius) 0 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.1);
}

.ex-withdraw-page .addressinfo_2,
.ex-withdraw-page .addressinfo_3 {
  float: none !important;
  width: auto !important;
}

.ex-withdraw-page .addressinfo_1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ex-withdraw-page .addressinfo_5 {
  border-color: var(--ex-primary) !important;
  background: rgba(0, 82, 254, 0.06) !important;
}

/* Coin select page */
.ex-coin-select-page {
  min-height: 100vh;
  background: var(--ex-bg);
  padding-bottom: 40px;
}

.ex-coin-search-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 12px;
  background: var(--ex-bg-card);
  border-bottom: 1px solid var(--ex-border);
  box-shadow: var(--ex-shadow);
}

.ex-coin-search-bar__input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: #f5f7fa;
  border-radius: 18px;
  border: 1px solid var(--ex-border);
}

.ex-coin-search-bar__input-wrap input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  height: 30px;
  font-size: 14px;
}

.ex-coin-search-bar__cancel {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--ex-text);
  cursor: pointer;
}

.ex-coin-select-body {
  padding: 62px 16px 24px;
}

.ex-coin-hot {
  margin-bottom: 16px;
}

.ex-coin-hot__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ex-text);
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--ex-primary);
  display: inline-block;
}

.ex-coin-hot__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ex-coin-hot__tag {
  padding: 6px 16px;
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius-sm);
  background: var(--ex-bg-card);
  font-size: 13px;
  font-weight: 500;
  color: var(--ex-text);
}

.ex-coin-list-card {
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius);
  overflow: hidden;
  box-shadow: var(--ex-shadow);
}

.ex-coin-list-card__head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 10px 14px;
  background: #fafafa;
  border-bottom: 1px solid var(--ex-border);
  font-size: 12px;
  color: var(--ex-text-secondary);
  font-weight: 500;
}

.ex-coin-list-card__head span:nth-child(3) {
  text-align: right;
}

.ex-coin-list-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ex-border);
  text-decoration: none !important;
  color: inherit !important;
}

.ex-coin-list-row:last-child {
  border-bottom: none;
}

.ex-coin-list-row:active {
  background: #fafafa;
}

.ex-coin-list-row span:nth-child(3) {
  text-align: right;
}

/* Deposit coin select (czcoin) */
.czcoin-page {
  background: var(--ex-bg);
  padding-bottom: 32px;
}

.czcoin-page .ex-header .ex-header-right {
  font-size: 20px;
  color: var(--ex-text);
  line-height: 1;
}

.czcoin-body {
  padding: calc(var(--ex-header-h) + 12px) 16px 24px;
}

.czcoin-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  margin-bottom: 18px;
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: 21px;
  box-shadow: var(--ex-shadow);
}

.czcoin-search i.bi-search {
  color: var(--ex-text-secondary);
  font-size: 16px;
  flex-shrink: 0;
}

.czcoin-search input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  height: 38px;
  font-size: 14px;
  color: var(--ex-text);
  padding: 0;
  box-shadow: none !important;
}

.czcoin-search__clear {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--ex-text-secondary);
  font-size: 16px;
  line-height: 1;
}

.czcoin-section {
  margin-bottom: 18px;
}

.czcoin-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.czcoin-section__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ex-text);
}

.czcoin-section__count {
  font-size: 12px;
  color: var(--ex-text-secondary);
}

.czcoin-hot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.czcoin-hot__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 96px;
  padding: 10px 14px;
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius-sm);
  box-shadow: var(--ex-shadow);
  text-decoration: none !important;
  color: var(--ex-text) !important;
  transition: border-color .15s, box-shadow .15s;
}

.czcoin-hot__item:active {
  border-color: rgba(0, 82, 254, 0.35);
  box-shadow: 0 0 0 2px rgba(0, 82, 254, 0.08);
}

.czcoin-hot__item img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.czcoin-hot__item span {
  font-size: 14px;
  font-weight: 600;
}

.czcoin-list {
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius);
  overflow: hidden;
  box-shadow: var(--ex-shadow);
}

.czcoin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ex-border);
  text-decoration: none !important;
  color: inherit !important;
}

.czcoin-item:last-child {
  border-bottom: none;
}

.czcoin-item:active:not(.is-disabled) {
  background: #fafbfc;
}

.czcoin-item__main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.czcoin-item__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #f5f7fa;
}

.czcoin-item__info {
  min-width: 0;
}

.czcoin-item__info strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ex-text);
  line-height: 1.25;
}

.czcoin-item__info span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ex-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.czcoin-item__arrow {
  color: var(--ex-text-secondary);
  font-size: 14px;
  flex-shrink: 0;
}

.czcoin-item__badge {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--ex-text-secondary);
  background: #f5f7fa;
  border: 1px solid var(--ex-border);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

.czcoin-item.is-disabled {
  opacity: 0.72;
}

.czcoin-item.is-disabled .czcoin-item__logo {
  filter: grayscale(0.35);
}

.czcoin-empty {
  margin-top: 12px;
  padding: 36px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--ex-text-secondary);
  background: var(--ex-bg-card);
  border: 1px dashed var(--ex-border);
  border-radius: var(--ex-radius);
}

/* Detail page (czinfo/txinfo) */
.ex-detail-page {
  min-height: 100vh;
  background: var(--ex-bg);
}

.ex-detail-hero {
  text-align: center;
  padding: 20px 16px;
  margin-bottom: 12px;
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius);
  box-shadow: var(--ex-shadow);
}

.ex-detail-hero__amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--ex-primary);
  font-variant-numeric: tabular-nums;
}

.ex-detail-card {
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius);
  overflow: hidden;
  box-shadow: var(--ex-shadow);
}

.ex-detail-card .lbox,
.ex-detail-card .infotbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--ex-border);
}

.ex-detail-card .lbox:last-child {
  border-bottom: none;
}

.ex-detail-card .lbox_l,
.ex-detail-card .lbox_r {
  float: none !important;
  width: auto !important;
  height: auto;
  line-height: 1.4;
}

.ex-detail-voucher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--ex-border);
  gap: 12px;
}

.ex-detail-voucher img {
  max-height: 100px;
  border-radius: var(--ex-radius-sm);
}

/* ========== K-line page ========== */
.ex-kline-page {
  min-height: 100vh;
  background: var(--ex-bg);
  padding-bottom: 70px;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

.ex-kline-page .container-fluid {
  width: 100% !important;
  max-width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  overflow-x: hidden;
  box-sizing: border-box;
}

.ex-kline-page .no_header {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ex-header-h);
  padding: 0 12px;
  background: var(--ex-bg-card) !important;
  border-bottom: 1px solid var(--ex-border);
  box-shadow: var(--ex-shadow);
  display: flex;
  align-items: center;
}

.ex-kline-page .txtl {
  line-height: var(--ex-header-h);
  width: auto;
}

.ex-kline-page #centerbox {
  flex: 1;
  text-align: center;
  line-height: var(--ex-header-h) !important;
  width: auto !important;
}

.ex-kline-page .klinebox {
  margin-top: var(--ex-header-h);
  height: auto;
  width: 100%;
  max-width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
  overflow-x: hidden;
  min-width: 0;
}

.ex-kline-page .klinetitle {
  display: flex;
  height: auto;
  min-height: 80px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  background: var(--ex-bg-card);
  border-bottom: 1px solid var(--ex-border);
  box-shadow: none;
}

.ex-kline-page .klinetitle_l,
.ex-kline-page .klinetitle_r {
  float: none;
  flex: 1;
  height: auto;
  min-width: 0;
  overflow: hidden;
}

.ex-kline-page .klinetitle_l {
  flex: 0 0 45%;
}

.ex-kline-page .klinetitle_r {
  flex: 0 0 55%;
}

.ex-kline-page .newpricebox {
  height: auto;
  line-height: 1.2;
  font-size: 22px !important;
  font-weight: 700;
  color: var(--ex-success);
  margin: 0 0 4px;
}

.ex-kline-page .changebox {
  height: auto;
  line-height: 1.3;
  font-size: 13px;
  font-weight: 600;
  color: var(--ex-success);
  margin: 0;
}

.ex-kline-page .klr3_box,
.ex-kline-page .klr2_box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: auto;
  min-height: 22px;
}

.ex-kline-page .klr3_box_dl,
.ex-kline-page .klr2_box_dl,
.ex-kline-page .klr3_box_dr,
.ex-kline-page .klr2_box_dr {
  float: none;
  width: auto;
  height: auto;
  line-height: 1.4;
}

.ex-kline-page .kline-chart-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--ex-bg-card);
  overflow: hidden;
}

.ex-kline-page .kline-chart-wrap iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  border: none;
  overflow: hidden;
}

.ex-kline-page .kline-trades {
  background: var(--ex-bg-card);
  padding: 12px 16px 16px;
  margin: 0 0 80px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius);
  box-shadow: var(--ex-shadow);
}

.ex-kline-page .kline-trades__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ex-text);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--ex-primary);
  display: inline-block;
}

.ex-kline-page .tradlist .tradetitle {
  float: none;
  width: auto;
  font-size: 11px;
  color: var(--ex-text-secondary);
}

.ex-kline-page .tradlist > div:first-child {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: auto;
  line-height: 1.4;
  margin-bottom: 4px;
}

.ex-kline-page #tradbox {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  width: 100%;
}

.ex-kline-page #tradbox .tradetitle {
  padding: 6px 0;
  font-size: 12px;
}

.ex-kline-page .transbtnbox {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: auto;
  padding: 12px 16px;
  background: var(--ex-bg-card);
  border-top: 1px solid var(--ex-border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 12px;
}

.ex-kline-page .transbtnbox a {
  flex: 1;
  display: flex;
  text-decoration: none !important;
}

.ex-kline-page .transbtn {
  float: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 44px;
  line-height: 1;
  border-radius: var(--ex-radius-sm);
  font-weight: 600;
}

.ex-kline-page .transbtn span {
  color: #fff !important;
  line-height: 1;
}

.ex-kline-page .bggreen { background: var(--ex-success) !important; }
.ex-kline-page .bgred { background: var(--ex-danger) !important; }

.ex-kline-page .btnbox {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  height: auto;
}

.ex-kline-page .btnbox_l,
.ex-kline-page .btnbox_r {
  float: none;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  line-height: 1;
  border-radius: var(--ex-radius-sm);
  font-weight: 600;
}

.ex-kline-page .btnbox_l span,
.ex-kline-page .btnbox_r span {
  line-height: 1;
}

.ex-kline-page .btnbox_l { background: var(--ex-success) !important; }
.ex-kline-page .btnbox_r { background: var(--ex-danger) !important; }

.ex-kline-page .dong_con {
  width: 80%;
  max-width: 320px;
  height: 100vh;
  margin-top: 0;
  background: var(--ex-bg-card);
  border-radius: 0;
  padding: 16px;
  float: left;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.ex-kline-page .dong_sel_span {
  border-bottom-color: var(--ex-primary) !important;
  color: var(--ex-primary);
}

.ex-kline-page .dong_find_box {
  background: #f5f7fa;
  border: 1px solid var(--ex-border);
}

.ex-kline-page .dong_symbox {
  background: transparent !important;
}

.ex-kline-page .option_list_active {
  border-color: var(--ex-primary) !important;
}

.ex-kline-page .dong_order_option_list {
  background: #f5f7fa;
  border: 1px solid var(--ex-border);
}

.ex-kline-page .dong_money_list_box_option {
  background: #f5f7fa;
  border: 1px solid var(--ex-border);
}

.ex-kline-page .dong_money_list_box_option.option_list_active,
.ex-kline-page .dong_order_option_list.option_list_active,
.ex-kline-page .hy-period-card.option_list_active,
.ex-kline-page .hy-amount-chip.option_list_active {
  border-color: var(--ex-primary) !important;
  background: rgba(0, 82, 254, 0.08);
}

.ex-kline-page .hy-order-modal {
  padding-bottom: 20px;
}
.ex-kline-page .hy-modal-title {
  font-size: 17px;
  font-weight: 600;
}
.ex-kline-page .hy-period-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 8px;
}
.ex-kline-page .hy-period-row {
  display: flex;
  gap: 10px;
  min-width: min-content;
  padding-bottom: 4px;
}
.ex-kline-page .hy-period-card {
  flex: 0 0 88px;
  min-height: 96px;
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  background: #f5f7fa;
  border: 1px solid var(--ex-border);
}
.ex-kline-page .hy-period-label {
  font-size: 11px;
  color: var(--ex-text-secondary);
}
.ex-kline-page .hy-period-time {
  font-size: 15px;
  font-weight: 700;
  color: var(--ex-accent);
  margin-top: 4px;
}
.ex-kline-page .hy-period-rate {
  font-size: 11px;
  color: var(--ex-danger);
  margin-top: 4px;
}
.ex-kline-page .hy-period-min {
  font-size: 10px;
  color: var(--ex-text-secondary);
  margin-top: 4px;
}
.ex-kline-page .hy-amount-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ex-kline-page .hy-amount-chip {
  flex: 0 0 calc(33.33% - 8px);
  min-height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
}
.ex-kline-page .hy-custom-amount.option_list_active .hy-amount-input {
  border-color: var(--ex-primary);
  background: rgba(0, 82, 254, 0.06);
}
.ex-kline-page .hy-amount-input {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--ex-border);
  background: #f5f7fa;
  padding: 0 14px;
  font-size: 15px;
}
.ex-kline-page .hy-submit-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.ex-kline-page .hy-submit-btn {
  flex: 1;
  height: 44px;
  line-height: 44px;
  text-align: center;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.ex-kline-page .hy-submit-primary {
  background: linear-gradient(135deg, #0ecb81, #0aa86a);
}
.ex-kline-page .hy-submit-secondary {
  background: linear-gradient(135deg, #0052fe, #003ecb);
}
.ex-kline-page .hy-submit-disabled {
  width: 100%;
  height: 44px;
  line-height: 44px;
  text-align: center;
  margin-top: 16px;
  background: #9aa4b2;
  color: #fff;
  border-radius: 10px;
}
.ex-kline-page .btnbox_l {
  background: linear-gradient(135deg, #0ecb81, #0aa86a) !important;
  box-shadow: 0 4px 14px rgba(14, 203, 129, 0.35);
}
.ex-kline-page .btnbox_r {
  background: linear-gradient(135deg, #f5465c, #d93a4e) !important;
  box-shadow: 0 4px 14px rgba(245, 70, 92, 0.35);
}

.ex-kline-page .circle_box,
.ex-kline-page .circle_wrapper {
  position: relative;
  left: 0;
  right: 0;
  top: 5px;
  margin: 16px auto;
  width: 110px;
  height: 127px;
  box-sizing: content-box;
}
.ex-kline-page .row { padding-top: 10px !important; }

@-webkit-keyframes run {
  0% { transform: rotate(0); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(180deg); }
}
@-webkit-keyframes runaway {
  0% { transform: rotate(0); }
  50% { transform: rotate(0); }
  100% { transform: rotate(180deg); }
}

.ex-kline-page .right_circle,
.ex-kline-page .left_circle {
  position: absolute;
  width: 110px;
  height: 110px;
  overflow: hidden;
  top: 8px;
}
.ex-kline-page .right_circle { right: -50%; }
.ex-kline-page .left_circle { left: -50%; }
.ex-kline-page .right_circle > img,
.ex-kline-page .left_circle > img {
  width: 100%;
  position: absolute;
  animation-fill-mode: forwards;
}
.ex-kline-page .right_circle > img { right: 50%; }
.ex-kline-page .left_circle > img { left: 50%; }
.ex-kline-page .count_remaining { margin-top: -128px !important; }
.ex-kline-page .remaining { position: relative; height: 138px; }
.ex-kline-page .remaining > .col {
  color: var(--ex-danger);
  font-size: 40px;
  text-align: center;
  height: 105px;
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
}
.ex-kline-page .remaining > div > div:nth-of-type(1) {
  font-size: 40px;
  color: var(--ex-accent);
  text-align: center;
  margin-top: 10px;
}
.ex-kline-page .remaining > div > div:nth-of-type(2) {
  font-size: 12px;
  color: var(--ex-text-secondary);
  text-align: center;
}
.ex-kline-page .remaining > div > div:nth-of-type(3) {
  font-size: 14px;
  color: var(--ex-danger);
  text-align: center;
}
.ex-kline-page .dong_order_c {
  width: 90%;
  max-width: 360px;
  height: auto;
  max-height: 90vh;
  overflow-y: auto;
  margin: 60px auto;
  background: var(--ex-bg-card);
  border-radius: var(--ex-radius);
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.ex-kline-page .dong_order_option {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ex-kline-page .dong_order_option_list {
  float: left;
  margin-right: 10px;
}
.ex-kline-page .dong_money_list_box_option {
  float: left;
  margin-right: 5px;
}
.ex-kline-page .sy_list_box {
  display: flex;
  align-items: center;
  min-height: 36px;
  border-bottom: 1px solid var(--ex-border);
}
.ex-kline-page .sy_list_boxl {
  float: none;
  flex: 1;
  height: auto;
  line-height: 1.4;
}
.ex-kline-page .sy_list_boxr {
  float: none;
  flex-shrink: 0;
  height: auto;
  line-height: 1.4;
}
.ex-kline-page .tleft { text-align: left; }
.ex-kline-page .tright { text-align: right; }
.ex-kline-page .tcenter { text-align: center; }
.ex-kline-page .green { color: var(--ex-success) !important; }
.ex-kline-page .red { color: var(--ex-danger) !important; }

/* ========== Trade order page (transinfo) ========== */
.ex-trade-page {
  min-height: 100vh;
  background: var(--ex-bg);
  padding-bottom: 80px;
  overflow-x: hidden;
  max-width: 100%;
}

.ex-trade-page .container-fluid {
  width: 100% !important;
  max-width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  overflow-x: hidden;
  box-sizing: border-box;
}

.ex-trade-page .no_header {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ex-header-h);
  padding: 0 16px;
  background: var(--ex-bg-card) !important;
  border-bottom: 1px solid var(--ex-border);
  box-shadow: var(--ex-shadow);
}

.ex-trade-page .content_title {
  position: fixed;
  z-index: 998;
  top: var(--ex-header-h);
  left: 0;
  right: 0;
  height: 44px;
  line-height: 44px;
  margin-top: 0 !important;
  padding: 0 16px;
  background: var(--ex-bg-card);
  border-bottom: 1px solid var(--ex-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ex-trade-page .content_title_l,
.ex-trade-page .content_title_r {
  float: none !important;
  width: auto !important;
  height: auto;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ex-trade-page .contentbox {
  margin-top: calc(var(--ex-header-h) + 44px) !important;
  padding: 0 12px 16px;
  background: transparent !important;
}

.ex-trade-page .tradebox {
  height: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.ex-trade-page .tradebox_l {
  flex: none;
  width: 100%;
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius);
  padding: 14px;
  box-shadow: var(--ex-shadow);
}

.ex-trade-page .tradebox_r {
  flex: none;
  width: 100%;
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius);
  padding: 12px 14px;
  box-shadow: var(--ex-shadow);
}

.ex-trade-page .ex-depth-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ex-text);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ex-border);
}

.ex-trade-page .tradebox_l_btn {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  padding: 3px;
  background: #f0f2f5;
  border-radius: var(--ex-radius-sm);
}

.ex-trade-page .tradebox_l_buybtn,
.ex-trade-page .tradebox_l_sellbtn {
  float: none;
  flex: 1;
  height: 38px;
  line-height: 38px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  transition: all 0.15s;
}

.ex-trade-page .tradebox_l_buybtn.bggreen,
.ex-trade-page .tradebox_l_sellbtn.bggreen {
  box-shadow: 0 2px 8px rgba(14, 203, 129, 0.25);
}

.ex-trade-page .tradebox_l_sellbtn.bghc {
  background: transparent !important;
  box-shadow: none;
}

.ex-trade-page .formbox_op {
  display: flex;
  gap: 16px;
  border-bottom: none;
  margin-bottom: 10px;
  padding: 0 2px;
}

.ex-trade-page .formbox_op_list {
  flex: none;
  width: auto;
  padding: 6px 0;
  position: relative;
}

.ex-trade-page .formbox_op_list span {
  font-size: 13px;
  font-weight: 500;
}

.ex-trade-page .formbox_op_list .fcy {
  color: var(--ex-primary) !important;
  font-weight: 600;
}

.ex-trade-page .formbox_op_list .fcy::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--ex-primary);
  border-radius: 1px;
  margin-top: 6px;
}

.ex-trade-page .inputbox {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--ex-border) !important;
  border-radius: var(--ex-radius-sm);
  background: #fff;
  margin-top: 10px;
  height: 44px;
  min-height: 44px;
  overflow: hidden;
}

.ex-trade-page .ex-balance-row {
  margin-top: 14px;
  padding: 8px 10px;
  background: #f8f9fb;
  border-radius: var(--ex-radius-sm);
}

.ex-trade-page .ex-trade-action-btn {
  height: 44px;
  border-radius: var(--ex-radius-sm);
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0, 82, 254, 0.15);
}

.ex-trade-page .ex-trade-action-btn.bggreen {
  box-shadow: 0 4px 12px rgba(14, 203, 129, 0.25);
}

.ex-trade-page .ex-trade-action-btn.bgred {
  box-shadow: 0 4px 12px rgba(246, 70, 93, 0.25);
}

.ex-trade-page .no_header {
  display: flex;
  align-items: center;
}

.ex-trade-page .no_header .txtl {
  flex: 1;
}

.ex-trade-page .contentbox {
  padding: 0 16px 20px;
}

.ex-trade-page .wtlistbox {
  margin: 12px 16px 0;
}

/* K-line page polish */
.ex-kline-page .klinetitle {
  margin: 0 0 10px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius);
  box-shadow: var(--ex-shadow);
}

.ex-kline-page .kline-chart-wrap {
  margin: 0 0 10px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius);
  overflow: hidden;
  box-shadow: var(--ex-shadow);
}

.ex-kline-page .kline-trades {
  margin: 0 0 80px;
}

.ex-kline-page .newpricebox {
  font-size: 26px !important;
  font-variant-numeric: tabular-nums;
}

.ex-kline-page .changebox {
  font-size: 14px;
}

.ex-kline-page .transbtnbox {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}

.ex-kline-page .transbtn {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.ex-kline-page .btnbox {
  margin: 0 16px 16px;
  padding: 0;
  gap: 12px;
}

.ex-kline-page .btnbox_l,
.ex-kline-page .btnbox_r {
  height: 48px;
  line-height: 1;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ex-kline-page #centerbox {
  font-weight: 600;
}

.ex-kline-page .klinetitle_r .fzmm {
  font-size: 11px;
}

.ex-kline-page .klinetitle_r .fch {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}


.ex-trade-page .inputbox {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--ex-border) !important;
  border-radius: var(--ex-radius-sm);
  background: #fff;
  margin-top: 10px;
  height: 44px;
  min-height: 44px;
  overflow: hidden;
}

.ex-trade-page .inputbox_float {
  float: none !important;
  height: auto;
  min-width: 0;
}

.ex-trade-page .inputbox_float:first-child {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.ex-trade-page .inputbox_float[style*="40%"] {
  flex: 0 0 72px;
  width: 72px !important;
  max-width: 72px;
  display: flex;
  align-items: stretch;
  border-left: 1px solid var(--ex-border);
}

.ex-trade-page .inputbox_float[style*="40%"]:not(:has(.input_bi)),
.ex-trade-page .inputbox_suffix {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ex-trade-page .inputbox_suffix span {
  line-height: 1;
}

.ex-trade-page .xjinput {
  width: 100%;
  min-width: 0;
  background: transparent !important;
  border: none !important;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}

.ex-trade-page .input_bi {
  float: none !important;
  width: auto;
  flex: 1;
  height: auto;
  min-height: 40px;
  line-height: 1;
  margin-top: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ex-trade-page .blbox {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  height: auto;
}

.ex-trade-page .blbox_1,
.ex-trade-page .blbox_2 {
  float: none;
  flex: 1;
  width: auto;
  height: auto;
  margin-right: 0;
  cursor: pointer;
}

.ex-trade-page .blbox_3 {
  height: 4px;
  border-radius: 2px;
  background: var(--ex-border);
}

.ex-trade-page .blbox_3.bgf5 {
  background: var(--ex-primary);
}

.ex-trade-page .blbox_4 {
  text-align: center;
  line-height: 1.4;
  margin-top: 4px;
}

/* Order book (price / amount column) */
.ex-trade-page .tradebox_r {
  min-width: 0;
  overflow: hidden;
}

.ex-trade-page .depth-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
  padding: 0 2px 6px;
  margin-bottom: 2px;
}

.ex-trade-page .tradebox_title {
  float: none !important;
  width: auto !important;
  height: auto;
  line-height: 1.3;
}

.ex-trade-page .depth-head .tradebox_title.tl {
  text-align: left;
}

.ex-trade-page .depth-head .tradebox_title.tr {
  text-align: right;
}

.ex-trade-page .trade_listbox {
  height: auto;
  max-height: 160px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

.ex-trade-page .depth-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  min-height: 24px;
  padding: 2px 0;
}

.ex-trade-page .depth-row .trade_list {
  float: none !important;
  width: auto !important;
  height: auto;
  line-height: 1.3;
  padding: 0;
  min-width: 0;
  overflow: hidden;
}

.ex-trade-page .depth-row .trade_list.tl {
  text-align: left;
}

.ex-trade-page .depth-row .trade_list.tr {
  text-align: right;
}

.ex-trade-page .depth-row .trade_list span {
  display: block;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ex-trade-page .trade_listpricebox {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 4px;
  margin: 6px 0;
  background: #fafafa;
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius-sm);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  overflow: hidden;
  word-break: break-all;
}

.ex-trade-page .trade_listpricebox span {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Balance row + submit buttons */
.ex-trade-page .ex-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  margin-top: 16px;
}

.ex-trade-page .ex-balance-row__val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.ex-trade-page .ex-trade-action-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  line-height: 1 !important;
  margin-top: 16px;
  border-radius: var(--ex-radius-sm);
  text-align: center;
  cursor: pointer;
  font-weight: 600;
}

.ex-trade-page .ex-trade-action-btn span {
  color: #fff !important;
  line-height: 1;
}

.ex-trade-page .content_title_l {
  flex: 1;
  min-width: 0;
}

.ex-trade-page #marketbox {
  font-size: 16px !important;
  white-space: nowrap;
}

.ex-trade-page #changebox {
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}


.ex-trade-page .fccbox {
  height: 8px;
  background: var(--ex-bg);
  margin: 12px -12px;
}

.ex-trade-page .wtlistbox {
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius);
  padding: 0 12px;
  margin-top: 12px;
  box-shadow: var(--ex-shadow);
}

.ex-trade-page .o_title_box {
  float: none;
  width: auto;
  flex: 1;
  text-align: center;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.ex-trade-page .wtlistbox > div:first-child {
  display: flex;
}

.ex-trade-page .FCD535,
.ex-trade-page .order_title.FCD535 {
  border-bottom-color: var(--ex-primary) !important;
  color: var(--ex-primary);
}

.ex-trade-page .tlistbox_6 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: auto;
}

.ex-trade-page .tlistbox_7 {
  float: none;
  width: auto;
  height: auto;
}

.ex-trade-page .dong_con {
  width: 80%;
  max-width: 320px;
  height: 100vh;
  margin-top: 0;
  background: var(--ex-bg-card);
  padding: 16px;
  float: left;
  overflow-y: auto;
}

.ex-trade-page .bghc {
  background: #f5f7fa !important;
}

.ex-trade-page .cfff { color: #fff !important; }
.ex-trade-page .c000 { color: var(--ex-text) !important; }

.ex-trade-page .borderright {
  border-right: 1px solid var(--ex-border);
}

.ex-trade-page .bistyle {
  font-size: 20px;
  font-weight: bold;
}

.ex-trade-page .tlistbox {
  padding: 12px 0;
  border-bottom: 1px solid var(--ex-border);
}

.ex-trade-page .tlistbox_2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ex-trade-page .tlistbox_3,
.ex-trade-page .tlistbox_4 {
  float: none !important;
  width: auto !important;
  height: auto;
  line-height: 1.4;
}

.ex-trade-page .tlistbox_5 {
  background: #fafafa;
  border: 1px solid var(--ex-border);
}

.ex-trade-page .tl { text-align: left; }
.ex-trade-page .tr { text-align: right; }
.ex-trade-page .tc { text-align: center; }

.ex-trade-page .dong_sel_span {
  border-bottom-color: var(--ex-primary) !important;
  color: var(--ex-primary);
}

.ex-trade-page .dong_find_box {
  background: #f5f7fa;
  border: 1px solid var(--ex-border);
}

.ex-trade-page .dong_symbox {
  background: transparent !important;
}

.ex-trade-page .sy_list_box {
  display: flex;
  align-items: center;
  min-height: 36px;
  border-bottom: 1px solid var(--ex-border);
}

.ex-trade-page .sy_list_boxl,
.ex-trade-page .sy_list_boxr {
  float: none;
  flex: 1;
  height: auto;
  line-height: 1.4;
}

.ex-trade-page .order_title {
  display: inline-block;
  margin-right: 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.ex-trade-page .wtlistbox > div:first-child {
  display: flex;
  border-bottom: 1px solid var(--ex-border);
  margin-bottom: 0;
}

.ex-trade-page .o_title_box {
  border-bottom: 2px solid transparent;
  padding-bottom: 8px;
}

.ex-trade-page .FCD535 {
  border-bottom-color: var(--ex-primary) !important;
  color: var(--ex-primary);
}

.ex-trade-page .bggreen { background: var(--ex-success) !important; }
.ex-trade-page .bgred { background: var(--ex-danger) !important; }
.ex-trade-page .green { color: var(--ex-success) !important; }
.ex-trade-page .red { color: var(--ex-danger) !important; }

/* ctbill dynamic list */
.ex-bill-page .ex-bill-panel .listbox {
  height: auto !important;
  min-height: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ex-border) !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}

.ex-bill-page #list_box,
.ex-bill-page #tylist_box {
  margin-top: 0 !important;
  background: transparent !important;
}

.ex-bill-page .progress-bar {
  background-color: var(--ex-primary) !important;
}

.ex-bill-page .listbox {
  margin-top: 0 !important;
  background: var(--ex-bg-card);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-radius);
  padding: 0 12px;
  box-shadow: var(--ex-shadow);
}

.ex-bill-page .tlistbox {
  padding: 12px 0;
  border-bottom: 1px solid var(--ex-border);
}

.ex-bill-page .tlistbox:last-child {
  border-bottom: none;
}

.ex-bill-page .tlistbox_1 {
  border-bottom: none;
}

.ex-bill-page .tlistbox_2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: auto;
  margin-bottom: 8px;
}

.ex-bill-page .tlistbox_3,
.ex-bill-page .tlistbox_4 {
  float: none !important;
  width: auto !important;
  height: auto;
  line-height: 1.4;
}

.ex-bill-page .tlistbox_6 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  height: auto;
  margin-top: 4px;
}

.ex-bill-page .tlistbox_7 {
  float: none !important;
  width: auto !important;
  height: auto;
}

.ex-bill-page .tlistbox_8,
.ex-bill-page .tlistbox_9 {
  height: auto;
  line-height: 1.4;
}

.ex-bill-page .tl { text-align: left; }
.ex-bill-page .tc { text-align: center; }
.ex-bill-page .tr { text-align: right; }
.ex-bill-page .green { color: var(--ex-success) !important; }
.ex-bill-page .red { color: var(--ex-danger) !important; }
.ex-bill-page .emptybox {
  text-align: center;
  padding: 48px 16px;
  color: var(--ex-text-secondary);
}

/* ========== Wallet pages (address / withdraw) ========== */
html body.ex-wallet-page {
  background: #fff !important;
}

.ex-wallet-page {
  --uo-green: #14ac5a;
  --uo-green-dark: #0a8f4a;
  --uo-shadow-card: 0 4px 16px rgba(16, 24, 40, 0.06);
  --wallet-head-h: 50px;
  min-height: 100vh;
  background: #fff !important;
  overflow-x: hidden;
  padding-bottom: 24px;
}

.wallet-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: calc(var(--wallet-head-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #eef0f3;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.wallet-head i.bi-arrow-left,
.wallet-head__action {
  width: 40px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1e2329;
  font-size: 22px;
  text-decoration: none;
  flex-shrink: 0;
  font-family: bootstrap-icons !important;
  font-style: normal;
  border: none;
  background: transparent;
  padding: 0;
}

.wallet-head__action {
  width: auto;
  min-width: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--uo-green-dark);
}

.wallet-head__action--ghost {
  visibility: hidden;
}

.wallet-head span:nth-child(2) {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: #1e2329;
}

.wallet-body {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: calc(var(--wallet-head-h) + env(safe-area-inset-top, 0px) + 16px) 14px 24px;
  overflow-x: hidden;
}

.wallet-body--with-footer {
  padding-bottom: 90px;
}

.wallet-body--form {
  padding-bottom: 32px;
}

.wallet-balance-card {
  margin-bottom: 14px;
  padding: 18px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0fff8 0%, #ffffff 100%);
  border: 1px solid rgba(20, 172, 90, 0.18);
  box-shadow: var(--uo-shadow-card);
  text-align: center;
}

.wallet-balance-card__label {
  display: block;
  font-size: 13px;
  color: #707a8a;
  margin-bottom: 6px;
}

.wallet-balance-card__amount {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #1e2329;
  letter-spacing: -0.02em;
}

.wallet-summary-row--highlight {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed #eef0f3;
}

.wallet-summary-row--highlight strong {
  color: var(--uo-green-dark);
  font-size: 16px;
}

.wallet-btn--submit {
  margin-top: 8px;
  height: 48px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(20, 172, 90, 0.25);
}

.wallet-tip {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fffb;
  border: 1px solid rgba(20, 172, 90, 0.15);
  color: #5b7a6d;
  font-size: 12px;
  line-height: 1.5;
}

.wallet-empty {
  padding: 48px 16px;
  text-align: center;
  color: #707a8a;
}

.wallet-empty i {
  font-size: 40px;
  color: #c5d0cb;
  font-family: bootstrap-icons !important;
  font-style: normal;
}

.wallet-empty p {
  margin: 12px 0 16px;
  font-size: 14px;
}

.wallet-card-list {
  display: grid;
  gap: 12px;
}

.wallet-addr-card {
  padding: 14px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  box-shadow: var(--uo-shadow-card);
}

.wallet-addr-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.wallet-addr-card__head strong {
  font-size: 15px;
  color: #1e2329;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-addr-card__head em {
  font-style: normal;
  color: #707a8a;
  font-weight: 500;
}

.wallet-addr-card__del {
  border: none;
  background: #fff5f5;
  color: #f6465d;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.wallet-addr-card__addr {
  font-size: 13px;
  color: #1e2329;
  line-height: 1.55;
  word-break: break-all;
}

.wallet-coin-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f0fff8;
  border: 1px solid rgba(20, 172, 90, 0.2);
  color: var(--uo-green-dark);
  font-size: 13px;
  font-weight: 600;
}

.wallet-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #eef0f3;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.wallet-btn {
  display: inline-block;
  height: 42px;
  line-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid #eef0f3;
  background: #fff;
  color: #1e2329 !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  text-align: center;
}

.wallet-btn--primary {
  background: var(--uo-green);
  border-color: var(--uo-green);
  color: #fff !important;
}

.wallet-btn--block {
  display: block;
  width: 100%;
}

.wallet-form-card {
  margin-bottom: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  box-shadow: var(--uo-shadow-card);
}

.wallet-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
}

.wallet-form-row + .wallet-form-row {
  border-top: 1px solid #f0f2f5;
}

.wallet-form-row__label {
  font-size: 14px;
  color: #707a8a;
  flex-shrink: 0;
}

.wallet-form-row__val {
  font-size: 14px;
  font-weight: 600;
  color: #1e2329;
  text-align: right;
}

.wallet-form-row__tag {
  padding: 4px 10px;
  border-radius: 8px;
  background: #f0fff8;
  border: 1px solid rgba(20, 172, 90, 0.2);
  color: var(--uo-green-dark);
  font-size: 12px;
  font-weight: 600;
}

.wallet-field {
  display: block;
  margin-bottom: 14px;
}

.wallet-field:last-child {
  margin-bottom: 0;
}

.wallet-field > span,
.wallet-field__head span:first-child {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #1e2329;
  font-weight: 500;
}

.wallet-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.wallet-field__extra {
  font-size: 12px;
  color: #707a8a;
}

.wallet-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  background: #f8f9fb !important;
  font-size: 14px;
  color: #1e2329;
  box-sizing: border-box;
}

.wallet-field input:disabled,
.wallet-field input[readonly] {
  color: #707a8a;
}

.wallet-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-input-row input {
  flex: 1;
  min-width: 0;
}

.wallet-input-row__btn,
.wallet-input-row__text {
  flex-shrink: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  background: #fff;
  color: var(--uo-green-dark);
  font-size: 13px;
  font-weight: 600;
}

.wallet-input-row__btn {
  width: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wallet-input-row__btn i {
  font-family: bootstrap-icons !important;
  font-style: normal;
}

.wallet-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid #f0f2f5;
  font-size: 14px;
  color: #707a8a;
}

.wallet-summary-row strong {
  color: var(--uo-green-dark);
  font-size: 15px;
}

.wallet-notice {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fafbfc;
  border: 1px solid #eef0f3;
}

.wallet-notice p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #707a8a;
}

.wallet-notice p:last-child {
  margin-bottom: 0;
}

.wallet-notice__warn {
  color: #e67e22 !important;
  font-weight: 600;
}

.wallet-alert {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #fff9f0;
  border: 1px solid #ffe0b2;
}

.wallet-alert strong {
  display: block;
  margin-bottom: 6px;
  color: #1e2329;
  font-size: 15px;
}

.wallet-alert p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #707a8a;
  line-height: 1.5;
}

.wallet-section-title {
  margin: 0 0 10px 2px;
}

.wallet-section-title span {
  display: inline-block;
  padding-left: 10px;
  border-left: 3px solid var(--uo-green);
  color: #1e2329;
  font-size: 14px;
  font-weight: 600;
}

.wallet-coin-list {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--uo-shadow-card);
}

.wallet-coin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #f0f2f5;
  text-decoration: none !important;
  color: inherit !important;
}

.wallet-coin-item:last-child {
  border-bottom: none;
}

.wallet-coin-item__main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wallet-coin-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0fff8;
  border: 1px solid rgba(20, 172, 90, 0.2);
  color: var(--uo-green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.wallet-coin-item__main strong {
  display: block;
  font-size: 15px;
  color: #1e2329;
}

.wallet-coin-item__main span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #707a8a;
}

.wallet-coin-item__tail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 12px;
  color: #707a8a;
}

.wallet-coin-item__tail i {
  font-family: bootstrap-icons !important;
  font-style: normal;
}

.wallet-modal {
  width: 88%;
  max-width: 400px;
  margin: 18vh auto 0;
  padding: 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.wallet-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wallet-modal__head button {
  border: none;
  background: transparent;
  color: #707a8a;
  font-size: 13px;
}

.wallet-modal__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f5;
  color: var(--uo-green-dark) !important;
  font-size: 14px;
  text-decoration: none !important;
}

.wallet-modal__addr {
  padding: 10px 0;
  font-size: 13px;
  color: #1e2329;
  line-height: 1.6;
  word-break: break-all;
}

.wallet-modal__addr i {
  font-family: bootstrap-icons !important;
  font-style: normal;
  color: #9aa5b5;
  margin-right: 4px;
}

.ex-wallet-page .dongbox_cbox {
  background: #fff;
  border-radius: 14px;
}

/* Personal center v2 (tebbit style) */
.uoption-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 16px;
  text-decoration: none !important;
  color: inherit;
}

.uoption-user-row__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.uoption-user-row__main {
  flex: 1;
  min-width: 0;
}

.uoption-user-row__name {
  font-size: 18px;
  font-weight: 700;
  color: #050505;
  line-height: 1.3;
}

.uoption-user-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.uoption-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.uoption-tag img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.uoption-tag--vip {
  background: #111;
  color: #fff;
}

.uoption-tag--uid {
  background: #f3f4f6;
  color: #707a8a;
}

.uoption-user-row__arrow {
  color: #c4cad3;
  font-size: 18px;
  flex-shrink: 0;
}

.uoption-invite-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eefbf3, #f8fff9);
  text-decoration: none !important;
  color: inherit;
}

.uoption-invite-banner__text strong {
  display: block;
  font-size: 15px;
  color: #050505;
}

.uoption-invite-banner__text p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #707a8a;
}

.uoption-invite-banner img {
  width: 72px;
  height: auto;
  flex-shrink: 0;
}

.uoption-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.uoption-quick-grid a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 8px 4px;
  border-radius: 12px;
  background: #fff;
  text-decoration: none !important;
  color: #050505;
}

.uoption-quick-grid img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.uoption-quick-grid span {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}

.uoption-quick-grid em {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 1px 4px;
  border-radius: 4px;
  background: #f6465d;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.uoption-menu-list {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eef0f3;
}

.uoption-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none !important;
  color: #050505;
}

.uoption-menu-item:last-child {
  border-bottom: 0;
}

.uoption-menu-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.uoption-menu-item > span:first-of-type {
  flex: 1;
  font-size: 15px;
}

.uoption-menu-item > i.bi-chevron-right {
  color: #c4cad3;
  font-size: 16px;
}

.uoption-menu-extra {
  margin-right: 4px;
}

.uoption-menu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f6465d;
  margin-right: 6px;
}

.ex-uoption-page .uoption-logout {
  display: block;
  margin-top: 18px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  border-radius: 12px;
  background: #f5f6f7;
  color: #707a8a;
  font-size: 15px;
  text-decoration: none !important;
}

