@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@400;500;600;700;800&display=swap');

:root {
  --kc-bg: #050819;
  --kc-bg-soft: #0b0c10;
  --kc-surface: #141416;
  --kc-panel: #181a20;
  --kc-panel-2: #1a1c24;
  --kc-border: rgba(255, 255, 255, 0.08);
  --kc-accent: #0b9671;
  --kc-accent-2: #04c793;
  --kc-cyan: #06b6d4;
  --kc-text: #fcfcfd;
  --kc-muted: #777e90;
  --kc-danger: #ef5450;
  --kc-success: #0b9671;
  --kc-chart: #011022;
  --kc-font: 'Sarabun', system-ui, -apple-system, sans-serif;
}

.kc-bg { background-color: var(--kc-bg) !important; }
.kc-bg-surface { background-color: var(--kc-surface) !important; }
.kc-bg-panel { background-color: var(--kc-panel) !important; }
.kc-accent { color: var(--kc-accent) !important; }
.kc-cyan { color: var(--kc-cyan) !important; }
.kc-text { color: var(--kc-text) !important; }
.kc-muted { color: var(--kc-muted) !important; }
.kc-border { border-color: var(--kc-border) !important; }

.btn-kc-primary,
.btn-start-now {
  background-image: linear-gradient(135deg, var(--kc-accent), var(--kc-accent-2)) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
}

.btn-kc-secondary {
  background-color: #2f3342 !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
}

.btn-kc-buy,
.btn-buy {
  background: linear-gradient(180deg, #0b9671, #067a5c) !important;
  border: none !important;
}

.btn-kc-sell,
.btn-sell {
  background: linear-gradient(180deg, #ef5450, #c73d3a) !important;
  border: none !important;
}

/* Scroll-reveal: ẩn trước khi IntersectionObserver gắn class */
body.kc-landing [data-reveal] {
  opacity: 0;
}

body.kc-landing [data-reveal].fade-up,
body.kc-landing [data-reveal].slide-in-left,
body.kc-landing [data-reveal].slide-in-right {
  /* animation class tự xử lý opacity qua keyframes */
}

body.kc-landing #limo-particles.particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Auth right-sheet: override Bootstrap + Vuesax overlay placeholders */
body.kc-landing .contentAuthentication {
  color: #fff !important;
}

body.kc-landing .contentAuthentication h2 {
  color: #04c793 !important;
  font-family: Inter, Sarabun, sans-serif;
}

body.kc-landing .contentAuthentication .vs-con-input-label {
  position: relative;
  width: 100% !important;
}

body.kc-landing .contentAuthentication .vs-con-input {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

body.kc-landing .contentAuthentication .vs-input--label {
  color: hsla(0, 0%, 100%, 0.6) !important;
  font-size: 11px !important;
  font-style: italic !important;
  display: block !important;
  margin-bottom: 4px !important;
}

body.kc-landing .contentAuthentication input.vs-input--input,
body.kc-landing .contentAuthentication input.vs-inputx {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
  background: rgba(22, 23, 24, 0.6) !important;
  border: 1px solid hsla(0, 0%, 100%, 0.12) !important;
  border-radius: 8px !important;
  height: 42px !important;
  padding: 8px 40px 8px 14px !important;
  font-size: 13px !important;
  width: 100% !important;
  box-shadow: none !important;
  outline: none !important;
  position: relative;
  z-index: 1;
}

body.kc-landing .contentAuthentication input.vs-input--input:focus,
body.kc-landing .contentAuthentication input.vs-inputx:focus {
  border-color: #04c793 !important;
  background: rgba(22, 23, 24, 0.9) !important;
  box-shadow: 0 0 10px rgba(4, 199, 147, 0.2) !important;
}

/* Overlay placeholder span (như HTML gốc Vuesax) */
body.kc-landing .contentAuthentication .vs-input--placeholder,
body.kc-landing .contentAuthentication .input-span-placeholder {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 14px !important;
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  color: hsla(0, 0%, 100%, 0.35) !important;
  -webkit-text-fill-color: hsla(0, 0%, 100%, 0.35) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  pointer-events: none !important;
  user-select: none !important;
  z-index: 2;
  transition: opacity .2s ease, transform .2s ease;
  background: transparent !important;
  border: 0 !important;
}

body.kc-landing .contentAuthentication .vs-input--input:focus + .vs-input--placeholder {
  transform: translateX(4px);
}

body.kc-landing .contentAuthentication .vs-input--input.hasValue + .vs-input--placeholder,
body.kc-landing .contentAuthentication .vs-input--input:focus + .vs-input--placeholder {
  opacity: 0 !important;
}

body.kc-landing .contentAuthentication input:-webkit-autofill,
body.kc-landing .contentAuthentication input:-webkit-autofill:hover,
body.kc-landing .contentAuthentication input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
  transition: background-color 99999s ease-out;
  box-shadow: 0 0 0 1000px rgba(22, 23, 24, 0.95) inset !important;
}

body.kc-landing .contentAuthentication .mb-5.kc-field {
  position: relative !important;
}

/* Icon mắt neo trong ô input */
body.kc-landing .contentAuthentication .vs-con-input .viewPass {
  position: absolute !important;
  top: 50% !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  z-index: 5;
  width: 20px;
  height: 20px;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
  float: none !important;
}

body.kc-landing .contentAuthentication .vs-con-input .viewPass svg {
  width: 18px;
  height: 18px;
  display: block;
}

body.kc-landing .contentAuthentication .viewPass,
body.kc-landing .contentAuthentication .viewPass svg,
body.kc-landing .contentAuthentication .viewPass .feather {
  color: hsla(0, 0%, 100%, 0.55) !important;
  stroke: currentColor !important;
  fill: none !important;
}

body.kc-landing .contentAuthentication .viewPass:hover,
body.kc-landing .contentAuthentication .viewPass:hover svg {
  color: #04c793 !important;
}

body.kc-landing .contentAuthentication .viewPass.hidden {
  display: none !important;
}

body.kc-landing .contentAuthentication .viewPass:not(.hidden) {
  display: block !important;
}

body.kc-landing .contentAuthentication .header {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 36px;
  width: 100%;
}

body.kc-landing .contentAuthentication .logoLogin {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

body.kc-landing .contentAuthentication .close-page {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  flex: 0 0 32px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2;
}

body.kc-landing .contentAuthentication .close-page:hover {
  transform: rotate(90deg) scale(1.05) !important;
}

body.kc-landing .contentAuthentication .close-page,
body.kc-landing .contentAuthentication .close-page svg,
body.kc-landing .contentAuthentication .close-page .feather {
  color: #fff !important;
  stroke: #fff !important;
}

body.kc-landing .contentAuthentication .colorGray,
body.kc-landing .contentAuthentication .bottomText {
  color: hsla(0, 0%, 100%, 0.45) !important;
}

body.kc-landing .contentAuthentication .bottomText a,
body.kc-landing .contentAuthentication a.cursor-pointer {
  color: #04c793 !important;
}

body.kc-landing .contentAuthentication .md-count {
  color: hsla(0, 0%, 100%, 0.35) !important;
  position: absolute !important;
  right: 0 !important;
  bottom: -18px !important;
  float: none !important;
  font-size: 11px;
  line-height: 1;
}

body.kc-landing .contentAuthentication .md-error {
  color: #ef4444 !important;
  font-size: 11px !important;
  font-style: italic;
  display: block;
  min-height: 14px;
}

body.kc-landing .contentAuthentication .vs-button,
body.kc-landing .contentAuthentication .vs-button .vs-button-text,
body.kc-landing .contentAuthentication .vs-button span {
  color: #fff !important;
}

body.kc-landing .contentAuthentication .vs-button-success,
body.kc-landing .contentAuthentication .vs-button-primary,
body.kc-landing .contentAuthentication button.vs-button {
  background: #04c793 !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 12px 18px !important;
  width: 100% !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer;
}

body.kc-landing .contentAuthentication .vs-button:hover {
  background: #05db9e !important;
}

body.kc-landing .btn-close-auth {
  background: transparent;
  border: none;
  padding: 0;
}
body.kc-landing .auth-logo { height: 36px; width: auto; }
body.kc-landing .form-control {
  background-color: #181a20 !important;
  border-color: rgb(77 80 93) !important;
  color: #fff !important;
}
body.kc-landing .form-control:focus {
  box-shadow: 0 0 0 0.15rem rgba(11,150,113,.25) !important;
  border-color: #0b9671 !important;
}
body.kc-landing .form-control::placeholder {
  color: hsla(0, 0%, 100%, 0.35) !important;
  opacity: 1 !important;
}
body.kc-landing .togglePassword {
  background: transparent !important;
  color: #fff !important;
  border-color: rgb(77 80 93) !important;
}
.kc-muted { color: #777e90 !important; }
.kc-accent { color: #0b9671 !important; }

/* Scroll-reveal: ẩn trước khi JS gắn fade-up / slide-in */
body.kc-landing [data-reveal] {
  opacity: 0;
}

body.kc-landing #limo-particles.particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Trade shell skin — chart = .leftBar, bet panel = .rightBar (clone /index) */
body.kc-trade {
  background: #011022 !important;
  color: var(--kc-text) !important;
  font-family: var(--kc-font);
}

body.kc-trade .bg-dark,
body.kc-trade .nav-sidebar {
  background-color: #011022 !important;
}

body.kc-trade.kc-authed .kc-page {
  background: #011022 !important;
  min-height: calc(100vh - var(--kc-navbar-h, 70px));
  overflow: hidden;
}

#tradePage.trade-container {
  min-height: calc(100vh - var(--kc-navbar-h, 70px));
  height: calc(100vh - var(--kc-navbar-h, 70px));
  max-height: calc(100vh - var(--kc-navbar-h, 70px));
  background: #011022;
  padding-top: 0 !important;
}

#tradePage .chartBox {
  position: relative !important;
  min-width: 0;
  height: 100% !important;
  background: #011022 !important;
  overflow: visible !important;
}

#tradePage .leftBar {
  position: relative !important;
  overflow: hidden !important;
  min-width: 0 !important;
}

#tradePage .rightBar {
  background: #161c2d !important;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

@media screen and (min-width: 992px) {
  #tradePage,
  #tradePage > .vx-row,
  #tradePage > .vx-row > .rightBar,
  #tradePage > .vx-row > .leftBar {
    height: 100% !important;
    max-height: 100% !important;
  }

  #tradePage > .vx-row > .leftBar {
    min-width: 0 !important;
    overflow: hidden !important;
  }
}

