:root {
  --bg: #040e0c;
  --bg-header: rgba(4, 14, 12, 0.82);
  --card: #09231f;
  --gold: #fab338;
  --gold-deep: #ffca7f;
  --gold-line: rgba(3, 80, 18, 0.58);
  --text: #ffffff;
  --muted: #459b8e;
  --buy: #00c137;
  --sell: #ff3a3a;
  --navy: #021d07;
  --input: #10241f;
  --teal: #459b8e;
  --surface: #021d07;
  --glow: #05513f;
  --page-bg: radial-gradient(ellipse at center, #021d07 0%, #040e0c 72%);
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

.page {
  width: 100%;
  height: 100%;
  background: var(--page-bg);
}

.top {
  position: relative;
  z-index: 60;
  display: table;
  width: 100%;
  height: 8vh;
  border-bottom: 1px solid var(--gold-line);
  background: var(--bg-header);
  table-layout: fixed;
  backdrop-filter: blur(6px);
}

.top-cell {
  display: table-cell;
  vertical-align: middle;
  width: 33.33%;
  padding: 0 1.2vw;
}

.top-left {
  text-align: left;
  color: var(--gold-deep);
  font-size: 0.85vw;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.icon-btn {
  display: inline-block;
  width: 2.2vw;
  height: 2.2vw;
  margin-right: 0.5vw;
  border: 1px solid var(--gold);
  border-radius: 50%;
  text-align: center;
  vertical-align: middle;
  line-height: 2.1vw;
  color: var(--gold);
  background: var(--navy);
}

.icon-btn svg {
  vertical-align: middle;
}

.user-wrap {
  position: relative;
  display: inline-block;
  margin-left: 0.6vw;
  vertical-align: middle;
  text-align: left;
}

.user-chip {
  display: inline-block;
  padding: 0.45vh 0.9vw 0.45vh 0.55vw;
  border: 1px solid var(--gold);
  border-radius: 2vw;
  background: var(--navy);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.login-pop {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 70;
  width: 210px;
  padding: 12px 10px 14px;
  background: var(--card);
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.login-pop.show {
  display: block;
}

.login-pop p {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 16px;
}

#popGuest.hide {
  display: none;
}

#popUser {
  display: none;
}

#popUser.show {
  display: block;
}

.gold-btn {
  display: inline-block;
  width: 70%;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffca7f, #f0a840);
  color: #040e0c;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
}

.gold-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.login-wrap {
  position: relative;
  z-index: 2;
  display: table;
  width: 100%;
  height: 100%;
}

.login-inner {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  padding: 24px 16px;
}

.login-card {
  position: relative;
  display: inline-block;
  width: 92%;
  max-width: 420px;
  padding: 28px 28px 26px;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--gold);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  color: var(--text);
}

.login-logo {
  display: block;
  width: 210px;
  height: auto;
  margin: 4px auto 10px;
}

.login-kicker {
  margin: 0 0 4px;
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.22em;
  text-align: center;
}

.login-title {
  margin: 0;
  color: var(--gold-deep);
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0.18em;
  text-align: center;
}

.login-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.login-card label {
  display: block;
  margin: 16px 0 6px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-card label sup {
  color: #d13b3b;
}

.login-field {
  display: table;
  width: 100%;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: var(--input);
}

.login-field:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(250, 179, 56, 0.18);
}

.login-ico {
  display: table-cell;
  width: 42px;
  color: var(--gold-deep);
  text-align: center;
  vertical-align: middle;
}

.login-field input {
  display: table-cell;
  width: 100%;
  padding: 12px 14px 12px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.login-submit {
  display: block;
  width: 100%;
  height: 48px;
  margin: 22px 0 0;
  border-radius: 12px;
  font-size: 15px;
  letter-spacing: 0.12em;
  box-shadow: 0 8px 18px rgba(240, 168, 64, 0.28);
}

.login-contact {
  margin-top: 22px;
}

.login-contact.hide {
  display: none;
}

.login-or {
  display: table;
  width: 100%;
  color: var(--muted);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.16em;
}

.login-or i,
.login-or b {
  display: table-cell;
  vertical-align: middle;
}

.login-or i {
  height: 1px;
  background: var(--gold-line);
}

.login-or b {
  width: 1%;
  padding: 0 10px;
  white-space: nowrap;
  font-weight: bold;
}

.login-social {
  margin-top: 14px;
  text-align: center;
}

.login-social-btn {
  display: inline-block;
  width: 44px;
  height: 44px;
  margin: 0 8px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  background: var(--navy);
  line-height: 42px;
  text-align: center;
}

.login-social-btn svg {
  vertical-align: middle;
}

#loginFields.hide {
  display: none;
}

#otpFields {
  display: none;
  text-align: center;
}

