body.market {
  --gold: #fcd535;
  --gold-deep: #fcd535;
  --ink: #0b0e11;
  --panel: rgba(18, 22, 28, 0.72);
  --line: rgba(43, 49, 57, 0.95);
  --up: #0ecb81;
  --down: #f6465d;
  --teal: #2dd4bf;
  --field-bg: #181a20;
  --field-text: #eaecef;
  color-scheme: dark;
  margin: 0;
  background:
    radial-gradient(ellipse 78% 48% at 16% 10%, rgba(252, 213, 53, 0.22), transparent 56%),
    radial-gradient(ellipse 64% 42% at 90% 14%, rgba(45, 212, 191, 0.14), transparent 52%),
    radial-gradient(ellipse 58% 38% at 68% 90%, rgba(14, 203, 129, 0.1), transparent 58%),
    linear-gradient(168deg, #2a303c 0%, #171b24 46%, #0b0e11 100%) !important;
  color: #eaecef;
  font-family: "Outfit", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

/* Safari/iOS: chữ trong ô tối không được dùng --ink (#0b0e11) */
body.market input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
body.market textarea,
body.market select {
  color: var(--field-text) !important;
  -webkit-text-fill-color: var(--field-text) !important;
  caret-color: #fcd535;
  background-color: var(--field-bg) !important;
}
body.market input::placeholder,
body.market textarea::placeholder {
  color: #848e9c !important;
  -webkit-text-fill-color: #848e9c !important;
  opacity: 1;
}
body.market input:-webkit-autofill,
body.market input:-webkit-autofill:hover,
body.market input:-webkit-autofill:focus,
body.market textarea:-webkit-autofill,
body.market select:-webkit-autofill {
  -webkit-text-fill-color: #eaecef !important;
  caret-color: #fcd535;
  box-shadow: 0 0 0 1000px #181a20 inset !important;
  transition: background-color 99999s ease-out;
}
#register-fields[hidden],
#auth-fullname-wrap[hidden],
body.market .auth .field[hidden] {
  display: none !important;
}
body.market .auth .field input {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background-color: #3a4250 !important;
  border: 1px solid #6b7585 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  caret-color: #fcd535;
}
body.market .auth .field input:focus {
  background-color: #464f5f !important;
  border-color: #fcd535 !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(252, 213, 53, 0.28);
}
body.market .auth .field input::placeholder {
  color: #c6cbd3 !important;
  -webkit-text-fill-color: #c6cbd3 !important;
  opacity: 1;
}
body.market .auth .captcha-line img {
  background: #2b3139 !important;
  border-color: #6b7585 !important;
}
body.market .auth #captcha-refresh {
  border: 1px solid rgba(252, 213, 53, 0.55) !important;
  border-radius: 10px !important;
  background: #fcd535 !important;
  color: #1e2329 !important;
  -webkit-text-fill-color: #1e2329 !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 10px 14px !important;
  min-height: 44px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(252, 213, 53, 0.28);
}
body.market .auth #captcha-refresh:hover {
  filter: brightness(1.06);
}
body.market .money-form .field input,
body.market .money-form select,
body.market .profile-card input,
body.market .profile-card select,
body.market .rut-card input,
body.market .cskh-name input,
body.market .cskh-compose input {
  color: #eaecef !important;
  -webkit-text-fill-color: #eaecef !important;
  background-color: #181a20 !important;
}
body.market .profile-card input[readonly] {
  color: #fcd535 !important;
  -webkit-text-fill-color: #fcd535 !important;
  background-color: #2b3139 !important;
}
body.market .ud-confirm input {
  color: #1e2329 !important;
  -webkit-text-fill-color: #1e2329 !important;
  background-color: #fff !important;
  caret-color: #1e2329;
}

body.market:not(.admin) .scene-3d {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  perspective: 1400px;
  transform-style: preserve-3d;
  --px: 0;
  --py: 0;
}
body.admin .scene-3d { display: none !important; }

.scene-layer {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.12s ease-out;
}
.scene-photo {
  position: absolute;
  inset: -6% -4% 10%;
  background:
    url("../img/trade-skyline.jpg") center 38% / cover no-repeat;
  filter: saturate(1.22) contrast(1.14) brightness(0.86);
  transform: scale(1.08);
  animation: sceneDrift 28s ease-in-out infinite alternate;
}
.scene-photo-b {
  position: absolute;
  inset: auto -8% -8% -8%;
  height: 46%;
  background:
    url("../img/trade-skyline.jpg") center 72% / cover no-repeat;
  filter: blur(18px) saturate(1.25) brightness(0.52);
  opacity: 0.58;
  transform: scaleY(-1) scale(1.1);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
}
.scene-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.3) 0%, rgba(8, 10, 14, 0.1) 26%, rgba(10, 12, 18, 0.4) 60%, rgba(6, 8, 12, 0.9) 100%),
    radial-gradient(ellipse 68% 48% at 74% 16%, rgba(252, 213, 53, 0.22), transparent 58%),
    radial-gradient(ellipse 52% 42% at 12% 74%, rgba(45, 212, 191, 0.16), transparent 62%);
}
.scene-haze {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(ellipse 42% 28% at 30% 40%, rgba(255, 236, 170, 0.08), transparent 70%),
    radial-gradient(ellipse 36% 24% at 78% 28%, rgba(90, 230, 210, 0.07), transparent 68%);
  filter: blur(22px);
  animation: sceneHaze 18s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
.scene-beams {
  position: absolute;
  inset: -10% 18% auto;
  height: 70%;
  background:
    linear-gradient(118deg, transparent 36%, rgba(252, 213, 53, 0.1) 48%, transparent 58%),
    linear-gradient(98deg, transparent 42%, rgba(45, 212, 191, 0.08) 52%, transparent 62%);
  mix-blend-mode: screen;
  animation: sceneBeam 14s ease-in-out infinite alternate;
}
.scene-aurora {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 8%;
  height: 42%;
  background:
    conic-gradient(from 210deg at 50% 50%, transparent 0 18%, rgba(252, 213, 53, 0.12) 28%, transparent 38%, rgba(45, 212, 191, 0.1) 52%, transparent 64%);
  filter: blur(28px);
  opacity: 0.7;
  animation: sceneAurora 22s linear infinite;
  mix-blend-mode: screen;
}
.scene-grain {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.55) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
  animation: sceneGrain 8s steps(2) infinite;
}
.scene-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(252, 213, 53, 0.28);
  box-shadow: 0 0 30px rgba(252, 213, 53, 0.12), inset 0 0 24px rgba(45, 212, 191, 0.08);
  animation: sceneRing 10s ease-in-out infinite;
}
.scene-ring-a {
  width: min(420px, 48vw);
  height: min(420px, 48vw);
  top: 6%;
  right: 4%;
}
.scene-ring-b {
  width: min(260px, 32vw);
  height: min(260px, 32vw);
  top: 22%;
  right: 14%;
  border-color: rgba(45, 212, 191, 0.24);
  animation-delay: -3.5s;
  animation-duration: 12s;
}
.scene-dust i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 244, 184, 0.85);
  box-shadow: 0 0 8px rgba(252, 213, 53, 0.55);
  animation: sceneDust linear infinite;
  opacity: 0;
}
.scene-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 78% 70% at 50% 42%, transparent 40%, rgba(5, 7, 11, 0.55) 100%);
  pointer-events: none;
}

.scene-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(54px);
  opacity: 0.58;
  animation: sceneFloat 14s ease-in-out infinite;
}
.scene-glow-a {
  width: 40vw;
  height: 40vw;
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(252, 213, 53, 0.4), transparent 68%);
}
.scene-glow-b {
  width: 34vw;
  height: 34vw;
  top: 8%;
  right: -10%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.3), transparent 70%);
  animation-delay: -4s;
}
.scene-glow-c {
  width: 46vw;
  height: 28vw;
  bottom: 2%;
  left: 28%;
  background: radial-gradient(circle, rgba(14, 203, 129, 0.2), transparent 70%);
  animation-delay: -7s;
}

.scene-spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fcd535;
  box-shadow: 0 0 12px 3px rgba(252, 213, 53, 0.7);
  animation: sceneSpark 4.8s ease-in-out infinite;
}
.scene-spark-a { top: 18%; left: 58%; }
.scene-spark-b { top: 30%; left: 76%; width: 2px; height: 2px; animation-delay: -1.4s; }
.scene-spark-c { top: 44%; left: 68%; animation-delay: -2.6s; background: #9ff5e2; box-shadow: 0 0 12px 3px rgba(45, 212, 191, 0.55); }
.scene-spark-d { top: 24%; left: 84%; width: 2px; height: 2px; animation-delay: -3.5s; }
.scene-spark-e { top: 52%; left: 48%; width: 2px; height: 2px; animation-delay: -1.9s; }
.scene-spark-f { top: 14%; left: 40%; animation-delay: -3.1s; background: #fcd535; }

.scene-orb {
  position: absolute;
  border-radius: 50%;
  box-shadow:
    inset -12px -16px 28px rgba(0, 0, 0, 0.4),
    inset 10px 12px 20px rgba(255, 255, 255, 0.3),
    0 22px 48px rgba(0, 0, 0, 0.4);
  animation: sceneBob 9s ease-in-out infinite;
  opacity: 0.78;
}
.scene-orb-a {
  width: 78px;
  height: 78px;
  top: 14%;
  right: 9%;
  background: #fcd535;
  animation-delay: -1s;
}
.scene-orb-b {
  width: 48px;
  height: 48px;
  top: 36%;
  left: 62%;
  background: linear-gradient(145deg, #7ff0d8, #2dd4bf 50%, #0f9f8a);
  animation-delay: -3.5s;
}
.scene-orb-c {
  width: 30px;
  height: 30px;
  top: 24%;
  left: 78%;
  background: #fcd535;
  opacity: 0.75;
  animation-delay: -6s;
}

.scene-glass {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 42%, rgba(252, 213, 53, 0.05));
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 24px 50px rgba(0, 0, 0, 0.28);
  transform: rotate(-8deg);
  animation: sceneGlass 12s ease-in-out infinite alternate;
}
.scene-glass-a {
  width: min(220px, 28vw);
  height: min(140px, 18vw);
  top: 18%;
  left: 8%;
  border-radius: 18px;
}
.scene-glass-b {
  width: min(160px, 20vw);
  height: min(210px, 26vw);
  top: 28%;
  right: 16%;
  border-radius: 22px;
  transform: rotate(11deg);
  animation-delay: -4s;
}

.scene-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17%;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: rgba(252, 213, 53, 0.55);
  text-shadow: 0 0 18px rgba(252, 213, 53, 0.25);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.scene-ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: sceneTicker 38s linear infinite;
}

.scene-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11%;
  width: 100%;
  height: min(30vh, 260px);
  filter: drop-shadow(0 -10px 22px rgba(252, 213, 53, 0.14));
  opacity: 0.95;
}

.scene-stage {
  position: absolute;
  left: 2%;
  right: -2%;
  bottom: -24%;
  height: 60%;
  transform: rotateX(66deg) translate3d(calc(var(--px) * -10px), 0, 0);
  transform-origin: center top;
  transform-style: preserve-3d;
}
.scene-floor {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(252, 213, 53, 0.22), transparent 42%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent),
    radial-gradient(ellipse at center, rgba(20, 24, 32, 0.72), transparent 72%);
}
.scene-grid {
  position: absolute;
  inset: -10% -5% 0;
  background-image:
    linear-gradient(rgba(252, 213, 53, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 88%);
  animation: sceneGrid 14s linear infinite;
}
.scene-reflect {
  position: absolute;
  inset: 8% 10% auto;
  height: 28%;
  background:
    linear-gradient(90deg, transparent, rgba(252, 213, 53, 0.2), transparent),
    radial-gradient(ellipse at center, rgba(45, 212, 191, 0.14), transparent 70%);
  filter: blur(10px);
  animation: sceneFloat 10s ease-in-out infinite;
}

@keyframes sceneFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2%, 3%, 0) scale(1.06); }
}
@keyframes sceneBob {
  0%, 100% { transform: translate3d(0, 0, 40px) rotateX(8deg); }
  50% { transform: translate3d(10px, -22px, 90px) rotateX(14deg); }
}
@keyframes sceneGrid {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 56px, 56px 0; }
}
@keyframes sceneDrift {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-2%, 1.4%, 0); }
}
@keyframes sceneSpark {
  0%, 100% { opacity: 0.22; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.45); }
}
@keyframes sceneBeam {
  from { opacity: 0.45; transform: translateX(-3%) skewX(-4deg); }
  to { opacity: 0.9; transform: translateX(4%) skewX(3deg); }
}
@keyframes sceneGlass {
  from { transform: rotate(-8deg) translateY(0) translateZ(30px); }
  to { transform: rotate(-4deg) translateY(-14px) translateZ(60px); }
}
@keyframes sceneTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes sceneHaze {
  from { opacity: 0.45; transform: translate3d(-2%, 1%, 0) scale(1); }
  to { opacity: 0.85; transform: translate3d(3%, -2%, 0) scale(1.08); }
}
@keyframes sceneAurora {
  from { transform: translateX(-8%) rotate(0deg); }
  to { transform: translateX(8%) rotate(12deg); }
}
@keyframes sceneGrain {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-1px, 1px); }
}
@keyframes sceneRing {
  0%, 100% { transform: scale(0.92) rotate(0deg); opacity: 0.35; }
  50% { transform: scale(1.08) rotate(8deg); opacity: 0.75; }
}
@keyframes sceneDust {
  0% { transform: translate3d(0, 24px, 0) scale(0.6); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translate3d(18px, -110vh, 40px) scale(1.2); opacity: 0; }
}
@keyframes landIn {
  from { opacity: 0; transform: translate3d(0, 28px, -40px) scale(0.98); filter: blur(6px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}
@keyframes brandPulse {
  0%, 100% { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 0 0 rgba(252, 213, 53, 0); }
  50% { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 0 28px rgba(252, 213, 53, 0.45); }
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes shineSweep {
  0% { background-position: 160% 0; }
  100% { background-position: -40% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-photo, .scene-spark, .scene-ticker span, .scene-beams, .scene-glass,
  .scene-haze, .scene-aurora, .scene-ring, .scene-dust i, .scene-grain,
  .land-brand-line, .land-logo-wrap, .land-logo, .land-card, .land-hero, .land-board, .land-console,
  .land-rail-item { animation: none !important; }
  .scene-layer { transition: none !important; transform: none !important; }
}
body.market.view-lenh .scene-photo,
body.market.view-lenh .scene-spark,
body.market.view-lenh .scene-beams,
body.market.view-lenh .scene-glass,
body.market.view-lenh .scene-haze,
body.market.view-lenh .scene-aurora,
body.market.view-lenh .scene-ring,
body.market.view-lenh .scene-dust i,
body.market.view-lenh .scene-grain,
body.market.view-lenh .scene-glow,
body.market.view-lenh .scene-orb,
body.market.view-lenh .scene-grid {
  animation: none !important;
}
@media (max-width: 640px) {
  body.market.view-lenh .scene-layer,
  body.market.view-lenh .land-trust-track {
    animation: none !important;
  }
  body.market.view-lenh .ud-row.pulse,
  body.market.view-lenh #ud-chart.live-tick {
    animation: none !important;
  }
  #ud-last { transition: none; }
}
html.lite-device #scene-3d,
html.lite-device .scene-photo,
html.lite-device .scene-spark,
html.lite-device .scene-beams,
html.lite-device .scene-glass,
html.lite-device .scene-haze,
html.lite-device .scene-aurora,
html.lite-device .scene-ring,
html.lite-device .scene-dust,
html.lite-device .scene-grain,
html.lite-device .scene-glow,
html.lite-device .scene-orb,
html.lite-device .scene-grid {
  animation: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto !important;
}
html.lite-device body.market.view-lenh #scene-3d,
body.market.view-lenh #scene-3d {
  display: none !important;
}
html.lite-device #ud-chart,
html.lite-device #ud-chart svg {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
body.market.view-lenh .scene-layer,
body.market.view-lenh .scene-photo,
body.market.view-lenh .scene-glow,
body.market.view-lenh .scene-orb,
body.market.view-lenh .scene-spark,
body.market.view-lenh .scene-beams,
body.market.view-lenh .scene-haze,
body.market.view-lenh .scene-aurora {
  animation: none !important;
  filter: none !important;
  will-change: auto !important;
}
body.market.view-lenh #ud-chart.live-tick,
body.market.view-lenh .ud-row.pulse {
  animation: none !important;
}
body.market.view-lenh #ud-last { transition: none !important; }
@supports (-webkit-touch-callout: none) {
  body.market #scene-3d .scene-photo,
  body.market #scene-3d .scene-glow,
  body.market #scene-3d .scene-orb,
  body.market #scene-3d .scene-glass {
    animation: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.market.view-lenh #ud-chart {
    contain: layout paint;
  }
}

body.market .vn-board { display: none; }
body.market.show-hose .vn-board { display: block; }
body.market.show-hose #list { display: none; }

.vn-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px 8px;
}

.vn-bar strong { font-size: 18px; }
.vn-note, #vn-note { color: #848e9c; font-size: 12px; }

.vn-tabs { display: flex; gap: 6px; }

.vn-tabs button, #vn-back {
  border: 0;
  border-radius: 8px;
  background: #1e2329;
  color: #eaecef;
  font: inherit;
  padding: 6px 12px;
  cursor: pointer;
}