#tradePage .btn-buy-sell,
#tradePage .btn-trade {
  height: 48px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  width: 100%;
  border: none !important;
  color: #fff !important;
}

#tradePage .btn-buy-sell .vs-button-text,
#tradePage .btn-buy-sell .vs-button--text {
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

#tradePage .btn-buy-sell .feather,
#tradePage .c-desktop .btn-buy-sell .feather {
  width: 16px !important;
  height: 16px !important;
}

#tradePage .btn-buy,
#tradePage .btn-buy.btn-buy-sell,
#tradePage .btn-buy.vs-button-success,
body.kc-trade #tradePage .btn-buy {
  background: #01b58c !important;
  background-color: #01b58c !important;
  background-image: none !important;
}

#tradePage .btn-buy:hover,
#tradePage .btn-buy:focus {
  background: #01b58c !important;
  background-color: #01b58c !important;
  filter: brightness(1.05);
}

#tradePage .btn-sell,
#tradePage .btn-sell.btn-buy-sell,
#tradePage .btn-sell.vs-button-danger,
body.kc-trade #tradePage .btn-sell {
  background: #f81057 !important;
  background-color: #f81057 !important;
  background-image: none !important;
}

#tradePage .btn-sell:hover,
#tradePage .btn-sell:focus {
  background: #f81057 !important;
  background-color: #f81057 !important;
  filter: brightness(1.05);
}

/* Chờ kết quả — disable MUA/BÁN xám #3e4757 */
#tradePage .btn-buy:disabled,
#tradePage .btn-sell:disabled,
#tradePage .btn-buy.disabled,
#tradePage .btn-sell.disabled,
#tradePage .btn-buy-sell:disabled,
#tradePage .btn-buy-sell.disabled,
#tradePage .btn-trade:disabled,
#tradePage .btn-trade.disabled,
body.kc-trade #tradePage .btn-buy:disabled,
body.kc-trade #tradePage .btn-sell:disabled,
body.kc-trade #tradePage .btn-buy.disabled,
body.kc-trade #tradePage .btn-sell.disabled {
  background: #3e4757 !important;
  background-color: #3e4757 !important;
  background-image: none !important;
  color: #a0aab8 !important;
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  filter: none !important;
  pointer-events: none !important;
}

#tradePage .btn-buy:disabled .vs-button-text,
#tradePage .btn-sell:disabled .vs-button-text,
#tradePage .btn-buy.disabled .vs-button-text,
#tradePage .btn-sell.disabled .vs-button-text,
#tradePage .btn-buy:disabled .feather,
#tradePage .btn-sell:disabled .feather,
#tradePage .btn-buy.disabled .feather,
#tradePage .btn-sell.disabled .feather {
  color: #a0aab8 !important;
  stroke: #a0aab8 !important;
}

/* Desktop bet panel (.pc) — gọn (~20% nhỏ hơn gốc) */
@media screen and (min-width: 1025px) {
  #tradePage .pc.block,
  #tradePage .c-desktop .pc {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    padding: 6px 6px 8px !important;
    color: #fff;
    font-size: 10px !important;
  }
  #tradePage .mobile {
    display: none !important;
  }
}

#tradePage .c-desktop .kc-amount-row,
#tradePage .c-desktop .kc-quick-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch;
  margin: 0 !important;
}

#tradePage .c-desktop .item-col {
  box-sizing: border-box;
  padding: 0 0.1rem;
}

#tradePage .c-desktop .item-col.col-op { width: 25%; flex: 0 0 25%; }
#tradePage .c-desktop .item-col.col-inp { width: 50%; flex: 0 0 50%; }
#tradePage .c-desktop .item-col.col-q { width: 33.333%; flex: 0 0 33.333%; }

#tradePage .c-desktop .bpF {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 26px;
  color: #fff;
  border-radius: 4px;
  background-color: #1d233b;
  user-select: none;
}

#tradePage .c-desktop .bpF.h-12 {
  height: 28px;
  min-height: 28px;
  font-size: 9px;
  font-weight: 600;
}

#tradePage .c-desktop .bpF.operator {
  font-size: 13px;
  font-weight: 700;
  height: 29px;
  min-height: 29px;
}

#tradePage .c-desktop .inp .vs-con-input {
  position: relative;
}

#tradePage .c-desktop .inp .vs-input--input,
#tradePage .c-desktop .inp input {
  width: 100%;
  height: 29px;
  border-radius: 4px;
  background: #fff !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  font-weight: 700;
  font-size: 11px !important;
  text-align: center;
  padding: 0 18px !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  box-sizing: border-box;
}

#tradePage .c-desktop .inp .vs-input--icon.icon-dollar-sign {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: #111 !important;
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
  pointer-events: none;
  line-height: 1;
}

#tradePage .c-desktop .inp .vs-input--icon.icon-dollar-sign:before {
  content: "$";
  font-weight: 500;
  font-family: Sarabun, sans-serif !important;
}

#tradePage .c-desktop .profitPercent {
  color: #fff !important;
  font-size: 10px;
}