#otpFields.show {
  display: block;
}

.otp-help {
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.otp-row {
  text-align: center;
}

.otp {
  width: 52px;
  height: 58px;
  margin: 0 6px;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: var(--input);
  color: var(--text);
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  font-family: inherit;
}

.otp:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(250, 179, 56, 0.18);
}

.modal.login-required .login-card {
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.user-chip svg {
  vertical-align: middle;
  margin-right: 0.4vw;
  color: var(--gold);
}

.user-chip span {
  display: inline-block;
  vertical-align: middle;
}

.user-name {
  display: block !important;
  color: var(--text);
  font-size: 0.7vw;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.user-id {
  display: block !important;
  color: var(--muted);
  font-size: 0.62vw;
}

.top-center {
  text-align: center;
}

.top-right {
  text-align: right;
  white-space: nowrap;
}

.logo {
  height: 7.4vh;
  max-width: 28vw;
  vertical-align: middle;
  object-fit: contain;
}

.phone-dot {
  display: none;
}

.clock,
.live-badge,
.live-dot {
  display: none;
}

.title-row {
  padding: 0.8vh 0 0.4vh;
  text-align: center;
  color: #f0a840;
  font-size: 1.05vw;
  font-weight: bold;
  letter-spacing: 0.22em;
  border-bottom: 0;
}

.title-feather {
  display: none;
}

.title-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0.35vw;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--gold);
}

.title-feather-right {
  transform: scaleX(-1);
}

.title-row .spark {
  display: none;
}

.line {
  display: inline-block;
  width: 7vw;
  height: 2px;
  margin: 0 0.8vw;
  vertical-align: middle;
  background: var(--gold);
}

.kyc {
  padding: 0.6vh 1.5vw;
  color: var(--muted);
  font-size: 0.85vw;
  text-align: right;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold-line);
  background: var(--bg-header);
}

.tabs {
  padding: 1.2vh 1.2vw 0.4vh;
  text-align: center;
  white-space: nowrap;
}

.tabs.tabs-one {
  max-width: 42vw;
  margin: 1.2vh auto 0.4vh;
  padding: 0.5vh;
  border: 0;
  border-radius: 1.2vw;
  background: transparent;
}

.tab {
  display: inline-block;
  margin: 0 0.4vw;
  padding: 0.7vh 2.4vw;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.88vw;
  font-weight: bold;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 2vh;
}

.tab.on {
  border-color: transparent;
  background: transparent;
  color: var(--gold);
  box-shadow: none;
  border-bottom: 2px solid var(--gold);
  border-radius: 0;
}

.tab-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.4vw;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--gold);
}

.tab.on .tab-feather {
  display: inline-block;
}

.layout {
  display: table;
  width: 100%;
  table-layout: fixed;
  padding: 1.2vh 2vw 7.5rem;
}

.col-main {
  display: table-cell;
  width: 72%;
  vertical-align: top;
  padding-right: 1vw;
}

.col-side {
  display: table-cell;
  width: 28%;
  vertical-align: top;
}

.cards {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-spacing: 0.6vw 0;
}

