
/* =========================================================
   CoinASX Trade UI Exact V62
   Reference target from user-provided HTML
   Visual/layout override only
   ========================================================= */
:root{
  --v62-bg:#070707;
  --v62-panel:#1c1c1e;
  --v62-panel2:#242426;
  --v62-line:#2d2d2f;
  --v62-text:#f5f5f7;
  --v62-muted:#9a9aa0;
  --v62-green:#b8e83d;
  --v62-green-d:#38451f;
  --v62-red:#ee4e62;
  --v62-red-d:#36161b;
}

html,body,#app,.appContent,.mainBackground{
  background:var(--v62-bg)!important;
  color:var(--v62-text)!important;
}
body{
  -webkit-font-smoothing:antialiased!important;
  text-rendering:optimizeLegibility!important;
}
*{box-sizing:border-box!important}

/* ===== top header ===== */
.contract-header{
  background:var(--v62-bg)!important;
  border-bottom:1px solid #1a1a1a!important;
  box-shadow:none!important;
  position:relative!important;
}
.contract-header>.pl-30{
  padding-left:15px!important;
  padding-right:15px!important;
}
.contract-header .pt-45{
  padding-top:14px!important;
  padding-bottom:10px!important;
  min-height:58px!important;
  align-items:center!important;
}
.contract-header .font-35{
  font-size:20px!important;
  line-height:24px!important;
  font-weight:800!important;
  letter-spacing:-.3px!important;
  color:#fff!important;
}
.contract-header .ml-15{
  margin-left:8px!important;
  color:#8e8e93!important;
  font-size:13px!important;
}
.contract-header .pl-30.w-160{
  width:auto!important;
  padding-left:8px!important;
  font-size:15px!important;
  font-weight:600!important;
}
.contract-header img.w-35{
  width:24px!important;
  height:24px!important;
  object-fit:contain!important;
}
.contract-header img.w-38{
  width:22px!important;
  height:22px!important;
  object-fit:contain!important;
}

/* ===== main trade grid ===== */
.perpetual-open{
  margin:0!important;
  padding:10px 15px 0!important;
  background:var(--v62-bg)!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.perpetual-open>.pt-30{
  padding-top:0!important;
  padding-bottom:0!important;
}
.perpetual-open>.pt-30>.flex{
  gap:14px!important;
  align-items:flex-start!important;
}
.perpetual-open .w-440.flex.flex-col{
  width:58%!important;
  min-width:0!important;
  flex:none!important;
}
.perpetual-open>.pt-30>.flex>.ml-30{
  width:42%!important;
  min-width:0!important;
  margin-left:0!important;
  flex:none!important;
}

/* ===== header-open: 全仓 / 杠杆 ===== */
.header-open{
  border:0!important;
  padding-bottom:10px!important;
}
.header-open .pt-34{
  padding-top:0!important;
  gap:8px!important;
}
.header-open .w-180{
  width:50%!important;
  height:38px!important;
  line-height:38px!important;
  border-radius:9px!important;
  background:#202022!important;
  border:0!important;
  color:#fff!important;
  font-size:14px!important;
}
.header-open .w-140{
  width:40%!important;
  height:38px!important;
  line-height:38px!important;
  margin-left:0!important;
  border-radius:9px!important;
  background:#202022!important;
  border:0!important;
}
.header-open .select-wrap{
  width:100%!important;
  height:38px!important;
  padding-left:12px!important;
  padding-right:10px!important;
  border-radius:9px!important;
  font-size:14px!important;
  color:#fff!impor
}
.header-open .select-wrap img.w-22{
  width:11px!important;
  
}

/* ===== open/close segmented tabs ===== */
.perpetual-open .w-440>.flex.items-center.h-66{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  height:48px!important;
  min-height:48px!important;
  padding:4px!important;
  margin-bottom:14px!important;
  background:#202022!important;
  border-rad
  overflow:hidden!important;
}
.perpetual-o
  height:40px!important;
  min-height:40px!important;
  line-height:40px!important;
  border-radius:9px!important;
  font-size:16px!important;
  font-weight:700!important;
  color:#fff!important;
  background:transparent!important;
}
.perpetual-open .w-440>.flex.items-center.h-66>p.long{
  background
  color:var(--v62-green)!impo
  margin:0!important;
}