#tradePage .c-desktop .profitPercent .color-green {
  color: #31baa0 !important;
  font-size: 12px;
}

#tradePage .c-desktop .profitValue {
  color: #31baa0 !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
}

#tradePage .c-desktop .vs-progress--background {
  position: relative;
  width: 100%;
  height: 4px !important;
  margin-top: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: #ee4b60 !important;
}

#tradePage .c-desktop .vs-progress--foreground,
#tradePage .c-desktop #profit-bar-buy {
  display: block !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #31baa0 !important;
  background-color: #31baa0 !important;
  box-sizing: border-box !important;
}

#tradePage .c-desktop .float-left { float: left; }
#tradePage .c-desktop .float-right { float: right; }
#tradePage .c-desktop .clearfix { clear: both; }
#tradePage .c-desktop .mb-6 { margin-bottom: 0.52rem; }
#tradePage .c-desktop .mb-10 { margin-bottom: 0.68rem; }
#tradePage .c-desktop .mb-5 { margin-bottom: 0.45rem; }
#tradePage .c-desktop .mt-10 { margin-top: 0.61rem; }
#tradePage .c-desktop .mt-2 { margin-top: 0.27rem !important; }
#tradePage .c-desktop .mb-2 { margin-bottom: 0.27rem !important; }
#tradePage .c-desktop .h-6 { height: 0.9rem; }
#tradePage .c-desktop .h-4 { height: 0.68rem; }

/* Timer box between MUA / BÁN — clone look: no red border */
html[dir] #tradePage .c-desktop .bet-box-time,
html[dir=ltr] #tradePage .c-desktop .bet-box-time,
body.kc-trade #tradePage .c-desktop .bet-box-time,
body.kc-trade #tradePage .bet-box-time,
#tradePage .c-desktop .bet-box-time,
#tradePage .bet-box-time {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 0 0.18rem !important;
  cursor: default !important;
  background-color: #1d233b !important;
  background: #1d233b !important;
  border: none !important;
  border-radius: 6px !important;
  overflow: hidden;
}

#tradePage .c-desktop .btn-trade-time,
#tradePage .bet-box-time .btn-trade-time {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: auto !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 6px 4px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  font-weight: 700 !important;
  pointer-events: none !important;
  text-decoration: none !important;
  line-height: normal !important;
}

#tradePage .bet-box-time .text-timeDown {
  margin: 0 !important;
  color: #8383a1;
  font-weight: 400 !important;
  font-size: 9px !important;
  line-height: normal !important;
}

#tradePage .bet-box-time .text-time,
#tradePage .bet-box-time #waiting-result-time {
  margin: 0 !important;
  margin-left: 0.18rem !important;
  color: #fff;
  font-weight: 700 !important;
  font-size: 11px !important;
  line-height: normal !important;
}

/* Pending state — same as clone: both lines use Bootstrap text-danger */
#tradePage .bet-box-time .text-timeDown.text-danger,
#tradePage .bet-box-time #waiting-result-text.text-danger,
#tradePage .bet-box-time .text-time.text-danger,
#tradePage .bet-box-time #waiting-result-time.text-danger,
#tradePage .bet-box-time.is-pending .text-timeDown,
#tradePage .bet-box-time.is-pending #waiting-result-text,
#tradePage .bet-box-time.is-pending .text-time,
#tradePage .bet-box-time.is-pending #waiting-result-time {
  color: #ea5455 !important; /* bootstrap text-danger */
}

#tradePage .c-desktop .btn-buy-sell,
#tradePage .c-desktop .btn-trade {
  height: 49px !important;
  font-size: 11px !important;
  border-radius: 4px !important;
}

#tradePage .c-desktop .btn-buy-sell .vs-button-text,
#tradePage .c-desktop .btn-buy-sell .vs-button--text {
  font-size: 11px !important;
}

#tradePage .c-desktop .btn-buy-sell .feather {
  width: 13px !important;
  height: 13px !important;
  stroke: currentColor;
}

#tradePage .c-desktop #buy-amount,
#tradePage .c-desktop #sell-amount {
  font-size: 10px !important;
}

#tradePage .historyBox .item {
  width: 1.08rem;
  height: 1.08rem;
}

body.kc-trade #chart .highcharts-point.highcharts-point-up,
body.kc-trade .highcharts-point.highcharts-point-up {
  fill: #00bcf2 !important;
  stroke: #00bcf2 !important;
}

body.kc-trade #chart .highcharts-point.highcharts-point-down,
body.kc-trade .highcharts-point.highcharts-point-down {
  fill: #f81057 !important;
  stroke: #f81057 !important;
}

body.kc-trade .highcharts-column-series .highcharts-point-up,
body.kc-trade .highcharts-volume-series .highcharts-point-up {
  fill: #00bcf2 !important;
  stroke: #00bcf2 !important;
}

body.kc-trade .highcharts-column-series .highcharts-point-down,
body.kc-trade .highcharts-volume-series .highcharts-point-down {
  fill: #f81057 !important;
  stroke: #f81057 !important;
}

body.kc-trade .highcharts-background {
  fill: #011022 !important;
}

/* OHLC hover legend — góc trên chart */
body.kc-trade .kc-ohlc-legend,
#kc-ohlc-legend.kc-ohlc-legend {
  position: absolute;
  top: 68px;
  left: 24px;
  z-index: 12;
  pointer-events: none;
  color: #fff;
  font-family: Inter, Sarabun, -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.15px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
}

body.kc-trade .kc-ohlc-legend.is-visible,
#kc-ohlc-legend.kc-ohlc-legend.is-visible {
  opacity: 1;
  visibility: visible;
}

body.kc-trade .kc-ohlc-legend .kc-ohlc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

body.kc-trade .kc-ohlc-legend .kc-ohlc-row + .kc-ohlc-row {
  margin-top: 3px;
}

body.kc-trade .kc-ohlc-legend span {
  white-space: nowrap;
}

body.kc-trade .kc-ohlc-legend em {
  font-style: normal;
  font-weight: 600;
  color: #fff;
}

@media (max-width: 900px) {
  body.kc-trade .kc-ohlc-legend,
  #kc-ohlc-legend.kc-ohlc-legend {
    left: 22px;
    top: 66px;
    font-size: 9px;
  }
}

/* Không để Highcharts inactive-state làm tối series khi hover */
body.kc-trade #chart .highcharts-series-inactive,
body.kc-trade #chart .highcharts-series.highcharts-series-inactive,
body.kc-trade #chart .highcharts-point-inactive {
  opacity: 1 !important;
}

body.kc-trade .plotlineChart {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 3px !important;
  background: transparent !important;
  pointer-events: none;
  margin-left: auto;
  text-align: right;
  transform: translateX(7px);
}

body.kc-trade .plotlineChart .price,
body.kc-trade .plotlineChart .time,
body.kc-trade .plotlineChart #countdown {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  color: #fff !important;
  background-color: #0d9672 !important;
  border-radius: 5px !important;
  text-align: center !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}

/* PC: size gốc (nhỏ hơn mobile ~30%) */
body.kc-trade .plotlineChart .price {
  font-size: 9.5px !important;
  padding: 3px 6px !important;
}

body.kc-trade .plotlineChart .time,
body.kc-trade .plotlineChart #countdown {
  font-size: 9px !important;
  padding: 3px 6px !important;
  min-width: 38px !important;
}