.card {
  display: table-cell;
  padding: 1.4vh 0.6vw 1.1vh;
  border: 1px solid var(--gold-line);
  background: linear-gradient(225deg, #052511, #000101);
  border-radius: 1vw;
  vertical-align: top;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.card-top {
  display: block;
  width: 100%;
}

.card-icon,
.card-info {
  display: block;
  vertical-align: top;
}

.card-icon {
  display: none;
}

.metal-icon {
  width: 2.2vw;
  height: 2.2vw;
  object-fit: contain;
  vertical-align: middle;
}

.metal-icon-sm {
  width: 1.7vw;
  height: 1.7vw;
  object-fit: contain;
  vertical-align: middle;
}

.card-title {
  color: var(--gold-deep);
  font-size: 0.72vw;
  font-weight: bold;
  letter-spacing: 0.08em;
}

.card-price {
  margin-top: 0.3vh;
  color: var(--text);
  font-size: 1.05vw;
  font-weight: bold;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.card-hl {
  display: block;
  width: 100%;
  margin-top: 0.6vh;
  padding-top: 0;
  border-top: 0;
  color: var(--text);
  font-size: 0.62vw;
}

.card-hl span {
  display: table-cell;
  vertical-align: middle;
}

.hl-col {
  width: 50%;
}

.card-hl b {
  color: var(--gold-deep);
  font-weight: normal;
  margin-right: 0.35em;
}

.card-hl i {
  font-style: normal;
  white-space: nowrap;
}

.hl-mid {
  width: 1px;
  background: var(--gold-line);
}

.hl-right {
  text-align: right;
}

.section-label {
  margin: 1.8vh 0 0.8vh;
  color: var(--text);
  font-size: 0.85vw;
  font-weight: bold;
  letter-spacing: 0.08em;
}

.prod-head {
  display: table;
  width: 100%;
  table-layout: fixed;
  padding: 0 1vw 0.8vh;
  color: var(--muted);
  font-size: 0.75vw;
  text-transform: uppercase;
}

.prod-head span {
  display: table-cell;
}

.prod-head .buy,
.prod-head .sell {
  width: 22%;
  text-align: center;
}

.prod-head .buy {
  color: var(--buy);
}

.prod-head .sell {
  color: var(--sell);
}

#products {
  overflow: auto;
}

.prod-row {
  display: table;
  width: 100%;
  table-layout: fixed;
  margin-top: 0.9vh;
  padding: 1.3vh 1vw;
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, #041c0d, #000101);
  border-radius: 1.1vw;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  position: relative;
}

.prod-row > div {
  display: table-cell;
  vertical-align: middle;
}

.prod {
  color: var(--text);
  font-size: 1.05vw;
  font-weight: bold;
}

.icon-wrap {
  display: inline-block;
  width: 2.4vw;
  height: 2.4vw;
  margin-right: 0.55vw;
  border: 1px solid var(--gold);
  background: var(--input);
  border-radius: 50%;
  text-align: center;
  vertical-align: middle;
  line-height: 2.3vw;
}

.buy-col,
.sell-col {
  width: 22%;
  text-align: center;
}

.buy-val {
  color: var(--text);
  font-size: 1.35vw;
  font-weight: bold;
  white-space: nowrap;
}

.sell-val {
  color: var(--text);
  font-size: 1.35vw;
  font-weight: bold;
  white-space: nowrap;
}

.sub {
  display: block;
  margin-top: 0.3vh;
  color: var(--muted);
  font-size: 0.75vw;
  font-weight: normal;
}

.buy-col .sub {
  color: var(--buy) !important;
}

.sell-col .sub {
  color: var(--sell) !important;
}

.panel {
  margin-bottom: 1.4vh;
  border: 1px solid var(--gold-line);
  background: var(--card);
  border-radius: 0.8vw;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.panel h2 {
  margin: 0;
  padding: 1vh 0.8vw;
  color: var(--gold);
  font-size: 0.95vw;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-align: center;
  border-bottom: 1px solid var(--gold-line);
  background: var(--navy);
}

.panel .body {
  padding: 1.2vh 1vw 1.6vh;
  color: var(--muted);
  font-size: 0.85vw;
  line-height: 1.5;
}

.panel p {
  margin: 0 0 0.9vh;
}

.terminal {
  text-align: center;
}

.term-row {
  margin: 1.1vh 0;
  color: var(--text);
  font-size: 1vw;
  text-transform: uppercase;
}

.term-box {
  display: inline-block;
  margin-left: 0.8vw;
  border: 1px solid var(--gold);
  border-radius: 4px;
  vertical-align: middle;
  background: var(--input);
}

.term-box b,
.term-box i {
  display: inline-block;
  padding: 0.25vh 0.55vw;
  font-style: normal;
  font-weight: normal;
}

.term-box b {
  border-right: 1px solid var(--gold);
  min-width: 3vw;
}

.trust {
  padding: 1.2vh 1vw;
  border: 0;
  background: #e10600;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.trust b {
  display: block;
  color: #fff;
  font-size: 0.9vw;
  letter-spacing: 0.04em;
  text-transform: none;
}

.trust span {
  display: block;
  margin-top: 0.2vh;
  color: #fff;
  font-size: 0.85vw;
}

.bottom-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.6rem 0.8rem 1.1rem;
  text-align: center;
}

.nav-toggle {
  position: fixed;
  right: 1.1vw;
  bottom: 1.1vw;
  z-index: 61;
  width: 3.2vw;
  height: 3.2vw;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: #00382d;
  color: var(--gold);
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

body.nav-hidden .bottom-wrap {
  display: none;
}

body.nav-hidden .layout {
  padding-bottom: 2.4rem;
}

.bottom-nav {
  display: table;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  table-layout: fixed;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--gold-line);
  background: #00382d;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.nav-item {
  display: table-cell;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-family: inherit;
}

.nav-item svg {
  margin-right: 6px;
  vertical-align: middle;
}

.nav-live .live-pill {
  display: inline-block;
  padding: 0.45rem 1.15rem;
  border: 0;
  background: transparent;
  color: var(--gold);
  border-radius: 999px;
  box-shadow: none;
}

.nav-live .live-pill span {
  vertical-align: middle;
}

.nav-mobile {
  display: none;
}

.buy-col,
.sell-col {
  cursor: pointer;
}

.trust-mobile {
  display: none;
}

.drawer-bg,
.drawer,
.modal {
  display: none;
}

.drawer-bg.show,
.modal.show {
  display: block;
}

.drawer-bg {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.55);
}

.drawer {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 90;
  width: 320px;
  max-width: 90%;
  padding: 18px 14px;
  background: var(--page-bg);
  overflow: auto;
}

.drawer.show {
  display: block;
}

.drawer-user {
  display: table;
  width: 100%;
  margin-bottom: 22px;
  padding: 10px 12px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--text);
  background: var(--card);
}