.vn-tabs button.on { background: #fcd535; color: #1e2329; font-weight: 750; }

.vn-scroll {
  overflow: auto;
  margin: 0 12px 88px;
  border: 1px solid #1e2329;
}

.vn {
  width: 100%;
  border-collapse: collapse;
  background: #1e2329;
  color: #d0d0d0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.vn th, .vn td {
  padding: 3px 5px;
  border-bottom: 1px solid #1a1a1a;
  white-space: nowrap;
  text-align: right;
  font-weight: 500;
}

.vn th {
  position: sticky;
  top: 0;
  background: #111;
  color: #9aa0a6;
  font-weight: 650;
  z-index: 1;
}

.vn thead tr:nth-child(2) th { top: 22px; }
.vn th[colspan] { text-align: center; }

.vn td.code, .vn th.code { text-align: left; font-weight: 750; }
.vn tr:hover td { background: #141414; }
.vn .ce { color: #ff00ff; }
.vn .up { color: #00ff00; }
.vn .rf { color: #ffff00; }
.vn .dn { color: #ff0000; }
.vn .fl { color: #00ccff; }
.vn .muted { color: #b0b0b0; }
.vn td.flash { background: #fff; color: #000; }

body.market .hero,
body.market .legend,
body.market .news,
body.market .venues,
body.market .note,
body.market .crypto-head,
body.market .split > .split-main > .board-wrap,
body.market .crypto-board > .board-wrap {
  display: none !important;
}

.bw-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
  padding: 0 20px;
  background: #1e2329;
}

.bw-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.bw-logo svg { width: 28px; height: 28px; fill: #fcd535; }

.bw-logo small {
  display: block;
  margin-bottom: 2px;
  color: #fcd535;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.bw-nav, .bw-tool, .bw-icon, .bw-pill, .bw-presets button, .bw-cols button, .bw-quick button, .bw-dock button {
  border: 0;
  background: transparent;
  color: #eaecef;
  font: inherit;
  cursor: pointer;
}

.bw-nav { color: #eaecef; font-weight: 650; }
.bw-nav:hover, .bw-tool:hover { color: #fcd535; }

.bw-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(280px, 34vw);
  height: 36px;
  padding: 0 10px;
  background: #2b3139;
  border-radius: 8px;
  color: #848e9c;
}

.bw-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eaecef;
  font: inherit;
}

.bw-search kbd {
  border: 1px solid #474d57;
  border-radius: 4px;
  padding: 0 5px;
  font-size: 12px;
}

.bw-connect, .bw-top #open-auth, .bw-top #logout {
  background: #fcd535;
  color: #1e2329;
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

/* Auth dialog: Close + Login always high-visibility gold */
body.market .auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
body.market .auth-actions #auth-close,
body.market .auth-actions #auth-submit,
body.market .auth-actions .sound,
body.market .auth-actions .submit {
  min-width: 118px;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 12px 18px !important;
  font: inherit;
  font-weight: 800 !important;
  cursor: pointer;
  background: #fcd535 !important;
  color: #1e2329 !important;
  -webkit-text-fill-color: #1e2329 !important;
  box-shadow: 0 0 0 1px rgba(252, 213, 53, 0.35), 0 8px 18px rgba(0, 0, 0, 0.28);
}
body.market .auth-actions #auth-close:hover,
body.market .auth-actions #auth-submit:hover {
  filter: brightness(1.05);
}

.bw-top .who { margin-right: 8px; color: #eaecef; }

.bw-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #2b3139;
  color: #eaecef;
}

.bw-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-top: 1px solid #1e2329;
  border-bottom: 1px solid #1e2329;
}

.bw-live { margin-left: auto; color: #848e9c; font-size: 12px; }

.bw { padding: 18px 16px 92px; }

.bw-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bw-heading h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 650;
}

.bw-heading h1 span { color: #848e9c; font-size: 16px; }

.bw-pill {
  background: #2b3139;
  color: #fcd535;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
}

.bw-heading .bw-icon { margin-left: auto; }

.bw-presets { display: flex; gap: 8px; margin: 16px 0 10px; }

.bw-presets button, .bw-cols button {
  border-radius: 999px;
  padding: 4px 10px;
  color: #848e9c;
  background: #1e2329;
}

.bw-presets button.on, .bw-cols button.on {
  color: #fcd535;
  background: rgba(252, 213, 53, 0.12);
}

.bw-quick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 12px;
  padding: 8px 12px;
  border: 1px solid #2b3139;
  border-radius: 10px;
  color: #848e9c;
}

.bw-quick button { color: #fcd535; font-weight: 700; }

.bw-cols {
  display: flex;
  justify-content: space-between;
  color: #848e9c;
  font-size: 13px;
  padding: 8px 8px 4px;
}

.bw-list { display: flex; flex-direction: column; }

.bw-row {
  display: grid;
  grid-template-columns: 22px 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 14px 8px;
  border: 0;
  border-bottom: 1px solid #1e2329;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.bw-row:hover, .bw-row.selected { background: rgba(252, 213, 53, 0.08); }

.bw-star { color: #848e9c; font-size: 16px; }
.bw-row.starred .bw-star { color: #fcd535; }

.bw-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #1e2329;
}

.bw-fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #1e2329;
  background: #fcd535;
}

.bw-sym { font-weight: 750; font-size: 16px; }
.bw-sub { display: block; margin-top: 2px; color: #848e9c; font-size: 12px; }

.bw-right { text-align: right; }
.bw-right b { display: block; font-size: 16px; font-weight: 650; }
.bw-right em { font-style: normal; font-size: 13px; }
.bw-right .up, .up { color: #0ecb81; }
.bw-right .down, .down { color: #f6465d; }

#pay-card-box[hidden],
#card-pick-field[hidden] {
  display: none !important;
}

.pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.pay-method {
  border: 1px solid #2b3139;
  background: #1e2329;
  color: #eaecef;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  cursor: pointer;
}

.pay-method.on {
  color: #1e2329;
  background: #fcd535;
  border-color: #fcd535;
  font-weight: 700;
}

.card-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }

.linked-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #2b3139;
  border-radius: 12px;
  background: #14151a;
}

.linked-card b { display: block; }
.linked-card span { color: #848e9c; font-size: 12px; }

.linked-card button {
  border: 0;
  background: transparent;
  color: #f6465d;
  font: inherit;
  cursor: pointer;
}

.bw-dock {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 30;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 6px;
  background: #1e2329;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.bw-dock button {
  padding: 8px 12px;
  border-radius: 10px;
  color: #848e9c;
  font-size: 13px;
}

.bw-dock button.on { color: #fcd535; background: #2b3139; }

body.market .chart-panel,
body.market .money-row,
body.market .trade {
  display: none !important;
}

body.market.show-chart .chart-panel {
  display: block !important;
  margin: 12px 16px 88px;
  background: #0b0e11;
  color: #eaecef;
}

body.market.show-desk .money-row {
  display: grid !important;
  margin: 12px 16px 88px;
  background: transparent;
  color: #eaecef;
}

body.market.show-desk .trade {
  display: block !important;
  margin: 12px 16px 88px;
  background: #0b0e11;
  color: #eaecef;
}

@media (max-width: 720px) {
  .bw-search { display: none; }
  .bw-nav { display: none; }
  .bw-logo small { display: none; }
  .bw-dock button { padding: 8px; font-size: 12px; }
}

body.market {
  color: #eaecef;
  font-family: Montserrat, "Segoe UI", sans-serif;
}

body.admin.ad-locked .ad-menu-btn,
body.admin.ad-locked .cms-side,
body.admin.ad-locked .cms-dash {
  display: none !important;
}
body.admin.ad-locked .ad-login { display: grid; }
.ad-login {
  display: none;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(115, 103, 240, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 80%, rgba(0, 207, 232, 0.14), transparent 55%),
    #0f1120;
}
.ad-login-card {
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(22, 29, 49, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.ad-login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
}
.ad-login-card h1 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 22px;
}
.ad-login-card > p {
  margin: 0 0 6px;
  color: #b4b7bd;
  font-size: 13px;
}
.ad-login-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #b4b7bd;
  font-size: 13px;
}
.ad-login-card input {
  border: 1px solid #3b4253;
  border-radius: 10px;
  background: #0f1120;
  color: #fff;
  padding: 12px 14px;
  font: inherit;
}
.ad-login-btn {
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #8b7cff, #7367f0);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
}
.ad-login-msg {
  min-height: 18px;
  margin: 0;
  color: #ea5455;
  font-size: 13px;
}
.ad-login-msg.ok { color: #28c76f; }
.ad-forecast-panel { margin-top: 18px; }
.ad-forecast-stats { margin: 12px 0 16px; }
.ad-forecast-panel .pay-ok { color: #0ecb81; font-weight: 700; }
.ad-forecast-panel .pay-wait { color: #f6465d; font-weight: 700; }
.ad-session-force {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 8px;
}
.ad-force-label {
  color: #b7bdc6;
  font-size: 13px;
  font-weight: 650;
  margin-right: 4px;
}
.ad-force-btn {
  border: 1px solid #2b3139;
  border-radius: 10px;
  background: #181a20;
  color: #eaecef;
  font: inherit;
  font-weight: 750;
  padding: 10px 16px;
  min-height: 42px;
  cursor: pointer;
}
.ad-force-btn.up.on,
.ad-force-btn.up:hover { background: #0ecb81; border-color: #0ecb81; color: #0b0e11; }
.ad-force-btn.down.on,
.ad-force-btn.down:hover { background: #f6465d; border-color: #f6465d; color: #fff; }
.ad-force-btn.lose.on,
.ad-force-btn.lose:hover {
  background: linear-gradient(180deg, #ff6b7a, #f6465d);
  border-color: #f6465d;
  color: #fff;
  box-shadow: 0 8px 18px rgba(246, 70, 93, 0.28);
}
.ad-force-btn.auto.on,
.ad-force-btn.auto:hover { background: #fcd535; border-color: #fcd535; color: #0b0e11; }
#ad-fc-direction {
  margin-left: 6px;
  color: #fcd535;
  font-size: 14px;
}
.ad-pay-form select {
  border: 1px solid #474d57;
  border-radius: 8px;
  background: #181a20;
  color: #eaecef;
  -webkit-text-fill-color: #eaecef;
  font: inherit;
  padding: 10px 12px;
}
.ad-pay-preview-wrap {
  display: grid;
  gap: 8px;
  margin: 4px 0 8px;
}
.ad-pay-preview-wrap img {
  width: min(220px, 100%);
  border-radius: 12px;
  border: 1px solid #2b3139;
  background: #0b0e11;
}
.ad-pay-clear {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  color: #b7bdc6 !important;
  font-size: 13px !important;
}
.ad-pay-clear input {
  width: auto !important;
  margin: 0;
}
.ad-control-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  padding: 4px 0 12px;
}
.ad-control-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #b4b7bd;
  font-size: 13px;
}
.ad-control-form input {
  border: 1px solid #3b4253;
  border-radius: 10px;
  background: #0f1120;
  color: #fff;
  padding: 12px 14px;
  font: inherit;
}
.ad-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ad-control-actions button {
  border: 1px solid #3b4253;
  border-radius: 8px;
  background: #283046;
  color: #d7d7d7;
  font: inherit;
  padding: 8px 12px;
  cursor: pointer;
}
.ad-user-form { max-width: 980px; }
.ad-sep {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 16px 0 12px;
}
.ad-subhead {
  margin: 0 0 10px;
  color: #fcd535;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.03em;
}
.ad-maint-panel textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 1px solid #3b4253;
  border-radius: 10px;
  background: #161d31;
  color: #eaecef;
  font: inherit;
  padding: 10px 12px;
  box-sizing: border-box;
}
.ad-maint-panel .ad-login-msg.warn {
  color: #fcd535;
}
.maint-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 60% 45% at 50% 30%, rgba(252, 213, 53, 0.16), transparent 60%),
    rgba(8, 10, 14, 0.94);
  backdrop-filter: blur(10px);
}
.maint-screen[hidden] { display: none !important; }
.maint-card {
  width: min(480px, 100%);
  text-align: center;
  padding: 36px 28px;
  border-radius: 18px;
  border: 1px solid rgba(252, 213, 53, 0.22);
  background: linear-gradient(165deg, rgba(28, 32, 40, 0.96), rgba(12, 14, 18, 0.98));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.maint-kicker {
  margin: 0 0 10px;
  color: #fcd535;
  font-family: "Syne", "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.maint-card h1 {
  margin: 0 0 12px;
  color: #fff;
  font-family: "Syne", "Outfit", sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.maint-card p {
  margin: 0;
  color: #b7bdc6;
  font-size: 15px;
  line-height: 1.55;
}
.maint-badge {
  display: inline-flex;
  margin-top: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(252, 213, 53, 0.35);
  background: rgba(252, 213, 53, 0.12);
  color: #fcd535;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
body.maint-on .land,
body.maint-on .cms-side,
body.maint-on .guest-bar,
body.maint-on #updown,
body.maint-on #profile,
body.maint-on #pass-panel,
body.maint-on #rut-panel,
body.maint-on #hist-panel,
body.maint-on #orders-panel,
body.maint-on .bw-top,
body.maint-on .bw-tools,
body.maint-on #list,
body.maint-on .bw-dock,
body.maint-on .vn-board,
body.maint-on .money-row,
body.maint-on .trade,
body.maint-on .hero,
body.maint-on .legend,
body.maint-on .split,
body.maint-on .venues,
body.maint-on .chart-panel,
body.maint-on .news,
body.maint-on .cskh-widget {
  display: none !important;
}
.ad-user-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.ad-user-grid .ad-span-2 { grid-column: 1 / -1; }
.ad-user-grid select {
  width: 100%;
  border: 1px solid #474d57;
  border-radius: 8px;
  background: #181a20;
  color: #fff;
  font: inherit;
  padding: 10px 12px;
}
.ad-kyc-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 8px;
}
.ad-kyc-photos figure {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(252, 213, 53, 0.18);
  border-radius: 12px;
  background: rgba(24, 26, 32, 0.65);
}
.ad-kyc-photos figcaption {
  margin: 0 0 8px;
  color: #fcd535;
  font-size: 12px;
  font-weight: 700;
}
.ad-kyc-photos img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #2b3139;
  margin-bottom: 8px;
}
.ad-kyc-photos span { color: #848e9c; font-size: 12px; }
.ad-kyc-photos a {
  color: #fcd535;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.ad-user-lock {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  margin: 4px 0 8px;
  color: #eaecef;
  font-size: 14px;
}
.ad-user-lock input {
  width: 18px !important;
  height: 18px;
  margin: 0;
}
.ad-lock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}
.ad-lock-btn,
.ad-unlock-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.ad-lock-btn {
  background: #f6465d;
  color: #fff;
}
.ad-unlock-btn {
  background: #0ecb81;
  color: #062216;
}
#ad-user-pass-view,
#ad-user-withdraw-view {
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.02em;
  color: #fcd535 !important;
  -webkit-text-fill-color: #fcd535 !important;
}
.ad-user-form .cms-table button,
.cms-table button[data-edit-user],
.cms-table button[data-add-points] {
  margin-left: 6px;
}
.ad-user-actions {
  white-space: nowrap;
}
.ad-user-actions button {
  margin: 2px 4px 2px 0 !important;
}
.cms-table button.ad-btn-points,
.cms-table button[data-add-points] {
  background: #fcd535;
  color: #1e2329;
  font-weight: 800;
}
.cms-table button.ad-btn-points:hover,
.cms-table button[data-add-points]:hover {
  filter: brightness(1.05);
}
.cms-table button.ad-btn-sub,
.cms-table button[data-sub-points] {
  background: #f6465d;
  color: #fff;
  font-weight: 800;
  min-width: 32px;
}
.cms-table button.ad-btn-sub:hover,
.cms-table button[data-sub-points]:hover {
  filter: brightness(1.05);
}
.ad-ip {
  font-family: Consolas, "SF Mono", monospace;
  font-size: 12px;
  color: #c9cdd3;
}
@media (max-width: 760px) {
  .ad-user-grid { grid-template-columns: 1fr; }
}
.ad-control-actions button:hover {
  border-color: #7367f0;
  color: #fff;
}
body.admin .ad-logout {
  margin: 12px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: transparent;
  color: #d7d7d7;
  font: inherit;
  font-weight: 600;
  padding: 10px 12px;
  cursor: pointer;
}
body.admin .ad-logout:hover {
  border-color: #ea5455;
  color: #ea5455;
}
body.admin {
  background: #0e0e0e !important;
}
body.admin .cms-side {
  display: flex !important;
  position: fixed !important;
  top: 0;
  left: 0;
  z-index: 80;
  width: 260px !important;
  height: 100vh !important;
  flex-direction: column !important;
  background: #121212 !important;
  border-right: 1px solid #2a2a2a;
  box-shadow: none;
  transform: none;
  transition: transform 0.22s ease;
}
body.admin .cms-brand {
  height: 64px;
  border-bottom: 1px solid #2a2a2a;
  justify-content: flex-start;
  padding: 0 18px;
  gap: 12px;
}
body.admin .cms-brand span:last-child {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
body.admin .cms-mark {
  background: #7367f0 !important;
  color: #fff !important;
  box-shadow: none !important;
}
body.admin .cms-mark svg { display: none; }
body.admin .ad-label {
  margin: 14px 18px 6px;
  color: #7367f0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body.admin .cms-dash { margin-left: 260px !important; }
body.admin .ad-nav {
  gap: 2px;
  padding: 8px 12px 18px;
  overflow: auto;
  flex: 1;
}
body.admin .ad-nav button,
body.admin .cms-side button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d0d2d6;
  font: inherit;
  font-weight: 500;
  text-align: left;
  padding: 11px 14px;
  cursor: pointer;
}
body.admin .ad-nav button:hover,
body.admin .cms-side button:hover {
  background: rgba(115, 103, 240, 0.14);
  color: #c7c2ff;
}
body.admin .ad-nav button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
  flex: none;
}
body.admin .ad-nav button.on,
body.admin .ad-nav button.on:hover,
body.admin .cms-side button.on,
body.admin .cms-side button.on:hover {
  background: #7367f0 !important;
  color: #fff !important;
}
body.admin .ad-menu-btn {
  display: none !important;
  position: static;
  top: auto;
  left: auto;
  z-index: 1;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d0d2d6;
  font: inherit;
  font-weight: 700;
  padding: 8px;
  cursor: pointer;
}
body.admin .ad-caret { margin-left: auto; font-size: 16px; line-height: 1; }
body.admin .ad-sub { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 6px; padding-left: 22px; }
body.admin .ad-sub[hidden] { display: none !important; }
body.admin .ad-sub button { color: #d7d7d7; font-weight: 500; }
body.admin .ad-sub i {
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  flex: none;
}
body.admin .ad-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
body.admin .ad-badge[hidden] { display: none !important; }
body.admin [data-admin-view] { display: none; }
body.admin [data-admin-view].on { display: block; }
body.admin .ad-note {
  margin-top: auto;
  padding: 14px 18px 22px;
  color: #8b8b8b;
  font-size: 12px;
  line-height: 1.4;
}
body.admin .cms-pick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #b4b7bd;
  font-size: 12px;
}
body.admin .cms-pick select {
  min-width: 180px;
  border: 1px solid #3b4253;
  border-radius: 6px;
  background: #161d31;
  color: #d0d2d6;
  font: inherit;
  padding: 8px 10px;
}
body.admin .cms-mini { margin-top: 0; margin-bottom: 18px; }
body.admin .cms-table button[data-user] {
  background: #7367f0;
}
body.admin .cms-table button[data-edit-user] {
  background: #28c76f;
  color: #0b0e11;
}

.cms-side {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(252, 213, 53, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 42%),
    rgba(30, 35, 41, 0.82);
  border-right: 1px solid rgba(252, 213, 53, 0.16);
  box-shadow:
    12px 0 36px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(18px);
}

.cms-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 72px;
  padding: 0 22px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.cms-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #0b0e11;
  color: #1e2329;
  font-size: 11px;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(252, 213, 53, 0.28);
  border: 1px solid rgba(252, 213, 53, 0.45);
  overflow: hidden;
}
.cms-mark svg {
  width: 22px;
  height: 22px;
  fill: #fcd535;
}
.cms-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cms-side nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 14px;
}

.cms-side button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #b7bdc6;
  font: inherit;
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
/* Chữ đầu mỗi từ — menu / tiêu đề / nhãn (không áp vào ô nhập) */
.cms-side button span,
.guest-nav button span,
.guest-bar button span,
.guest-more-panel button span,
.guest-more-title,
.ud-mobile-panels button,
.desk-title,
.desk-crumb,
.desk-chip,
.desk-lead,
.land-nav button,
.land-cta,
.land-card h2,
.land-board-top strong,
.bw-dock button,
.ud-panel-head strong,
.ud-tape-tabs button,
.ud-chart-tabs button,
.rank-board-head strong,
.fx-sound-btn span,
body.admin .cms-side button span,
body.admin .ad-sub button span,
body.admin .cms-nav h1,
body.admin .cms-panel h2,
body.admin .cms-stat span,
body.admin .cms-table th,
body.admin label {
  text-transform: capitalize;
}
.cms-side button svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cms-side button.on,
.cms-side button:hover {
  background: rgba(252, 213, 53, 0.14);
  color: #fcd535;
}

.guest-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 14px;
}
body.market .guest-nav button.on,
body.market .guest-nav button.on:hover {
  background: rgba(45, 212, 191, 0.14);
  color: #2dd4bf;
}
.guest-bar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 250px;
  padding: 10px 16px;
  background:
    linear-gradient(180deg, rgba(20, 22, 28, 0.92), rgba(0, 0, 0, 0.78));
  border-bottom: 1px solid rgba(252, 213, 53, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  overflow-x: auto;
}
body.market.view-lenh .guest-bar,
body.market.view-info .guest-bar,
body.market.view-pass .guest-bar,
body.market.view-nap .guest-bar,
body.market.view-rut .guest-bar,
body.market.view-hist .guest-bar,
body.market.view-orders .guest-bar {
  display: flex;
}
.guest-bar button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #eaecef;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  padding: 10px 14px;
  cursor: pointer;
}
.guest-bar button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.guest-bar button.on,
.guest-bar button:hover {
  color: #2dd4bf;
}
.guest-more {
  display: none;
}
.guest-more-btn {
  display: none;
}
.guest-bar-links {
  display: contents;
}
/* Mobile sheet lives on body; hidden on desktop. */
.guest-more-sheet {
  display: none !important;
}
.guest-topbar {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  position: fixed;
  top: 10px;
  right: 16px;
  left: auto;
  z-index: 80;
  pointer-events: none;
}
.guest-topbar > * {
  pointer-events: auto;
}
body.market.view-lenh .guest-topbar,
body.market.view-info .guest-topbar,
body.market.view-pass .guest-topbar,
body.market.view-nap .guest-topbar,
body.market.view-rut .guest-topbar,
body.market.view-hist .guest-topbar,
body.market.view-orders .guest-topbar {
  display: inline-flex;
}
.guest-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.guest-who {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2dd4bf;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.01em;
}
.guest-logout {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(252, 213, 53, 0.45);
  border-radius: 10px;
  background: rgba(252, 213, 53, 0.1);
  color: #fcd535;
  -webkit-text-fill-color: #fcd535;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}
.guest-logout[hidden],
.guest-who[hidden] {
  display: none !important;
}
.guest-logout:not([hidden]) {
  display: inline-flex !important;
}
.guest-logout:hover,
.guest-logout:focus-visible {
  background: rgba(252, 213, 53, 0.18);
  color: #fcd535;
  -webkit-text-fill-color: #fcd535;
}
/* Desktop: logout ở topbar; mobile/Safari: logout ở guest-bar */
.guest-bar-logout {
  display: none !important;
}
.guest-wallet {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  min-width: 148px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(252, 213, 53, 0.45);
  background:
    linear-gradient(135deg, rgba(252, 213, 53, 0.18), rgba(45, 212, 191, 0.08)),
    #12161c;
  box-shadow: 0 0 0 1px rgba(252, 213, 53, 0.08), 0 8px 20px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.guest-wallet span {
  color: #fcd535;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}
.guest-wallet b {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}
.guest-wallet.pulse-win b,
.ud-wallet.pulse-win b {
  animation: walletWinPop 0.7s ease;
  color: #0ecb81;
}
@keyframes walletWinPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); text-shadow: 0 0 18px rgba(14, 203, 129, 0.55); }
  100% { transform: scale(1); }
}
.fx-sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0;
  border: 1px solid #2b3139;
  border-radius: 10px;
  background: #12161c;
  color: #848e9c;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.fx-sound-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.fx-sound-btn.on {
  color: #fcd535;
  border-color: rgba(252, 213, 53, 0.45);
  background: rgba(252, 213, 53, 0.1);
}
.ok-overlay[hidden] { display: none !important; }
.ok-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 12, 18, 0.55);
  backdrop-filter: blur(2px);
}
.ok-overlay-card {
  width: min(320px, 92vw);
  border-radius: 18px;
  background: #fff;
  color: #1e2329;
  text-align: center;
  padding: 28px 22px 24px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.ok-overlay-check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #0ecb81;
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.ok-overlay-card p {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
.ud-toast {
  position: fixed;
  left: 50%;
  top: 78px;
  z-index: 80;
  transform: translateX(-50%) translateY(-8px);
  min-width: 280px;
  max-width: min(92vw, 440px);
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(252, 213, 53, 0.4);
  background: rgba(11, 14, 17, 0.96);
  color: #eaecef;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.45;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.ud-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.ud-toast strong {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}
.ud-toast.up {
  border-color: rgba(14, 203, 129, 0.65);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(14, 203, 129, 0.18);
}
.ud-toast.down {
  border-color: rgba(246, 70, 93, 0.65);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(246, 70, 93, 0.18);
}
.ud-toast.up strong { color: #0ecb81; }
.ud-toast.down strong { color: #f6465d; }
.ud-toast b.up { color: #0ecb81; }
.ud-toast b.down { color: #f6465d; }
.ud-result {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.ud-result.show {
  opacity: 1;
  pointer-events: auto;
}
.ud-result[hidden] { display: none !important; }
.ud-result.show[hidden] { display: flex !important; }
.ud-result-card {
  width: min(92vw, 380px);
  padding: 22px 20px 16px;
  border-radius: 16px;
  border: 1px solid rgba(252, 213, 53, 0.35);
  background: linear-gradient(180deg, #161b22, #0b0e11);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
  color: #eaecef;
}
.ud-result.win .ud-result-card {
  border-color: rgba(14, 203, 129, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 28px rgba(14, 203, 129, 0.18);
}
.ud-result.lose .ud-result-card {
  border-color: rgba(246, 70, 93, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 28px rgba(246, 70, 93, 0.16);
}
.ud-result-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.ud-result.win .ud-result-mark {
  color: #0ecb81;
  background: rgba(14, 203, 129, 0.14);
}
.ud-result.lose .ud-result-mark {
  color: #f6465d;
  background: rgba(246, 70, 93, 0.14);
}
.ud-result-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}
.ud-result.win .ud-result-title { color: #0ecb81; }
.ud-result.lose .ud-result-title { color: #f6465d; }
.ud-result-body {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
  color: #d5d8de;
}
.ud-result-body strong {
  color: #fff;
  font-weight: 800;
}
.ud-result-ok {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: #fcd535;
  color: #0b0e11;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.ud-msg.ok {
  color: #0ecb81 !important;
  font-weight: 700;
}
.ud-msg.bad {
  color: #f6465d !important;
  font-weight: 700;
}
.ud-msg {
  min-height: 1.2em;
  font-weight: 700;
}
#ud-msg {
  color: #fcd535;
}
body.market.view-lenh.ud-flash-up .ud-chart-wrap,
body.market.view-lenh.ud-flash-down .ud-chart-wrap {
  animation: udChartFlash 0.85s ease;
}
body.market.view-lenh.ud-flash-up .ud-chart-wrap {
  box-shadow: inset 0 0 0 1px rgba(14, 203, 129, 0.55), 0 0 28px rgba(14, 203, 129, 0.18);
}
body.market.view-lenh.ud-flash-down .ud-chart-wrap {
  box-shadow: inset 0 0 0 1px rgba(246, 70, 93, 0.55), 0 0 28px rgba(246, 70, 93, 0.18);
}
@keyframes udChartFlash {
  0% { filter: brightness(1.15); }
  100% { filter: none; }
}
#ud-up.session-pulse,
#ud-down.session-pulse {
  animation: sessionBtnPulse 0.75s ease;
}
@keyframes sessionBtnPulse {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.05); filter: brightness(1.15); }
}
.ud-pace-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(14, 203, 129, 0.12);
  color: #0ecb81;
  font-weight: 700;
}
.ud-pace-wrap b { color: #eaecef; }
.ud-pace-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0ecb81;
  box-shadow: 0 0 8px #0ecb81;
  animation: udLivePulse 1.1s ease-in-out infinite;
}
.guest-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}
.guest-table th,
.guest-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #363c45;
  text-align: left;
  color: #eaecef;
  font-size: 13px;
}
.guest-table th { color: #848e9c; font-weight: 600; }
body.market #rut-panel,
body.market #hist-panel,
body.market #orders-panel { display: none; }
body.market.view-rut #rut-panel,
body.market.view-hist #hist-panel,
body.market.view-orders #orders-panel {
  display: block;
  margin-left: 250px;
  min-height: 100vh;
  padding: 22px 22px 40px;
  background: transparent;
  color: #eaecef;
}
@media (prefers-reduced-motion: reduce) {
  .scene-glow, .scene-orb, .scene-grid { animation: none !important; }
}
.rut-card, .hist-card { max-width: 720px; }
.rut-card label {
  margin-bottom: 8px;
}
.rut-card input,
.rut-card select {
  padding-top: 8px;
  padding-bottom: 8px;
}
.rut-rules {
  margin-top: 14px;
  padding: 12px 12px 10px;
  border-radius: 10px;
  border: 1px solid #2b3139;
  background: rgba(24, 26, 32, 0.9);
  color: #b7bdc6;
  font-size: 12px;
  line-height: 1.45;
}
.rut-rules strong {
  display: block;
  margin-bottom: 6px;
  color: #fcd535;
  font-size: 13px;
}
.rut-rules ol {
  margin: 0;
  padding-left: 18px;
}
.rut-rules li {
  margin: 0 0 6px;
}
.ud-orders-list { display: grid; gap: 0; }
.ud-orders-list .ud-line {
  grid-template-columns: 90px 80px 90px 1fr 140px;
}
.ud-orders-list p {
  margin: 8px 0;
  color: #848e9c;
  font-size: 13px;
}
body.market.view-rut .bw-top,
body.market.view-hist .bw-top,
body.market.view-orders .bw-top,
body.market.view-rut .bw-tools,
body.market.view-hist .bw-tools,
body.market.view-orders .bw-tools,
body.market.view-rut .bw-dock,
body.market.view-hist .bw-dock,
body.market.view-orders .bw-dock,
body.market.view-rut #list,
body.market.view-hist #list,
body.market.view-orders #list { display: none !important; }

.cms-side button[hidden] { display: none !important; }
.cms-side #side-login,
.cms-side #side-register {
  margin-top: 4px;
  border: 1px solid rgba(252, 213, 53, 0.35);
  color: #fcd535;
}

.cms-side p {
  margin-top: auto;
  padding: 18px 22px 8px;
  color: #848e9c;
  font-size: 12px;
}

.cms-back {
  display: block;
  padding: 0 22px 22px;
  color: #fcd535;
  font-size: 13px;
}

.cms-dash {
  margin-left: 250px;
  padding: 28px 28px 48px;
}

.cms-nav,
.cms-status,
.cms-stat,
.cms-panel {
  background: #283046;
  border-radius: 0.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.cms-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
  padding: 18px 22px;
}

.cms-crumb { margin: 0 0 4px; color: #b4b7bd; font-size: 13px; }
.cms-nav h1, .cms-status h2, .cms-panel h2 { margin: 0; color: #fff; font-size: 18px; }
.cms-status p, .cms-panel p { margin: 4px 0 0; color: #b4b7bd; font-size: 13px; }

.cms-range { display: flex; gap: 12px; flex-wrap: wrap; }
.cms-range label { display: flex; flex-direction: column; gap: 6px; color: #b4b7bd; font-size: 12px; }
.cms-range input {
  border: 1px solid #3b4253;
  border-radius: 6px;
  background: #161d31;
  color: #d0d2d6;
  font: inherit;
  padding: 8px 10px;
}

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

.cms-status, .cms-stat { padding: 20px; min-height: 132px; }
.cms-status { grid-column: span 1; }
.cms-live { display: flex; align-items: center; gap: 8px; margin-top: 22px !important; color: #d0d2d6 !important; font-weight: 600; }
.cms-live i { width: 10px; height: 10px; border-radius: 50%; background: #28c76f; }

.cms-stat { display: flex; align-items: center; gap: 14px; }
.cms-stat b { display: block; color: #fff; font-size: 20px; }
.cms-stat span { color: #b4b7bd; font-size: 13px; }
.cms-stat b.up { color: #28c76f; }
.cms-stat b.down { color: #ea5455; }

.cms-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  flex: none;
}
.cms-ico.a { background: #7367f0; }
.cms-ico.b { background: #00cfe8; }
.cms-ico.c { background: #ff9f43; }
.cms-ico.d { background: #ea5455; }
.cms-ico.e { background: #28c76f; }
.cms-ico.f { background: #4b4b4b; }

.cms-lower {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 18px;
  margin-top: 18px;
}

.cms-panel { padding: 20px 22px 8px; }
.cms-time { list-style: none; margin: 16px 0 12px; padding: 0; }
.cms-time li {
  position: relative;
  padding: 0 0 16px 18px;
  border-left: 2px solid #3b4253;
}
.cms-time li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7367f0;
}
.cms-time b { display: block; color: #fff; }
.cms-time span { color: #b4b7bd; font-size: 13px; }

body.market .bw-top,
body.market #list,
body.market .bw-tools,
body.market .bw-dock,
body.market .vn-board,
body.market .chart-panel,
body.market .money-row,
body.market .trade {
  margin-left: 250px;
}

body.market.view-dash .bw-top,
body.market.view-dash .bw-tools,
body.market.view-dash #list,
body.market.view-dash .bw-dock,
body.market.view-dash .vn-board,
body.market.view-dash .chart-panel,
body.market.view-dash .money-row,
body.market.view-dash .trade {
  display: none !important;
}

body.market.view-market .cms-dash,
body.market.view-hose .cms-dash,
body.market.view-nap .cms-dash,
body.market.view-lenh .cms-dash,
body.market.view-info .cms-dash,
body.market.view-pass .cms-dash,
body.market.view-rut .cms-dash,
body.market.view-hist .cms-dash,
body.market.view-orders .cms-dash { display: none; }

body.market.view-hose #list,
body.market.view-nap #list,
body.market.view-lenh #list,
body.market.view-info #list,
body.market.view-pass #list,
body.market.view-rut #list,
body.market.view-hist #list,
body.market.view-orders #list,
body.market.view-nap .bw-dock,
body.market.view-lenh .bw-dock,
body.market.view-info .bw-dock,
body.market.view-pass .bw-dock,
body.market.view-rut .bw-dock,
body.market.view-hist .bw-dock,
body.market.view-orders .bw-dock,
body.market.view-hose .bw-dock { display: none !important; }

body.market.view-nap.show-desk .trade { display: none !important; }
body.market.view-nap .money-row > .money-card:first-child { display: none !important; }
body.market.view-nap.show-desk .money-row { grid-template-columns: minmax(0, 720px); }
body.market.view-nap .money-card {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 40%, rgba(24, 26, 32, 0.78)),
    rgba(30, 35, 41, 0.75);
  border: 1px solid rgba(252, 213, 53, 0.16);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  backdrop-filter: blur(14px);
  color: #eaecef;
}
body.market.view-nap .money-card h2 { color: #fff; }
body.market.view-nap .money-lead,
body.market.view-nap .band-note { color: #848e9c; }
.pay-note-box {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(252, 213, 53, 0.16);
  background: rgba(252, 213, 53, 0.05);
}
.pay-note-title {
  margin: 0 0 8px;
  color: #fcd535;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pay-note-list {
  margin: 0;
  padding: 0 0 0 18px;
  color: #b7bdc6;
  font-size: 13px;
  line-height: 1.55;
}
.pay-note-list li { margin: 0 0 4px; }
.pay-note-list li:last-child { margin-bottom: 0; }
.pay-note-list b { color: #eaecef; font-weight: 700; }
.desk-head {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(43, 49, 57, 0.95);
}
.desk-crumb {
  margin: 0 0 8px;
  color: #848e9c;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.desk-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 6px;
}
.desk-title {
  margin: 0;
  color: #eaecef;
  font-family: "Syne", "Outfit", "Segoe UI", sans-serif;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  position: relative;
  padding-left: 14px;
}
.desk-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  border-radius: 999px;
  background: #fcd535;
}
.desk-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(252, 213, 53, 0.35);
  background: rgba(252, 213, 53, 0.1);
  color: #fcd535;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
}
.desk-chip.warn {
  border-color: rgba(246, 70, 93, 0.4);
  background: rgba(246, 70, 93, 0.12);
  color: #f6465d;
}
.desk-lead {
  margin: 0;
  color: #9aa3af;
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 52ch;
  font-weight: 500;
}
.nap-desk .nap-head {
  margin-bottom: 14px;
}
.nap-form .nap-submit {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
}
.nap-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
  color: #848e9c;
  font-size: 13px;
  font-weight: 650;
}
.nap-form #topup-stk,
.nap-form #topup-amount {
  display: block;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(252, 213, 53, 0.35);
  background: #0b0e11 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 750;
}
.nap-form #topup-amount::placeholder {
  color: rgba(255, 255, 255, 0.45);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.45);
}
.nap-form #topup-amount {
  letter-spacing: 0.02em;
}
.nap-form #topup-stk:focus,
.nap-form #topup-amount:focus {
  outline: none;
  border-color: rgba(252, 213, 53, 0.7);
  box-shadow: 0 0 0 2px rgba(252, 213, 53, 0.16);
}
.nap-form #nap-step1-body[hidden] {
  display: block !important;
}
.nap-stk-preview {
  margin: -4px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(14, 203, 129, 0.22);
  background: rgba(14, 203, 129, 0.08);
  color: #b7f5d4;
  font-size: 13px;
  line-height: 1.45;
}
.nap-stk-preview b { color: #eafff4; font-weight: 750; }
.nap-flow {
  display: grid;
  gap: 0;
  margin-top: 6px;
}
.nap-step {
  position: relative;
  padding-left: 36px;
}
.nap-step + .nap-step { margin-top: 8px; }
.nap-step::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 34px;
  bottom: -8px;
  width: 2px;
  background: rgba(45, 212, 191, 0.28);
}
.nap-step:last-child::before { display: none; }
.nap-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  margin-bottom: 10px;
}
.nap-step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0ecb81;
  color: #04130c;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 0 0 4px rgba(14, 203, 129, 0.16);
}
.nap-step-head strong {
  color: #eaecef;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.nap-step-body {
  padding: 12px 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(234, 236, 239, 0.1);
  background: rgba(11, 14, 17, 0.72);
}
.nap-step:not(.on) .nap-step-body { opacity: 0.55; }
.nap-step.on .nap-step-num {
  background: #fcd535;
  color: #1e2329;
  box-shadow: 0 0 0 4px rgba(252, 213, 53, 0.18);
}
.nap-primary,
.nap-form .nap-primary {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #2dd4bf, #0ecb81);
  color: #04130c;
  -webkit-text-fill-color: #04130c;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.nap-secondary {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(234, 236, 239, 0.28);
  border-radius: 10px;
  background: transparent;
  color: #eaecef;
  -webkit-text-fill-color: #eaecef;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.nap-xfer-list {
  display: grid;
  gap: 0;
}
.nap-xfer-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 8px;
  padding: 12px 2px;
  border-bottom: 1px solid rgba(234, 236, 239, 0.1);
  text-align: left;
}
.nap-xfer-row.nap-xfer-stk {
  grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1.4fr);
  align-items: start;
  min-height: 42px;
}
.nap-xfer-stk-value {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 0;
  width: 100%;
}
.nap-xfer-row:last-child { border-bottom: 0; }
.nap-xfer-row > span {
  color: #848e9c;
  font-size: 13px;
  white-space: nowrap;
}
.nap-xfer-row > b {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 14px;
  font-weight: 750;
  word-break: break-word;
  text-align: right;
}
#transfer-amount,
#transfer-account,
#transfer-bank,
#transfer-holder,
#transfer-code {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
.nap-xfer-stk-value > b,
.nap-xfer-stk > b {
  display: block;
  width: 100%;
  text-align: right;
  padding-right: 0;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-all !important;
  line-height: 1.35;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
.nap-copy,
#transfer-copy-stk {
  flex: 0 0 auto;
  width: auto;
  min-width: 72px;
  min-height: 34px;
  max-width: none;
  padding: 6px 10px;
  border: 1px solid rgba(252, 213, 53, 0.45);
  border-radius: 10px;
  background: rgba(252, 213, 53, 0.16);
  color: #fcd535;
  -webkit-text-fill-color: #fcd535;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  white-space: nowrap;
}
.nap-xfer-stk-value .nap-copy,
.nap-xfer-stk-value #transfer-copy-stk {
  justify-self: end;
}
.nap-copy:hover,
.nap-copy:focus-visible,
#transfer-copy-stk:hover,
#transfer-copy-stk:focus-visible {
  background: rgba(252, 213, 53, 0.28);
  outline: none;
}
.nap-xfer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
#transfer-box.nap-step-body {
  margin-top: 0;
  padding: 8px 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(234, 236, 239, 0.1);
  background: rgba(11, 14, 17, 0.72);
  color: #eaecef;
  text-align: left;
  box-shadow: none;
}
#transfer-box .transfer-foot {
  margin: 12px 0 0;
  color: #848e9c;
  font-size: 12px;
  text-align: left;
  max-width: none;
}
#transfer-box .transfer-qr-box {
  margin: 12px 0 0;
  max-width: none;
  text-align: left;
}
body.market.view-nap .desk-title,
body.market.view-rut .desk-title,
body.market.view-hist .desk-title,
body.market.view-orders .desk-title,
body.market.view-info .desk-title,
body.market.view-pass .desk-title {
  color: #fff;
}
.transfer-panel {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(252, 213, 53, 0.18);
  background: rgba(11, 14, 17, 0.55);
}
.rut-kyc-block {
  margin: 8px 0 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(252, 213, 53, 0.35);
  background: rgba(24, 26, 32, 0.55);
}
.rut-kyc-block h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #fcd535;
}
.rut-kyc-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
@media (min-width: 720px) {
  .rut-kyc-form { grid-template-columns: 1fr 1fr; }
}
body.market.view-lenh.show-desk .money-row,
body.market.view-info.show-desk .money-row,
body.market.view-pass.show-desk .money-row,
body.market.view-rut.show-desk .money-row,
body.market.view-hist.show-desk .money-row,
body.market.view-orders.show-desk .money-row { display: none !important; }
body.market.view-nap.show-chart .chart-panel,
body.market.view-hose.show-chart .chart-panel,
body.market.view-info.show-chart .chart-panel,
body.market.view-pass.show-chart .chart-panel,
body.market.view-rut.show-chart .chart-panel,
body.market.view-hist.show-chart .chart-panel,
body.market.view-orders.show-chart .chart-panel { display: none !important; }
body.market.view-hose .bw-tools,
body.market.view-nap .bw-tools,
body.market.view-lenh .bw-tools,
body.market.view-info .bw-tools,
body.market.view-pass .bw-tools,
body.market.view-rut .bw-tools,
body.market.view-hist .bw-tools,
body.market.view-orders .bw-tools,
body.market.view-info .bw-top,
body.market.view-pass .bw-top,
body.market.view-nap .bw-top { display: none !important; }
body.market.view-info .guest-bar,
body.market.view-pass .guest-bar,
body.market.view-nap .guest-bar,
body.market.view-rut .guest-bar,
body.market.view-hist .guest-bar,
body.market.view-orders .guest-bar,
body.market.view-lenh .guest-bar { margin-left: 250px; }

body.market.show-chart .chart-panel,
body.market.show-desk .money-row,
body.market.show-desk .trade { margin-left: 266px; }

body.market .bw-top {
  background: linear-gradient(180deg, #2b3139, #1e2329);
  border-bottom: 1px solid #363c45;
}
body.market .bw-dock {
  background: linear-gradient(180deg, #1e2329, #181a20);
  border-top: 1px solid #363c45;
}
body.market .bw-dock button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #848e9c;
}
body.market .bw-dock button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.market .bw-dock button.on {
  color: #fcd535;
  background: rgba(252, 213, 53, 0.12);
}

@media (max-width: 1100px) {
  .cms-grid, .cms-lower { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .cms-side {
    position: sticky;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
  }
  .cms-side nav { flex-direction: row; overflow: auto; padding: 8px; }
  .cms-side p, .cms-brand span:last-child { display: none; }
  .cms-dash,
  body.market .bw-top,
  body.market #list,
  body.market .bw-tools,
  body.market .bw-dock,
  body.market .vn-board,
  body.market .chart-panel,
  body.market .money-row,
  body.market .trade,
  body.market.show-chart .chart-panel,
  body.market.show-desk .money-row,
  body.market.show-desk .trade,
  body.market.view-lenh #updown,
  body.market.view-info #profile,
body.market.view-pass #pass-panel,
  body.market.view-rut #rut-panel,
  body.market.view-hist #hist-panel,
  body.market.view-orders #orders-panel,
  body.market.view-lenh .guest-bar,
  body.market.view-info .guest-bar,
body.market.view-pass .guest-bar,
  body.market.view-nap .guest-bar,
  body.market.view-rut .guest-bar,
  body.market.view-hist .guest-bar,
  body.market.view-orders .guest-bar { margin-left: 0; }
  .guest-bar { padding-left: 10px; }
  .cms-grid, .cms-lower, .cms-nav { grid-template-columns: 1fr; display: grid; }
  .ud-terminal { grid-template-columns: 1fr; }
  body.market.view-lenh #updown { margin-left: 0; }
  body.admin .cms-dash { padding-top: 12px; }
}

#transfer-box[hidden] { display: none !important; }
#transfer-box.transfer-panel {
  margin-top: 14px;
  padding: 20px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(252, 213, 53, 0.35);
  background: #fff;
  color: #1e2329;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
#transfer-box .transfer-title {
  margin: 0 0 14px;
  color: #848e9c;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
#transfer-box .transfer-holder {
  margin: 0;
  color: #1e2329;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.25;
  word-break: break-word;
}
#transfer-box .transfer-account {
  margin: 10px 0 0;
  color: #848e9c;
  line-height: 1.5;
  font-size: 13px;
}
#transfer-box .transfer-account b {
  display: inline;
  margin: 0;
  color: #eaecef;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
#transfer-box #transfer-bank {
  display: inline-block;
  margin-top: 2px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 700;
}
#transfer-box .transfer-line {
  margin: 12px 0 0;
  color: #474d57;
  font-size: 14px;
}
#transfer-box .transfer-line b {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  -webkit-text-fill-color: #ffffff;
}
.transfer-copy-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 16px auto 0;
  max-width: 420px;
}
.transfer-copy-btn,
#transfer-copy {
  flex: 1 1 140px;
  min-width: 140px;
  max-width: 200px;
  border: 0;
  border-radius: 10px;
  background: #fcd535;
  color: #1e2329;
  -webkit-text-fill-color: #1e2329;
  font: inherit;
  font-weight: 800;
  padding: 11px 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(252, 213, 53, 0.28);
}
.transfer-copy-btn:hover,
#transfer-copy:hover {
  filter: brightness(1.05);
}
.transfer-qr-box {
  margin: 16px auto 0;
  max-width: 320px;
  color: #848e9c;
  text-align: center;
}
.transfer-qr-box summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: #848e9c;
  font-size: 13px;
}
.transfer-qr-box summary::-webkit-details-marker { display: none; }
.transfer-qr-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px auto 0;
  padding: 14px;
  border-radius: 12px;
  background: #1e2329;
  border: 1px solid rgba(252, 213, 53, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
#transfer-qr {
  width: min(100%, 240px);
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  box-sizing: border-box;
}
#transfer-box .transfer-foot {
  margin: 14px auto 0;
  max-width: 360px;
  color: #848e9c;
  font-size: 12px;
  line-height: 1.45;
}