/* Mobile: tag nhỏ ~10%; giữ trên gutter phải (không kéo sang trái đè nến) */
@media screen and (max-width: 1024px) {
  body.kc-trade .plotlineChart {
    gap: 3px !important;
    transform: translateX(25px);
    max-width: none !important;
    box-sizing: border-box !important;
  }

  body.kc-trade .plotlineChart .price,
  body.kc-trade .plotlineChart .time,
  body.kc-trade .plotlineChart #countdown {
    border-radius: 5.5px !important;
  }

  body.kc-trade .plotlineChart .price {
    font-size: 12.3px !important;
    padding: 3.9px 7.7px !important;
  }

  body.kc-trade .plotlineChart .time,
  body.kc-trade .plotlineChart #countdown {
    font-size: 11.6px !important;
    padding: 3.9px 7.7px !important;
    min-width: 48px !important;
  }
}

/* Analysis / recent results — nhỏ ~20% so với clone trước đó */
body.kc-trade #indicator-container.analysis-wrapper,
body.kc-trade .analysis-wrapper {
  position: relative !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  padding: 0 6px 3px !important;
  overflow: visible !important;
  z-index: 2 !important;
  flex: 0 0 auto !important;
}

body.kc-trade .analysis-wrapper .con-ul-tabs {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-height: 26px !important;
  padding: 0 3px 2px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body.kc-trade .analysis-wrapper .ul-tabs {
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.kc-trade .analysis-wrapper .vs-tabs--btn {
  background: transparent !important;
  border: 0 !important;
  color: #01b58c !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  padding: 3px 2px 6px !important;
  cursor: default !important;
  box-shadow: none !important;
  /* Gạch chân solid vừa chữ — không gradient/glow */
  border-bottom: 2px solid #01b58c !important;
  border-radius: 0 !important;
}

body.kc-trade .analysis-wrapper .line-vs-tabs {
  display: none !important;
}

/* Counter: desktop in tab row; mobile inside historyBox */
body.kc-trade .historyBox .kc-counter-mobile {
  display: none;
}

body.kc-trade .kc-counter-desktop {
  display: flex;
}

body.kc-trade .historyBox .ct.flex,
body.kc-trade .historyBox .flex {
  display: flex !important;
}

body.kc-trade .historyBox .justify-center {
  justify-content: center !important;
}

body.kc-trade .historyBox .inline-flex {
  display: inline-flex !important;
}

body.kc-trade .historyBox .fix-list-mobile {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  width: 100% !important;
  max-width: 784px !important;
  margin: 0 auto !important;
  gap: 8px !important;
}

body.kc-trade .historyBox .vx-col.w-18 {
  flex: 1 1 0 !important;
  max-width: 144px !important;
  min-width: 0 !important;
  padding: 0 0.28rem !important;
}

body.kc-trade .historyBox .list1,
body.kc-trade .historyBox .list2,
body.kc-trade .historyBox .list3,
body.kc-trade .historyBox .list4,
body.kc-trade .historyBox .list5 {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  grid-auto-flow: row dense !important;
  gap: 4px !important;
  justify-items: center !important;
  align-items: center !important;
}

/* Always show all 5 blocks on desktop trade desk */
body.kc-trade .historyBox .list4,
body.kc-trade .historyBox .list5 {
  display: grid !important;
}

body.kc-trade .historyBox .item,
#tradePage .historyBox .item {
  width: 1.08rem !important;
  height: 1.08rem !important;
  margin: 1.5px !important;
  border-radius: 9999px !important;
}

body.kc-trade .historyBox .empty {
  background: #637284 !important;
}

body.kc-trade .historyBox .bg-green {
  background: #00b4e8 !important;
}

body.kc-trade .historyBox .bg-red {
  background: #ee4b60 !important;
}

/* Counters buy/sell — nhỏ ~20% */
body.kc-trade #tradePage .analysis-wrapper .overviewInfo,
body.kc-trade #tradePage .analysis-wrapper #kc-order-counter.overviewInfo,
body.kc-trade #kc-order-counter.overviewInfo {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  z-index: 8 !important;
  pointer-events: auto !important;
  display: flex !important;
  justify-content: flex-end !important;
  margin-left: auto !important;
  font-weight: 700 !important;
  font-size: 10px !important;
  transform: none !important;
  scale: 1 !important;
}

body.kc-trade .overviewInfo .counter {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}

body.kc-trade .overviewInfo .count-buy,
body.kc-trade .overviewInfo .count-sell {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-height: 19px !important;
  padding: 2px 6px !important;
  border-radius: 5px !important;
  background: rgba(22, 28, 45, 0.95) !important;
  border: 1px solid hsla(0, 0%, 100%, 0.08) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

body.kc-trade .overviewInfo .count-buy img,
body.kc-trade .overviewInfo .count-sell img {
  width: 11px !important;
  height: auto !important;
  display: block !important;
  flex-shrink: 0 !important;
}

@media screen and (max-width: 1400px) {
  body.kc-trade .historyBox .item,
  #tradePage .historyBox .item {
    width: 0.96rem !important;
    height: 0.96rem !important;
    margin: 1.5px !important;
  }

  body.kc-trade .historyBox .vx-col.w-18 {
    max-width: 120px !important;
  }
}

@media screen and (max-width: 1200px) {
  body.kc-trade .historyBox .item,
  #tradePage .historyBox .item {
    width: 0.88rem !important;
    height: 0.88rem !important;
  }

  body.kc-trade .overviewInfo .count-buy,
  body.kc-trade .overviewInfo .count-sell {
    min-height: 18px !important;
    padding: 2px 5px !important;
    font-size: 9px !important;
  }

  body.kc-trade .overviewInfo .count-buy img,
  body.kc-trade .overviewInfo .count-sell img {
    width: 10px !important;
  }
}

body.kc-trade .btn-number,
body.kc-trade .btn-small {
  background: #2f3342 !important;
  border: none !important;
  color: #fff !important;
}

body.kc-trade .number-input,
body.kc-trade .form-control {
  background: #111318 !important;
  border-color: #353945 !important;
  color: #fff !important;
}

body.kc-trade .pair-trigger {
  cursor: pointer;
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}

/* Pair picker — size + font-weight (body đang 600! làm chữ trông to hơn clone) */
body.kc-trade .titleChartCandle.pair-picker,
body.kc-trade .titleChartCandle.pair-picker *,
body.kc-trade #cp-pair-drop,
body.kc-trade #cp-pair-drop * {
  font-weight: 400 !important;
  box-sizing: border-box !important;
}

body.kc-trade .titleChartCandle .pair-trigger,
body.kc-trade #kc-pair-trigger.pair-trigger,
body.kc-trade button.pair-trigger#kc-pair-trigger {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  max-width: min(180px, calc(100vw - 100px)) !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 6px 10px 6px 7px !important;
  margin: 0 !important;
  border: 1px solid hsla(0, 0%, 100%, 0.1) !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, rgba(28, 36, 56, 0.96), rgba(18, 24, 40, 0.96)) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
  line-height: 1.1 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #fff !important;
}

body.kc-trade .titleChartCandle .pair-trigger .textPrice,
body.kc-trade #kc-pair-trigger .textPrice {
  font-size: 13px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  color: #fff !important;
}

body.kc-trade .titleChartCandle .pair-quote-mini,
body.kc-trade #kc-pair-trigger .pair-quote-mini {
  font-size: 9px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  color: #8b8d96 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
}

body.kc-trade .titleChartCandle .pair-icon-wrap,
body.kc-trade #kc-pair-trigger .pair-icon-wrap {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

body.kc-trade .titleChartCandle .pair-icon-wrap .pair-icon,
body.kc-trade #kc-pair-trigger .pair-icon {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

body.kc-trade .titleChartCandle .pair-caret,
body.kc-trade #kc-pair-trigger .pair-caret {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
}

body.kc-trade .titleChartCandle .pair-caret svg,
body.kc-trade #kc-pair-trigger .pair-caret svg {
  width: 12px !important;
  height: 12px !important;
}

body.kc-trade #cp-pair-drop .pair-icon-wrap.sm,
#cp-pair-drop .pair-icon-wrap.sm {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