.drawer-user svg,
.drawer-user span {
  display: table-cell;
  vertical-align: middle;
}

.drawer-user svg {
  width: 36px;
  color: var(--gold);
}

.drawer-user b {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
}

.drawer-user i {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 10px;
}

.drawer-link {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 14px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  background: rgba(9, 35, 31, 0.88);
  color: var(--gold);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.drawer-link.on {
  color: var(--gold-deep);
  border-color: var(--gold);
}

.modal {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
}

.modal-bg {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(28, 25, 20, 0.28);
}

.modal.login-required .modal-close {
  display: none;
}

.modal.login-required .modal-bg {
  background: var(--page-bg);
}

body.login-locked .page,
body.login-locked .drawer,
body.login-locked .drawer-bg,
body.login-locked .nav-toggle {
  visibility: hidden;
}

.modal-box {
  position: relative;
  z-index: 2;
  width: 92%;
  max-width: 380px;
  margin: 10vh auto 0;
  padding: 18px 12px 22px;
  background: var(--card);
  border-radius: 12px;
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--gold-line);
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
  line-height: 28px;
}

.modal-box h3 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.order-card {
  max-width: 340px;
  margin: 0 auto;
  padding: 16px 14px 18px;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: var(--navy);
}

.order-title {
  margin: 0;
  color: var(--gold-deep);
  font-size: 17px;
  font-weight: bold;
  text-align: center;
}

.mode-switch {
  display: table;
  width: 100%;
  margin-top: 16px;
  padding: 8px 6px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: var(--card);
  table-layout: fixed;
  text-align: center;
}

.mode,
.mode-bar {
  display: table-cell;
  vertical-align: middle;
}