/* ===== order type ===== */
.perpetual-open .mt-30.mb-30{
  margin-top:0!important;
  margin-bottom:12px!important;
}
.perpetual-open .mt-30.mb-30>.inputBackground.h-76{
  min-height:52px!important;
  height:52px!important;
  line-height:52px!important;
  padding:0 12px!important;
  background:#202022!important;
  border:0!important;
  border-radius:12px!important;
  color:#fff!important;
}
.perpetual-open .mt-30.mb-30>.inputBackground.h-76 .text-center{
  font-size:16px!important;
  font-weight:700!important;
}

/* ===== all fields ===== */
.perpetual-open .h-76.inputBackground,
.perpetual-open .w-440.flex.items-center.inputBackground.h-76{
  min-height:52px!important;
  height:52px!important;
  line-height:52px!important;
  margin-bottom:12px!important;
  padding-left:12px!important;
  padding-right:12px!important;
  background:#202022!important;
  border:0!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
.perpetual-open .h-76 input,
.perpetual-open input[type="number"]{
  height:50px!important;
  min-height:50px!important;
  line-height:50px!important;
  background:transparent!important;
  color:#fff!important;
  border:0!important;
  outline:0!important;
  font-size:17px!important;
  font-weight:600!important;
  padding-left:0!important;
}
.perpetual-open input::placeholder{
  color:#9a9aa0!important;
  font-size:15px!important;
  font-weight:500!important;
}
.perpetual-open .h-76 span{
  color:#c8c8ca!important;
  font-size:14px!important;
  white-space:nowrap!important;
}
.perpetual-open .rounded-lg,
.perpetual-open .rounded-md{
  border-radius:12px!important;
}

/* ===== quantity +/- ===== */
.perpetual-open .w-440.flex.items-center.inputBackground.h-76{
  width:100%!important;
  overflow:hidden!important;
}
.perpetual-open .w-80{
  width:42px!important;
  min-width:42px!important;
}
.perpetual-open .w-80 img.w-30{
  width:16px!important;
  height:16px!important;
  object-fit:contain!important;
}
.perpetual-open .w-80 img.h-6{
  height:3px!important;
}

/* ===== slider ===== */
.perpetual-open .mt-40.mb-30{
  margin-top:8px!important;
  margin-bottom:10px!important;
}
.slider-index{
  padding:3px 0 5px!important;
}
.vue-slider-rail{
  background:#28282a!important;
  height:3px!important;
}
.vue-slider-process{
  background:var(--v62-green)!important;
}
.custom-step{
  width:10px!important;
  height:10px!important;
  background:#1d1d1f!important;
  border:0!important;
  border-radius:2px!important;
  transform:rotate(45deg)!important;
}
.custom-step.active{
  background:#fff!important;
}
.vue-slider-dot{
  width:13px!important;
  height:13px!important;
}
.vue-slider-dot-handle{
  background:#fff!important;
  border:0!important;
  border-radius:2px!important;
  transform:rotate(45deg)!important;
  box-shadow:none!important;
}
.poecs{
  color:#9a9aa0!important;
  font-size:10px!important;
  margin-top:6px!important;
}

/* ===== available/meta ===== */
.perpetual-open .mt-40.mb-30 .font-22{
  font-size:13px!important;
}
.perpetual-open .w-full.mt-120{
  margin-top:14px!important;
  padding-top:0!important;
  border:0!important;
}
.perpetual-open .w-full.mt-120 p{
  font-size:13px!important;
  line-height:20px!important;
  color:#a6a6ab!important;
}

/* ===== main CTA ===== */
.perpetual-open .btnBackground{
  width:100%!important;
  height:50px!important;
  min-height:50px!important;
  line-height:50px!important;
  margin-top:14px!important;
  border-radius:12px!important;
  background:var(--v62-green)!important;
  color:#101010!important;
  font-size:17px!important;
  font-weight:800!important;
  box-shadow:none!important;
}

/* ===== order book ===== */
.deep-data{
  width:100%!important;
  background:var(--v62-bg)!important;
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  overflow:hidden!important;
  color:#fff!important;
}
.deep-data>.flex.justify-between.text-grey{
  padding:0 0 10px!important;
  margin:0!important;
  border:0!important;
  color:#929297!important;
  font-size:12px!important;
}
.deep-data .font-24{
  font-size:12px!important;
}
.deep-data .font-26{
  font-size:13px!important;
  line-height:18px!important;
  padding-top:4px!important;
  padding-bottom:4px!important;
  font-variant-numeric:tabular-nums!important;
}
.deep-data .font-34{
  font-size:20px!important;
  line-height:25px!important;
  font-weight:800!important;
  padding-top:12px!important;
}
.deep-data .approximately-text{
  color:#8f8f94!important;
  font-size:11px!important;
}
.text-green{color:var(--v62-green)!important}
.text-red{color:var(--v62-red)!important}
.text-grey{color:var(--v62-muted)!important}

/* depth select footer */
.k-select-box{
  display:grid!important;
  grid-template-columns:auto 1fr!important;
  gap:10px!important;
  align-items:center!important;
  margin-top:10px!important;
}
.k-select-box .select-box{
  margin:0!important;
  min-width:0!important;
  background:#222224!important;
  border:0!important;
  border-radius:9px!important;
  color:#c8c8cc!important;
}
.k-select-box .h-70{
  height:38px!important;
  min-height:38px!important;
}
.k-select-box img.w-36{
  width:22px!important;
  height:18px!important;
  opacity:.85!important;
}

/* ===== positions / orders section ===== */
[data-v-fd92b1e2].pl-30.pr-30{
  margin:26px 0 0!important;
  padding:20px 15px!important;
  background:var(--v62-bg)!important;
  border:0!important;
  border-top:1px solid #1b1b1d!important;
  border-radius:0!important;
  box-shadow:none!important;
}
[data-v-fd92b1e2] .border-b-color{
  border-bottom:1px solid #1b1b1d!important;
}
[data-v-fd92b1e2] .px-10{
  font-size:16px!important;
  font-weight:700!important;
  color:#929297!important;
}
[data-v-fd92b1e2] .active-line{
  color:#fff!important;
}
[data-v-fd92b1e2] .active-line:after{
  background:#fff!important;
  height:3px!important;
  border-radius:3px!important;
}
.py-300{
  min-height:210px!important;
  padding-top:70px!important;
  padding-bottom:70px!important;
  color:#c9c9cc!important;
  font-size:15px!important;
}

/* ===== K-line block ===== */
.cx54-kline-host{
  margin:10px 15px 0!important;
  width:auto!important;
  height:210px!important;
  border-top:1px solid #1b1b1d!important;
  border-bottom:0!important;
  border-radius:0!important;
  background:#070707!important;
}
.cx54-toolbar{
  background:#070707!important;
  border-bottom:1px solid #1b1b1d!important;
  padding-left:0!important;
  padding-right:0!important;
}
.cx54-period{color:#8e8e93!important}
.cx54-period.active{color:#fff!important}
.cx54-period.active:after{background:var(--v62-green)!important}
.cx54-chart-wrap{background:#070707!important}

/* ===== bottom navigation ===== */
.van-tabbar--fixed{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:10px!important;
  transform:translateX(-50%)!important;
  width:calc(100% - 30px)!important;
  max-width:760px!important;
  height:66px!important;
  padding:8px!important;
  background:#151517!important;
  border:1px solid #2a2a2d!important;
  border-radius:38px!important;
  box-shadow:none!important;
  overflow:hidden!important;
  z-index:50!important;
}
.van-tabbar-item{
  background:transparent!important;
  color:#b7b7bb!important;
  font-size:12px!important;
  border-radius:28px!important;
}
.van-tabbar-item--active{
  background:#3a3a3d!important;
  color:#fff!important;
  font-weight:600!important;
}
.van-tabbar-item--active .van-tabbar-item__icon{
  color:var(--v62-green)!important;
}
.van-tabbar-item__icon img{
  width:20px!important;
  height:20px!important;
  object-fit:contain!important;
}
.appContent{
  padding-bottom:110px!important;
}

/* ===== mobile exact proportions ===== */
@media(max-width:690px){
  .contract-header>.pl-30,
  .perpetual-open,
  [data-v-fd92b1e2].pl-30.pr-30{
    padding-left:15px!important;
    padding-right:15px!important;
  }
  .perpetual-open>.pt-30>.flex{
    gap:14px!important;
  }
  .perpetual-open .w-440.flex.flex-col{
    width:58%!important;
  }
  .perpetual-open>.pt-30>.flex>.ml-30{
    width:42%!important;
  }
  .perpetual-open .h-76.inputBackground,
  .perpetual-open .w-440.flex.items-center.inputBackground.h-76{
    height:52px!important;
    min-height:52px!important;
  }
  .deep-data .font-26{
    font-size:12px!important;
  }
}

/* ===== desktop center like reference app ===== */
@media(min-width:768px){
  body{
    display:flex!important;
    justify-content:center!important;
    background:#070707!important;
  }
  #app{
    width:min(100%,820px)!important;
    max-width:820px!important;
    margin:0 auto!important;
    background:#070707!important;
    box-shadow:none!important;
  }
}