body.kc-trade #cp-pair-drop.cp-pair-drop,
body.kc-trade #cp-pair-drop {
  min-width: 230px !important;
  width: 300px !important;
  max-width: min(300px, calc(100vw - 32px)) !important;
  max-height: min(70vh, 480px) !important;
  padding: 8px 0 !important;
  border-radius: 14px !important;
  border: 1px solid hsla(0, 0%, 100%, 0.12) !important;
  background: linear-gradient(180deg, rgba(18, 26, 42, 0.98), rgba(12, 18, 30, 0.98)) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px hsla(0, 0%, 100%, 0.03) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden !important;
  flex-direction: column !important;
  /* Chặn thanh/scrollbar lộ mép phải khi scale + animate */
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

body.kc-trade #cp-pair-drop.cp-pair-drop::-webkit-scrollbar,
body.kc-trade #cp-pair-drop::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

body.kc-trade #cp-pair-drop .cp-pair-drop-title,
#cp-pair-drop .cp-pair-drop-title {
  font-size: 10px !important;
  font-weight: 400 !important;
  padding: 8px 12px 7px !important;
  letter-spacing: 0.6px !important;
  line-height: 1.2 !important;
}

body.kc-trade #cp-pair-drop button.cp-pair-drop-item,
body.kc-trade #cp-pair-drop .cp-pair-drop-item,
#cp-pair-drop button.cp-pair-drop-item,
#cp-pair-drop .cp-pair-drop-item {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  line-height: 1.15 !important;
  min-height: 0 !important;
  height: auto !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: #e8eaf0 !important;
  opacity: 0;
  transform: translateY(6px);
}

body.kc-trade #cp-pair-drop .cp-pair-drop-list,
#cp-pair-drop .cp-pair-drop-list {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: none !important; /* Firefox — tránh thanh bên phải lúc animate */
  -ms-overflow-style: none !important;
}

body.kc-trade #cp-pair-drop .cp-pair-drop-list::-webkit-scrollbar,
#cp-pair-drop .cp-pair-drop-list::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* Stagger fade-up — chậm hơn, gần cảm giác clone */
body.kc-trade #cp-pair-drop.is-open .cp-pair-drop-item,
#cp-pair-drop.is-open .cp-pair-drop-item {
  animation: pairItemIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
  animation-delay: calc(0.12s + var(--pair-i, 0) * 0.055s) !important;
}

body.kc-trade #cp-pair-drop .cp-pair-drop-item:hover,
#cp-pair-drop .cp-pair-drop-item:hover {
  background: hsla(0, 0%, 100%, 0.045) !important;
}

body.kc-trade #cp-pair-drop .cp-pair-drop-item.active,
#cp-pair-drop .cp-pair-drop-item.active {
  color: #fff !important;
  background: linear-gradient(90deg, rgba(13, 150, 114, 0.16), rgba(13, 150, 114, 0.04)) !important;
}

body.kc-trade #cp-pair-drop .cp-pair-drop-item.active .cp-pair-tag,
#cp-pair-drop .cp-pair-drop-item.active .cp-pair-tag {
  color: #9fe3cf !important;
  background: rgba(13, 150, 114, 0.18) !important;
}

body.kc-trade #cp-pair-drop .cp-pair-drop-left,
#cp-pair-drop .cp-pair-drop-left {
  gap: 8px !important;
}

body.kc-trade #cp-pair-drop .cp-pair-name,
#cp-pair-drop .cp-pair-name {
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.15 !important;
}

body.kc-trade #cp-pair-drop .cp-pair-sub,
body.kc-trade #cp-pair-drop .cp-pair-tag,
#cp-pair-drop .cp-pair-sub,
#cp-pair-drop .cp-pair-tag {
  font-size: 10px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}

body.kc-trade #cp-pair-drop .cp-pair-tag,
#cp-pair-drop .cp-pair-tag {
  padding: 3px 7px !important;
}

body.kc-trade #cp-pair-drop .cp-pair-check,
#cp-pair-drop .cp-pair-check {
  width: 20px !important;
  height: 20px !important;
}

body.kc-trade #cp-pair-drop .cp-pair-check svg,
#cp-pair-drop .cp-pair-check svg {
  width: 14px !important;
  height: 14px !important;
}

body.kc-trade .titleChartCandle.pair-picker,
body.kc-trade #kc-pair-picker {
  position: absolute !important;
  top: 15px !important;
  left: 15px !important;
  right: auto !important;
  /* Below navbar (.botrade-navbar-wrapper z-index: 10000) */
  z-index: 20 !important;
  pointer-events: auto !important;
}

body.kc-trade .chartBox .wap-chart {
  position: relative;
  z-index: 1;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
}

/* Livewire chart root */
body.kc-trade .chartBox .wap-chart > div,
body.kc-trade .chartBox .wap-chart .bg-dark.h-100 {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
}

/* Override desk calc(100vh - 285px) — chartBox full left column */
body.kc-trade #tradePage .chartBox {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - var(--kc-navbar-h, 70px)) !important;
  max-height: calc(100vh - var(--kc-navbar-h, 70px)) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

/*
 * Chart CAO — flex chiếm toàn bộ phần còn lại sau history.
 * Không dùng height:auto (sẽ lùn). Desktop only — mobile overrides below.
 */
body.kc-trade .kc-chart-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
}

body.kc-trade #chart {
  flex: 1 1 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  touch-action: none !important;
  user-select: none !important;
}

body.kc-trade #chart .highcharts-container {
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
  touch-action: none !important;
}

/* Ẩn nút Reset zoom của Highcharts */
body.kc-trade #chart .highcharts-button,
body.kc-trade #chart .highcharts-reset-zoom,
body.kc-trade #chart .highcharts-button-box,
body.kc-trade #chart g.highcharts-button {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.kc-trade #chart .highcharts-root {
  max-width: 100% !important;
  overflow: visible !important;
}

/* Đừng clip series sát mép phải plot */
body.kc-trade #chart .highcharts-series-group {
  overflow: visible !important;
}

/* Siết khoảng trống dưới trục thời gian (scrollbar stock đã tắt trong JS) */
body.kc-trade #chart .highcharts-scrollbar,
body.kc-trade #chart .highcharts-navigator,
body.kc-trade #chart .highcharts-navigator-series,
body.kc-trade #chart .highcharts-navigator-xaxis,
body.kc-trade #chart .highcharts-navigator-yaxis {
  display: none !important;
  height: 0 !important;
}

body.kc-trade #chart .highcharts-axis-labels.highcharts-xaxis-labels {
  transform: translateY(-4px);
}

body.kc-trade #indicator-container.analysis-wrapper {
  flex: 0 0 auto !important;
  height: auto !important;
  max-height: 9.5rem !important;
  max-width: 100% !important;
  overflow: hidden !important;
  margin-top: 0 !important;
}

body.kc-trade .highcharts-axis-labels.highcharts-xaxis-labels text {
  fill: #9ca3af !important;
  transform: none !important;
}

body.kc-trade .highcharts-tick {
  stroke: #6b7280 !important;
  stroke-width: 1px !important;
}

body.kc-trade .pair-trigger.is-open .pair-caret {
  transform: rotate(180deg);
  color: #0d9672 !important;
  background: rgba(13, 150, 114, 0.12) !important;
}

body.kc-trade .pair-caret {
  transition: transform 0.32s ease, color 0.28s ease, background 0.28s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.05);
  color: #c5c8d0;
}

body.kc-trade .titleChartCandle .pair-trigger.is-open,
body.kc-trade .titleChartCandle .pair-trigger:hover,
body.kc-trade #kc-pair-trigger.pair-trigger.is-open,
body.kc-trade #kc-pair-trigger.pair-trigger:hover {
  border-color: rgba(13, 150, 114, 0.45) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(13, 150, 114, 0.12) !important;
  transform: translateY(-1px);
}