.mode {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.mode.on {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

.mode-bar {
  color: var(--muted);
  width: 20px;
}

.bidask {
  display: table;
  width: 100%;
  margin-top: 16px;
  table-layout: fixed;
  text-align: center;
}

.bidask > div {
  display: table-cell;
}

.bidask span {
  display: block;
  color: var(--text);
  font-size: 17px;
}

.bidask .bid {
  display: block;
  margin-top: 4px;
  color: var(--sell);
  font-size: 16px;
}

.bidask .ask {
  display: block;
  margin-top: 4px;
  color: var(--buy);
  font-size: 16px;
}

.qty-row {
  display: table;
  width: 100%;
  margin-top: 16px;
  table-layout: fixed;
}

.qty-row span,
.qty-row select,
.qty-row input {
  display: table-cell;
  vertical-align: middle;
}

.qty-row span {
  color: var(--text);
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  width: 50%;
}

.qty-row select,
.qty-row input {
  width: 112px;
  padding: 8px 10px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
}

#limitRow {
  display: none;
}

#limitRow.show {
  display: table;
}

.order-btns {
  display: table;
  width: 100%;
  margin-top: 20px;
  table-layout: fixed;
  border-spacing: 12px 0;
}

.order-btns button {
  display: table-cell;
  width: 48%;
  padding: 12px 8px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
}

.btn-sell {
  background: var(--sell);
}

.btn-buy {
  background: var(--buy);
}

.toast {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--navy);
  border: 1px solid var(--gold);
  color: #fff;
  border-radius: 8px;
  transform: translateX(-50%);
  font-size: 14px;
  white-space: nowrap;
}

.toast.show {
  display: block;
}

.view-panel {
  display: none;
}

.view-panel.show {
  display: block;
}

.page.scrollable {
  overflow: auto;
  height: auto;
  min-height: 100%;
}

html.scrollable,
body.scrollable {
  overflow: auto;
  height: auto;
  min-height: 100%;
}

.order-tabs {
  display: table;
  width: 100%;
  table-layout: fixed;
  margin-bottom: 1.6vh;
  padding: 0.8vh 0.4vw;
  border: 1px solid var(--gold-line);
  border-radius: 1vw;
  background: var(--card);
  text-align: center;
}

.order-tab {
  display: table-cell;
  padding: 0.7vh 0.4vw;
  border: 0;
  background: transparent;
  color: var(--gold-deep);
  font-size: 0.95vw;
  font-weight: bold;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-family: inherit;
}

.order-tab.on {
  color: var(--text);
  border-bottom: 2px solid var(--gold);
}