.cms-deposits { margin-top: 18px; }
.cms-table-wrap { overflow-x: auto; }
.cms-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.cms-table th, .cms-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #3b4253;
  text-align: left;
  color: #d0d2d6;
  font-size: 13px;
  white-space: nowrap;
}
.cms-table th { color: #b4b7bd; font-weight: 600; }
.cms-table button {
  border: 0;
  border-radius: 8px;
  background: #28c76f;
  color: #fff;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}
.pay-wait { color: #ff9f43; }
.pay-ok { color: #28c76f; }
.pay-cancel { color: #ea5455; font-weight: 700; }
.ad-dep-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ad-dep-actions button {
  border: 0;
  border-radius: 8px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ad-dep-ok {
  background: linear-gradient(180deg, #28c76f, #1f9d57);
  color: #fff;
}
.ad-dep-cancel {
  background: rgba(234, 84, 85, 0.16);
  color: #ea5455;
  border: 1px solid rgba(234, 84, 85, 0.4) !important;
}

body.market #profile,
body.market #pass-panel { display: none; }
body.market.view-info #profile,
body.market.view-pass #pass-panel {
  display: block;
  margin-left: 250px;
  min-height: 100vh;
  padding: 22px 22px 40px;
  background: transparent;
  color: #eaecef;
}
body.market.view-pass .pass-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 960px) {
  body.market.view-pass .pass-grid { grid-template-columns: 1fr; }
}
.profile-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 18px;
}
.profile-head.desk-head {
  align-items: flex-start;
  margin-bottom: 18px;
}
.profile-head h1 { margin: 0 0 6px; font-size: 24px; }
.profile-head p { margin: 0; color: #848e9c; font-size: 14px; }
.profile-head .desk-lead { margin-top: 2px; }
.profile-who {
  text-align: right;
  color: #848e9c;
  font-size: 13px;
}
.profile-who strong { display: block; color: #fcd535; font-size: 18px; }
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.kyc-pill {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(246, 70, 93, 0.16);
  color: #f6465d;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.kyc-pill.ok {
  background: rgba(14, 203, 129, 0.16);
  color: #0ecb81;
}
.kyc-pill.wait {
  background: rgba(252, 213, 53, 0.16);
  color: #fcd535;
}
.ad-verify-btn {
  background: #fcd535;
  color: #1e2329;
}
.ad-clear-btn {
  background: #474d57;
  color: #eaecef;
}
.ad-wd-account {
  width: 140px;
  max-width: 100%;
  margin: 4px 0;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #474d57;
  background: #181a20;
  color: #eaecef;
  font: inherit;
}
.ad-wd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ad-wd-actions button {
  margin: 0 !important;
}
.profile-card {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 40%, rgba(24, 26, 32, 0.75)),
    rgba(30, 35, 41, 0.78);
  border: 1px solid rgba(252, 213, 53, 0.16);
  border-radius: 16px;
  padding: 18px 16px 14px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  backdrop-filter: blur(14px);
}
.profile-card h2 { margin: 0 0 12px; font-size: 16px; }
.profile-note {
  margin: 0 0 12px;
  color: #9aa3af;
  font-size: 13px;
  line-height: 1.5;
}
.rut-verify-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fcd535;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.rut-verify-link:hover,
.rut-verify-link:focus-visible {
  color: #f8d12f;
}
.profile-card form { display: flex; flex-direction: column; gap: 10px; }
.profile-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #848e9c;
  font-size: 12px;
}
.profile-card input,
.profile-card select {
  border: 1px solid #474d57;
  border-radius: 8px;
  background: #181a20;
  color: #eaecef;
  -webkit-text-fill-color: #eaecef;
  caret-color: #fcd535;
  font: inherit;
  padding: 10px 12px;
}
.profile-card input::placeholder {
  color: #848e9c;
  -webkit-text-fill-color: #848e9c;
  opacity: 1;
}
.profile-card input[readonly] {
  color: #fcd535;
  -webkit-text-fill-color: #fcd535;
  background: #2b3139;
}
.kyc-form {
  display: grid;
  gap: 12px;
}
.kyc-upload {
  display: grid !important;
  gap: 8px;
  padding: 12px;
  border: 1px dashed rgba(252, 213, 53, 0.35);
  border-radius: 12px;
  background: rgba(24, 26, 32, 0.65);
}
.kyc-preview {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #2b3139;
}
.kyc-upload > span {
  color: #848e9c;
  font-size: 12px;
}
.kyc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.kyc-pick {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #474d57;
  border-radius: 10px;
  background: #181a20;
  color: #eaecef;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
}
.kyc-pick-cam {
  border-color: rgba(252, 213, 53, 0.45);
  color: #fcd535;
}
.kyc-pick.is-locked {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}
#bank-form button[type="submit"]:disabled,
#kyc-confirm:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.profile-card input[readonly],
.profile-card select:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}
.kyc-pick span {
  color: inherit;
  font-size: inherit;
}
.kyc-confirm {
  margin-top: 4px;
  border: 1px solid rgba(252, 213, 53, 0.65);
  border-radius: 10px;
  background: rgba(252, 213, 53, 0.12);
  color: #fcd535;
  -webkit-text-fill-color: #fcd535;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 12px 14px;
  cursor: pointer;
  text-shadow: 0 0 12px rgba(252, 213, 53, 0.35);
}
.kyc-confirm:hover:not(:disabled),
.kyc-confirm:focus-visible:not(:disabled) {
  background: rgba(252, 213, 53, 0.2);
  border-color: #fcd535;
  color: #fcd535;
  -webkit-text-fill-color: #fcd535;
}
.kyc-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-shadow: none;
}
.profile-card button[type="submit"] {
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: #fcd535;
  color: #1e2329;
  font: inherit;
  font-weight: 750;
  padding: 11px 14px;
  cursor: pointer;
}
.profile-card .msg { min-height: 18px; margin: 0; font-size: 13px; }
.profile-card .msg.ok { color: #0ecb81; }
.profile-card .msg.bad { color: #f6465d; }
@media (max-width: 1100px) {
  .profile-grid { grid-template-columns: 1fr; }
  body.market.view-info #profile,
body.market.view-pass #pass-panel { margin-left: 0; }
}

body.market #updown { display: none; }
body.market.view-lenh #updown {
  display: flex;
  flex-direction: column;
  margin-left: 250px;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: #0b0e11;
  color: #eaecef;
}
body.market.view-lenh .bw-top { display: none !important; }

.win-ticker {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  min-height: 34px;
  border-bottom: 1px solid rgba(252, 213, 53, 0.28);
  background:
    linear-gradient(90deg, rgba(252, 213, 53, 0.14), rgba(14, 203, 129, 0.06) 28%, #0b0e11 70%);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.ud-balance-bar {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: stretch;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(252, 213, 53, 0.22);
  background:
    linear-gradient(180deg, rgba(18, 22, 28, 0.98), rgba(11, 14, 17, 0.98));
  position: relative;
  z-index: 2;
}
.ud-balance-bar .ud-wallet {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(252, 213, 53, 0.4);
  background:
    linear-gradient(135deg, rgba(252, 213, 53, 0.14), rgba(45, 212, 191, 0.06)),
    #12161c;
  box-shadow: none;
}
.win-ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0 14px;
  border-right: 1px solid rgba(252, 213, 53, 0.22);
  color: #fcd535;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.22);
}
.win-ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fcd535;
  box-shadow: 0 0 10px rgba(252, 213, 53, 0.85);
  animation: udLivePulse 1.1s ease-in-out infinite;
}
.win-ticker-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.win-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: max-content;
  padding: 7px 0;
  white-space: nowrap;
  animation: winTickerScroll 38s linear infinite;
  -webkit-animation: winTickerScroll 38s linear infinite;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.win-ticker-track:hover { animation-play-state: paused; -webkit-animation-play-state: paused; }
body.market.view-lenh .win-ticker-track {
  animation: winTickerScroll 38s linear infinite !important;
  -webkit-animation: winTickerScroll 38s linear infinite !important;
}
.win-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  color: #eaecef;
  font-size: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.win-ticker-item b {
  color: #fcd535;
  font-weight: 800;
}
.win-ticker-item em {
  color: #848e9c;
  font-style: normal;
  font-size: 11px;
}
.win-ticker-item strong {
  color: #0ecb81;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.win-ticker-item.is-live {
  background: rgba(14, 203, 129, 0.12);
  border-radius: 999px;
  padding: 2px 16px;
  margin: 0 4px;
  border-right: 0;
}
.win-ticker-item.is-live b { color: #fcd535; }
.win-ticker-item.is-live em { color: #c8f7df; }
.win-ticker-item.is-live strong { color: #0ecb81; }
@keyframes winTickerScroll {
  from { transform: translate3d(0, 0, 0); -webkit-transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); -webkit-transform: translate3d(-50%, 0, 0); }
}
@-webkit-keyframes winTickerScroll {
  from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  to { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
}

.rank-board {
  flex: 0 0 auto;
  border-bottom: 1px solid #1e2329;
  background: linear-gradient(180deg, #12161c, #0b0e11);
  padding: 8px 12px 10px;
}
.rank-board-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.rank-board-head strong {
  color: #eaecef;
  font-size: 13px;
  font-weight: 800;
}
.rank-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 2px;
  border-radius: 8px;
  background: #181a20;
  border: 1px solid #2b3139;
}
.rank-tabs button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #848e9c;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  cursor: pointer;
}
.rank-tabs button.on {
  background: rgba(252, 213, 53, 0.16);
  color: #fcd535;
}
.rank-live {
  margin-left: auto;
  color: #0ecb81;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.rank-live.is-pulse {
  color: #fcd535;
  animation: rankLivePulse 0.9s ease-out 1;
}
@keyframes rankLivePulse {
  0% { opacity: 0.45; transform: scale(0.96); }
  40% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.rank-list.is-refresh li .rank-pnl {
  animation: rankPnlFlash 0.7s ease-out 1;
}
@keyframes rankPnlFlash {
  0% { color: #fcd535; }
  100% { color: #0ecb81; }
}
.rank-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  grid-template-areas:
    "pos pnl"
    "pos user";
  align-items: center;
  column-gap: 6px;
  row-gap: 1px;
  min-width: 0;
  padding: 6px 7px;
  border-radius: 8px;
  border: 1px solid #1e2329;
  background: #0b0e11;
}
.rank-list li.top1 {
  border-color: rgba(252, 213, 53, 0.55);
  background: linear-gradient(135deg, rgba(252, 213, 53, 0.14), #0b0e11);
}
.rank-list li.top2 {
  border-color: rgba(192, 192, 192, 0.35);
}
.rank-list li.top3 {
  border-color: rgba(205, 127, 50, 0.4);
}
.rank-list .rank-pos {
  grid-area: pos;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1e2329;
  color: #eaecef;
  font-size: 11px;
  font-weight: 800;
}
.rank-list li.top1 .rank-pos { background: #fcd535; color: #1e2329; }
.rank-list li.top2 .rank-pos { background: #c0c0c0; color: #1e2329; }
.rank-list li.top3 .rank-pos { background: #cd7f32; color: #fff; }
.rank-list .rank-user {
  grid-area: user;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #848e9c;
  font-size: 10px;
  font-weight: 600;
}
.rank-list .rank-pnl {
  grid-area: pnl;
  color: #0ecb81;
  font-size: clamp(9px, 2.6vw, 12px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: visible;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.rank-list li.is-real .rank-user {
  color: #fcd535;
}

.ud-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 8px 14px;
  border-bottom: 1px solid #1e2329;
  background: #12161c;
  flex: 0 0 auto;
}
.ud-pair, .ud-stats { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ud-pair label { display: flex; flex-direction: column; gap: 2px; color: #848e9c; font-size: 11px; }
.ud-pair select, .ud-chips button, .ud-sides button, .ud-confirm button {
  font: inherit;
  cursor: pointer;
}
.ud-pair select {
  border: 1px solid #2b3139;
  border-radius: 4px;
  background: #181a20;
  color: #fff;
  padding: 6px 8px;
}
.ud-top strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.ud-chg.up, .ud-book .up, .ud-win, .ud-tape .up { color: #0ecb81; }
.ud-chg.down, .ud-book .down, .ud-lose, .ud-tape .down { color: #f6465d; }
.ud-stats { color: #848e9c; font-size: 12px; }
.ud-stats b { color: #eaecef; font-variant-numeric: tabular-nums; }

.ud-terminal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  border-bottom: 1px solid #1e2329;
}
.ud-chart-wrap {
  position: relative;
  background: #0b0e11;
  border-right: 1px solid #1e2329;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.ud-chart-notice {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 30;
  transform: translate(-50%, -50%) scale(0.96);
  min-width: min(86%, 320px);
  max-width: min(92%, 420px);
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(246, 70, 93, 0.7);
  background: rgba(11, 14, 17, 0.94);
  color: #eaecef;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 28px rgba(246, 70, 93, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.ud-chart-notice.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.ud-chart-notice.bad {
  border-color: rgba(246, 70, 93, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 28px rgba(246, 70, 93, 0.2);
}
.ud-chart-notice.ok {
  border-color: rgba(14, 203, 129, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 28px rgba(14, 203, 129, 0.2);
}
.ud-chart-notice strong {
  display: block;
  margin-bottom: 4px;
  color: #f6465d;
  font-size: 16px;
  font-weight: 800;
}
.ud-chart-notice.ok strong { color: #0ecb81; }
.ud-chart-notice.bad strong { color: #f6465d; }
.ud-chart-notice[hidden] { display: none !important; }
.ud-chart-notice.show:not([hidden]) { display: block !important; }
.ud-chart-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 6px 12px;
  border-bottom: 1px solid #1e2329;
  background: #12161c;
  flex: 0 0 auto;
}
.ud-chart-tabs, .ud-frames, .ud-ma-legend, .ud-tape-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.ud-chart-tabs button,
.ud-frames button,
.ud-tape-tabs button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #848e9c;
  font: inherit;
  font-size: 12px;
  padding: 5px 8px;
  cursor: pointer;
}
.ud-chart-tabs button.on,
.ud-frames button.on,
.ud-tape-tabs button.on {
  color: #fcd535;
  background: rgba(252, 213, 53, 0.08);
  font-weight: 700;
}
.ud-frames button:disabled { opacity: 0.35; cursor: default; }
.ud-ma-legend { margin-left: auto; font-size: 11px; font-weight: 700; gap: 10px; }
.ud-chart-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(14, 203, 129, 0.14);
  color: #0ecb81;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.ud-chart-live[hidden] { display: none !important; }
.ud-chart-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0ecb81;
  box-shadow: 0 0 8px #0ecb81;
  animation: udLivePulse 1.1s ease-in-out infinite;
}
.ud-chart-live.hot {
  background: rgba(252, 213, 53, 0.16);
  color: #fcd535;
}
.ud-chart-live.hot i {
  background: #fcd535;
  box-shadow: 0 0 8px #fcd535;
}
.ud-chart-session {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(252, 213, 53, 0.1);
  border: 1px solid rgba(252, 213, 53, 0.28);
  color: #fcd535;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0;
}
.ud-chart-session b {
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.ud-chart-session .ud-sess-sep {
  font-style: normal;
  color: rgba(252, 213, 53, 0.55);
  font-weight: 700;
  margin: 0 1px;
}
.ud-chart-session .ud-sess-left {
  color: #fcd535 !important;
  min-width: 2.4em;
  text-align: right;
}
.ud-chart-session .ud-sess-left.urgent,
.ud-chart-session.is-wait .ud-sess-left {
  color: #f6465d !important;
}
.ud-chart-session.is-wait {
  border-color: rgba(246, 70, 93, 0.45);
  background: rgba(246, 70, 93, 0.12);
}
.ud-chart {
  transition: box-shadow 0.25s ease;
}
.ud-chart.live-tick {
  box-shadow: inset 0 0 0 1px rgba(14, 203, 129, 0.18);
}
.ud-ma-legend .ma7, .chart-ma-legend .ma7 { color: #fcd535; }
.ud-ma-legend .ma25, .chart-ma-legend .ma25 { color: #f6465d; }
.ud-ma-legend .ma99, .chart-ma-legend .ma99 { color: #c994ff; }
.ud-chart-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ud-chart {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: hidden;
  touch-action: none !important;
  user-select: none;
  -webkit-user-select: none;
}
.ud-chart .apexcharts-canvas,
.ud-chart svg {
  touch-action: none !important;
  pointer-events: none !important;
}
.ud-chart-gestures {
  position: absolute;
  inset: 0;
  z-index: 40;
  touch-action: none !important;
  cursor: grab;
  background: rgba(0, 0, 0, 0);
  -webkit-user-select: none;
  user-select: none;
}
.ud-chart-gestures:active {
  cursor: grabbing;
}
.ud-chart .apexcharts-canvas,
.ud-chart > div {
  width: 100% !important;
  height: 100% !important;
}
.ud-chart-info, .ud-chart-data {
  padding: 16px;
  color: #848e9c;
  font-size: 13px;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
}
#ud-last { transition: color 0.15s linear; }
#ud-last.tick-up { color: #0ecb81; }
#ud-last.tick-down { color: #f6465d; }

.ud-right {
  display: grid;
  grid-template-rows: minmax(0, 1.15fr) minmax(0, 0.85fr) auto;
  background: #0b0e11;
  min-height: 0;
  overflow: hidden;
}
.ud-book, .ud-tape, .ud-ticket {
  padding: 8px 10px;
  border-bottom: 1px solid #1e2329;
  background: #0b0e11;
  min-height: 0;
  overflow: auto;
}
.ud-ticket { border-bottom: 0; overflow: auto; }
.ud-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.ud-panel-head strong { font-size: 13px; color: #eaecef; }
.ud-ticket p { margin: 6px 0; color: #848e9c; font-size: 12px; }
#ud-book-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(14, 203, 129, 0.16);
  color: #0ecb81;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
#ud-book-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0ecb81;
  box-shadow: 0 0 8px #0ecb81;
  animation: udLivePulse 1.1s ease-in-out infinite;
}
.ud-book-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 6px;
  color: #848e9c;
  font-size: 11px;
  margin-bottom: 4px;
}
.ud-book-head span:nth-child(2),
.ud-book-head span:nth-child(3),
.ud-row b,
.ud-row em,
.ud-trade b,
.ud-trade em { text-align: right; }
.ud-book-side { max-height: none; overflow: visible; }
.ud-row, .ud-mid, .ud-trade {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 6px;
  align-items: center;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  padding: 3px 2px;
  overflow: hidden;
}
.ud-row i {
  position: absolute;
  top: 1px;
  bottom: 1px;
  right: 0;
  border-radius: 2px;
  opacity: 0.18;
  pointer-events: none;
  transition: width 0.25s ease;
}
.ud-row.down i { background: #f6465d; }
.ud-row.up i { background: #0ecb81; }
.ud-row span, .ud-row b, .ud-row em,
.ud-trade span, .ud-trade b, .ud-trade em { position: relative; z-index: 1; }
.ud-row b, .ud-row em, .ud-trade b, .ud-trade em { font-weight: 650; font-style: normal; }
.ud-row.pulse { animation: udRowFlash 0.35s ease; }
.ud-mid {
  display: flex;
  color: #eaecef;
  font-weight: 800;
  font-size: 18px;
  border-top: 1px solid #1e2329;
  border-bottom: 1px solid #1e2329;
  margin: 4px 0;
  justify-content: center;
  min-height: 34px;
  transition: background 0.2s ease, color 0.2s ease;
}
.ud-mid.flash { background: rgba(246, 70, 93, 0.12); color: #f6465d; }
.ud-trades {
  max-height: none;
  overflow: visible;
}
.ud-round-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(252, 213, 53, 0.35);
  background: linear-gradient(135deg, rgba(252, 213, 53, 0.16), rgba(45, 212, 191, 0.08));
}
.ud-round-session,
.ud-round-bar .ud-count {
  margin: 0;
  min-width: 0;
  color: #fcd535;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.ud-round-bar .ud-count {
  text-align: right;
}
.ud-round-session b,
.ud-round-bar .ud-count b {
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ud-round-bar.is-wait {
  border-color: rgba(246, 70, 93, 0.45);
  background: linear-gradient(135deg, rgba(246, 70, 93, 0.18), rgba(252, 213, 53, 0.08));
}
.ud-round-bar.is-wait .ud-count,
.ud-round-bar.is-wait #ud-count-label {
  color: #f6465d;
}
.ud-sides button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.2);
}
.ud-user-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 8px;
  margin: 0 0 8px;
  align-items: stretch;
}
.ud-user-name,
.ud-user-bar .ud-wallet {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(252, 213, 53, 0.35);
  background:
    linear-gradient(135deg, rgba(252, 213, 53, 0.14), rgba(45, 212, 191, 0.06)),
    #12161c;
  box-shadow: none;
  overflow: hidden;
}
.ud-user-name span,
.ud-user-bar .ud-wallet span {
  color: #fcd535;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  white-space: nowrap;
}
.ud-user-name b,
.ud-user-bar .ud-wallet b {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ud-count { color: #fcd535 !important; font-weight: 700; }
#ud-left.urgent { color: #f6465d; }
@keyframes udLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}
@keyframes udRowFlash {
  from { filter: brightness(1.45); }
  to { filter: brightness(1); }
}
.ud-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ud-chips button {
  border: 0;
  border-radius: 4px;
  background: #1e2329;
  color: #eaecef;
  padding: 6px 8px;
  font-size: 12px;
}
.ud-chips button.on { background: #fcd535; color: #1e2329; font-weight: 700; }
.ud-custom-bet {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 4px;
  color: #848e9c;
  font-size: 12px;
  font-weight: 650;
}
.ud-custom-bet input {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(252, 213, 53, 0.4);
  background: #0b0e11 !important;
  color: #fcd535 !important;
  -webkit-text-fill-color: #fcd535 !important;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
}
.ud-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.ud-sides button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  padding: 12px 8px;
  font-weight: 800;
}
.ud-sides button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ud-sides button span { display: block; font-weight: 600; font-size: 12px; opacity: 0.92; }
#ud-up { background: #0ecb81; }
#ud-down { background: #f6465d; }

.ud-line {
  display: grid;
  grid-template-columns: 90px 80px 90px 1fr 140px;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #1e2329;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.chart-ma-legend {
  display: flex;
  gap: 12px;
  padding: 0 4px 8px;
  font-size: 11px;
  font-weight: 700;
}
.ud-mobile-panels { display: none; }

@media (max-width: 900px) {
  body.market.view-lenh #updown {
    margin-left: 0;
    height: auto;
    max-height: none;
    overflow: visible;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .ud-terminal {
    grid-template-columns: 1fr;
    flex: none;
  }
  .ud-chart-wrap {
    border-right: 0;
    border-bottom: 1px solid #1e2329;
    min-height: 0;
  }
  .ud-chart {
    min-height: 160px;
    height: min(28vh, 260px);
    flex: none;
  }
  .ud-right {
    grid-template-rows: auto;
    max-height: none;
  }
}

/* chiptop1: bỏ tên/ví topbar trên sàn — chỉ giữ ô dưới */
html.lite-device body.market.view-lenh .ud-balance-bar {
  display: none !important;
}
html.lite-device body.market.view-lenh .guest-topbar,
html.lite-device body.market.view-lenh .guest-account,
html.lite-device body.market.view-lenh .guest-topbar .guest-wallet,
html.lite-device body.market.view-lenh .guest-topbar .guest-who:not([hidden]) {
  display: none !important;
}
html.lite-device body.market.view-lenh .win-ticker {
  flex: 0 0 auto;
  min-height: 36px;
  position: relative;
  z-index: 6;
  padding-right: 8px;
}
html.lite-device body.market.view-lenh {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  position: fixed !important;
  inset: 0;
  width: 100%;
  height: 100dvh !important;
  max-height: 100dvh !important;
}
html.lite-device body.market.view-lenh #updown {
  padding-top: calc(env(safe-area-inset-top, 0px) + 6px) !important;
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: manipulation;
}
html.lite-device body.market.view-lenh .ud-terminal {
  justify-content: flex-start !important;
  flex: 0 1 auto !important;
}
html.lite-device body.market.view-lenh .ud-right {
  margin-top: 0 !important;
  flex: 0 0 auto !important;
}
html.lite-device body.market.view-lenh.ud-m-ticket [data-ud-mview="ticket"] {
  flex: 0 0 auto !important;
  overflow: visible;
}
html.lite-device body.market.view-lenh .rank-board {
  display: block;
  flex: 0 0 auto;
  padding: 4px 8px 6px;
}
html.lite-device body.market.view-lenh .rank-board-head {
  margin-bottom: 4px;
  gap: 6px;
}
html.lite-device body.market.view-lenh .rank-board-head strong {
  font-size: 12px;
}
html.lite-device body.market.view-lenh .rank-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
html.lite-device body.market.view-lenh .rank-list li {
  padding: 5px 6px;
  font-size: 11px;
}
html.lite-device body.market.view-lenh .rank-list .rank-pnl {
  font-size: clamp(8px, 2.8vw, 11px);
}
html.lite-device body.market.view-lenh .rank-list .rank-user {
  font-size: 9px;
}
html.lite-device body.market.view-lenh .rank-list li:nth-child(n+4) {
  display: none;
}
html.lite-device body.market.view-lenh .guest-topbar {
  display: none !important;
}
html.lite-device body.market.view-lenh .guest-account {
  display: none !important;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  padding: 4px 6px;
  border-radius: 12px;
  border: 1px solid rgba(252, 213, 53, 0.35);
  background: rgba(11, 14, 17, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
html.lite-device body.market.view-lenh .guest-topbar .guest-wallet {
  display: flex !important;
  flex-direction: column;
  min-width: 88px;
  padding: 4px 8px;
}
html.lite-device body.market.view-lenh .guest-topbar .guest-who:not([hidden]) {
  display: inline-block !important;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.lite-device body.market.view-lenh .guest-bar {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: #0b0e11 !important;
}
html.lite-device body.market.view-lenh .ud-chart-tabs {
  display: none !important;
}
html.lite-device body.market.view-lenh .ud-chart-wrap {
  flex: 0 0 auto;
  min-height: 0;
}
html.lite-device body.market.view-lenh .ud-chart-stage {
  flex: none !important;
  height: min(24svh, 220px) !important;
  min-height: 130px !important;
  max-height: 220px !important;
}
html.lite-device body.market.view-lenh .ud-chart {
  flex: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}
html.lite-device body.market.view-lenh .ud-right {
  flex: 0 0 auto;
  max-height: none;
  min-height: 0;
}
html.lite-device body.market.view-lenh .ud-sides {
  flex: 0 0 auto !important;
  position: relative;
  z-index: 8;
  gap: 6px;
  margin: 4px 0;
}
html.lite-device body.market.view-lenh .ud-sides button {
  min-height: 40px !important;
  padding: 6px 8px !important;
  font-size: 14px !important;
  gap: 0 !important;
  border-radius: 8px !important;
}
html.lite-device body.market.view-lenh .ud-sides button svg {
  width: 12px;
  height: 12px;
}
html.lite-device body.market.view-lenh .ud-sides button span {
  font-size: 11px;
}
html.lite-device body.market.view-lenh .guest-topbar .guest-logout {
  display: none !important;
}
html.lite-device body.market.view-lenh .win-ticker-track {
  animation-duration: 48s !important;
  -webkit-animation-duration: 48s !important;
}

/* Phone / Safari */
@media (max-width: 640px) {
  html, body.market {
    overflow-x: hidden;
    max-width: 100vw;
    height: 100%;
  }
  /* Cố định màn APP — khóa kéo lên/xuống */
  html.app-scroll-lock,
  html.app-scroll-lock body {
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: manipulation;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    position: fixed !important;
    inset: 0;
    width: 100% !important;
  }
  body.market.view-lenh {
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: manipulation;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    position: fixed;
    inset: 0;
    width: 100%;
  }
  body.market.view-lenh .cms-side,
  body.market.view-info .cms-side,
body.market.view-pass .cms-side,
  body.market.view-nap .cms-side,
  body.market.view-rut .cms-side,
  body.market.view-hist .cms-side,
  body.market.view-orders .cms-side {
    display: none !important;
  }
  body.market.view-lenh .guest-bar,
  body.market.view-info .guest-bar,
body.market.view-pass .guest-bar,
  body.market.view-nap .guest-bar,
  body.market.view-rut .guest-bar,
  body.market.view-hist .guest-bar,
  body.market.view-orders .guest-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 50;
    margin: 0;
    /* barfit1 — thu thấp thanh Sàn/Thêm để chip không bị che */
    padding: 2px 8px calc(2px + env(safe-area-inset-bottom, 0px));
    min-height: 0;
    border-top: 1px solid rgba(252, 213, 53, 0.2);
    border-bottom: 0;
    justify-content: space-around;
    gap: 6px;
    background: rgba(11, 14, 17, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .guest-bar-links {
    display: none !important;
  }
  .guest-bar > [data-view="lenh"],
  .guest-more-btn {
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    min-height: 36px;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 8px;
  }
  .guest-bar > [data-view="lenh"] svg,
  .guest-more-btn svg { width: 16px; height: 16px; }
  .guest-more {
    display: flex !important;
    flex: 1 1 0;
    position: static;
    min-width: 0;
  }
  .guest-more-btn {
    display: inline-flex !important;
    width: 100%;
    border: 0;
    background: transparent;
    color: #eaecef;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }
  .guest-more-btn[aria-expanded="true"],
  .guest-more-btn.on,
  .guest-more-btn:hover {
    color: #2dd4bf;
  }
  /* Overlay gắn body — luôn trên mọi trang Nạp/Rút/... */
  .guest-more-sheet {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    z-index: 30000 !important;
    pointer-events: none;
  }
  .guest-more-sheet.is-open,
  .guest-more-sheet:not([hidden]) {
    display: block !important;
    pointer-events: auto;
  }
  .guest-more-sheet[hidden] {
    display: none !important;
  }
  body.guest-more-open .guest-bar {
    z-index: 30001 !important;
  }
  .guest-more-backdrop {
    display: block !important;
    position: absolute;
    inset: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.58);
    cursor: pointer;
  }
  .guest-more-panel {
    display: grid !important;
    gap: 4px;
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    max-height: min(70vh, 520px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 10px 10px;
    border-radius: 16px;
    border: 1px solid rgba(252, 213, 53, 0.28);
    background: linear-gradient(180deg, #171b22, #0f1318);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }
  .guest-more-title {
    display: block !important;
    margin: 0 8px 6px;
    color: #9aa3ad;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: capitalize;
  }
  .guest-more-panel button {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px !important;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #eaecef;
    font: inherit;
    font-size: 15px !important;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .guest-more-panel button[hidden] {
    display: none !important;
  }
  .guest-more-panel button span {
    font-size: 15px !important;
  }
  .guest-more-panel button svg {
    width: 20px !important;
    height: 20px !important;
    flex: none;
  }
  .guest-more-panel button.on,
  .guest-more-panel button:hover {
    color: #2dd4bf;
    background: rgba(45, 212, 191, 0.12);
  }
  .guest-more-panel .guest-bar-logout:not([hidden]) {
    color: #fcd535 !important;
    border: 1px solid rgba(252, 213, 53, 0.35) !important;
    background: rgba(252, 213, 53, 0.1) !important;
  }
  body.market.view-lenh #updown {
    margin-left: 0 !important;
    width: 100%;
    height: 100%;
    height: 100dvh;
    height: 100svh;
    max-height: 100dvh;
    max-height: 100svh;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: manipulation;
    -webkit-overflow-scrolling: auto;
    padding-top: calc(env(safe-area-inset-top, 0px) + 1svh);
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    justify-content: flex-start;
  }
  body.market.view-lenh .ud-terminal,
  body.market.view-lenh .ud-chart-wrap,
  body.market.view-lenh .ud-right {
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: manipulation;
  }
  body.market.view-lenh #ud-chart,
  body.market.view-lenh #ud-chart .apexcharts-canvas,
  body.market.view-lenh #ud-chart svg {
    touch-action: none !important;
  }
  body.market.view-lenh .ud-ticket {
    overflow: visible !important;
    overscroll-behavior: none !important;
    touch-action: manipulation;
  }
  body.market.view-lenh .ud-sides {
    flex: 0 0 auto !important;
    margin-bottom: 4px !important;
    position: relative;
    z-index: 8;
  }
  body.market.view-lenh .ud-sides button {
    min-height: 40px !important;
  }
  .ud-top {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 6px 10px;
  }
  .ud-top strong { font-size: 17px; }
  .ud-stats {
    display: none;
  }
  .ud-pair {
    width: 100%;
    gap: 8px;
  }
  .ud-pair label {
    flex: 1 1 auto;
    min-width: 0;
  }
  .ud-pair select {
    width: 100%;
    min-height: 40px;
    font-size: 16px;
  }
  .ud-terminal {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-height: 0;
    overflow: hidden;
    justify-content: flex-start;
    gap: 0;
  }
  .ud-chart-wrap {
    flex: 0 0 auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
  }
  body.market.view-lenh .ud-chart-wrap {
    position: relative !important;
    border-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  body.market.view-lenh .ud-chart-notice {
    font-size: 13px;
    padding: 14px 16px;
  }
  body.market.view-lenh .ud-chart-notice strong {
    font-size: 15px;
  }
  body.market.view-lenh .ud-chart {
    margin: 0 !important;
    padding: 0 !important;
  }
  .ud-chart-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px 6px;
    padding: 4px 8px;
    flex: 0 0 auto;
  }
  .ud-chart-tabs {
    display: none !important;
  }
  .ud-frames {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 3px;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
  .ud-chart-tabs button,
  .ud-frames button,
  .ud-tape-tabs button,
  .ud-mobile-panels button {
    min-height: 28px;
    padding: 4px 6px;
    font-size: 11px;
  }
  .ud-ma-legend {
    display: none;
  }
  .ud-chart-session {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    order: -1;
    margin-left: 0;
    margin-right: auto;
    padding: 3px 6px;
    font-size: 10px;
    max-width: none !important;
    overflow: visible !important;
    white-space: nowrap !important;
    position: relative;
    z-index: 2;
  }
  .ud-chart-session b {
    font-size: 11px !important;
    letter-spacing: 0.02em;
  }
  body.market.view-lenh .ud-chart-bar {
    flex-wrap: wrap !important;
    row-gap: 4px;
    padding-right: 8px !important;
    overflow: visible !important;
  }
  body.market.view-lenh .ud-round-session {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    overflow: visible !important;
    max-width: none !important;
  }
  body.market.view-lenh .ud-round-session b {
    font-size: 12px !important;
    letter-spacing: 0.02em;
  }
  /* TRỰC TIẾP cùng hàng với 1m 15m…, thu nhỏ */
  .ud-chart-live {
    flex: 0 0 auto;
    margin-left: 0 !important;
    margin-top: 0 !important;
    padding: 2px 6px !important;
    gap: 3px !important;
    font-size: 8px !important;
    letter-spacing: 0.02em !important;
    line-height: 1.1;
    white-space: nowrap;
  }
  .ud-chart-live i {
    width: 5px !important;
    height: 5px !important;
  }
  .ud-chart {
    flex: none !important;
    width: 100%;
    height: min(24svh, 220px) !important;
    min-height: 130px !important;
    max-height: 220px;
  }
  .ud-right {
    flex: 0 0 auto;
    max-height: none;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
    margin-top: 0;
  }
  body.market.view-lenh .win-ticker {
    flex: 0 0 auto;
    min-height: 28px;
    position: relative;
    z-index: 6;
    padding-right: 52px;
  }
  body.market.view-lenh .rank-board {
    display: block;
    flex: 0 0 auto;
    padding: 2px 8px 4px;
  }
  body.market.view-lenh .rank-board-head {
    margin-bottom: 4px;
    gap: 6px;
  }
  body.market.view-lenh .rank-board-head strong {
    font-size: 12px;
  }
  body.market.view-lenh .rank-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
  body.market.view-lenh .rank-list li {
    padding: 5px 6px;
  }
  body.market.view-lenh .rank-list li:nth-child(n+4) {
    display: none;
  }
  body.market.view-lenh .ud-top {
    padding: 4px 8px;
    gap: 4px 8px;
  }
  body.market.view-lenh .ud-pair {
    gap: 6px;
  }
  body.market.view-lenh .ud-pair select {
    min-height: 34px;
    font-size: 15px;
  }
  body.market.view-lenh .ud-top strong {
    font-size: 15px;
  }
  body.market.view-lenh .guest-bar {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: #0b0e11 !important;
    padding: 2px 8px calc(2px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.market.view-lenh .guest-bar > [data-view="lenh"],
  body.market.view-lenh .guest-more-btn {
    min-height: 36px !important;
    padding: 2px 6px !important;
    font-size: 10px !important;
    gap: 0 !important;
  }
  body.market.view-lenh .guest-bar > [data-view="lenh"] svg,
  body.market.view-lenh .guest-more-btn svg {
    width: 16px !important;
    height: 16px !important;
  }
  .ud-mobile-panels {
    display: flex;
    flex: 0 0 auto;
    gap: 4px;
    margin: 0;
    padding: 2px 8px 0;
    background: #12161c;
    border-top: 1px solid #1e2329;
    border-bottom: 1px solid #1e2329;
  }
  body.market.view-lenh .ud-right {
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    /* chừa chỗ cho Tăng/Giảm fixed + thanh Sàn/Thêm thấp */
    padding-bottom: calc(44px + 8px) !important;
  }
  .ud-ticket {
    padding: 6px 8px 10px !important;
  }
  body.market.view-lenh .ud-sides {
    bottom: calc(40px + 22px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .ud-chips button {
    min-height: 20px !important;
    height: 20px !important;
    padding: 0 2px !important;
    font-size: 10px !important;
  }
  .ud-sides {
    gap: 6px !important;
    margin: 4px 0 !important;
    flex: 0 0 auto !important;
  }
  .ud-sides button {
    min-height: 40px !important;
    padding: 6px 8px !important;
    font-size: 14px !important;
    gap: 0 !important;
    border-radius: 8px !important;
  }
  .ud-sides button svg {
    width: 12px !important;
    height: 12px !important;
  }
  .ud-sides button span {
    font-size: 11px !important;
  }
  /* Mobile: đăng xuất nằm trong menu 3 gạch */
  body.market .guest-topbar .guest-logout {
    display: none !important;
  }
  .guest-bar-logout[hidden] {
    display: none !important;
  }
  .ud-mobile-panels button {
    flex: 1 1 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #848e9c;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
  }
  .ud-mobile-panels button.on {
    color: #0b0e11;
    background: #fcd535;
  }
  body.market.view-lenh.ud-m-ticket [data-ud-mview="book"],
  body.market.view-lenh.ud-m-ticket [data-ud-mview="tape"],
  body.market.view-lenh.ud-m-book [data-ud-mview="ticket"],
  body.market.view-lenh.ud-m-book [data-ud-mview="tape"],
  body.market.view-lenh.ud-m-tape [data-ud-mview="ticket"],
  body.market.view-lenh.ud-m-tape [data-ud-mview="book"] {
    display: none !important;
  }
  body.market.view-lenh.ud-m-ticket [data-ud-mview="ticket"] {
    display: block !important;
    flex: 0 0 auto !important;
    min-height: 0;
    overflow: visible;
    padding-bottom: 4px;
  }
  body.market.view-lenh.ud-m-book [data-ud-mview="book"],
  body.market.view-lenh.ud-m-tape [data-ud-mview="tape"] {
    display: block !important;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  .ud-book,
  .ud-tape {
    padding: 8px 10px;
  }
  .ud-ticket {
    padding: 6px 10px 2px !important;
  }
  .ud-desk-only { display: none !important; }
  .ud-book-side { max-height: none; overflow: visible; }
  .ud-trades { max-height: none; overflow: visible; }
  .ud-row,
  .ud-trade,
  .ud-book-head {
    font-size: 13px;
    gap: 4px;
  }
  .ud-mid { font-size: 18px; min-height: 34px; }
  /* Hiện đủ mức cược — không thanh kéo ngang */
  .ud-chips {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding-bottom: 2px;
    overflow: visible !important;
    flex-wrap: unset;
    max-height: none !important;
  }
  .ud-chips button {
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 20px;
    height: 20px;
    padding: 0 2px;
    font-size: 10px;
    white-space: nowrap;
  }
  /* sessdock1 — Phiên + giây xuống dưới chip, trên Xin Chào/Ví */
  body.market.view-lenh .ud-chart-session {
    display: none !important;
  }
  body.market.view-lenh .ud-round-bar {
    display: flex !important;
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    bottom: calc(40px + 40px + 22px + 48px + 6px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 50 !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    grid-template-columns: unset !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    border-radius: 10px !important;
    background: #0b0e11 !important;
  }
  body.market.view-lenh .ud-round-bar .ud-count-label-desk {
    display: none !important;
  }
  body.market.view-lenh .ud-round-session,
  body.market.view-lenh .ud-round-bar .ud-count {
    font-size: 12px !important;
  }
  body.market.view-lenh .ud-round-session b,
  body.market.view-lenh .ud-round-bar .ud-count b {
    font-size: 13px !important;
  }
  /* chiptop1 — bỏ tên/ví topbar (đã có ô dưới); chip 4 cột thoáng */
  body.market.view-lenh .ud-balance-bar {
    display: none !important;
  }
  body.market.view-lenh .guest-topbar {
    display: none !important;
  }
  body.market.view-lenh .guest-account {
    display: none !important;
  }
  /* userdock1 — Xin Chào + Ví Tiền neo sát trên Tăng/Giảm */
  body.market.view-lenh .ud-user-bar {
    display: grid !important;
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    bottom: calc(40px + 40px + 22px + env(safe-area-inset-bottom, 0px)) !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 0 4px !important;
    background: #0b0e11 !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: stretch !important;
    z-index: 49 !important;
  }
  body.market.view-lenh .ud-user-name,
  body.market.view-lenh .ud-user-bar .ud-wallet {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 6px 8px !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    overflow: hidden !important;
  }
  body.market.view-lenh .ud-user-name b,
  body.market.view-lenh .ud-user-bar .ud-wallet b {
    font-size: 14px !important;
  }
  body.market.view-lenh .ud-user-name span,
  body.market.view-lenh .ud-user-bar .ud-wallet span {
    font-size: 10px !important;
  }
  body.market.view-lenh .ud-right {
    padding-bottom: calc(40px + 48px + 36px + 12px) !important;
  }
  body.market.view-lenh .win-ticker {
    padding-right: 8px;
  }
  body.market.view-lenh .ud-chips {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    overflow: visible !important;
    max-height: none !important;
  }
  body.market.view-lenh .ud-chips button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 20px !important;
    height: 20px !important;
    padding: 0 2px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
  }
  .guest-topbar {
    top: calc(8px + env(safe-area-inset-top, 0px));
    right: 8px;
    left: auto;
    justify-content: flex-end;
    gap: 6px;
    max-width: min(58vw, 220px);
  }
  .guest-account {
    margin: 0;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    padding: 5px 6px;
    border-radius: 12px;
    border: 1px solid rgba(252, 213, 53, 0.35);
    background: rgba(11, 14, 17, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
  .guest-who {
    max-width: 96px;
    font-size: 13px;
  }
  .guest-logout:not([hidden]) {
    flex: 0 0 auto !important;
    flex-direction: row !important;
    min-height: 36px !important;
    min-width: 64px;
    padding: 7px 11px !important;
    font-size: 13px !important;
    border: 1px solid rgba(252, 213, 53, 0.55) !important;
    border-radius: 9px !important;
    background: rgba(252, 213, 53, 0.16) !important;
    color: #fcd535 !important;
    -webkit-text-fill-color: #fcd535 !important;
  }
  .guest-wallet {
    min-width: 96px;
    padding: 5px 8px;
  }
  .guest-wallet span { font-size: 12px; }
  .guest-wallet b { font-size: 15px; }
  .guest-topbar .fx-sound-btn {
    margin: 0;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid rgba(252, 213, 53, 0.28);
    background: rgba(11, 14, 17, 0.94);
  }
  .win-ticker {
    min-height: 30px;
  }
  .win-ticker-label {
    padding: 0 10px;
    font-size: 10px;
  }
  .win-ticker-item {
    padding: 0 14px;
    font-size: 11px;
  }
  .rank-board {
    padding: 6px 8px 8px;
  }
  .rank-board-head {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
  }
  .rank-live { margin-left: 0; }
  .rank-board {
    padding: 5px 8px 6px;
  }
  .rank-board-head strong { font-size: 12px; }
  .rank-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    max-height: none;
    overflow: visible;
  }
  .rank-list li { padding: 6px 7px; }
  .rank-list li:nth-child(n+4) { display: none; }
  .ud-toast { top: 12px; font-size: 13px; padding: 10px 14px; }
  .fx-sound-btn {
    margin-left: 4px;
    padding: 6px 8px;
    font-size: 10px;
  }
  .fx-sound-btn span { display: none; }
  .ud-pace-wrap { font-size: 10px; padding: 2px 7px; }
  .ud-ticket > p {
    margin: 4px 0;
    font-size: 14px;
  }
  .ud-round-bar {
    margin: 0 0 6px;
    padding: 7px 8px;
    grid-template-columns: minmax(0, 1.55fr) auto;
    gap: 6px;
  }
  .ud-round-session,
  .ud-round-bar .ud-count {
    font-size: 11px;
  }
  /* Hiện đủ số phiên YYYYMMDDHHmmss — không cắt ellipsis */
  .ud-round-session {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    font-size: 10px;
    letter-spacing: 0;
  }
  .ud-round-session b {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
  }
  .ud-round-bar .ud-count {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    font-size: 11px;
  }
  .ud-user-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }
  .ud-count {
    margin: 2px 0 4px !important;
  }
  .ud-sides {
    gap: 6px;
    margin: 2px 0 0;
    flex: 0 0 auto;
  }
  .ud-sides button {
    min-height: 40px;
    padding: 6px 8px;
    font-size: 14px;
    border-radius: 8px;
  }
  .ud-ticket {
    padding-bottom: 2px !important;
  }
  .ud-ticket .ud-msg {
    min-height: 0;
    margin: 0;
    padding: 0;
  }
  .ud-line {
    grid-template-columns: 64px 56px 64px 1fr;
    font-size: 13px;
  }
  .ud-line span:last-child { display: none; }
  .ud-confirm {
    width: min(100%, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }
  body.market.view-info #profile,
body.market.view-pass #pass-panel,
  body.market.view-nap .money-row,
  body.market.view-rut #rut-panel,
  body.market.view-hist #hist-panel,
  body.market.view-orders #orders-panel {
    margin-left: 0 !important;
    padding: 12px 12px calc(80px + env(safe-area-inset-bottom, 0px));
  }
  .ud-orders-list .ud-line {
    grid-template-columns: 64px 56px 64px 1fr;
    font-size: 13px;
  }
  .ud-orders-list .ud-line span:last-child { display: none; }
  .profile-grid { grid-template-columns: 1fr !important; }
  .land-main,
  .land-board,
  .land-console {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  .land-top,
  .land-main,
  .land-board,
  .land-console,
  .land-foot {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .cskh-widget {
    right: 10px;
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }
  .cskh-panel {
    width: min(100vw - 20px, 360px);
  }
}

/* ===== phonefit1: 4 cỡ điện thoại =====
 * xs ≤360  SE gen1 / Galaxy A0x / Redmi nhỏ
 * sm 361–390  iPhone SE·12–16 / Galaxy S thường
 * md 391–430  iPhone Pro·Plus·Pro Max / Pixel / Galaxy S+
 * lg 431–640  Ultra lớn / phablet
 */

/* --- XS ≤360 --- chiptop1: bỏ topbar thừa, chip 4 cột đủ ô */
@media (max-width: 360px) {
  body.market.view-lenh #updown,
  html.phone-xs body.market.view-lenh #updown,
  html[data-phone="xs"] body.market.view-lenh #updown {
    padding-top: calc(env(safe-area-inset-top, 0px) + 4px) !important;
    padding-bottom: calc(88px + 2.5svh + env(safe-area-inset-bottom, 0px)) !important;
    justify-content: flex-start !important;
  }
  body.market.view-lenh .guest-topbar,
  html.phone-xs body.market.view-lenh .guest-topbar,
  html[data-phone="xs"] body.market.view-lenh .guest-topbar,
  body.market.view-lenh .guest-account {
    display: none !important;
  }
  body.market.view-lenh .ud-chart,
  html.phone-xs body.market.view-lenh .ud-chart,
  html[data-phone="xs"] body.market.view-lenh .ud-chart {
    height: min(28svh, 190px) !important;
    min-height: 150px !important;
    max-height: 200px !important;
  }
  body.market.view-lenh .win-ticker { min-height: 22px; padding-right: 8px; }
  body.market.view-lenh .rank-board { padding: 1px 4px 1px; }
  body.market.view-lenh .rank-board-head .rank-tabs { display: none !important; }
  body.market.view-lenh .rank-board-head .rank-live { display: inline-block !important; font-size: 8px; }
  body.market.view-lenh .rank-list li { padding: 2px 3px; font-size: 9px; }
  body.market.view-lenh .ud-top { padding: 2px 4px; }
  body.market.view-lenh .ud-pair select { min-height: 28px; font-size: 13px; }
  body.market.view-lenh .ud-top strong { font-size: 13px; }
  body.market.view-lenh .ud-chart-bar {
    flex-wrap: wrap !important;
    overflow: visible !important;
    row-gap: 3px;
    padding: 4px 6px !important;
  }
  body.market.view-lenh .ud-chart-session {
    display: none !important;
  }
  body.market.view-lenh .ud-chart-live { padding: 2px 4px !important; font-size: 8px !important; }
  .ud-ticket { padding: 2px 4px !important; }
  .ud-round-bar {
    padding: 2px 4px !important;
    margin-bottom: 2px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 4px !important;
  }
  .ud-round-session {
    flex: 0 1 auto !important;
    white-space: nowrap !important;
    overflow: visible !important;
    max-width: none !important;
    font-size: 9px !important;
  }
  .ud-round-session b { font-size: 10px !important; }
  .ud-chips {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin: 0 0 5px !important;
    overflow: visible !important;
  }
  .ud-chips button {
    min-height: 18px !important;
    height: 18px !important;
    padding: 0 2px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
  }
  body.market.view-lenh .ud-round-bar,
  html.phone-xs body.market.view-lenh .ud-round-bar {
    left: 8px !important; right: 8px !important;
    bottom: calc(40px + 38px + 22px + 46px + 6px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 5px 8px !important;
  }
  body.market.view-lenh .ud-user-bar,
  html.phone-xs body.market.view-lenh .ud-user-bar {
    position: fixed !important;
    left: 8px !important; right: 8px !important;
    bottom: calc(40px + 38px + 22px + env(safe-area-inset-bottom, 0px)) !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 0 0 3px !important;
    background: #0b0e11 !important;
    z-index: 49 !important;
  }
  body.market.view-lenh .ud-user-name,
  body.market.view-lenh .ud-user-bar .ud-wallet {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 5px 6px !important;
    box-sizing: border-box !important;
  }
  body.market.view-lenh .ud-user-name b,
  body.market.view-lenh .ud-user-bar .ud-wallet b { font-size: 12px !important; }
  body.market.view-lenh .ud-user-name span,
  body.market.view-lenh .ud-user-bar .ud-wallet span { font-size: 9px !important; }
  body.market.view-lenh .ud-sides,
  html.phone-xs body.market.view-lenh .ud-sides {
    position: fixed !important;
    left: 8px; right: 8px;
    bottom: calc(40px + 22px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important; gap: 5px !important; z-index: 48;
    padding: 0;
    background: transparent;
  }
  body.market.view-lenh .ud-sides button,
  html.phone-xs body.market.view-lenh .ud-sides button {
    flex-direction: row !important; justify-content: center !important; align-items: center !important;
    min-height: 38px !important; height: 38px !important; padding: 0 6px !important;
    font-size: 13px !important; gap: 4px !important; border-radius: 9px !important;
  }
  body.market.view-lenh .ud-sides button svg { width: 14px !important; height: 14px !important; }
  body.market.view-lenh .ud-sides button span { display: inline !important; font-size: 13px !important; font-weight: 700 !important; }
  body.market.view-lenh .ud-ticket .ud-msg { display: none; }
  body.market.view-lenh .ud-right {
    padding-bottom: calc(38px + 46px + 34px + 10px) !important;
  }
  body.market.view-lenh #updown,
  html.phone-xs body.market.view-lenh #updown {
    padding-bottom: calc(40px + 38px + 50px + 34px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* --- SM 361–390: iPhone thường / SE / Galaxy S --- */
@media (min-width: 361px) and (max-width: 390px) {
  body.market.view-lenh #updown,
  html.phone-sm body.market.view-lenh #updown,
  html[data-phone="sm"] body.market.view-lenh #updown {
    padding-top: calc(env(safe-area-inset-top, 0px) + 4px) !important;
    padding-bottom: calc(92px + 3svh + env(safe-area-inset-bottom, 0px)) !important;
    justify-content: flex-start !important;
  }
  body.market.view-lenh .guest-topbar,
  html.phone-sm body.market.view-lenh .guest-topbar,
  html[data-phone="sm"] body.market.view-lenh .guest-topbar,
  body.market.view-lenh .guest-account {
    display: none !important;
  }
  body.market.view-lenh .ud-chart,
  html.phone-sm body.market.view-lenh .ud-chart,
  html[data-phone="sm"] body.market.view-lenh .ud-chart {
    height: min(30svh, 220px) !important;
    min-height: 165px !important;
    max-height: 230px !important;
  }
  body.market.view-lenh .win-ticker { min-height: 24px; }
  body.market.view-lenh .rank-board { padding: 1px 6px 1px; }
  body.market.view-lenh .rank-board-head .rank-tabs { display: none !important; }
  body.market.view-lenh .rank-board-head .rank-live { display: inline-block !important; font-size: 9px; }
  body.market.view-lenh .rank-list li { padding: 3px 4px; font-size: 10px; }
  body.market.view-lenh .ud-top { padding: 2px 6px; }
  body.market.view-lenh .ud-pair select { min-height: 30px; font-size: 14px; }
  body.market.view-lenh .ud-top strong { font-size: 14px; }
  body.market.view-lenh .ud-chart-bar { flex-wrap: wrap !important; }
  body.market.view-lenh .ud-chart-session {
    display: none !important;
  }
  body.market.view-lenh .ud-chart-live { padding: 2px 5px !important; font-size: 8px !important; }
  .ud-ticket { padding: 2px 6px !important; }
  .ud-chips {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 0 0 6px !important;
    overflow: visible !important;
  }
  .ud-chips button {
    min-height: 20px !important;
    height: 20px !important;
    padding: 0 2px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
  }
  body.market.view-lenh .ud-round-bar,
  html.phone-sm body.market.view-lenh .ud-round-bar {
    left: 10px !important; right: 10px !important;
    bottom: calc(40px + 40px + 22px + 48px + 6px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.market.view-lenh .ud-user-bar,
  html.phone-sm body.market.view-lenh .ud-user-bar {
    position: fixed !important;
    left: 10px !important; right: 10px !important;
    bottom: calc(40px + 40px + 22px + env(safe-area-inset-bottom, 0px)) !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 0 3px !important;
    background: #0b0e11 !important;
    z-index: 49 !important;
  }
  body.market.view-lenh .ud-user-name,
  body.market.view-lenh .ud-user-bar .ud-wallet {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 5px 8px !important;
    box-sizing: border-box !important;
  }
  body.market.view-lenh .ud-user-name b,
  body.market.view-lenh .ud-user-bar .ud-wallet b { font-size: 13px !important; }
  body.market.view-lenh .ud-sides,
  html.phone-sm body.market.view-lenh .ud-sides {
    position: fixed !important;
    left: 10px; right: 10px;
    bottom: calc(40px + 22px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important; gap: 6px !important; z-index: 48;
    padding: 0;
    background: transparent;
  }
  body.market.view-lenh .ud-sides button,
  html.phone-sm body.market.view-lenh .ud-sides button {
    flex-direction: row !important; justify-content: center !important; align-items: center !important;
    min-height: 40px !important; height: 40px !important; padding: 0 8px !important;
    font-size: 14px !important; gap: 5px !important; border-radius: 10px !important;
  }
  body.market.view-lenh .ud-sides button svg { width: 15px !important; height: 15px !important; }
  body.market.view-lenh .ud-sides button span { display: inline !important; font-size: 14px !important; font-weight: 700 !important; }
  body.market.view-lenh .ud-ticket .ud-msg { display: none; }
  body.market.view-lenh .ud-right {
    padding-bottom: calc(40px + 48px + 34px + 10px) !important;
  }
  body.market.view-lenh #updown,
  html.phone-sm body.market.view-lenh #updown {
    padding-bottom: calc(40px + 40px + 52px + 34px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* --- MD 391–430: iPhone Pro / Plus / Pro Max / Pixel --- */
@media (min-width: 391px) and (max-width: 430px) {
  body.market.view-lenh #updown,
  html.phone-md body.market.view-lenh #updown,
  html[data-phone="md"] body.market.view-lenh #updown {
    padding-top: calc(env(safe-area-inset-top, 0px) + 4px) !important;
    padding-bottom: calc(94px + 3svh + env(safe-area-inset-bottom, 0px)) !important;
    justify-content: flex-start !important;
  }
  body.market.view-lenh .guest-topbar,
  body.market.view-lenh .guest-account {
    display: none !important;
  }
  body.market.view-lenh .ud-chart,
  html.phone-md body.market.view-lenh .ud-chart,
  html[data-phone="md"] body.market.view-lenh .ud-chart {
    height: min(32svh, 250px) !important;
    min-height: 180px !important;
    max-height: 260px !important;
  }
  body.market.view-lenh .win-ticker { min-height: 26px; }
  body.market.view-lenh .rank-board { padding: 2px 8px 3px; }
  body.market.view-lenh .rank-list li { padding: 4px 6px; font-size: 11px; }
  body.market.view-lenh .ud-top { padding: 3px 8px; }
  body.market.view-lenh .ud-pair select { min-height: 32px; font-size: 15px; }
  .ud-ticket { padding: 3px 8px !important; }
  .ud-chips {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 0 0 6px !important;
    overflow: visible !important;
  }
  .ud-chips button {
    min-height: 22px !important;
    height: 22px !important;
    padding: 0 2px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
  }
  body.market.view-lenh .ud-round-bar,
  html.phone-md body.market.view-lenh .ud-round-bar {
    left: 11px !important; right: 11px !important;
    bottom: calc(40px + 42px + 22px + 50px + 6px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.market.view-lenh .ud-user-bar,
  html.phone-md body.market.view-lenh .ud-user-bar {
    position: fixed !important;
    left: 11px !important; right: 11px !important;
    bottom: calc(40px + 42px + 22px + env(safe-area-inset-bottom, 0px)) !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 0 3px !important;
    background: #0b0e11 !important;
    z-index: 49 !important;
  }
  body.market.view-lenh .ud-user-name,
  body.market.view-lenh .ud-user-bar .ud-wallet {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 6px 8px !important;
    box-sizing: border-box !important;
  }
  body.market.view-lenh .ud-sides,
  html.phone-md body.market.view-lenh .ud-sides {
    position: fixed !important;
    left: 11px; right: 11px;
    bottom: calc(40px + 22px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important; gap: 6px !important; z-index: 48;
    padding: 0;
    background: transparent;
  }
  body.market.view-lenh .ud-sides button {
    flex-direction: row !important; align-items: center !important; justify-content: center !important;
    min-height: 42px !important; height: 42px !important; padding: 0 10px !important;
    font-size: 14px !important; gap: 5px !important;
  }
  body.market.view-lenh .ud-sides button span { display: inline !important; font-size: 13px !important; }
  body.market.view-lenh .ud-sides button svg { width: 16px !important; height: 16px !important; }
  body.market.view-lenh .ud-right {
    padding-bottom: calc(42px + 50px + 34px + 10px) !important;
  }
  body.market.view-lenh #updown,
  html.phone-md body.market.view-lenh #updown {
    padding-bottom: calc(40px + 42px + 54px + 34px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* --- LG 431–640: Ultra / phablet / máy to --- */
@media (min-width: 431px) and (max-width: 640px) {
  body.market.view-lenh #updown,
  html.phone-lg body.market.view-lenh #updown,
  html[data-phone="lg"] body.market.view-lenh #updown {
    padding-top: calc(env(safe-area-inset-top, 0px) + 4px) !important;
    padding-bottom: calc(96px + 3svh + env(safe-area-inset-bottom, 0px)) !important;
    justify-content: flex-start !important;
  }
  body.market.view-lenh .guest-topbar,
  body.market.view-lenh .guest-account {
    display: none !important;
  }
  body.market.view-lenh .ud-chart,
  html.phone-lg body.market.view-lenh .ud-chart,
  html[data-phone="lg"] body.market.view-lenh .ud-chart {
    height: min(27svh, 250px) !important;
    min-height: 170px !important;
    max-height: 250px !important;
  }
  body.market.view-lenh .win-ticker { min-height: 28px; }
  body.market.view-lenh .rank-board { padding: 3px 10px 4px; }
  body.market.view-lenh .rank-list li { padding: 4px 8px; font-size: 12px; }
  body.market.view-lenh .ud-top { padding: 4px 10px; }
  body.market.view-lenh .ud-pair select { min-height: 34px; font-size: 15px; }
  .ud-ticket { padding: 4px 10px !important; }
  .ud-chips {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 0 0 6px !important;
    overflow: visible !important;
  }
  .ud-chips button {
    min-height: 22px !important;
    height: 22px !important;
    padding: 0 2px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
  }
  body.market.view-lenh .ud-round-bar,
  html.phone-lg body.market.view-lenh .ud-round-bar {
    left: 12px !important; right: 12px !important;
    bottom: calc(40px + 44px + 22px + 52px + 6px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.market.view-lenh .ud-user-bar,
  html.phone-lg body.market.view-lenh .ud-user-bar {
    position: fixed !important;
    left: 12px !important; right: 12px !important;
    bottom: calc(40px + 44px + 22px + env(safe-area-inset-bottom, 0px)) !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 0 3px !important;
    background: #0b0e11 !important;
    z-index: 49 !important;
  }
  body.market.view-lenh .ud-user-name,
  body.market.view-lenh .ud-user-bar .ud-wallet {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 6px 8px !important;
    box-sizing: border-box !important;
  }
  body.market.view-lenh .ud-sides,
  html.phone-lg body.market.view-lenh .ud-sides {
    position: fixed !important;
    left: 12px; right: 12px;
    bottom: calc(40px + 22px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important; gap: 6px !important; z-index: 48;
    padding: 0;
    background: transparent;
  }
  body.market.view-lenh .ud-sides button {
    flex-direction: row !important; align-items: center !important; justify-content: center !important;
    min-height: 44px !important; height: 44px !important; padding: 0 12px !important;
    font-size: 15px !important; gap: 6px !important;
  }
  body.market.view-lenh .ud-sides button span { display: inline !important; font-size: 14px !important; }
  body.market.view-lenh .ud-sides button svg { width: 17px !important; height: 17px !important; }
  body.market.view-lenh .ud-right {
    padding-bottom: calc(44px + 52px + 34px + 10px) !important;
  }
  body.market.view-lenh #updown,
  html.phone-lg body.market.view-lenh #updown {
    padding-bottom: calc(40px + 44px + 56px + 34px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

.ud-modal[hidden] { display: none !important; }
.ud-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(11, 14, 17, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ud-confirm {
  width: min(380px, calc(100% - 24px));
  background: #1e2329;
  color: #eaecef;
  border: 1px solid rgba(252, 213, 53, 0.35);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.ud-confirm h2 {
  margin: 0 0 14px;
  color: #fcd535;
  font-size: 18px;
  font-weight: 800;
}
.ud-confirm p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  color: #848e9c;
  font-size: 14px;
}
.ud-confirm p b {
  color: #eaecef;
  font-weight: 750;
  text-align: right;
}
.ud-confirm-note {
  display: block !important;
  margin-top: 12px !important;
  color: #b7bdc6 !important;
  font-size: 13px !important;
  line-height: 1.45;
  text-align: left;
}
.ud-confirm-actions {
  display: flex;
  justify-content: stretch;
  gap: 10px;
  margin-top: 16px;
}
.ud-confirm-actions button {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
#ud-cancel {
  background: #2b3139;
  color: #eaecef;
}
#ud-ok {
  background: #fcd535;
  color: #1e2329;
  -webkit-text-fill-color: #1e2329;
}

/* Landing page */
#landing { display: none; }
body.market.view-home #landing {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 20;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 48% at 18% 12%, rgba(252, 213, 53, 0.14), transparent 56%),
    linear-gradient(180deg, rgba(11, 14, 17, 0.55) 0%, rgba(12, 16, 22, 0.42) 42%, rgba(11, 14, 17, 0.78) 100%);
  color: #eaecef;
}
body.market.view-home .cms-side,
body.market.view-home .guest-bar,
body.market.view-home #updown,
body.market.view-home #profile,
body.market.view-home #pass-panel,
body.market.view-home #rut-panel,
body.market.view-home #hist-panel,
body.market.view-home #orders-panel,
body.market.view-home .bw-top,
body.market.view-home .bw-tools,
body.market.view-home #list,
body.market.view-home .bw-dock,
body.market.view-home .vn-board,
body.market.view-home .money-row,
body.market.view-home .trade,
body.market.view-home .hero,
body.market.view-home .legend,
body.market.view-home .split,
body.market.view-home .venues,
body.market.view-home .chart-panel,
body.market.view-home .news {
  display: none !important;
}
body.market.view-home .scene-3d {
  z-index: 0;
  opacity: 1;
}
body.market.view-home .scene-floaters {
  display: none !important;
}
body.market.view-home .scene-ticker {
  bottom: 8%;
  opacity: 0.7;
}
body.market.view-home .scene-ring {
  opacity: 0.55;
}
.land-rail {
  display: none;
  position: fixed;
  top: 78px;
  bottom: 28px;
  width: 196px;
  z-index: 22;
  pointer-events: none;
  flex-direction: column;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid rgba(252, 213, 53, 0.16);
  background:
    linear-gradient(180deg, rgba(18, 22, 28, 0.78), rgba(11, 14, 17, 0.62));
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.land-rail-left { left: max(10px, calc((100vw - 1280px) / 2 - 214px)); }
.land-rail-right { right: max(10px, calc((100vw - 1280px) / 2 - 214px)); }
body.market.view-home .land-rail { display: flex; }
.land-rail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 8px;
  border-bottom: 1px solid rgba(43, 49, 57, 0.95);
  flex: 0 0 auto;
}
.land-rail-head strong {
  color: #eaecef;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.land-rail-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(246, 70, 93, 0.16);
  color: #f6465d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.land-rail-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f6465d;
  box-shadow: 0 0 0 0 rgba(246, 70, 93, 0.55);
  animation: landRailPulse 1.6s ease-out infinite;
}
.land-rail-mask {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}
.land-rail-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.land-rail-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 8px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  animation: landRailIn 0.45s ease both;
}
.land-rail-item.out {
  animation: landRailOut 0.35s ease both;
}
.land-rail-user {
  grid-column: 1 / -1;
  color: #b7bdc6;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.land-rail-meta {
  color: #848e9c;
  font-size: 10px;
  font-weight: 600;
}
.land-rail-meta b {
  color: #eaecef;
  font-weight: 750;
  margin-right: 4px;
}
.land-rail-pnl {
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.land-rail-pnl.up { color: #0ecb81; }
.land-rail-pnl.down { color: #f6465d; }
@keyframes landRailIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes landRailOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(8px); }
}
@keyframes landRailPulse {
  0% { box-shadow: 0 0 0 0 rgba(246, 70, 93, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(246, 70, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(246, 70, 93, 0); }
}
@media (max-width: 1480px) {
  .land-rail { width: 168px; }
  .land-rail-left { left: 8px; }
  .land-rail-right { right: 8px; }
}
@media (max-width: 1180px) {
  body.market.view-home .land-rail { display: none; }
}
.land-hero {
  position: relative;
  z-index: 2;
  max-width: min(40rem, 100%);
  animation: landIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.land-tilt {
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease;
  will-change: transform;
}
.land-top {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.55), transparent);
  backdrop-filter: blur(8px);
}
.land-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: "Syne", "Outfit", sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.land-brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 12px rgba(252, 213, 53, 0.28));
  transition: transform 0.25s ease;
}
.land-brand-mark svg {
  width: 36px;
  height: 36px;
  display: block;
}
.land-brand:hover .land-brand-mark {
  transform: translateY(-1px) scale(1.06);
}
.land-brand strong {
  background: linear-gradient(100deg, #ffe9a8, #fcd535 45%, #fcd535);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 18px;
}
.land-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.land-nav button {
  border: 0;
  background: transparent;
  color: #eaecef;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.land-nav button:hover { color: #fcd535; }
.land-auth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.land-app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(252, 213, 53, 0.45);
  background: rgba(252, 213, 53, 0.12);
  color: #fcd535;
  font-weight: 750;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.land-app-link:hover {
  background: rgba(252, 213, 53, 0.2);
  color: #fcd535;
}
.land-who {
  color: #fcd535;
  font-weight: 700;
  font-size: 14px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.land-cta {
  background: #fcd535 !important;
  color: #1e2329 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  box-shadow: 0 10px 28px rgba(252, 213, 53, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.land-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 34px rgba(252, 213, 53, 0.4);
}
.land-main {
  flex: 0 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 20px;
  align-items: start;
  padding: 12px 28px 8px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.land-brand-line {
  margin: 0 0 6px;
  color: #fcd535;
  font-family: "Syne", "Outfit", sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.land-logo-wrap {
  margin: 0 0 10px;
  max-width: min(100%, 520px);
  animation: brandPulse 4.8s ease-in-out infinite, landIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 24px rgba(252, 213, 53, 0.18));
}
.land-logo {
  display: block;
  width: min(100%, 520px);
  height: auto;
  transform-origin: left center;
  animation: shineSweep 5.5s linear infinite;
}
.land-hero h1,
.land-headline {
  margin: 8px 0 0;
  max-width: 18ch;
  font-family: "Syne", "Outfit", sans-serif;
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(252, 213, 53, 0.18);
  animation: landIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
.land-headline {
  background: linear-gradient(105deg, #fff 0%, #ffe9a8 38%, #fcd535 72%, #fcd535 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55));
}
.land-trustline {
  margin: 14px 0 0;
  color: #eaecef;
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 650;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.land-trustline #land-trust {
  color: #fcd535;
  font-weight: 800;
  font-size: 1.15em;
}
.land-lead {
  margin: 14px 0 0;
  max-width: 34rem;
  color: #b7bdc6;
  font-size: 14px;
  line-height: 1.5;
}
.land-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.land-cta-lg {
  min-width: 150px;
  padding: 11px 18px !important;
  font-size: 14px !important;
  border: 0;
  cursor: pointer;
}
a.land-download,
button.land-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  background: rgba(252, 213, 53, 0.12) !important;
  color: #fcd535 !important;
  -webkit-text-fill-color: #fcd535 !important;
  border: 1px solid rgba(252, 213, 53, 0.55) !important;
  box-shadow: none !important;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
}
a.land-download:hover,
button.land-download:hover {
  background: rgba(252, 213, 53, 0.2) !important;
  color: #fcd535 !important;
  -webkit-text-fill-color: #fcd535 !important;
  transform: translateY(-2px);
}
.home-tip[hidden] { display: none !important; }
.home-tip {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.55);
}
.home-tip-card {
  width: min(400px, 100%);
  padding: 18px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(252, 213, 53, 0.35);
  background: linear-gradient(180deg, #171b22, #0f1318);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.home-tip-title {
  margin: 0 0 8px;
  color: #fcd535;
  font-size: 1.05rem;
  font-weight: 800;
}
.home-tip-body {
  margin: 0 0 14px;
  color: #eaecef;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 600;
}
.home-tip-ok {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: #fcd535;
  color: #0b0e11;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.land-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.land-ghost:hover { border-color: #fcd535; color: #fcd535; background: rgba(252, 213, 53, 0.08); }
.land-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: landIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.land-board {
  width: min(1280px, calc(100% - 56px));
  margin: 4px auto 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: landIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}
.land-board-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(252, 213, 53, 0.14);
  background: rgba(18, 22, 28, 0.72);
  backdrop-filter: blur(12px);
}
.land-board-top strong {
  display: block;
  color: #fcd535;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.land-board-top span {
  color: #848e9c;
  font-size: 12px;
}
.land-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.land-board-grid .land-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
}
.land-board-grid .land-news {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.land-board-grid .land-news li {
  flex: 1;
  min-height: 72px;
}
.land-card {
  background:
    linear-gradient(165deg, rgba(36, 40, 48, 0.72), rgba(16, 18, 24, 0.78)),
    rgba(24, 26, 32, 0.55);
  border: 1px solid rgba(252, 213, 53, 0.14);
  border-radius: 18px;
  padding: 14px 14px 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 48px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px) saturate(1.15);
}
.land-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.land-card h2 { margin: 0; font-size: 16px; }
.land-card header .land-more,
.land-card header button {
  border: 0;
  background: transparent;
  color: #fcd535;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.land-card header .land-more:hover { color: #fff; }
.land-quotes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(43, 49, 57, 0.9);
}
.land-quote {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(252, 213, 53, 0.16);
  background: rgba(0, 0, 0, 0.22);
  color: #eaecef;
  text-decoration: none;
  font-size: 12px;
}
.land-quote b { color: #fcd535; }
.land-quote em { font-style: normal; color: #848e9c; }
.land-quote.up em { color: #0ecb81; }
.land-quote.down em { color: #f6465d; }
.land-quote:hover { border-color: #fcd535; }
.land-news a {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.land-news strong {
  font-weight: 600;
  color: #eaecef;
}
.land-news small {
  color: #848e9c;
  font-size: 12px;
  line-height: 1.35;
}
.land-hot { display: flex; flex-direction: column; }
.land-hot button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #1e2329;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  padding: 10px 4px;
  cursor: pointer;
}
.land-hot button:last-child { border-bottom: 0; }
.land-hot button:hover { background: rgba(252, 213, 53, 0.06); }
.land-hot i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fcd535;
  color: #1e2329;
  font-size: 11px;
  font-weight: 800;
}
.land-hot b { display: block; font-size: 14px; }
.land-hot small { color: #848e9c; font-size: 12px; }
.land-hot em {
  font-style: normal;
  text-align: right;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.land-hot .up { color: #0ecb81; }
.land-hot .down { color: #f6465d; }
.land-news {
  list-style: none;
  margin: 0;
  padding: 0;
}
.land-news li {
  padding: 10px 0;
  border-bottom: 1px solid #1e2329;
  color: #eaecef;
  font-size: 14px;
  line-height: 1.45;
  font-size: 13px;
  line-height: 1.4;
}
.land-news li:last-child { border-bottom: 0; }
.land-news a { color: inherit; text-decoration: none; }
.land-news a:hover { color: #fcd535; }
.land-console {
  width: min(1280px, calc(100% - 56px));
  margin: 4px auto 20px;
  border: 1px solid rgba(252, 213, 53, 0.18);
  border-radius: 18px;
  overflow: hidden;
  flex: 0 0 auto;
  background:
    linear-gradient(180deg, rgba(18, 22, 28, 0.95), rgba(8, 10, 14, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 60px rgba(0, 0, 0, 0.42),
    0 0 40px rgba(252, 213, 53, 0.06);
  animation: landIn 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}
.land-console-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-bottom: 1px solid #1e2329;
  background: rgba(0, 0, 0, 0.35);
}
.land-console-meta-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.land-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0ecb81 !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.land-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0ecb81;
  box-shadow: 0 0 10px rgba(14, 203, 129, 0.8);
  animation: udLivePulse 1.1s ease-in-out infinite;
}
.land-console-bar #land-console-meta {
  color: #fcd535;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.land-console-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.land-console-tabs button {
  border: 1px solid #2b3139;
  background: #12161c;
  color: #b7bdc6;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.land-console-tabs button.on,
.land-console-tabs button:hover {
  border-color: #fcd535;
  color: #1e2329;
  background: #fcd535;
}
.land-console-screen {
  position: relative;
  min-height: 260px;
  background:
    linear-gradient(rgba(14, 203, 129, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252, 213, 53, 0.04) 1px, transparent 1px),
    #0b0e11;
  background-size: 28px 28px, 28px 28px, auto;
}
.land-chart { min-height: 260px; }
.land-foot {
  width: 100%;
  margin-top: 8px;
  padding: 36px 28px 28px;
  border-top: 1px solid rgba(43, 49, 57, 0.95);
  background:
    linear-gradient(180deg, rgba(11, 14, 17, 0.35), rgba(8, 10, 14, 0.92));
  color: #b7bdc6;
}
.land-foot-grid {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
}
.land-foot-col h3 {
  margin: 0 0 14px;
  color: #eaecef;
  font-size: 15px;
  font-weight: 700;
}
.land-foot-col h3 + ul + h3 {
  margin-top: 28px;
}
.land-foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.land-foot-col li {
  margin: 0;
  color: #848e9c;
  font-size: 13px;
  line-height: 1.35;
  cursor: default;
  user-select: none;
}
.land-foot-col a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.land-foot-col a:hover {
  color: #fcd535;
}
.land-foot-note {
  width: min(1280px, 100%);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(43, 49, 57, 0.7);
  color: #5e6673;
  font-size: 12px;
}
.land-trust {
  width: 100%;
  margin: 28px auto 0;
  padding: 14px 0;
  border-top: 1px solid rgba(43, 49, 57, 0.7);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.land-trust-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: landTrustRun 42s linear infinite;
}
.land-trust-track span {
  flex: 0 0 auto;
  padding: 0 28px;
  color: #fcd535;
  font-family: "Outfit", "Syne", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  position: relative;
}
.land-trust-track span::after {
  content: "◆";
  margin-left: 28px;
  color: rgba(252, 213, 53, 0.45);
  font-size: 10px;
}
@keyframes landTrustRun {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .land-trust-track { animation: none; }
}
@media (max-width: 960px) {
  .land-main { grid-template-columns: 1fr; padding: 18px 16px; }
  .land-top { padding: 14px 16px; }
  .land-nav > button:not(.land-cta):not(#land-cskh-open) { display: none; }
  .land-who { max-width: 96px; }
  .land-board { width: calc(100% - 32px); margin: 8px 16px 12px; }
  .land-board-grid { grid-template-columns: 1fr; }
  .land-console { width: calc(100% - 32px); margin: 8px 16px 22px; }
  .land-foot { padding: 28px 16px 22px; }
  .land-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
}
@media (max-width: 560px) {
  .land-foot-grid { grid-template-columns: 1fr; }
}

/* CSKH floating support */
body.admin .cskh-widget { display: none !important; }
.cskh-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: "Outfit", "Segoe UI", sans-serif;
}
.cskh-fab {
  display: none;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: #fcd535;
  color: #1e2329;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(252, 213, 53, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
/* CSKH floating button only on landing / outside the trading floor */
body.market.view-home .cskh-fab {
  display: inline-flex;
}
body.market:not(.view-home) .cskh-fab,
body.market:not(.view-home) .cskh-panel {
  display: none !important;
}
.cskh-fab svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cskh-fab:hover { transform: translateY(-1px); }
.cskh-panel {
  width: min(340px, calc(100vw - 28px));
  border-radius: 18px;
  border: 1px solid rgba(252, 213, 53, 0.2);
  background:
    linear-gradient(165deg, rgba(28, 32, 40, 0.96), rgba(12, 14, 18, 0.98));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  padding: 14px;
  color: #eaecef;
}
.cskh-panel[hidden] { display: none !important; }
.cskh-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.cskh-head strong {
  display: block;
  color: #fcd535;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.cskh-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: #0ecb81;
  font-size: 12px;
  font-weight: 700;
}
.cskh-online::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0ecb81;
  box-shadow: 0 0 8px rgba(14, 203, 129, 0.7);
  animation: udLivePulse 1.1s ease-in-out infinite;
}
.cskh-x {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #b7bdc6;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.cskh-lead {
  margin: 0 0 10px;
  color: #848e9c;
  font-size: 13px;
  line-height: 1.4;
}
.cskh-name {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
}
.cskh-name span {
  font-size: 12px;
  font-weight: 700;
  color: #fcd535;
  letter-spacing: 0.02em;
}
.cskh-name input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(252, 213, 53, 0.35);
  border-radius: 10px;
  background: #12161c;
  color: #eaecef;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  outline: none;
}
.cskh-name input:focus {
  border-color: #fcd535;
  box-shadow: 0 0 0 2px rgba(252, 213, 53, 0.18);
}
.cskh-name input.need {
  border-color: #f6465d;
  animation: brandPulse 0.45s ease;
}
.cskh-name input::placeholder { color: #848e9c; }
.cskh-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.cskh-topics button {
  border: 1px solid #2b3139;
  background: #12161c;
  color: #b7bdc6;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}
.cskh-topics button.on,
.cskh-topics button:hover {
  border-color: #fcd535;
  color: #1e2329;
  background: #fcd535;
}
.cskh-thread {
  height: 280px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid #2b3139;
  background: rgba(0, 0, 0, 0.28);
}
.cskh-bubble {
  max-width: 88%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.cskh-bubble small {
  display: block;
  margin-top: 4px;
  opacity: 0.65;
  font-size: 10px;
}
.cskh-bubble.user {
  align-self: flex-end;
  background: #fcd535;
  color: #1e2329;
}
.cskh-bubble.admin {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: #eaecef;
}
.cskh-bubble .cskh-photo {
  display: block;
  margin: 0 0 6px;
}
.cskh-bubble .cskh-photo img {
  display: block;
  max-width: min(220px, 100%);
  max-height: 220px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.2);
}
.cskh-attach-preview {
  position: relative;
  margin: 0 0 8px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #2b3139;
  background: rgba(0, 0, 0, 0.28);
  width: fit-content;
  max-width: 100%;
}
.cskh-attach-preview img {
  display: block;
  max-width: 140px;
  max-height: 140px;
  border-radius: 8px;
  object-fit: cover;
}
.cskh-attach-preview button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.cskh-compose {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cskh-tools {
  display: inline-flex;
  gap: 6px;
  flex: 0 0 auto;
}
.cskh-attach {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #2b3139;
  background: #0b0e11;
  color: #fcd535;
  cursor: pointer;
}
.cskh-attach:hover { border-color: rgba(252, 213, 53, 0.45); }
.cskh-camera { color: #2dd4bf; }
.cskh-camera:hover { border-color: rgba(45, 212, 191, 0.45); }
.cskh-attach svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cskh-compose input {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid #2b3139;
  background: #0b0e11;
  color: #eaecef;
  font: inherit;
  font-size: 13px;
  padding: 10px 12px;
}
.cskh-compose button {
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  height: 40px;
  background: #fcd535;
  color: #1e2329;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.cskh-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f6465d;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.cskh-fab { position: relative; }
.cskh-hint {
  margin: 10px 0 0;
  color: #5e6673;
  font-size: 11px;
  line-height: 1.35;
}
.ad-chat {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr);
  gap: 14px;
  align-items: stretch;
}
.ad-chat-inbox {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 520px;
  overflow: auto;
}
.ad-chat-item {
  border: 1px solid #2b3139;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  color: #eaecef;
  font: inherit;
  cursor: pointer;
}
.ad-chat-item.on,
.ad-chat-item:hover {
  border-color: rgba(252, 213, 53, 0.45);
  background: rgba(252, 213, 53, 0.08);
}
.ad-chat-item b { display: block; margin-bottom: 4px; }
.ad-chat-item span {
  display: block;
  color: #848e9c;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-chat-item em {
  float: right;
  color: #f6465d;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}
.ad-chat-room-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.ad-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.ad-chat-actions button {
  border: 1px solid #2b3139;
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #eaecef;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ad-chat-actions button.danger {
  border-color: rgba(246, 70, 93, 0.45);
  background: rgba(246, 70, 93, 0.16);
  color: #f6465d;
}
.ad-chat-actions button.warn {
  border-color: rgba(252, 213, 53, 0.4);
  background: rgba(252, 213, 53, 0.12);
  color: #fcd535;
}
.ad-chat-item.banned b::after {
  content: " · CẤM CHAT";
  color: #fcd535;
  font-size: 10px;
}
.ad-chat-item.blocked b::after {
  content: " · BLOCK";
  color: #f6465d;
  font-size: 10px;
}
.ad-chat-thread {
  height: 420px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  margin: 10px 0;
  border-radius: 12px;
  border: 1px solid #2b3139;
  background: rgba(0, 0, 0, 0.25);
}
.ad-chat-compose {
  display: flex;
  gap: 8px;
}
.ad-chat-compose input {
  flex: 1;
  border-radius: 10px;
  border: 1px solid #2b3139;
  background: #0b0e11;
  color: #eaecef;
  font: inherit;
  padding: 10px 12px;
}
.ad-chat-compose button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #fcd535;
  color: #1e2329;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 960px) {
  .ad-chat { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cskh-widget { right: 12px; bottom: 12px; }
  .cskh-fab span { display: none; }
  .cskh-fab { padding: 13px; border-radius: 50%; }
}

/* CMS BO shell — match asxstockken layout */
body.admin {
  background: #0e0e0e !important;
  color: #d0d2d6;
  font-family: Sarabun, Helvetica, Arial, sans-serif !important;
}
body.admin.ad-locked .ad-topbar,
body.admin.ad-locked .cms-side,
body.admin.ad-locked .ad-backdrop,
body.admin.ad-locked .cms-dash {
  display: none !important;
}
body.admin .ad-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  margin: 12px 16px 0 276px !important;
  width: auto;
  min-height: 62px;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  padding: 0 18px;
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
body.admin .ad-menu-btn {
  display: none !important;
  position: static !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d0d2d6;
  cursor: pointer;
  padding: 0;
}
body.admin .ad-menu-btn:hover { background: rgba(255,255,255,0.06); color: #fff; }
.ad-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ad-lang,
.ad-bell,
.ad-top-user {
  border: 0;
  background: transparent;
  color: #d0d2d6;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
}
.ad-lang:hover,
.ad-bell:hover,
.ad-top-user:hover { background: rgba(255,255,255,0.05); }
.ad-bell { position: relative; font-size: 16px; }
.ad-bell b {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #7367f0;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.ad-top-user strong { display: block; color: #fff; font-size: 13px; line-height: 1.1; text-align: right; }
.ad-top-user em { display: block; color: #28c76f; font-size: 11px; font-style: normal; font-weight: 600; text-align: right; }
.ad-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7367f0, #9e95f5);
  color: #fff;
  font-weight: 800;
}
.ad-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0,0,0,0.55);
}
body.admin .ad-backdrop { display: none !important; }
body.admin .cms-side {
  position: fixed !important;
  top: 0;
  left: 0;
  z-index: 80 !important;
  width: 260px !important;
  height: 100vh !important;
  transform: none !important;
  transition: none;
  background: #121212 !important;
  border-right: 1px solid #2a2a2a !important;
  box-shadow: none;
  overflow: hidden;
}
body.admin .cms-dash {
  margin-left: 260px !important;
  padding: 18px 22px 40px !important;
  background: #0e0e0e !important;
  min-height: calc(100vh - 64px);
  width: auto;
  box-sizing: border-box;
}
/* Không ẩn sidebar theo mobile — danh mục luôn hiện */
body.admin .ad-pay-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
body.admin .ad-pay-slot {
  padding: 14px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #0a0a0a;
}
body.admin .ad-pay-slot header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
body.admin .ad-pay-slot header strong { color: #fff; }
body.admin .ad-pay-on {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: #c2c6dc !important;
  font-size: 12px;
  margin: 0 !important;
}
body.admin .ad-pay-slot label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  color: #82868b;
  font-size: 12px;
}
body.admin .ad-pay-slot input,
body.admin .ad-pay-slot select {
  border: 1px solid #3b4253;
  border-radius: 6px;
  background: #283046;
  color: #fff;
  padding: 10px 12px;
  font: inherit;
}
@media (max-width: 900px) {
  body.admin .ad-pay-slots { grid-template-columns: 1fr; }
}
body.admin .cms-nav,
body.admin .cms-nav-spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
body.admin .cms-nav h1,
body.admin .cms-nav-spread h1 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}
body.admin .cms-range input {
  background: #283046;
  border-color: #3b4253;
}
body.admin .cms-crumb {
  margin: 0;
  color: #82868b;
  font-size: 13px;
}
body.admin .cms-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
body.admin .cms-count { color: #82868b; font-size: 13px; }
body.admin .cms-search input {
  min-width: 240px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #121212;
  color: #fff;
  padding: 10px 12px;
  font: inherit;
}
body.admin .cms-quick-search {
  margin: 0;
  margin-left: auto;
}
body.admin .cms-quick-search input {
  min-width: 260px;
  border: 1px solid rgba(252, 213, 53, 0.35);
  border-radius: 10px;
  background: #0b0e11;
  color: #eaecef;
  padding: 11px 14px;
  font: inherit;
}
body.admin .cms-quick-search input::placeholder {
  color: #848e9c;
}
body.admin .cms-quick-search input:focus {
  outline: none;
  border-color: rgba(252, 213, 53, 0.7);
  box-shadow: 0 0 0 2px rgba(252, 213, 53, 0.12);
}
@media (max-width: 720px) {
  body.admin .cms-quick-search {
    width: 100%;
  }
  body.admin .cms-quick-search input {
    width: 100%;
    min-width: 0;
  }
}
body.admin .cms-status,
body.admin .cms-stat,
body.admin .cms-panel {
  background: #121212 !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
body.admin .cms-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}
body.admin .cms-ico {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
body.admin .cms-ico.a { background: #28c76f; }
body.admin .cms-ico.b { background: #7367f0; }
body.admin .cms-ico.c { background: #00cfe8; }
body.admin .cms-ico.d { background: #ff9f43; }
body.admin .cms-ico.e { background: #ea5455; }
body.admin .cms-ico.f { background: #9c8cff; }
body.admin .cms-stat b { display: block; color: #fff; font-size: 22px; font-weight: 700; }
body.admin .cms-stat span { color: #82868b; font-size: 13px; }
body.admin .cms-live { color: #28c76f; font-weight: 700; }
body.admin .cms-table th {
  color: #b4b7bd;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid #2a2a2a;
  background: transparent;
}
body.admin .cms-table td {
  color: #d0d2d6;
  border-bottom: 1px solid #1f1f1f;
  vertical-align: middle;
}
.ad-kyc-ok,
.ad-kyc-bad {
  border: 0;
  border-radius: 6px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: default;
}
.ad-kyc-ok { background: rgba(40, 199, 111, 0.16); color: #28c76f; }
.ad-kyc-bad { background: rgba(255, 159, 67, 0.16); color: #ff9f43; }
.ad-kyc-wait { background: rgba(252, 213, 53, 0.16); color: #fcd535; border: 0; border-radius: 8px; padding: 4px 8px; font: inherit; font-weight: 700; }
body.admin .cms-users-table .ad-btn-points {
  min-width: 34px;
  padding: 6px 10px;
  font-size: 16px;
  line-height: 1;
}
body.admin.ad-locked .ad-login {
  background:
    radial-gradient(circle at 20% 20%, rgba(115, 103, 240, 0.25), transparent 40%),
    #000;
}
.ad-settings-bo { padding: 8px 4px 22px; max-width: 720px; }
body.admin .cms-panel-bare {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0;
}
.ad-bo-title {
  margin: 22px 0 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.ad-bo-row,
.ad-bo-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
body.admin .ad-settings-bo label {
  color: #c2c6dc;
  font-size: 13px;
}
body.admin .ad-settings-bo input[type="number"],
body.admin .ad-settings-bo textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #3b4253;
  border-radius: 6px;
  background: #283046;
  color: #fff;
  padding: 12px 14px;
  font: inherit;
  box-sizing: border-box;
}
.ad-bo-check {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 4px 0 8px;
  color: #fff !important;
  font-weight: 600;
}
.ad-bo-note { margin: 0 0 10px; font-style: italic; color: #82868b; }
.ad-update-btn {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 6px;
  background: #28c76f;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 14px 16px;
  cursor: pointer;
}
.ad-send-btn {
  margin-top: 12px;
  border: 0;
  border-radius: 6px;
  background: #7367f0;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 12px 22px;
  cursor: pointer;
}
.ad-live-line {
  margin: 0 0 10px;
  color: #d0d2d6;
  font-size: 15px;
  line-height: 1.55;
}
.ad-live-line .warn { color: #ff9f43; }
.ad-live-line .ok { color: #28c76f; }
.ad-live-line .bad { color: #ea5455; }
.cms-nav-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cms-nav-inline h1 { margin: 0; color: #fff; font-size: 28px; }
body.admin .cms-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 4px;
  border-radius: 4px;
  background: rgba(115, 103, 240, 0.18);
  color: #7367f0;
  font-size: 12px;
}
body.admin .cms-nav-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
body.admin .ad-live-board {
  padding: 18px 20px 16px !important;
  margin-bottom: 16px;
  border: 1px solid #2a2a2a !important;
  background: linear-gradient(180deg, #161616, #121212) !important;
}
body.admin .ad-live-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
body.admin .ad-live-head h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}
body.admin .ad-live-head p {
  margin: 4px 0 0;
  color: #82868b;
  font-size: 13px;
}
body.admin .ad-live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #ea5455;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  animation: ad-live-pulse 1.4s ease-in-out infinite;
}
body.admin .ad-live-badge.wait {
  background: #ff9f43;
  animation: none;
}
@keyframes ad-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
body.admin .ad-live-clock {
  margin-left: auto;
  text-align: right;
}
body.admin .ad-live-clock b {
  display: block;
  color: #ff9f43;
  font-size: 34px;
  line-height: 1;
}
body.admin .ad-live-clock span {
  color: #82868b;
  font-size: 12px;
}
body.admin .ad-live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
body.admin .ad-live-grid div {
  padding: 12px 14px;
  border-radius: 8px;
  background: #0a0a0a;
  border: 1px solid #222;
}
body.admin .ad-live-grid em {
  display: block;
  margin-bottom: 6px;
  color: #82868b;
  font-style: normal;
  font-size: 12px;
}
body.admin .ad-live-grid b {
  color: #fff;
  font-size: 18px;
  word-break: break-all;
}
body.admin .ad-live-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(234, 84, 85, 0.18);
  color: #ea5455;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
body.admin .ad-preview-note {
  margin-left: 6px;
  color: #82868b;
  font-size: 11px;
  font-weight: 500;
}
body.admin tr.ad-live-row td {
  background: rgba(115, 103, 240, 0.08);
}
body.admin .ad-force-mini {
  border: 0;
  border-radius: 4px;
  padding: 6px 10px;
  margin-right: 4px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
}
body.admin .ad-force-mini.up { background: #28c76f; }
body.admin .ad-force-mini.down { background: #ea5455; }
body.admin .ad-force-mini.lose { background: #ff9f43; }
body.admin .ad-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
body.admin .ad-plan-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}
body.admin .ad-plan-wrap {
  max-height: 420px;
  overflow: auto;
}
body.admin .ad-session-force {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 10px;
  align-items: center;
}
@media (max-width: 1100px) {
  body.admin .ad-live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
body.admin .ad-force-btn {
  min-height: 48px;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 12px 22px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}
body.admin .ad-force-btn.up { background: #28c76f !important; color: #fff !important; }
body.admin .ad-force-btn.down { background: #ea5455 !important; color: #fff !important; }
body.admin .ad-force-btn.auto,
body.admin .ad-force-btn.lose { background: #7367f0 !important; color: #fff !important; }
body.admin .ad-force-btn.on { outline: 2px solid #fff; outline-offset: 2px; }
body.admin .ad-control-advanced {
  margin-top: 18px;
  padding: 12px 16px;
}
body.admin .ad-control-advanced summary {
  cursor: pointer;
  color: #c2c6dc;
  font-weight: 600;
}
body.admin .ad-link-btn {
  border: 0;
  background: transparent;
  color: #7367f0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
body.admin .ad-tx.on-sub,
body.admin .ad-tx[aria-expanded="true"] {
  color: #c7c2ff;
}
body.admin .ad-caret {
  margin-left: auto;
  transition: transform 0.15s ease;
}
body.admin .ad-tx[aria-expanded="true"] .ad-caret { transform: rotate(90deg); }
@media (max-width: 720px) {
  .ad-bo-row-2 { grid-template-columns: 1fr; }
  body.admin .ad-topbar { margin: 8px 8px 0 !important; }
}

/* Language gate + switcher */
body.lang-locked > :not(#lang-gate) {
  visibility: hidden !important;
  pointer-events: none !important;
}
#lang-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 70% 50% at 20% 15%, rgba(252, 213, 53, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 40% at 85% 20%, rgba(45, 212, 191, 0.16), transparent 50%),
    linear-gradient(168deg, #2a303c 0%, #12161c 48%, #0b0e11 100%);
}
#lang-gate[hidden] { display: none !important; }
.lang-gate-card {
  width: min(440px, 100%);
  padding: 28px 24px 22px;
  border-radius: 22px;
  border: 1px solid rgba(252, 213, 53, 0.28);
  background: rgba(18, 22, 28, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}
.lang-gate-card .lang-kicker {
  margin: 0 0 8px;
  color: #fcd535;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lang-gate-card h1 {
  margin: 0 0 8px;
  font-family: Syne, Outfit, sans-serif;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 800;
}
.lang-gate-card .lang-sub {
  margin: 0 0 22px;
  color: #aeb4bc;
  font-size: 0.95rem;
}
.lang-gate-actions {
  display: grid;
  gap: 12px;
}
.lang-pick {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #181a20;
  color: #eaecef;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.lang-pick strong {
  font-size: 1.05rem;
  font-weight: 700;
}
.lang-pick span {
  color: #848e9c;
  font-size: 0.86rem;
}
.lang-pick:hover,
.lang-pick:focus-visible {
  border-color: rgba(252, 213, 53, 0.55);
  background: #1e232b;
  outline: none;
  transform: translateY(-1px);
}
.lang-pick[data-set-lang="vi"] strong { color: #fcd535; }
.lang-pick[data-set-lang="en"] strong { color: #2dd4bf; }
.lang-chip-wrap {
  position: relative;
  z-index: 70;
  display: inline-flex;
  align-items: center;
}
#lang-chip {
  position: relative;
  z-index: 71;
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(252, 213, 53, 0.35);
  background: rgba(24, 26, 32, 0.9);
  color: #fcd535;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}
#lang-switch {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: 180px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #12161c;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 6px;
  pointer-events: auto;
}
#lang-switch[hidden] { display: none !important; }
#lang-switch button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #eaecef;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}
#lang-switch button:hover {
  background: rgba(252, 213, 53, 0.12);
  color: #fcd535;
}

/* Mobile / Safari: chữ to hơn, dễ đọc */
@media (max-width: 640px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  html.lite-device body.market,
  body.market {
    font-size: 16px;
  }
  .guest-bar button {
    font-size: 11px !important;
    line-height: 1.15;
  }
  .guest-bar button span {
    font-size: 11px !important;
  }
  .guest-wallet span,
  .guest-who {
    font-size: 13px !important;
  }
  .guest-wallet b {
    font-size: 15px !important;
  }
  .guest-logout:not([hidden]) {
    font-size: 13px !important;
  }
  .ud-mobile-panels button,
  .ud-chart-tabs button,
  .ud-frames button,
  .ud-tape-tabs button {
    font-size: 13px !important;
  }
  .ud-chips button {
    font-size: 12px !important;
  }
  .ud-ticket > p,
  .ud-count,
  .ud-wallet span,
  .nap-xfer-row > span,
  .profile-note,
  .desk-lead,
  .desk-crumb {
    font-size: 14px !important;
  }
  .ud-wallet b,
  .ud-mid,
  .desk-title,
  .profile-head h1 {
    font-size: 18px !important;
  }
  .ud-sides button {
    font-size: 17px !important;
  }
  .ud-sides button span {
    font-size: 13px !important;
  }
  .nap-xfer-row > b,
  .profile-card label,
  .profile-card input,
  .profile-card select,
  .money-form .field,
  .money-form input,
  .money-form select,
  .auth .field,
  .auth input {
    font-size: 15px !important;
  }
  .nap-xfer-row.nap-xfer-stk {
    grid-template-columns: minmax(96px, 0.85fr) minmax(0, 1.15fr);
    gap: 8px;
    min-height: 40px;
    align-items: start;
  }
  .nap-xfer-stk-value > b,
  .nap-xfer-stk > b {
    font-size: 15px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-all !important;
  }
  .nap-copy,
  #transfer-copy-stk {
    min-width: 72px;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px !important;
  }
  .transfer-foot,
  #topup-msg {
    font-size: 14px !important;
  }
  .profile-card button[type="submit"],
  .kyc-confirm,
  .nap-primary,
  .nap-secondary,
  #rut-submit,
  .auth button[type="submit"] {
    font-size: 16px !important;
  }
  .rank-board-head strong,
  .rank-list li,
  .win-ticker-item {
    font-size: 13px !important;
  }
  .land-hero h1,
  .land-headline,
  .land h1 {
    font-size: clamp(26px, 7.2vw, 36px) !important;
    max-width: 100%;
  }
  .land-cta,
  .land-cta-lg {
    font-size: 16px !important;
  }
}

/* XS/SM: chữ Tăng/Giảm không bị rule 17px đè / cắt */
@media (max-width: 390px) {
  .ud-sides button { font-size: 14px !important; }
  .ud-sides button span { font-size: 13px !important; }
}
@media (max-width: 360px) {
  .ud-sides button { font-size: 13px !important; }
  .ud-sides button span { font-size: 12px !important; }
}