#cp-pair-backdrop.cp-pair-backdrop,
.cp-pair-backdrop {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

#cp-pair-backdrop.cp-pair-backdrop:not([hidden]),
.cp-pair-backdrop:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

/* Dropdown — panel enter/leave như clone pair-drop */
#cp-pair-drop.cp-pair-drop,
#cp-pair-drop {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: auto !important;
  width: 300px;
  max-height: min(70vh, 480px);
  display: flex !important;
  z-index: 25 !important;
  margin: 0 !important;
  transform-origin: top left !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.76);
  transition:
    opacity 0.32s ease,
    transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0.42s;
}

#cp-pair-drop.is-open,
#cp-pair-drop.cp-pair-drop.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  /* scale 0.8 = nhỏ 20%; animate từ .97*0.8 */
  transform: scale(0.8) !important;
}

#cp-pair-drop.is-leaving,
#cp-pair-drop.cp-pair-drop.is-leaving {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-8px) scale(0.76) !important;
}

#cp-pair-drop[hidden] {
  display: none !important;
}

@keyframes pairItemIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[x-cloak] { display: none !important; }

body.kc-trade #order-card,
body.kc-trade #payment-card,
body.kc-trade #profile-sidebar,
body.kc-trade #profile-content {
  background: var(--kc-panel) !important;
  border-color: var(--kc-border) !important;
  color: var(--kc-text) !important;
}

body.kc-trade #payment-card .card,
body.kc-trade #order-card .card,
body.kc-trade #order-card .card-header,
body.kc-trade .table-dark {
  background-color: var(--kc-panel-2) !important;
  border-color: var(--kc-border) !important;
  color: var(--kc-text) !important;
}

body.kc-trade .action_payment {
  background: var(--kc-panel-2) !important;
  border: 1px solid var(--kc-border) !important;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.kc-trade .action_payment.active,
body.kc-trade .action_payment:hover {
  border-color: rgba(11, 150, 113, 0.55) !important;
  transform: translateY(-2px);
}

body.kc-trade .text-success {
  color: var(--kc-accent-2) !important;
}

body.kc-trade .badge.bg-success {
  background-color: var(--kc-accent) !important;
}

/* —— Mobile trade panel (clone amount-mobile / action-mobile) —— */
#tradePage .mobile {
  display: none;
}