.trade-head,
.trade-row {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.trade-head {
  padding: 0 0.8vw 0.8vh;
  color: var(--text);
  font-size: 0.85vw;
  font-weight: bold;
}

.trade-head span,
.trade-row > span {
  display: table-cell;
  vertical-align: middle;
}

.trade-head span:first-child,
.trade-row > span:first-child {
  width: 10%;
}

.trade-head span:nth-child(n + 3),
.trade-row > span:nth-child(n + 3) {
  width: 16%;
  text-align: center;
}

.trade-card {
  margin-top: 0.9vh;
  padding: 1.2vh 0.8vw 1vh;
  border: 1px solid var(--gold-line);
  background: var(--card);
  border-radius: 1vw;
  cursor: default;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.trade-card.can-edit {
  cursor: pointer;
}

.trade-row {
  color: var(--text);
  font-size: 0.95vw;
  font-weight: bold;
}

.trade-meta {
  margin-top: 0.7vh;
  color: var(--muted);
  font-size: 0.72vw;
}

.trade-meta span {
  display: inline-block;
  margin-right: 1.4vw;
}

.margin-grid {
  display: table;
  width: 72%;
  max-width: 920px;
  margin: 4vh auto 0;
  table-layout: fixed;
  border-spacing: 1.6vw 0;
}

.margin-grid .panel {
  display: table-cell;
  width: 50%;
  vertical-align: top;
}

.empty-screen,
.notify-list {
  max-width: 720px;
  margin: 4vh auto 0;
  padding: 0 1.5vw 8rem;
}

.empty-screen {
  color: var(--muted);
  text-align: center;
  font-size: 1.1vw;
}

.notify-item {
  margin-top: 1vh;
  padding: 1.4vh 1vw;
  border: 1px solid var(--gold-line);
  background: var(--card);
  border-radius: 0.8vw;
}

.notify-item b {
  display: block;
  color: var(--gold-deep);
  font-size: 0.95vw;
}

.notify-item p {
  margin: 0.5vh 0 0;
  color: var(--text);
  font-size: 0.85vw;
}

.notify-item i {
  display: block;
  margin-top: 0.5vh;
  color: var(--muted);
  font-size: 0.7vw;
  font-style: normal;
}

.nav-item.on,
.nav-live,
.nav-live-mob {
  color: var(--gold-deep);
}

@media (max-width: 768px) {
  html,
  body,
  .page {
    overflow: auto;
    height: auto;
    min-height: 100%;
  }

  .top {
    height: 68px;
  }

  .top-cell {
    padding: 0 10px;
  }

  #phoneText,
  .user-wrap,
  .kyc,
  .col-side,
  .nav-desktop,
  .title-row .line {
    display: none !important;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
    line-height: 32px;
    margin-right: 0;
  }

  .logo {
    height: 52px;
    max-width: 56vw;
  }

  .title-row {
    font-size: 11px;
    letter-spacing: 0.22em;
    padding: 10px 0;
  }

  .title-feather {
    width: 18px;
    height: 18px;
    margin: 0 8px;
  }

  .title-row .spark {
    display: none;
  }

  .tabs,
  .tabs.tabs-one {
    max-width: none;
    margin: 10px 12px 0;
    padding: 2px;
    border-radius: 16px;
  }

  .tab {
    min-width: 0;
    padding: 8px 18px;
    font-size: 11px;
  }

  .tabs.tabs-one .tab {
    min-width: 72%;
  }

  .layout {
    display: block;
    padding: 12px 12px 110px;
  }

  .col-main {
    display: block;
    width: 100%;
    padding: 0;
  }

  .cards {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    border-spacing: 0;
  }

  .card {
    display: inline-block;
    width: 42vw;
    min-width: 158px;
    max-width: 200px;
    margin-right: 10px;
    padding: 12px;
    white-space: normal;
    vertical-align: top;
    height: 118px;
    box-sizing: border-box;
  }

  .card-icon {
    width: 40px;
  }

  .metal-icon {
    width: 40px;
    height: 40px;
  }

  .card-title {
    font-size: 10px;
  }

  .card-price {
    font-size: 18px;
  }

  .card-hl {
    font-size: 10px;
    table-layout: fixed;
    margin-top: 10px;
    padding-top: 8px;
  }

  .card-hl b,
  .card-hl i {
    display: block;
    margin-right: 0;
  }

  .card-hl i {
    margin-top: 2px;
    font-size: 11px;
  }

  .hl-col {
    vertical-align: top;
  }

  .section-label {
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .products-wrap {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
  }

  .prod-head {
    font-size: 11px;
    padding: 0 2px 8px;
    border-bottom: 0;
  }

  #products {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
  }

  .prod-row {
    margin-top: 0;
    padding: 14px 12px;
    border: 1px solid var(--gold-line);
    border-bottom: 1px solid var(--gold-line);
    border-radius: 16px;
    background: var(--card);
    margin-bottom: 10px;
  }

  .prod {
    font-size: 13px;
  }

  .icon-wrap {
    width: 36px;
    height: 36px;
    line-height: 34px;
  }

  .metal-icon-sm {
    width: 24px;
    height: 24px;
  }

  .buy-val,
  .sell-val {
    font-size: 16px;
  }

  .sub {
    font-size: 10px;
  }

  .trust-mobile {
    display: block;
    margin-top: 18px;
    padding: 14px 12px;
  }

  .trust-mobile b {
    font-size: 11px;
  }

  .trust-mobile span {
    font-size: 10px;
  }

  .bottom-wrap {
    padding: 28px 8px 12px;
    overflow: visible;
  }

  .nav-toggle {
    right: 12px;
    bottom: 12px;
    width: 46px;
    height: 46px;
    font-size: 26px;
  }

  body.nav-hidden .layout {
    padding-bottom: 70px;
  }

  .nav-mobile {
    display: table !important;
    width: 100% !important;
    max-width: none;
    padding: 10px 8px 10px;
    border-radius: 28px;
    table-layout: fixed !important;
    border-spacing: 8px 0;
    overflow: visible;
    position: relative;
  }

  .nav-mobile .nav-item {
    display: table-cell !important;
    width: 20%;
    font-size: 9px;
    color: var(--muted);
    font-weight: bold;
    vertical-align: bottom;
    height: 58px;
    padding: 0 2px;
    white-space: normal;
  }

  .nav-mobile .nav-item svg {
    display: block !important;
    margin: 0 auto 4px !important;
  }

  .nav-mobile .nav-item span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .live-circle {
    display: block;
    width: 52px;
    height: 52px;
    margin: -26px auto 4px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: var(--card);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.22);
    line-height: 48px;
    text-align: center;
    color: var(--gold);
  }

  .nav-mobile .nav-live-mob .live-circle svg {
    display: inline-block !important;
    margin: 0 !important;
    vertical-align: middle;
  }

  .nav-live-mob {
    color: var(--gold-deep) !important;
    position: relative;
    top: 0;
    overflow: visible;
  }

  .toast {
    bottom: 108px;
    white-space: normal;
    max-width: 86%;
    text-align: center;
  }

  .order-tabs {
    margin: 0 0 12px;
    padding: 6px 4px;
    border-radius: 12px;
  }

  .order-tab {
    font-size: 12px;
    padding: 8px 4px;
  }

  .trade-head,
  .trade-row {
    font-size: 12px;
  }

  .trade-meta {
    font-size: 10px;
  }

  .margin-grid {
    display: block;
    width: auto;
    margin: 16px 12px 0;
    border-spacing: 0;
  }

  .margin-grid .panel {
    display: block;
    width: 100%;
    margin-bottom: 14px;
  }

  .empty-screen,
  .notify-item b,
  .notify-item p {
    font-size: 14px;
  }

  .empty-screen,
  .notify-list {
    margin-top: 18px;
    padding: 0 12px 110px;
  }

  .login-card {
    width: 100%;
    max-width: 360px;
    padding: 22px 18px 20px;
  }

  .login-title {
    font-size: 24px;
  }

  .otp {
    width: 46px;
    height: 52px;
    margin: 0 4px;
  }
}

.empty {
  padding: 4vh 1vw;
  color: var(--muted);
  text-align: center;
  font-size: 1.2vw;
}

.green {
  color: var(--buy) !important;
}

.red {
  color: var(--sell) !important;
}

.white {
  color: var(--text) !important;
}

.powered-by {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.powered-by img {
  display: none;
}

.powered-line {
  display: inline-block;
  width: 42px;
  height: 1px;
  margin: 0 8px;
  vertical-align: middle;
  background: var(--gold);
}

.trust-feather {
  display: none;
}

.modal-bg {
  background: rgba(0, 0, 0, 0.65);
}

.login-card {
  background: var(--card);
}

.trade-status {
  display: none;
  margin: 0 auto 0.6vh;
  padding: 0.45vh 1.2vw;
  border-radius: 999px;
  border: 1px solid var(--sell);
  color: var(--sell);
  font-size: 0.78vw;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-align: center;
}

.trade-status.show {
  display: table;
}

.trade-status.open {
  border-color: var(--buy);
  color: var(--buy);
}

.trade-status svg {
  display: table-cell;
  vertical-align: middle;
  width: 16px;
  padding-right: 8px;
}

.trade-status span {
  display: table-cell;
  vertical-align: middle;
}

.marquee-bar {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-bar span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee-scroll 18s linear infinite;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 768px) {
  .powered-by {
    font-size: 10px;
  }

  .tab.on .tab-feather {
    width: 12px;
    height: 12px;
  }

  .prod-row {
    background-size: 48px auto;
  }

  .trade-status {
    font-size: 11px;
    padding: 6px 16px;
    margin: 0 auto 8px;
  }

  .title-dot {
    width: 5px;
    height: 5px;
  }

  .live-circle {
    border-color: var(--gold);
    background: rgba(1, 94, 19, 0.35);
    color: var(--gold);
    box-shadow: 0 0 16px rgba(250, 179, 56, 0.28);
  }

  .trust-mobile {
    margin-left: -12px;
    margin-right: -12px;
    border-radius: 0;
    text-align: center;
  }

  .trust-mobile b,
  .trust-mobile span {
    font-size: 13px;
    font-weight: bold;
  }
}