.trader-mobile-ohlcm {
  display: none;
  position: absolute !important;
  left: 6px !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  width: 40px !important;
  height: 150px !important;
  z-index: 2 !important;
  pointer-events: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

.trader-mobile-ohlcm .ant-progress {
  position: relative !important;
  flex: 1 1 auto;
  width: 6px !important;
  min-height: 0;
  height: auto !important;
  line-height: 1;
  margin: 0 !important;
}

.trader-mobile-ohlcm .ant-progress-outer {
  display: block;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
}

.trader-mobile-ohlcm .ant-progress-inner {
  position: relative;
  display: flex !important;
  flex-direction: column;
  width: 6px !important;
  height: 100% !important;
  min-height: 0;
  overflow: hidden;
  background: transparent !important;
  border-radius: 100px;
}

.trader-mobile-ohlcm .ant-progress-success-bg,
.trader-mobile-ohlcm .ant-progress-bg {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 2px;
  border-radius: 0;
}

.trader-mobile-ohlcm .ant-progress-success-bg { background: #31baa0 !important; }
.trader-mobile-ohlcm .ant-progress-bg { background: #fa4b62 !important; }
.trader-mobile-ohlcm .ant-progress-text { display: none !important; }

.trader-mobile-ohlcm .span-group {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex: 0 0 auto;
}

.trader-mobile-ohlcm .span1 { color: #31baa0; font-size: 11px; font-weight: 600; line-height: 1; }
.trader-mobile-ohlcm .span2 { color: #fa4b62; font-size: 11px; font-weight: 600; line-height: 1; }

.profit-mobile {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.profit-mobile .subtitle { color: #fff; font-size: 16px; font-weight: 500; }
.profit-mobile .subtitle .percent { color: #ea5455; font-weight: 700; margin-left: 5px; }
.profit-mobile .profit-value { color: #28c76f; font-size: 20px; font-weight: 700; }

.amount-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1b2436;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 12px;
}

.amount-mobile button {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #262c40;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  flex: 0 0 auto;
}

.amount-mobile button:active { transform: scale(0.95); }

.amount-mobile-field {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 0 8px;
}

.amount-mobile-field .amount-prefix {
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}

.amount-mobile-input {
  width: 100%;
  max-width: 120px;
  text-align: center;
  color: #fff !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  font-size: 18px;
  font-weight: 700;
  -moz-appearance: textfield;
}

.amount-mobile-input::-webkit-outer-spin-button,
.amount-mobile-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.action-mobile {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.action-mobile .box {
  flex: 1;
  height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  color: #fff;
  border: none;
  user-select: none;
  transition: transform 0.1s ease;
}

.action-mobile .box:active { transform: scale(0.95); }

.action-mobile .sell-mobile,
.action-mobile .buy-mobile {
  flex-direction: row;
  gap: 5px;
  cursor: pointer;
}

.action-mobile .sell-mobile { background: #ee4b60; }
.action-mobile .buy-mobile { background: #31baa0; }

.action-mobile .order-mobile {
  background: #273041;
  cursor: default;
}

.action-mobile .order-mobile.gray { background: #3e4757; }
.action-mobile .order-mobile.green { background: #1b2436; }

.action-mobile .order-mobile .kc-wait-text,
.action-mobile .order-mobile .kc-wait-time {
  color: #c9d1d9 !important;
}

.action-mobile .order-mobile .kc-wait-text.text-danger,
.action-mobile .order-mobile .kc-wait-time.text-danger {
  color: #c9d1d9 !important; /* không dùng đỏ trên mobile */
}

.action-mobile .box.disabled,
.action-mobile .box:disabled {
  opacity: 0.6;
  pointer-events: none;
  background: #3e4757 !important;
  cursor: not-allowed;
}

.action-mobile .ob-counter {
  font-size: 16px;
  font-weight: 700;
}

#tradePage .action-mobile .btn-buy-sell,
#tradePage .action-mobile .btn-trade {
  height: 50px !important;
  width: auto !important;
  flex: 1 !important;
  border-radius: 8px !important;
  padding: 0 6px !important;
  font-size: 13px !important;
}

#tradePage .action-mobile .btn-buy-sell .feather {
  width: 18px !important;
  height: 18px !important;
  color: #fff !important;
  stroke: #fff !important;
}

@media (max-width: 1024px) {
  /*
   * Mobile trade: chart + history on top, bet panel sticky bottom.
   * Avoid flex:1 / height:100% chains that collapse #chart to 0.
   */
  body.kc-trade.kc-authed .kc-page {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    min-height: calc(100vh - var(--kc-navbar-h, 56px));
    height: auto !important;
    max-height: none !important;
  }

  #tradePage.trade-container {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    max-height: none !important;
    min-height: calc(100vh - var(--kc-navbar-h, 56px));
    overflow: visible !important;
  }

  #tradePage > .vx-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: column !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  #tradePage .leftBar,
  #tradePage .rightBar {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
  }

  #tradePage .leftBar {
    order: 1 !important;
    overflow: visible !important;
  }

  #tradePage .rightBar {
    order: 2 !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 40 !important;
    border-left: none !important;
    background: #011022 !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  }

  #tradePage .leftBar > .h-full {
    height: auto !important;
    min-height: 0 !important;
  }

  body.kc-trade #tradePage .chartBox,
  body.kc-trade #tradePage .leftBar .chartBox {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.kc-trade .chartBox .wap-chart,
  body.kc-trade .chartBox .wap-chart > div,
  body.kc-trade .chartBox .wap-chart .bg-dark.h-100 {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.kc-trade .kc-chart-stage {
    position: relative !important;
    display: block !important;
    flex: none !important;
    width: 100% !important;
    height: 48vh !important;
    min-height: 280px !important;
    max-height: 520px !important;
  }

  body.kc-trade #chart {
    position: absolute !important;
    inset: 0 !important;
    flex: none !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 280px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.kc-trade #chart .highcharts-container,
  body.kc-trade #chart .highcharts-root {
    width: 100% !important;
    height: 100% !important;
  }

  #tradePage .pc {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
  }

  #tradePage .mobile {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: none !important;
    position: relative !important;
    background: #011022 !important;
  }

  #tradePage .chartpane {
    display: block !important;
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    background: #011022 !important;
  }

  .trader-mobile-ohlcm {
    display: flex !important;
  }

  body.kc-trade #indicator-container.analysis-wrapper,
  body.kc-trade #indicator-container.analysis-wrapper {
    position: relative !important;
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 4px 8px 8px !important;
    margin: 0 !important;
  }

  body.kc-trade .historyBox {
    margin-top: 4px !important;
  }

  .hero-section {
    padding-top: 80px;
  }
}

/* Auth chrome owns top nav when logged in; hide guest marketing header */
body.kc-landing.kc-authed .header-master { display: none !important; }

/* Navbar denser; sidebar compact mọi trang authed */
body.kc-authed {
  --kc-sidebar-w: 86px;
  --kc-navbar-h: 56px;
}

body.kc-authed .botrade-navbar-wrapper,
body.kc-authed .botrade-navbar-wrapper.relative,
body.kc-authed .botrade-navbar {
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.kc-authed .botrade-navbar-wrapper {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

body.kc-authed .botrade-action {
  gap: 2px !important;
  margin-left: 10px !important;
  align-items: center !important;
}

body.kc-authed .botrade-navbar {
  gap: 12px !important;
}

body.kc-authed .botrade-logo {
  margin-right: 4px !important;
}

body.kc-authed .cp-lang-sel {
  display: flex !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* Language chip ~20% smaller */
body.kc-authed .cp-lang-btn {
  font-size: 10.5px !important;
  gap: 5px !important;
  line-height: 1.25 !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
}

body.kc-authed .cp-lang-caret {
  font-size: 8px !important;
}

body.kc-authed .cp-lang-drop {
  min-width: 128px !important;
  top: calc(100% + 5px) !important;
  border-radius: 7px !important;
}

body.kc-authed .cp-lang-item {
  font-size: 10.5px !important;
  gap: 6px !important;
  padding: 8px 11px !important;
}

/* Balance box nhỏ hơn */
body.kc-authed #kc-balance-host.balance.kc-popover-host,
body.kc-authed .botrade-action > .balance,
body.kc-authed .botrade-navbar .botrade-action > .balance {
  min-width: 108px !important;
  max-width: 140px !important;
  height: 32px !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
}

body.kc-authed #kc-balance-host .balance-trigger {
  gap: 6px !important;
}

body.kc-authed #kc-balance-host .left span.text,
body.kc-authed .botrade-navbar .botrade-action > .balance .left span.text {
  font-size: 8px !important;
  line-height: 1 !important;
}

body.kc-authed #kc-balance-host .left span.num,
body.kc-authed #kc-balance-host .left span.kc-balance-num,
body.kc-authed #kc-balance-host #balance-button,
body.kc-authed .botrade-navbar .botrade-action > .balance .left span.num {
  font-size: 12px !important;
  line-height: 14px !important;
}

body.kc-authed #kc-balance-host .right .circle {
  width: 16px !important;
  height: 16px !important;
}

body.kc-authed #kc-balance-host .right .circle svg {
  width: 8px !important;
  height: 5px !important;
}

/* Cài đặt / Hồ sơ / Thông báo nhỏ hơn */
body.kc-authed .botrade-action .mg-top-menu,
body.kc-authed .botrade-action .setting,
body.kc-authed .botrade-action .profile-xj,
body.kc-authed .botrade-action .notification {
  min-width: 44px !important;
  margin: 0 !important;
  padding: 0 2px !important;
}

body.kc-authed .setting-content-inside,
body.kc-authed .profile-content-inside,
body.kc-authed .notification-content-inside {
  min-width: 40px !important;
  gap: 2px !important;
}

body.kc-authed .setting-content-inside span,
body.kc-authed .profile-content-inside span,
body.kc-authed .notification-content-inside span {
  font-size: 9px !important;
  line-height: 1.1 !important;
}

body.kc-authed .setting-content-inside svg,
body.kc-authed .profile-content-inside svg,
body.kc-authed .notification-content-inside svg {
  width: 15px !important;
  height: 15px !important;
}

/* Quỹ giải thưởng / Nạp nhanh (nếu hiện) */
body.kc-authed .botrade-action .prize-pool .prize-pool-icon {
  width: 22px !important;
  height: 22px !important;
}

body.kc-authed .botrade-action .prize-pool .pp-content p {
  font-size: 8px !important;
  margin: 0 !important;
  line-height: 1.1 !important;
}

body.kc-authed .botrade-action .prize-pool .pp-content span {
  font-size: 11px !important;
  line-height: 1.1 !important;
}

body.kc-authed .botrade-action .btn-quick-deposit {
  font-size: 11px !important;
  padding: 4px 10px !important;
  height: 28px !important;
  border-radius: 6px !important;
  line-height: 1 !important;
}

body.kc-authed .navbar-logo,
body.kc-authed .botrade-logo img,
body.kc-authed .botrade-navbar-wrapper .botrade-logo img {
  max-height: 28px !important;
  height: 28px !important;
}

/* Mobile drawer logo must not inherit navbar 28px cap */
body.kc-authed #kc-auth-sidebar img.img-logo,
body.kc-authed #kc-auth-sidebar img.mm-logo-img,
body.kc-authed .mobile-menu-modern img.img-logo,
body.kc-authed .mobile-menu-modern img.mm-logo-img {
  height: 48px !important;
  max-height: 48px !important;
  min-height: 48px !important;
  width: auto !important;
  max-width: 200px !important;
}

/* contentSidebar hẹp; textLink 12px — desktop only (mobile drawer is wider) */
@media screen and (min-width: 1200px) {
  body.kc-authed .contentSidebar,
  body.kc-authed .contentSidebar.flex,
  body.kc-authed .contentSidebar.flex-col,
  body.kc-authed #leftSidebar,
  body.kc-authed .sidebar-menu-desktop #leftSidebar {
    width: 86px !important;
    max-width: 86px !important;
  }
}

/* textLink 12px — sidebar vẫn hẹp */
body.kc-authed .topSidebarDesktop .textLink,
body.kc-authed #leftSidebar .textLink,
body.kc-authed #leftSidebar span.textLink,
body.kc-authed .contentSidebar .textLink,
body.kc-authed .contentSidebar span.textLink,
body.kc-authed .kc-sidebar-logout-btn .textLink {
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  font-family: Inter, Sarabun, -apple-system, sans-serif !important;
  color: #8b8d96 !important;
}

body.kc-authed .topSidebarDesktop .nav-item.bg-primary .textLink,
body.kc-authed .topSidebarDesktop .nav-item.xbotrade-btn-active .textLink,
body.kc-authed #leftSidebar .nav-item.bg-primary .textLink,
body.kc-authed #leftSidebar .nav-item.xbotrade-btn-active .textLink,
body.kc-authed #leftSidebar .nav-item.is-nav-selected .textLink {
  color: #0d9672 !important;
  font-size: 13px !important;
}

body.kc-authed .topSidebarDesktop .nav-item .feather-icon svg,
body.kc-authed .topSidebarDesktop .nav-item svg.feather {
  width: 17px !important;
  height: 17px !important;
}

body.kc-authed .topSidebarDesktop .nav-item {
  margin: 3px 4px !important;
}

body.kc-authed .topSidebarDesktop .nav-item .nav-link {
  padding: 8px 7px 6px !important;
}

body.kc-authed .topSidebarDesktop .nav-item.bg-primary > .nav-link,
body.kc-authed .topSidebarDesktop .nav-item.xbotrade-btn-active > .nav-link,
body.kc-authed .topSidebarDesktop .nav-item.bg-primary.xbotrade-btn.xbotrade-btn-active > .nav-link,
body.kc-authed #leftSidebar .nav-item.bg-primary > .nav-link,
body.kc-authed #leftSidebar .nav-item.xbotrade-btn-active > .nav-link {
  padding: 5px 0 !important;
}

body.kc-authed .topSidebarDesktop .nav-item.bg-primary,
body.kc-authed .topSidebarDesktop .nav-item.xbotrade-btn-active,
body.kc-authed #leftSidebar .nav-item.bg-primary,
body.kc-authed #leftSidebar .nav-item.xbotrade-btn-active {
  margin: 0 !important;
  padding: 0 !important;
}

body.kc-authed .topSidebarDesktop .mb-2 {
  margin-bottom: 2px !important;
}

@media screen and (min-width: 1200px) {
  body.kc-authed #leftSidebar,
  body.kc-authed .sidebar-menu-desktop #leftSidebar {
    width: 86px !important;
    height: calc(100vh - 56px) !important;
    top: 56px !important;
  }

  body.kc-authed .topSidebar,
  body.kc-authed .topSidebarDesktop {
    width: 86px !important;
  }
}

/* Right bar denser (không đụng navbar/sidebar) */
@media screen and (min-width: 1025px) {
  body.kc-trade #tradePage > .vx-row > .rightBar,
  body.kc-trade #tradePage .rightBar.c-desktop {
    width: 188px !important;
    max-width: 188px !important;
    flex: 0 0 188px !important;
  }

  body.kc-trade #tradePage > .vx-row > .leftBar {
    width: calc(100% - 188px) !important;
    max-width: calc(100% - 188px) !important;
  }
}

body.kc-trade #tradePage .c-desktop .mb-6 { margin-bottom: 0.55rem !important; }
body.kc-trade #tradePage .c-desktop .mb-10 { margin-bottom: 0.7rem !important; }
body.kc-trade #tradePage .analysis-wrapper .vs-tabs--btn {
  font-size: 10px !important;
  padding: 3px 2px 6px !important;
}

body.kc-trade #tradePage .analysis-wrapper .con-ul-tabs {
  min-height: 26px !important;
}

/* Mobile: hide desktop rail; show hamburger for mobile-menu-modern drawer */
@media screen and (max-width: 1199px) {
  body.kc-authed .sidebar-menu-desktop {
    display: none !important;
  }
  body.kc-authed #kc-auth-sidebar {
    display: block !important;
  }
  body.kc-authed #kc-auth-sidebar .mobile-menu-modern.topSidebar,
  body.kc-authed #kc-auth-sidebar .botrade-sidebar-in-drawer {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 0 14px 24px !important;
  }
  body.kc-authed #kc-auth-sidebar .mobile-menu-modern .img-logo,
  body.kc-authed #kc-auth-sidebar .mobile-menu-modern .mm-logo-img,
  body.kc-authed #kc-auth-sidebar .mobile-menu-modern img.img-logo {
    height: 48px !important;
    max-height: 48px !important;
    min-height: 48px !important;
    width: auto !important;
    max-width: 200px !important;
  }
  body.kc-authed #kc-auth-sidebar .mobile-menu-modern .logo.py-4,
  body.kc-authed #kc-auth-sidebar .mobile-menu-modern .logo.title {
    margin-bottom: 8px !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    padding-left: 2px !important;
  }
  body.kc-authed #btn-toggle-sidebar.icon-toggle,
  body.kc-authed .icon-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* —— Mobile amount keyboard (slide/fade như clone) —— */
#tradePage.kc-kb-open {
  overflow: hidden !important;
}

#tradePage .keyboard-input-wrap {
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  pointer-events: none;
}

#tradePage .keyboard-input-wrap.active {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  pointer-events: auto;
}

#tradePage .keyboard-input-wrap .numKeyboardInput {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.2s ease;
  -webkit-transition: background-color 0.2s ease;
}

#tradePage .keyboard-input-wrap .numKeyboardInput.is-on {
  background-color: rgba(0, 0, 0, 0.55);
}

#tradePage .keyboard-input-wrap .keyboard {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 460px;
  max-height: min(78vh, 560px);
  z-index: 100000 !important;
  color: #fff !important;
  background: #111 !important;
  border: none !important;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  font-size: 16px !important;
  line-height: 1.2 !important;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0);
  visibility: visible;
  user-select: none;
  -webkit-user-select: none;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  transition: transform 0.2s ease, visibility 0.2s ease;
  -webkit-transition: -webkit-transform 0.2s ease, visibility 0.2s ease;
  will-change: transform;
}

#tradePage .keyboard.hiddenKey {
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 100%, 0);
  -webkit-transform: translate3d(0, 100%, 0);
}

#tradePage .amountWrapper {
  height: auto !important;
  min-height: 150px;
  background: #111 !important;
  flex: 0 0 auto;
}

#tradePage .amountWrapper .headerAmount {
  padding: 14px 16px 6px !important;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #111 !important;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

#tradePage .groupButtonMobile {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 10px 12px !important;
}

#tradePage .kc-kb-step {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: #262c40;
  color: #a0a0a0;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

#tradePage .kc-kb-step:active {
  transform: scale(0.95);
  background: #323a52;
}

#tradePage .kc-kb-step svg {
  display: block;
}

#tradePage .kc-kb-input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  background: #1b2436;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0 40px 0 14px;
}

#tradePage .kc-kb-dollar {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-right: 4px;
  flex: 0 0 auto;
}

#tradePage .kc-kb-amount-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
  font-size: 18px !important;
  font-weight: 700;
  text-align: center;
  padding: 0 4px;
}

#tradePage .kc-kb-clear {
  position: absolute !important;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #8b93a7;
  padding: 4px;
  cursor: pointer;
  z-index: 2;
  line-height: 0;
}

#tradePage .kc-kb-clear:active {
  color: #fff;
}

#tradePage .kc-kb-profit {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  padding: 4px 12px 12px;
}

#tradePage .kc-kb-profit .profitPercent {
  color: #28c76f !important;
  font-size: 16px;
  font-weight: 600;
  margin: 0 8px;
}

#tradePage .kc-kb-profit .profitValue {
  display: inline-block;
  color: #28c76f !important;
  font-size: 30px !important; /* text-3xl như clone */
  font-weight: 700 !important;
  line-height: 1.2;
  margin-left: 6px;
  vertical-align: middle;
}

#tradePage .keyboard #keyboardLandscape {
  width: 100%;
  height: auto !important;
  flex: 1 1 auto;
  border-collapse: collapse;
  table-layout: fixed;
}

#tradePage .keyboard #keyboardLandscape td {
  width: 25%;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #060017;
  background: #262527;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  height: 54px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#tradePage .keyboard #keyboardLandscape td:active {
  background: #3a3940;
}

#tradePage .keyboard #keyboardLandscape tr.suggestion td {
  background: #4e4e4e;
  font-size: 15px;
  height: 46px;
}

#tradePage .keyboard #keyboardLandscape .kc-kb-done {
  background: #0d9672;
  font-size: 15px;
  font-weight: 600;
  padding: 0 6px;
}

@media screen and (min-width: 1025px) {
  #tradePage .keyboard-input-wrap {
    display: none !important;
  }
}
