﻿:root {
  --surface: #131313;
  --surface-low: #1c1b1b;
  --surface-card: #201f1f;
  --surface-high: #2a2a2a;
  --text: #e5e2e1;
  --muted: #a9b8d0;
  --outline: rgba(86, 65, 75, 0.35);
  --primary: #8bbcff;
  --primary-deep: #0b5cff;
  --success: #61de8a;
  --danger: #ffb4ab;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

/* Mobile markets v72: follows the MobileUI exchange prototype while keeping
   the shared five-tab shell stable on 390px phones. */
body[data-page-key="mobile-markets"].mobile-shell {
  padding-bottom: calc(116px + env(safe-area-inset-bottom));
}

body[data-page-key="mobile-markets"].mobile-shell > a[href="/m/support"].fixed {
  display: none !important;
}

body[data-page-key="mobile-markets"].mobile-shell .main-container {
  width: min(720px, 100vw);
  padding: 0 0 calc(132px + env(safe-area-inset-bottom));
}

.mobile-market-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: max(8px, env(safe-area-inset-top)) 20px 8px;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.97), rgba(14, 14, 14, 0.82));
  border-bottom: 1px solid rgba(22, 119, 255, 0.08);
  backdrop-filter: blur(18px);
}

.mobile-market-topbar h1 {
  margin: 0;
  overflow: hidden;
  color: #8bbcff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-market-icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(22, 119, 255, 0.14);
  border-radius: 18px;
  color: #a9b8d0;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.mobile-market-screen {
  display: grid;
  gap: 16px;
  width: min(720px, 100vw);
  margin: 0 auto;
  padding: 16px 14px calc(138px + env(safe-area-inset-bottom));
  color: var(--text);
}

.mobile-market-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(22, 119, 255, 0.08);
  border-radius: 2px;
  color: #a9b8d0;
  background: #0e0e0e;
}

.mobile-market-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  color: #e5e2e1;
  background: transparent;
  font: 700 15px/1.2 "Inter", sans-serif;
  outline: 0;
}

.mobile-market-search input::placeholder {
  color: rgba(220, 191, 203, 0.62);
}

.mobile-market-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  overflow-x: auto;
  padding: 6px 2px 12px;
  border-bottom: 1px solid rgba(22, 119, 255, 0.08);
  scrollbar-width: none;
}

.mobile-market-tabs::-webkit-scrollbar {
  display: none;
}

.mobile-market-tabs button {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  color: #a9b8d0;
  background: transparent;
  font: 900 18px/1 "Inter", sans-serif;
}

.mobile-market-tabs button small {
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #8bbcff;
  background: rgba(22, 119, 255, 0.18);
  font-size: 11px;
}

.mobile-market-tabs button.active {
  color: #8bbcff;
}

.mobile-market-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  border-radius: 999px;
  background: #8bbcff;
  box-shadow: 0 0 14px rgba(22, 119, 255, 0.6);
}

.mobile-market-spotlight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mobile-market-spot-card {
  min-width: 0;
  min-height: 116px;
  overflow: hidden;
  padding: 18px 16px;
  border: 1px solid rgba(22, 119, 255, 0.08);
  border-radius: 4px;
  color: #e5e2e1;
  background:
    linear-gradient(135deg, rgba(42, 35, 40, 0.78), rgba(23, 25, 23, 0.8)),
    #1b1a1a;
  text-decoration: none;
}

.mobile-market-spot-card span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a9b8d0;
  font-size: 13px;
  font-weight: 800;
}

.mobile-market-spot-card i {
  color: #8bbcff;
  font-size: 19px;
  font-style: normal;
}

.mobile-market-spot-card strong {
  display: inline-block;
  max-width: 100%;
  margin-top: 18px;
  overflow: hidden;
  font: 900 28px/1 "Space Grotesk", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-market-spot-card em {
  margin-left: 8px;
  font-style: normal;
  font-weight: 900;
}

.mobile-market-board {
  display: grid;
  gap: 0;
}

.mobile-market-table-head {
  position: sticky;
  top: 72px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 96px 72px;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(22, 119, 255, 0.08);
  background: rgba(19, 19, 19, 0.94);
  backdrop-filter: blur(14px);
}

.mobile-market-table-head button {
  border: 0;
  color: #a9b8d0;
  background: transparent;
  font: 800 12px/1.2 "Inter", sans-serif;
  text-align: left;
}

.mobile-market-table-head button:nth-child(n + 2) {
  text-align: right;
}

.mobile-market-list {
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.mobile-market-row {
  display: grid;
  grid-template-columns: 46px minmax(96px, 1fr) minmax(86px, 0.72fr) 74px;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(22, 119, 255, 0.05);
  border-radius: 2px;
  color: #e5e2e1;
  background: rgba(20, 18, 20, 0.82);
  text-decoration: none;
}

.mobile-market-token {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(22, 119, 255, 0.12);
  border-radius: 50%;
  color: #f3e7ed;
  background: #353534;
  font: 900 18px/1 "Space Grotesk", sans-serif;
}

.mobile-market-pair,
.mobile-market-price {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mobile-market-symbol-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.mobile-market-pair strong,
.mobile-market-pair small {
  font-family: "Space Grotesk", sans-serif;
}

.mobile-market-pair strong {
  font-size: 17px;
  font-weight: 900;
}

.mobile-market-pair small {
  color: #a9b8d0;
  font-size: 14px;
  font-weight: 800;
}

.mobile-market-pair em,
.mobile-market-price small,
.mobile-market-empty small {
  overflow: hidden;
  color: #a9b8d0;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-market-price {
  text-align: right;
}

.mobile-market-price strong {
  overflow: hidden;
  font: 900 17px/1.1 "Space Grotesk", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-market-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 8px;
  border-radius: 2px;
  font: 900 15px/1 "Inter", sans-serif;
  text-align: center;
}

.mobile-market-change.positive {
  color: #6beb9e;
  background: rgba(24, 166, 89, 0.26);
}

.mobile-market-change.negative {
  color: #ffb4ab;
  background: rgba(147, 0, 10, 0.28);
}

.mobile-market-price .positive,
.mobile-market-spot-card .positive {
  color: #61de8a;
}

.mobile-market-price .negative,
.mobile-market-spot-card .negative {
  color: #ffb4ab;
}

.mobile-market-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 28px 18px;
  border: 1px dashed rgba(22, 119, 255, 0.2);
  border-radius: 6px;
  color: #a9b8d0;
  background: rgba(22, 119, 255, 0.04);
  text-align: center;
}

.mobile-market-empty[hidden] {
  display: none !important;
}

.mobile-market-empty span {
  color: #8bbcff;
  font-size: 32px;
}

.mobile-market-empty strong {
  color: #e5e2e1;
  font: 900 18px/1 "Space Grotesk", sans-serif;
}

@media (max-width: 430px) {
  .mobile-shell .mobile-app-nav {
    left: max(8px, env(safe-area-inset-left)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    height: 76px !important;
    border-radius: 30px !important;
  }

  .mobile-shell .mobile-app-nav > div {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    height: 100% !important;
    padding: 8px !important;
    gap: 4px !important;
  }

  .mobile-shell .mobile-app-nav a {
    min-height: 58px !important;
    padding: 6px 0 !important;
    border-radius: 22px !important;
  }

  .mobile-market-screen {
    padding-inline: 14px;
  }

  .mobile-market-table-head {
    grid-template-columns: minmax(130px, 1fr) 92px 70px;
  }

  .mobile-market-row {
    grid-template-columns: 44px minmax(88px, 1fr) minmax(82px, 0.72fr) 70px;
    gap: 8px;
    padding: 10px 8px;
  }

  .mobile-market-price strong {
    font-size: 16px;
  }
}

/* Mobile trade v73: app-like trading terminal adapted from the MobileUI trade
   prototype, with stable bottom navigation and compact phone controls. */
body[data-page-key^="mobile-trade-"].mobile-shell {
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

body[data-page-key^="mobile-trade-"].mobile-shell > a[href="/m/support"].fixed {
  display: none !important;
}

body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav,
body[data-page-key="mobile-trade-futures"].mobile-shell .mobile-app-nav {
  display: grid !important;
}

body[data-page-key^="mobile-trade-"].mobile-shell .main-container,
body[data-page-key="mobile-trade-futures"].mobile-shell .main-container {
  width: min(720px, 100vw);
  padding: 0 0 calc(128px + env(safe-area-inset-bottom));
}

.mobile-trade-topbar {
  position: sticky;
  top: 0;
  z-index: 82;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  min-height: 66px;
  padding: max(8px, env(safe-area-inset-top)) 16px 8px;
  border-bottom: 1px solid rgba(22, 119, 255, 0.1);
  background: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(18px);
}

.mobile-trade-topbar a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 18px;
  color: #a9b8d0;
  text-decoration: none;
}

.mobile-trade-topbar div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 2px;
}

.mobile-trade-topbar strong {
  overflow: hidden;
  color: #8bbcff;
  font: 900 22px/1 "Space Grotesk", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-terminal-page-title {
  max-width: 100%;
  overflow: hidden;
  color: rgba(220, 191, 203, 0.82);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
}

.mobile-trade-topbar em {
  font-style: normal;
  font-weight: 900;
}

body[data-page-key^="mobile-trade-"] .mobile-exchange-screen {
  width: min(720px, 100vw);
  margin: 0 auto;
  gap: 0;
}

body[data-page-key^="mobile-trade-"] .mobile-terminal-console {
  min-height: auto;
  padding: 18px 14px calc(132px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(22, 119, 255, 0.16), transparent 26%),
    #111;
  box-shadow: none;
}

.mobile-terminal-price-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(142px, 0.86fr);
  gap: 14px;
  align-items: start;
}

.mobile-terminal-price-panel strong {
  display: block;
  overflow: hidden;
  color: #61de8a;
  font: 900 clamp(2.4rem, 13vw, 3.5rem)/0.95 "Space Grotesk", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-terminal-price-panel span,
.mobile-terminal-price-panel dt,
.mobile-terminal-price-panel dd {
  color: #a9b8d0;
  font-weight: 800;
}

.mobile-terminal-price-panel dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.mobile-terminal-price-panel div {
  min-width: 0;
}

.mobile-terminal-price-panel dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.mobile-terminal-price-panel dt,
.mobile-terminal-price-panel dd {
  margin: 0;
  font-size: 0.88rem;
  white-space: nowrap;
}

.mobile-terminal-price-panel dd {
  color: #f3e7ed;
  text-align: right;
}

.mobile-terminal-chart-panel {
  position: relative;
  display: flex;
  align-items: end;
  gap: 7px;
  height: 170px;
  margin: 20px 0 18px;
  padding: 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(22, 119, 255, 0.08);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(22, 119, 255, 0.08), rgba(22, 119, 255, 0.02)),
    #0b090b;
}

.mobile-terminal-chart-panel i {
  flex: 1 1 0;
  height: var(--bar-height);
  min-width: 8px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #e548b3, #61de8a);
  box-shadow: 0 0 20px rgba(229, 72, 179, 0.14);
}

.mobile-terminal-chart-panel::before {
  content: "";
  position: absolute;
  inset: 26px 16px;
  border-bottom: 2px solid rgba(229, 72, 179, 0.72);
  border-radius: 50%;
  transform: rotate(-8deg) translateY(-12px);
  pointer-events: none;
}

.mobile-terminal-chart-panel span {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 9px;
  border-radius: 4px;
  color: #f3e7ed;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 900;
}

body[data-page-key^="mobile-trade-"] .mobile-terminal-workspace {
  grid-template-columns: minmax(0, 0.86fr) minmax(156px, 1fr);
  gap: 14px;
  padding-top: 0;
}

body[data-page-key^="mobile-trade-"] .mobile-terminal-orderbook {
  min-height: 444px;
  padding: 0 10px 0 0;
  border-left: 0;
  border-right: 1px solid rgba(22, 119, 255, 0.12);
}

body[data-page-key^="mobile-trade-"] .mobile-terminal-orderbook .mobile-orderbook-row.ask span:first-child {
  color: #ffb4ab;
}

body[data-page-key^="mobile-trade-"] .mobile-terminal-orderbook .mobile-orderbook-row.bid span:first-child {
  color: #61de8a;
}

body[data-page-key^="mobile-trade-"] .mobile-last-price-stack .mobile-last-price {
  color: #61de8a;
}

body[data-page-key^="mobile-trade-"] .mobile-terminal-order-form {
  gap: 10px;
}

body[data-page-key^="mobile-trade-"] .mobile-terminal-field {
  color: #a9b8d0;
  font-weight: 900;
}

body[data-page-key^="mobile-trade-"] .mobile-terminal-field select,
body[data-page-key^="mobile-trade-"] .mobile-terminal-field input,
body[data-page-key^="mobile-trade-"] .mobile-terminal-money-field,
body[data-page-key^="mobile-trade-"] .mobile-terminal-select-card select {
  min-height: 48px;
  border-color: rgba(22, 119, 255, 0.18);
  border-radius: 2px;
  color: #f3e7ed;
  background: #101010;
}

body[data-page-key^="mobile-trade-"] .mobile-side-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(22, 119, 255, 0.18);
  border-radius: 2px;
  overflow: hidden;
}

body[data-page-key^="mobile-trade-"] .mobile-side-button {
  min-height: 58px;
  border: 0;
  border-radius: 0;
  background: #101010;
  color: #f3e7ed;
  font-size: 1.05rem;
}

body[data-page-key^="mobile-trade-"] .mobile-side-button.long.active,
body[data-page-key^="mobile-trade-"] .mobile-side-button.long:has(input:checked) {
  color: #062414;
  background: #61de8a;
}

body[data-page-key^="mobile-trade-"] .mobile-side-button.short.active,
body[data-page-key^="mobile-trade-"] .mobile-side-button.short:has(input:checked) {
  color: #31070b;
  background: #ff8b95;
}

body[data-page-key^="mobile-trade-"] .mobile-order-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page-key^="mobile-trade-"] .mobile-terminal-select-card {
  display: grid;
  gap: 6px;
  min-height: 0;
  padding: 0;
  border: 0;
  color: #a9b8d0;
  background: transparent;
  text-align: left;
}

body[data-page-key^="mobile-trade-"] .mobile-terminal-select-card select {
  width: 100%;
  padding: 0 8px;
}

.mobile-tp-sl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-tp-sl-grid label {
  display: grid;
  gap: 5px;
  color: #a9b8d0;
  font-size: 0.78rem;
  font-weight: 900;
}

.mobile-tp-sl-grid input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(22, 119, 255, 0.18);
  border-radius: 2px;
  color: #f3e7ed;
  background: #101010;
  text-align: center;
}

body[data-page-key^="mobile-trade-"] .mobile-terminal-submit {
  min-height: 58px;
  border-radius: 2px;
  color: #062414;
  background: #61de8a;
  box-shadow: 0 14px 26px rgba(97, 222, 138, 0.2);
  font-size: 1.05rem;
}

body[data-page-key^="mobile-trade-"] .mobile-terminal-history {
  margin: 0 14px 130px;
  border-radius: 6px;
}

@media (max-width: 430px) {
  .mobile-trade-topbar {
    padding-inline: 14px;
  }

  body[data-page-key^="mobile-trade-"] .mobile-terminal-console {
    padding-inline: 14px;
  }

  .mobile-terminal-price-panel {
    grid-template-columns: minmax(0, 1fr) minmax(128px, 0.8fr);
    gap: 10px;
  }

  .mobile-terminal-price-panel strong {
    font-size: clamp(2.18rem, 12vw, 3.1rem);
  }

  .mobile-terminal-price-panel dt,
  .mobile-terminal-price-panel dd {
    font-size: 0.8rem;
  }

  body[data-page-key^="mobile-trade-"] .mobile-terminal-workspace {
    grid-template-columns: minmax(0, 0.82fr) minmax(148px, 1fr);
    gap: 10px;
  }

  body[data-page-key^="mobile-trade-"] .mobile-terminal-orderbook {
    min-height: 420px;
    padding-right: 8px;
  }

  body[data-page-key^="mobile-trade-"] .mobile-terminal-orderbook .mobile-orderbook-row {
    min-height: 25px;
    font-size: 0.78rem;
  }
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(22, 119, 255, 0.18), transparent 28%),
    radial-gradient(circle at left top, rgba(22, 119, 255, 0.08), transparent 24%),
    var(--surface);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  line-height: 1.5;
}

.page-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(132px, auto) minmax(0, 1fr) max-content;
  align-items: center;
  gap: clamp(12px, 1.35vw, 26px);
  padding: 14px clamp(18px, 1.7vw, 28px) 13px;
  background: rgba(19, 19, 19, 0.86);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 10px;
}

.topnav {
  display: flex;
  gap: clamp(6px, 0.55vw, 10px);
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: visible;
  overflow-y: visible;
  scrollbar-width: none;
  color: var(--muted);
  align-items: center;
  padding: 0 2px;
}

.topnav::-webkit-scrollbar {
  display: none;
}

.topnav-link,
.topnav-trigger-link,
.topnav-trigger-toggle {
  color: inherit;
  font: inherit;
}

.topnav-link,
.topnav-group {
  flex: 0 0 auto;
}

.topnav-link,
.topnav-trigger-link,
.topnav-trigger-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  font-size: clamp(0.9rem, 0.82vw, 1rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.topnav-group {
  position: relative;
  z-index: 30;
}

.topnav-link {
  padding: 0 clamp(11px, 0.85vw, 16px);
  background: rgba(255, 255, 255, 0.018);
}

.topnav-trigger-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 38px;
  padding: 0 clamp(6px, 0.55vw, 8px) 0 clamp(8px, 0.75vw, 10px);
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.topnav-trigger-link {
  min-height: 36px;
  padding: 0 4px;
}

.topnav-trigger-toggle {
  min-height: 32px;
  min-width: 28px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.topnav-trigger-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.75;
}

.topnav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  min-width: 176px;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(24, 24, 24, 0.96);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow);
}

.topnav-menu a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
}

.topnav-group:hover .topnav-menu,
.topnav-group:focus-within .topnav-menu,
.topnav-group.is-open .topnav-menu {
  display: flex;
}

.topnav-link:hover,
.topnav-trigger-row:hover,
.topnav-menu a:hover,
  .card-links a:hover {
  color: var(--primary);
  background: rgba(22, 119, 255, 0.08);
}

.topnav-link.active,
.topnav-group.active .topnav-trigger-row {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(22, 119, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.08);
}

.topnav-group.is-open .topnav-trigger-row {
  color: var(--primary);
  background: rgba(22, 119, 255, 0.08);
  border-color: rgba(22, 119, 255, 0.22);
}

.topnav-menu-link.active {
  color: var(--text);
  background: rgba(22, 119, 255, 0.14);
  border: 1px solid rgba(22, 119, 255, 0.2);
}

.topbar-actions,
.action-row,
.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
}

.topbar-actions {
  flex: 0 0 auto;
  justify-self: end;
  min-width: max-content;
  gap: clamp(8px, 0.65vw, 12px);
  margin-left: 0;
}

.floating-support-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 140;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.95), rgba(22, 119, 255, 0.96));
  color: #1a1016;
  font-weight: 700;
  box-shadow: 0 18px 42px rgba(22, 119, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.floating-support-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(22, 119, 255, 0.34);
}

.floating-support-button.mobile {
  right: 16px;
  bottom: 92px;
  min-height: 52px;
  padding: 0 16px;
}

.floating-support-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(26, 16, 22, 0.12);
  font-size: 1rem;
}

.support-widget-shell {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

body.support-widget-open {
  overflow: hidden;
}

.support-widget-shell.hidden {
  display: none;
}

.support-widget-shell.mobile {
  z-index: 130;
}

.support-widget-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 6, 6, 0.44);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.support-widget {
  position: absolute;
  right: 24px;
  bottom: 96px;
  width: min(420px, calc(100vw - 32px));
  max-height: min(78vh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(22, 119, 255, 0.16);
  background: linear-gradient(180deg, rgba(33, 33, 33, 0.98), rgba(18, 18, 18, 0.99));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
}

.support-widget.mobile {
  inset: auto 0 0 0;
  width: 100%;
  max-width: none;
  max-height: min(84vh, 920px);
  border-radius: 28px 28px 0 0;
  right: auto;
  bottom: 0;
}

.support-widget-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.support-widget-header-copy {
  display: grid;
  gap: 6px;
}

.support-widget-thread {
  min-height: 260px;
  max-height: min(50vh, 520px);
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 6px 4px 6px 0;
}

.support-widget-empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  text-align: center;
  border-radius: 22px;
  border: 1px dashed rgba(22, 119, 255, 0.18);
  background: rgba(14, 14, 14, 0.56);
  color: var(--muted);
}

.support-widget-composer {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.support-widget-composer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.support-widget-composer-row textarea {
  min-height: 92px;
  max-height: 180px;
  resize: vertical;
}

.support-widget-send {
  min-width: 108px;
  min-height: 52px;
}

.support-widget-close {
  min-height: 44px;
}

.support-direct-chat {
  display: grid;
  gap: 18px;
  min-height: 620px;
}

.support-direct-chat .support-widget-thread {
  min-height: 360px;
  max-height: 58vh;
  padding: 18px;
  border-radius: 24px;
  background: rgba(8, 8, 8, 0.48);
}

.support-direct-chat.mobile {
  min-height: 560px;
}

.support-direct-chat.mobile .support-widget-thread {
  min-height: 340px;
  max-height: 54vh;
  padding: 12px;
}

.support-quick-links {
  margin-top: 18px;
}

.support-upload-zone.compact {
  min-height: 48px;
  border-radius: 16px;
}

.admin-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--outline);
}

.lang-chip {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  padding: 7px 11px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-chip.is-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #1a1016;
}

@media (max-width: 1540px) and (min-width: 981px) {
  .topbar {
    grid-template-columns: minmax(132px, auto) minmax(0, 1fr);
    grid-template-areas:
      "brand actions"
      "nav nav";
    row-gap: 12px;
    align-items: center;
  }

  .brand {
    grid-area: brand;
  }

  .topnav {
    grid-area: nav;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    overflow: visible;
  }

  .topbar-actions {
    grid-area: actions;
  }

  .topnav-link,
  .topnav-trigger-link,
  .topnav-trigger-toggle {
    min-height: 38px;
    font-size: 0.95rem;
  }

  .topnav-link {
    padding: 0 14px;
  }

  .topnav-trigger-row {
    min-height: 38px;
  }

  .primary-button,
  .ghost-button {
    min-height: 38px;
    padding-inline: 14px;
  }

  .user-badge {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.main-container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.admin-page-shell {
  background:
    radial-gradient(circle at top left, rgba(240, 192, 77, 0.1), transparent 22%),
    radial-gradient(circle at bottom right, rgba(240, 192, 77, 0.05), transparent 24%),
    #0d0d0d;
}

.admin-login-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 20%, rgba(22, 119, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(22, 119, 255, 0.1), transparent 32%),
    #07080d;
}

.admin-login-shell .page-shell {
  min-height: 100vh;
}

.admin-login-shell .main-container {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 32px 0;
}

.admin-login-terminal {
  width: 100%;
  min-height: min(760px, calc(100vh - 64px));
  display: grid;
  align-items: center;
  color: #f4f1eb;
}

.admin-login-frame {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 56px;
  padding: 30px;
  border: 1px solid rgba(78, 139, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(42, 47, 68, 0.55), rgba(12, 13, 20, 0.9)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 38px),
    #0b0d14;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52);
}

.admin-login-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(22, 119, 255, 0.16), transparent 45%, rgba(175, 198, 255, 0.08));
  opacity: 0.72;
}

.admin-login-brandbar,
.admin-login-grid {
  position: relative;
  z-index: 1;
}

.admin-login-brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
}

.admin-login-brand {
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.28rem;
  font-weight: 900;
  text-decoration: none;
}

.admin-login-led {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(97, 222, 138, 0.22);
  border-radius: 999px;
  color: #9df2b8;
  background: rgba(97, 222, 138, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 40px;
  align-items: end;
}

.admin-login-copy {
  display: grid;
  gap: 20px;
  max-width: 620px;
  padding-bottom: 18px;
}

.admin-login-kicker {
  margin: 0;
  color: #afc6ff;
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.admin-login-copy h1 {
  margin: 0;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.admin-login-copy p {
  max-width: 58ch;
  margin: 0;
  color: #aab6d4;
  font-size: 1.02rem;
  line-height: 1.8;
}

.admin-login-credential-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.admin-login-signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.admin-login-signal-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(78, 139, 255, 0.24);
  border-radius: 8px;
  color: #d7e1ff;
  background: rgba(22, 119, 255, 0.09);
  font-size: 0.84rem;
  font-weight: 850;
}

.admin-login-credential-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(240, 192, 77, 0.18);
  border-radius: 8px;
  color: #d9d1c2;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.88rem;
}

.admin-login-credential-strip strong {
  color: #f4f1eb;
  font-family: Consolas, "SFMono-Regular", monospace;
}

.admin-login-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(78, 139, 255, 0.24);
  border-radius: 8px;
  background: rgba(9, 11, 18, 0.92);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.admin-login-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 2px;
  color: #cbd7f5;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.82rem;
}

.admin-login-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #1677ff;
}

.admin-login-card-dot:nth-child(2) {
  background: #ffb4ab;
}

.admin-login-card-dot:nth-child(3) {
  margin-right: 8px;
  background: #61de8a;
}

.admin-login-card label {
  color: #d7e1ff;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-login-card input {
  min-height: 52px;
  border-color: rgba(78, 139, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  background: #0d1019;
  font-family: Consolas, "SFMono-Regular", monospace;
}

.admin-login-card input:focus {
  outline: 2px solid rgba(22, 119, 255, 0.32);
  outline-offset: 2px;
  border-color: rgba(78, 139, 255, 0.62);
}

.admin-login-submit {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #1677ff, #4e8bff);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(22, 119, 255, 0.26);
}

.admin-login-footnote {
  margin: 0;
  color: rgba(203, 215, 245, 0.68);
  font-size: 0.82rem;
  line-height: 1.6;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 30px 22px 26px;
  border-right: 1px solid rgba(240, 192, 77, 0.16);
  background: rgba(9, 9, 9, 0.96);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.admin-sidebar-brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #f4f1eb;
}

.admin-sidebar-copy {
  display: grid;
  gap: 12px;
}

.admin-sidebar-kicker {
  margin: 0;
  color: #f0c04d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-style: italic;
}

.admin-sidebar-text {
  margin: 0;
  color: #efe1bb;
  font-size: 0.98rem;
  line-height: 1.9;
  max-width: 24ch;
}

.admin-sidebar-nav {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
}

.admin-sidebar::-webkit-scrollbar {
  width: 10px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(240, 192, 77, 0.32);
  border-radius: 999px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 192, 77, 0.48);
}

.live-market-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 4px;
  flex-wrap: wrap;
}

.admin-sidebar-link {
  min-height: 56px;
  padding: 0 16px;
  border-radius: 20px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #efe7d5;
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
  border-color: rgba(240, 192, 77, 0.25);
  background: rgba(240, 192, 77, 0.08);
  color: #f0c04d;
}

.admin-sidebar-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid currentColor;
  flex-shrink: 0;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 28px;
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(240, 192, 77, 0.12);
}

.admin-topbar-eyebrow {
  margin-bottom: 4px;
  color: #f0c04d;
}

.admin-topbar-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.admin-main-container {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

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

.admin-quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-quick-link {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(240, 192, 77, 0.16);
  background: linear-gradient(180deg, rgba(27, 27, 27, 0.92), rgba(18, 18, 18, 0.96));
  display: grid;
  gap: 8px;
}

.admin-quick-link strong {
  color: #f0c04d;
  font-family: "Space Grotesk", sans-serif;
}

.admin-quick-link span {
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-grid,
.section-grid,
.trading-layout {
  display: grid;
  gap: 20px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.hero-panel,
.card,
.auth-card,
.page-hero,
.trading-panel {
  background: linear-gradient(180deg, rgba(42, 42, 42, 0.72), rgba(28, 27, 27, 0.96));
  border: 1px solid var(--outline);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 48px;
}

.hero-panel {
  padding: 32px;
}

.page-hero {
  padding: 28px;
  margin-bottom: 20px;
}

.page-hero.compact h1,
.hero-copy h1 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  max-width: 12ch;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.lead {
  color: var(--muted);
  font-size: 1rem;
  margin: 14px 0 0;
  max-width: 64ch;
}

.section-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-grid {
  gap: 16px;
}

.card,
.auth-card,
.trading-panel {
  padding: 24px;
}

.card h2,
.hero-panel h2,
.trading-panel h1,
.trading-panel h2,
.auth-card h1 {
  font-family: "Space Grotesk", sans-serif;
  margin-top: 0;
}

.feature-list,
.card-links {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.card-links a,
.data-table a {
  color: var(--primary);
  font-weight: 600;
}

.asset-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.stack-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.asset-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.asset-choice-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 141, 210, 0.12);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.asset-choice-card:hover,
.asset-choice-card.active {
  border-color: rgba(255, 141, 210, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
}

.primary-button,
.ghost-button,
.success-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.user-badge,
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  border: 1px solid var(--outline);
  white-space: nowrap;
}

.user-badge {
  background: rgba(22, 119, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.user-badge:hover,
.user-badge.active {
  border-color: rgba(22, 119, 255, 0.55);
  background: rgba(22, 119, 255, 0.16);
  color: var(--primary);
  transform: translateY(-1px);
}

.status-chip {
  background: rgba(42, 42, 42, 0.95);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-chip.success {
  border-color: rgba(97, 222, 138, 0.28);
  background: rgba(97, 222, 138, 0.1);
  color: var(--success);
}

.status-chip.danger {
  border-color: rgba(255, 117, 134, 0.28);
  background: rgba(255, 117, 134, 0.1);
  color: var(--danger);
}

.primary-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #610046;
}

.ghost-button {
  background: var(--surface-high);
  color: var(--text);
  border: 1px solid var(--outline);
}

.success-button {
  background: rgba(97, 222, 138, 0.18);
  color: var(--success);
}

.danger-button {
  background: rgba(255, 180, 171, 0.12);
  color: var(--danger);
}

.compact-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.deposit-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
}

.deposit-copy-row p {
  margin: 0;
  min-width: 0;
}

.deposit-copy-value {
  overflow-wrap: anywhere;
  color: var(--text);
}

.copy-success {
  border-color: rgba(97, 222, 138, 0.45);
  color: var(--success);
}

.deposit-upload-zone {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed rgba(244, 143, 210, 0.28);
  border-radius: 20px;
  background: rgba(244, 143, 210, 0.045);
  cursor: pointer;
}

.deposit-upload-zone:hover {
  border-color: rgba(244, 143, 210, 0.58);
  background: rgba(244, 143, 210, 0.075);
}

.deposit-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.deposit-upload-action {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #151515;
  font-weight: 800;
  line-height: 1;
}

.deposit-upload-file {
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.deposit-upload-preview,
.deposit-voucher-preview {
  width: min(240px, 100%);
  max-height: 180px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(244, 143, 210, 0.22);
  background: rgba(0, 0, 0, 0.36);
}

.deposit-voucher-preview-link {
  display: inline-flex;
  width: fit-content;
}

.table-card {
  overflow: hidden;
}

.table-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--muted);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 14px 10px;
  border-top: 1px solid rgba(86, 65, 75, 0.22);
}

.up {
  color: var(--success);
}

.down {
  color: var(--danger);
}

.auth-shell {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.auth-single {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: min(520px, 100%);
  display: grid;
  gap: 16px;
}

.signup-method-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.74);
}

.signup-method-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.signup-method-button.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #2a1021;
  box-shadow: 0 12px 30px rgba(216, 49, 165, 0.25);
}

.signup-method-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(244, 143, 210, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
}

.signup-method-panel[hidden] {
  display: none;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(86, 65, 75, 0.25);
  background: rgba(14, 14, 14, 0.9);
  color: var(--text);
  font: inherit;
}

select {
  appearance: none;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.flash {
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 18px;
  border: 1px solid var(--outline);
}

.flash-success {
  background: rgba(97, 222, 138, 0.12);
  color: var(--success);
}

.flash-error {
  background: rgba(255, 180, 171, 0.1);
  color: var(--danger);
}

.muted-text {
  color: var(--muted);
  margin: 0;
}

.detail-list,
.stack-form,
.admin-review-list,
.table-inline-form {
  display: grid;
  gap: 14px;
}

.trade-amount-helper {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(244, 143, 210, 0.18);
  border-radius: 18px;
  background: rgba(244, 143, 210, 0.06);
  color: var(--muted);
}

.trade-amount-helper p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.trade-amount-helper strong {
  color: var(--text);
}

.table-inline-form {
  min-width: 280px;
}

.review-card p {
  margin: 0;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(14, 14, 14, 0.52);
}

.review-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(14, 14, 14, 0.6);
  border: 1px solid rgba(86, 65, 75, 0.22);
}

.position-card {
  display: grid;
  gap: 14px;
}

.review-head-position {
  align-items: flex-start;
}

.position-title-group {
  display: grid;
  gap: 8px;
}

.position-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.position-side-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.position-side-chip.is-long {
  background: rgba(97, 222, 138, 0.12);
  color: var(--success);
  border: 1px solid rgba(97, 222, 138, 0.25);
}

.position-side-chip.is-short {
  background: rgba(255, 180, 171, 0.12);
  color: var(--danger);
  border: 1px solid rgba(255, 180, 171, 0.24);
}

.position-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.position-metric-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.position-metric {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(86, 65, 75, 0.18);
}

.position-metric span,
.position-detail-grid span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.position-metric strong,
.position-detail-grid strong {
  color: var(--text);
  font-size: 0.98rem;
}

.position-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.position-detail-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.position-detail-grid div {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.position-settlement-note {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(86, 65, 75, 0.18);
}

.kyc-detail-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.kyc-detail-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.kyc-detail-list strong {
  color: #f4f1eb;
  font-weight: 700;
}

.kyc-detail-list span,
.kyc-file-link {
  color: #f1c1d4;
  word-break: break-word;
}

.kyc-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  gap: 14px;
  margin-top: 14px;
}

.kyc-preview-link {
  display: block;
}

.kyc-preview-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(240, 192, 77, 0.2);
  background: rgba(0, 0, 0, 0.28);
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-card strong {
  font-size: 1.7rem;
  font-family: "Space Grotesk", sans-serif;
}

.market-value-updated {
  animation: marketValuePulse 0.8s ease;
  will-change: transform, opacity, color;
}

.market-value-polled {
  animation: marketValueHeartbeat 0.65s ease;
  will-change: transform, opacity;
}

@keyframes marketValuePulse {
  0% {
    color: var(--text);
    text-shadow: none;
    transform: translateY(0);
  }
  30% {
    color: var(--primary);
    text-shadow: 0 0 18px rgba(244, 143, 210, 0.4);
    transform: translateY(-1px);
  }
  100% {
    color: inherit;
    text-shadow: none;
    transform: translateY(0);
  }
}

@keyframes marketValueHeartbeat {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  35% {
    opacity: 0.9;
    transform: translateY(-1px) scale(1.012);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.trading-layout {
  grid-template-columns: 1.35fr 0.9fr;
}

.support-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  margin-bottom: 20px;
}

.chart-card {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.chart-head,
.chart-toolbar,
.chart-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.chart-readout {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(86, 65, 75, 0.18);
  background: rgba(14, 14, 14, 0.46);
}

.chart-toolbar label {
  min-width: 140px;
}

.chart-hidden-select {
  display: none;
}

.interval-switcher {
  display: grid;
  gap: 8px;
  min-width: 280px;
}

.interval-switcher > span {
  color: var(--muted);
  font-size: 0.95rem;
}

.interval-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interval-button {
  min-width: 54px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(86, 65, 75, 0.22);
  background: rgba(14, 14, 14, 0.68);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.interval-button:hover,
.interval-button.is-active {
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.24), rgba(22, 119, 255, 0.32));
  border-color: rgba(22, 119, 255, 0.35);
  color: var(--text);
  transform: translateY(-1px);
}

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

.candle-detail-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.candle-detail-pill {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(86, 65, 75, 0.22);
  background: rgba(14, 14, 14, 0.52);
}

.candle-detail-pill span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.candle-detail-pill strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.signal-pill {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(86, 65, 75, 0.22);
  background: rgba(14, 14, 14, 0.56);
}

.signal-pill span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signal-pill strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.signal-pill.buy strong {
  color: var(--success);
}

.signal-pill.sell strong {
  color: #ff8d86;
}

.signal-pill.neutral strong {
  color: var(--text);
}

.market-chart-wrap {
  position: relative;
  padding: 14px;
  border-radius: 20px;
  background: rgba(14, 14, 14, 0.65);
  border: 1px solid rgba(86, 65, 75, 0.22);
}

.market-chart-wrap canvas {
  display: block;
  width: 100%;
  height: 420px;
  border-radius: 16px;
  cursor: crosshair;
}

.chart-crosshair {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.chart-crosshair.visible {
  opacity: 1;
}

.chart-crosshair-x {
  left: 14px;
  right: 14px;
  height: 1px;
  border-top: 1px dashed rgba(22, 119, 255, 0.55);
}

.chart-crosshair-y {
  top: 14px;
  bottom: 14px;
  width: 1px;
  border-left: 1px dashed rgba(22, 119, 255, 0.55);
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 164px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(22, 119, 255, 0.28);
  background: rgba(19, 19, 19, 0.94);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-line;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.chart-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.shortcut-card {
  display: grid;
  gap: 8px;
}

.shortcut-card span {
  color: var(--muted);
}

.support-panel-head,
.conversation-line,
.message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.conversation-list,
.message-stream {
  display: grid;
  gap: 12px;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.conversation-link {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(86, 65, 75, 0.22);
  background: rgba(14, 14, 14, 0.5);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.conversation-link:hover,
.content-link-card:hover,
.conversation-link.active {
  border-color: rgba(22, 119, 255, 0.42);
  transform: translateY(-1px);
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-check input {
  width: auto;
  margin: 0;
}

.unread-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 76, 122, 0.12);
  border: 1px solid rgba(255, 76, 122, 0.28);
  color: #ff9dbd;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.unread-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: #ff4c7a;
  box-shadow: 0 0 0 4px rgba(255, 76, 122, 0.16);
}

.message-stream {
  max-height: 540px;
  overflow-y: auto;
  margin-bottom: 18px;
}

.admin-stream {
  max-height: 460px;
}

.admin-chat-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  min-height: calc(100vh - 170px);
}

.admin-chat-sidebar,
.admin-chat-panel {
  min-height: 0;
}

.admin-chat-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
}

.admin-chat-sidebar-head,
.admin-chat-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-chat-sidebar-head .eyebrow {
  margin-bottom: 8px;
}

.admin-chat-sidebar-head h2,
.admin-chat-thread-head h2 {
  margin: 0;
}

.admin-chat-sidebar-head .muted-text,
.admin-chat-thread-head .muted-text {
  margin: 6px 0 0;
}

.admin-chat-search {
  position: relative;
}

.admin-chat-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.admin-chat-search input {
  width: 100%;
  padding-left: 38px;
  background: rgba(11, 11, 11, 0.9);
}

.admin-chat-conversation-list {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
  align-content: start;
  grid-auto-rows: max-content;
}

.admin-chat-conversation {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  align-self: start;
}

.admin-chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #f7dcb4;
  background:
    radial-gradient(circle at top, rgba(255, 189, 93, 0.24), transparent 55%),
    linear-gradient(180deg, rgba(36, 32, 25, 0.95), rgba(20, 18, 17, 0.95));
  border: 1px solid rgba(255, 201, 120, 0.18);
  flex-shrink: 0;
}

.admin-chat-avatar.bubble {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.admin-chat-avatar.bubble.admin {
  color: #111;
  background:
    linear-gradient(180deg, rgba(255, 201, 120, 0.96), rgba(255, 172, 66, 0.94));
  border-color: rgba(255, 214, 153, 0.3);
}

.admin-chat-conversation-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.admin-chat-conversation-top,
.admin-chat-conversation-meta,
.admin-chat-thread-actions,
.admin-chat-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-chat-conversation-top strong {
  font-size: 0.98rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-chat-conversation-top .muted-text {
  flex: 0 0 auto;
  font-size: 0.82rem;
}

.admin-chat-conversation-bottom {
  display: block;
}

.admin-chat-conversation-bottom p,
.admin-chat-conversation-meta .muted-text {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-chat-conversation-bottom p {
  white-space: nowrap;
  line-height: 1.35;
  font-size: 0.84rem;
}

.admin-chat-conversation-meta {
  align-items: flex-start;
  min-width: 0;
}

.admin-chat-conversation-meta .muted-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
  font-size: 0.8rem;
  line-height: 1.35;
}

.admin-chat-count {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #111;
  background: linear-gradient(180deg, rgba(255, 201, 120, 0.96), rgba(255, 172, 66, 0.94));
}

.admin-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
  min-height: calc(100vh - 170px);
}

.admin-chat-thread-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-chat-thread-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-chat-thread-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 0.95rem;
  color: #f7dcb4;
  background:
    radial-gradient(circle at top, rgba(255, 189, 93, 0.24), transparent 55%),
    linear-gradient(180deg, rgba(36, 32, 25, 0.95), rgba(20, 18, 17, 0.95));
}

.admin-chat-thread-copy {
  min-width: 0;
}

.admin-chat-thread-copy h2 {
  font-size: 1.05rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-chat-thread-copy .muted-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-chat-stream {
  display: grid;
  gap: 14px;
  min-height: 0;
  max-height: none;
  margin-bottom: 0;
  padding-right: 4px;
  padding-block: 6px;
}

.admin-chat-message {
  display: flex;
  gap: 10px;
  align-items: end;
}

.admin-chat-message.user {
  justify-content: flex-start;
}

.admin-chat-message.admin {
  justify-content: flex-end;
}

.admin-chat-message.admin .admin-chat-message-stack {
  align-items: end;
}

.admin-chat-message-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: min(70%, 680px);
}

.admin-chat-message .message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: 0.82rem;
}

.admin-chat-message.admin .message-meta {
  justify-content: flex-end;
}

.admin-chat-message .message-meta strong,
.admin-chat-message .message-meta span {
  flex: 0 0 auto;
}

.admin-chat-message .message-bubble {
  padding: 12px 16px;
  border-radius: 18px;
}

.admin-chat-message.user .message-bubble {
  border-top-left-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.admin-chat-message.admin .message-bubble {
  border-top-right-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 201, 120, 0.16), rgba(255, 172, 66, 0.1));
  border-color: rgba(255, 201, 120, 0.22);
}

.admin-chat-message-actions {
  display: flex;
  justify-content: flex-end;
}

.support-recall-button,
.support-upload-button {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
}

.support-upload-button {
  position: relative;
  overflow: hidden;
}

.support-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.support-upload-zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 201, 120, 0.22);
  background: rgba(10, 10, 10, 0.65);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.support-upload-zone:hover,
.support-upload-zone.dragover {
  border-color: rgba(255, 201, 120, 0.45);
  background: rgba(255, 201, 120, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.support-upload-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.support-upload-zone [data-upload-label] {
  pointer-events: none;
  text-align: center;
}

.support-image-link {
  display: inline-flex;
  max-width: min(320px, 100%);
  cursor: zoom-in;
}

.support-image {
  max-width: min(320px, 100%);
  max-height: 240px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.support-recalled-note {
  font-style: italic;
  color: var(--muted);
}

.support-image-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(8px);
}

.support-image-modal.hidden {
  display: none;
}

.support-image-modal-media {
  max-width: min(92vw, 1120px);
  max-height: 86vh;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 90px rgba(0, 0, 0, 0.45);
  object-fit: contain;
  background: rgba(12, 12, 12, 0.95);
}

.support-image-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 12, 12, 0.82);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}

.admin-chat-composer {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(33, 33, 33, 0), rgba(33, 33, 33, 0.92) 24%);
}

.admin-chat-composer-field textarea {
  min-height: 88px;
  max-height: 180px;
  resize: vertical;
  background: rgba(10, 10, 10, 0.94);
}

.admin-chat-empty {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  color: var(--muted);
}

.admin-chat-empty h3,
.admin-chat-empty p {
  margin: 0;
}

.admin-chat-empty-orb {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background:
    radial-gradient(circle at top, rgba(255, 189, 93, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(29, 26, 22, 0.98), rgba(18, 16, 15, 0.98));
  border: 1px solid rgba(255, 201, 120, 0.18);
}

.admin-chat-conversation-list::-webkit-scrollbar,
.admin-chat-stream::-webkit-scrollbar {
  width: 8px;
}

.admin-chat-conversation-list::-webkit-scrollbar-thumb,
.admin-chat-stream::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 201, 120, 0.18);
}

.admin-chat-conversation-list::-webkit-scrollbar-track,
.admin-chat-stream::-webkit-scrollbar-track {
  background: transparent;
}

.message-bubble {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(86, 65, 75, 0.22);
  background: rgba(14, 14, 14, 0.62);
}

.message-bubble.user {
  background: rgba(22, 119, 255, 0.08);
}

.message-bubble.admin {
  background: rgba(97, 222, 138, 0.08);
}

.support-chat-thread {
  display: grid;
  gap: 18px;
}

.support-chat-stream {
  display: grid;
  gap: 14px;
  padding-right: 4px;
}

.support-chat-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.support-chat-message.user {
  align-items: end;
}

.support-chat-message-stack {
  display: grid;
  gap: 6px;
  max-width: min(72%, 680px);
}

.support-chat-message .message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.support-chat-message.user .message-meta {
  justify-content: flex-end;
}

.support-chat-message.user .message-bubble {
  border-top-right-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 201, 120, 0.16), rgba(255, 172, 66, 0.1));
  border-color: rgba(255, 201, 120, 0.22);
}

.support-chat-message.admin .message-bubble {
  border-top-left-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.support-chat-composer {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-hero,
.market-strip,
.landing-market-table,
.future-section,
.landing-footer {
  margin-bottom: 28px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.9fr);
  gap: 28px;
  align-items: center;
  min-height: 72vh;
}

.landing-hero-copy,
.promo-card,
.landing-market-table,
.feature-panel,
.landing-footer {
  background: linear-gradient(180deg, rgba(42, 42, 42, 0.72), rgba(28, 27, 27, 0.96));
  border: 1px solid var(--outline);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.landing-hero-copy {
  padding: 48px 40px;
}

.landing-hero-copy h1 {
  display: grid;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.3rem, 7vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.landing-hero-copy h1 span,
.future-copy h2 span {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-lead {
  max-width: 34rem;
  margin-top: 22px;
  font-size: 1.08rem;
}

.landing-signup-bar {
  margin-top: 28px;
  padding: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid rgba(86, 65, 75, 0.28);
}

.landing-signup-bar input {
  border: 0;
  background: transparent;
  padding: 0 18px;
}

.landing-signup-bar .primary-button {
  min-width: 150px;
}

.trust-row {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
}

.trust-row strong {
  color: var(--text);
}

.trust-avatars {
  display: flex;
  margin-left: 6px;
}

.trust-avatars span {
  width: 38px;
  height: 38px;
  margin-left: -8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #140810;
  border: 2px solid rgba(19, 19, 19, 0.95);
  background: linear-gradient(135deg, #ffe3f1, #8bbcff);
}

.promo-card {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 50% 24%, rgba(22, 119, 255, 0.28), transparent 24%),
    radial-gradient(circle at 60% 30%, rgba(22, 119, 255, 0.25), transparent 40%),
    linear-gradient(180deg, rgba(49, 18, 41, 0.75), rgba(20, 11, 19, 0.98));
}

.promo-card::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 22px;
  border: 1px solid rgba(22, 119, 255, 0.12);
  box-shadow: 0 0 40px rgba(22, 119, 255, 0.12);
}

.promo-chip,
.table-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.promo-chip {
  position: relative;
  z-index: 1;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: rgba(22, 119, 255, 0.12);
}

.promo-coin,
.earn-coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.promo-coin {
  position: absolute;
  inset: 26% auto auto 50%;
  transform: translateX(-50%);
  width: 138px;
  height: 138px;
  z-index: 1;
  color: #ffd9ef;
  font-size: 4.4rem;
  background: radial-gradient(circle at 30% 30%, #ff93cf, #8b0a64 68%);
  box-shadow: 0 0 48px rgba(22, 119, 255, 0.35);
}

.promo-wave {
  position: absolute;
  inset: auto 24px 116px;
  height: 88px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 10% 100%, rgba(22, 119, 255, 0.25), transparent 20%),
    radial-gradient(circle at 34% 100%, rgba(22, 119, 255, 0.36), transparent 24%),
    radial-gradient(circle at 58% 100%, rgba(22, 119, 255, 0.24), transparent 18%),
    radial-gradient(circle at 82% 100%, rgba(22, 119, 255, 0.3), transparent 20%);
  opacity: 0.95;
}

.promo-card h2,
.future-copy h2,
.feature-panel h3,
.landing-footer h3,
.landing-market-table h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.promo-card h2 {
  margin-top: 18px;
  font-size: 2.1rem;
}

.promo-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  max-width: 24rem;
  margin: 10px 0 18px;
}

.promo-button {
  position: relative;
  z-index: 1;
  width: 100%;
  background: rgba(53, 53, 52, 0.8);
}

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

.market-strip-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(42, 42, 42, 0.72);
  border: 1px solid rgba(86, 65, 75, 0.22);
}

.market-strip-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.market-strip-card h3 {
  margin: 10px 0 18px;
  font-size: 2rem;
  font-family: "Space Grotesk", sans-serif;
}

.sparkline-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  height: 48px;
}

.sparkline-bars span {
  border-radius: 4px;
}

.sparkline-bars span:nth-child(1) { height: 30%; }
.sparkline-bars span:nth-child(2) { height: 44%; }
.sparkline-bars span:nth-child(3) { height: 38%; }
.sparkline-bars span:nth-child(4) { height: 62%; }
.sparkline-bars span:nth-child(5) { height: 56%; }
.sparkline-bars span:nth-child(6) { height: 82%; }

.sparkline-bars.positive span {
  background: linear-gradient(180deg, rgba(97, 222, 138, 0.52), rgba(97, 222, 138, 0.92));
}

.sparkline-bars.negative span {
  background: linear-gradient(180deg, rgba(255, 180, 171, 0.56), rgba(255, 180, 171, 0.9));
}

.landing-market-table {
  padding: 30px 28px;
}

.landing-section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.landing-section-head a,
.feature-panel a {
  color: var(--primary);
  font-weight: 700;
}

.landing-tabs {
  margin-top: 12px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.94rem;
}

.landing-tabs .active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.asset-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #140810;
  font-weight: 800;
  background: linear-gradient(135deg, #ffc2e3, #ff7dc2);
}

.asset-cell small {
  display: block;
  color: var(--muted);
}

.table-pill {
  color: var(--text);
  background: rgba(53, 53, 52, 0.95);
}

.future-section {
  padding: 24px 0 8px;
}

.future-copy {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 720px;
}

.future-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.future-copy p {
  color: var(--muted);
  margin: 14px 0 0;
}

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

.feature-panel {
  padding: 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-panel p,
.landing-footer p {
  color: var(--muted);
}

.feature-wide {
  grid-column: span 2;
}

.feature-highlight {
  background:
    linear-gradient(180deg, rgba(64, 23, 52, 0.96), rgba(49, 18, 41, 0.98));
}

.feature-earn {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: center;
}

.feature-mark {
  font-size: 2rem;
  color: var(--primary);
}

.earn-coin {
  margin-left: auto;
  width: 132px;
  height: 132px;
  color: #ffe6f4;
  font-size: 3.8rem;
  background: radial-gradient(circle at 30% 30%, #ffbe77, #b54b00 68%);
  box-shadow: 0 0 42px rgba(255, 174, 86, 0.28);
}

.landing-footer {
  padding: 30px 28px;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 2fr);
  gap: 24px;
}

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

.landing-footer-links section {
  display: grid;
  gap: 10px;
}

.landing-footer-links h4 {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--primary);
}

.landing-footer-links a {
  color: var(--muted);
}

.message-bubble p {
  margin: 0;
  white-space: pre-wrap;
}

.message-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.content-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.content-body {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.content-body p {
  margin: 0;
  white-space: pre-wrap;
}

.mobile-shell .main-container {
  width: min(720px, calc(100% - 24px));
  padding-bottom: 110px;
}

.mobile-app-header {
  margin-bottom: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 24px;
  border: 1px solid rgba(86, 65, 75, 0.35);
  background: rgba(19, 19, 19, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.3);
}

.mobile-app-header strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  line-height: 1.05;
}

.mobile-app-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mobile-module-nav {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.mobile-module-nav a {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(86, 65, 75, 0.32);
  background: rgba(28, 27, 27, 0.82);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.mobile-module-nav a.active {
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.22), rgba(22, 119, 255, 0.32));
  color: var(--text);
}

.trade-switcher {
  margin-top: -4px;
}

body[data-page-key="mobile-trade-spot"] .mobile-app-header,
body[data-page-key="mobile-trade-futures"] .mobile-app-header,
body[data-page-key="mobile-trade-delivery"] .mobile-app-header {
  display: none;
}

body[data-page-key="mobile-trade-futures"] .mobile-app-nav {
  display: none;
}

body[data-page-key^="mobile-trade-"].mobile-shell .main-container,
body[data-page-key="mobile-trade-futures"].mobile-shell .main-container {
  width: min(100%, 760px);
  padding: 10px 6px 28px;
}

body[data-page-key="mobile-trade-futures"].mobile-shell .topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
}

body[data-page-key="mobile-trade-futures"].mobile-shell .brand {
  font-size: clamp(1.4rem, 7vw, 2rem);
  white-space: nowrap;
}

body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions {
  min-width: 0;
  justify-content: flex-end;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
}

body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions::-webkit-scrollbar {
  display: none;
}

body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .ghost-button,
body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .primary-button,
body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .user-badge,
body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .status-chip {
  min-height: 38px;
  padding: 8px 12px;
}

.mobile-trade-live-shell {
  display: grid;
  gap: 16px;
}

.mobile-exchange-screen {
  display: grid;
  gap: 8px;
  margin: 0 auto;
  color: var(--text);
}

.mobile-terminal-kyc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 4px 6px;
  padding: 14px 14px;
  border: 1px solid rgba(190, 128, 255, 0.58);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.2), transparent 25%),
    linear-gradient(135deg, rgba(126, 68, 255, 0.96), rgba(96, 25, 197, 0.92));
  box-shadow: 0 12px 32px rgba(125, 70, 255, 0.24);
  font-size: clamp(0.82rem, 3.5vw, 1rem);
  font-weight: 700;
}

.mobile-terminal-kyc a {
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
  white-space: nowrap;
  font-weight: 900;
}

.mobile-terminal-console {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 230px);
  padding: 10px 10px 12px;
  border: 1px solid rgba(126, 68, 255, 0.36);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(119, 45, 255, 0.28), transparent 7%, transparent 92%, rgba(119, 45, 255, 0.28)),
    radial-gradient(circle at 50% 18%, rgba(126, 68, 255, 0.18), transparent 34%),
    #050506;
  box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.08), 0 18px 55px rgba(0, 0, 0, 0.45);
}

.mobile-terminal-market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(126, 68, 255, 0.18);
}

.mobile-terminal-pair-line {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.05rem, 5vw, 1.55rem);
  font-weight: 900;
  white-space: nowrap;
}

.mobile-terminal-dollar {
  color: rgba(255, 255, 255, 0.7);
}

.mobile-terminal-pair-line strong {
  color: #ffffff;
}

.mobile-terminal-product {
  color: #b57cff;
}

.mobile-terminal-change {
  font-size: 0.74em;
}

.mobile-terminal-change.up {
  color: #58d68d;
}

.mobile-terminal-change.down {
  color: #ff6f8c;
}

.mobile-terminal-chart-jump {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(126, 68, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.25rem;
}

.mobile-terminal-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(128px, 1.05fr);
  gap: 12px;
  padding-top: 14px;
}

.mobile-terminal-order-form {
  display: grid;
  align-content: start;
  gap: 10px;
}

.mobile-terminal-order-form .mobile-terminal-field {
  display: grid;
  gap: 6px;
  color: rgba(255, 221, 238, 0.76);
  font-size: clamp(0.72rem, 3.4vw, 0.86rem);
  font-weight: 850;
}

.mobile-terminal-order-form .mobile-terminal-field select {
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid rgba(126, 68, 255, 0.48);
  border-radius: 10px;
  background: rgba(7, 7, 8, 0.96);
  color: #fff;
  font: inherit;
  font-weight: 900;
}

.mobile-contract-tabs,
.mobile-order-choice-grid,
.mobile-risk-row,
.mobile-side-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-contract-tabs a,
.mobile-terminal-select-card,
.mobile-risk-pill,
.mobile-side-button {
  min-height: 48px;
  padding: 9px;
  border: 1px solid rgba(126, 68, 255, 0.48);
  border-radius: 10px;
  background: rgba(24, 8, 51, 0.72);
  color: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 850;
}

.mobile-contract-tabs a.active {
  background: linear-gradient(135deg, #8e4dff, #b331e0);
  color: #fff;
  box-shadow: 0 0 24px rgba(126, 68, 255, 0.36);
}

.mobile-terminal-select-card {
  min-height: 40px;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.mobile-terminal-select-card span {
  width: auto;
}

.mobile-risk-pill {
  width: 100%;
}

.mobile-terminal-select-card strong {
  padding: 0 4px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  font-size: clamp(0.78rem, 3.35vw, 0.95rem);
  line-height: 1.2;
  white-space: nowrap;
}

.mobile-terminal-select-card em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.56);
}

.mobile-terminal-money-field {
  position: relative;
  min-height: 48px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(126, 68, 255, 0.48);
  border-radius: 10px;
  background: rgba(30, 8, 61, 0.7);
}

.mobile-terminal-money-field > span,
.mobile-terminal-money-field > small {
  min-width: 28px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.1rem;
  text-align: center;
}

.mobile-terminal-money-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-align: center;
  font: inherit;
  font-weight: 900;
}

.mobile-terminal-money-field input:disabled {
  opacity: 1;
}

.mobile-risk-pill {
  cursor: pointer;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.68);
}

.mobile-terminal-balance-panel {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.mobile-terminal-slider {
  width: 100%;
  accent-color: #8f53ff;
}

.mobile-slider-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
}

.mobile-terminal-balance-panel p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(0.68rem, 3.2vw, 0.86rem);
  line-height: 1.25;
}

.mobile-terminal-balance-panel strong {
  color: #fff;
  text-align: right;
  white-space: nowrap;
}

.mobile-estimated-asset-row {
  display: none !important;
}

.mobile-side-button input {
  display: none;
}

.mobile-side-button.long:has(input:checked) {
  background: linear-gradient(135deg, rgba(45, 184, 116, 0.88), rgba(20, 84, 52, 0.9));
  color: #fff;
}

.mobile-side-button.short:has(input:checked) {
  background: linear-gradient(135deg, rgba(255, 91, 117, 0.88), rgba(106, 28, 42, 0.9));
  color: #fff;
}

.mobile-terminal-submit {
  min-height: 46px;
  border-radius: 12px;
}

.mobile-terminal-orderbook {
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  align-content: start;
  gap: 6px;
  min-height: 570px;
  padding-left: 12px;
  border-left: 1px solid rgba(126, 68, 255, 0.22);
}

.mobile-terminal-orderbook .mobile-orderbook-head,
.mobile-terminal-orderbook .mobile-orderbook-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(58px, 0.72fr);
  align-items: center;
  gap: 8px;
}

.mobile-terminal-orderbook .mobile-orderbook-head {
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(0.64rem, 2.8vw, 0.82rem);
}

.mobile-terminal-orderbook .mobile-orderbook-row {
  min-height: 25px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.72rem, 3.4vw, 1rem);
}

.mobile-terminal-orderbook .mobile-orderbook-row span:last-child {
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
}

.mobile-terminal-orderbook .mobile-orderbook-row.ask span:first-child,
.mobile-terminal-orderbook .mobile-orderbook-row.bid span:first-child {
  color: #58d68d;
}

.mobile-terminal-orderbook .mobile-orderbook-list.bids .mobile-orderbook-row span:first-child {
  color: #ff6f8c;
}

.mobile-last-price-stack {
  padding: 8px 0;
  text-align: center;
  border-block: 1px solid rgba(126, 68, 255, 0.14);
}

.mobile-last-price-stack .mobile-last-price {
  display: block;
  padding: 0;
  border: 0;
  color: #ff5f70;
  font-size: clamp(1.28rem, 6vw, 2rem);
  line-height: 1;
}

.mobile-last-price-stack span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.64);
  font-family: "Space Grotesk", sans-serif;
}

.mobile-orderbook-lot-strip {
  margin-top: 8px;
  min-height: 36px;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  background: rgba(65, 18, 133, 0.42);
  color: #fff;
  font-weight: 800;
}

.mobile-orderbook-lot-strip span {
  justify-self: center;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.14);
}

.mobile-terminal-notice,
.mobile-terminal-history {
  margin: 8px 4px 0;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(22, 119, 255, 0.16);
  background: rgba(18, 18, 19, 0.72);
}

.mobile-terminal-history h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.mobile-position-strip {
  display: grid;
  gap: 8px;
}

.mobile-position-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(7, 7, 8, 0.86);
}

.mobile-position-chip div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mobile-position-close-form {
  flex: 0 0 auto;
}

.mobile-position-close-form button {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  padding: 0 10px;
  color: #1a0714;
  background: #8bbcff;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.mobile-terminal-close-hint {
  margin: 0;
  color: #a48a95;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 980px) {
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
  }

  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions {
    width: auto;
    justify-self: end;
    justify-content: flex-end;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}

.mobile-kyc-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(22, 119, 255, 0.34);
  background: linear-gradient(135deg, rgba(125, 70, 255, 0.78), rgba(22, 119, 255, 0.74));
  color: var(--text);
  font-weight: 700;
}

.mobile-kyc-callout a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.mobile-trade-terminal {
  padding: 14px;
  overflow: hidden;
  border-color: rgba(22, 119, 255, 0.26);
  background:
    radial-gradient(circle at top left, rgba(125, 70, 255, 0.18), transparent 36%),
    linear-gradient(160deg, rgba(22, 20, 24, 0.98), rgba(10, 10, 10, 0.96));
}

.mobile-terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(86, 65, 75, 0.32);
}

.mobile-terminal-symbol {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}

.mobile-terminal-symbol strong {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.15rem, 5vw, 1.7rem);
}

.mobile-terminal-product {
  color: var(--accent);
  font-weight: 800;
}

.mobile-chart-pill {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(22, 119, 255, 0.34);
  background: rgba(16, 16, 16, 0.86);
  color: var(--text);
  font-size: 1.4rem;
}

.mobile-terminal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(142px, 0.95fr);
  gap: 12px;
  padding-top: 14px;
}

.mobile-terminal-form {
  display: grid;
  gap: 10px;
}

.mobile-mode-tabs,
.mobile-control-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-mode-tabs a,
.mobile-control-row label,
.mobile-terminal-field {
  min-width: 0;
}

.mobile-mode-tabs a {
  min-height: 52px;
  padding: 10px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(125, 70, 255, 0.42);
  background: rgba(20, 12, 42, 0.7);
  color: var(--muted);
  font-weight: 800;
}

.mobile-mode-tabs a.active {
  background: linear-gradient(135deg, rgba(125, 70, 255, 0.96), rgba(22, 119, 255, 0.86));
  color: var(--text);
  box-shadow: 0 12px 28px rgba(125, 70, 255, 0.22);
}

.mobile-terminal-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.mobile-terminal-form input,
.mobile-terminal-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(125, 70, 255, 0.34);
  background: rgba(7, 7, 8, 0.96);
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.mobile-terminal-form input:disabled {
  color: var(--text);
  opacity: 1;
}

.mobile-terminal-balance {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(8, 8, 9, 0.78);
  border: 1px solid rgba(86, 65, 75, 0.32);
}

.mobile-terminal-balance p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.75rem;
}

.mobile-terminal-balance strong {
  color: var(--text);
  white-space: nowrap;
}

.mobile-terminal-submit {
  width: 100%;
  min-height: 46px;
}

.mobile-orderbook-panel {
  display: grid;
  grid-template-rows: auto 1fr auto 1fr;
  gap: 8px;
  min-height: 420px;
  padding: 10px;
  border-left: 1px solid rgba(86, 65, 75, 0.38);
  background: rgba(6, 6, 7, 0.42);
  border-radius: 16px;
}

.mobile-orderbook-head,
.mobile-orderbook-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(52px, 0.75fr);
  align-items: center;
  gap: 8px;
}

.mobile-orderbook-head {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.mobile-orderbook-list {
  display: grid;
  align-content: start;
  gap: 5px;
}

.mobile-orderbook-row {
  min-height: 23px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.7rem, 3.2vw, 0.92rem);
}

.mobile-orderbook-row span:last-child {
  color: var(--text);
  text-align: right;
}

.mobile-orderbook-row.ask span:first-child,
.mobile-last-price.down {
  color: #ff6f8c;
}

.mobile-orderbook-row.bid span:first-child {
  color: #58d68d;
}

.mobile-last-price {
  padding: 10px 0;
  display: block;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 6vw, 2.1rem);
  border-block: 1px solid rgba(86, 65, 75, 0.3);
}

.trade-switcher.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-profile-summary strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 1.8rem;
  font-family: "Space Grotesk", sans-serif;
}

.mobile-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.profile-tile {
  min-height: 150px;
}

.profile-tile strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 8px;
}

.profile-tile span {
  color: var(--muted);
}

.profile-cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

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

.profile-action-grid .profile-tile {
  min-height: 132px;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.profile-action-grid .profile-tile:hover {
  border-color: rgba(22, 119, 255, 0.42);
  background: rgba(22, 119, 255, 0.08);
  transform: translateY(-2px);
}

.mobile-balance-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.mobile-balance-strip strong {
  display: block;
  font-size: 2rem;
  font-family: "Space Grotesk", sans-serif;
  margin: 6px 0 4px;
}

.mobile-chart-wrap canvas {
  height: clamp(248px, 44vh, 320px);
}

.mobile-chart-wrap {
  padding: 10px;
  overflow: hidden;
}

.mobile-app-nav {
  position: sticky;
  bottom: 12px;
  z-index: 30;
  width: min(720px, calc(100% - 24px));
  margin: 0 auto 12px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  border-radius: 24px;
  border: 1px solid rgba(86, 65, 75, 0.35);
  background: rgba(19, 19, 19, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
}

.mobile-app-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.mobile-app-nav a.active {
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.22), rgba(22, 119, 255, 0.3));
  color: var(--text);
}

@media (max-width: 980px) {
  .mobile-shell .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 16px 12px;
  }

  .mobile-shell .brand {
    justify-self: start;
    font-size: 1.35rem;
    padding-right: 0;
  }

  .mobile-shell .topbar-actions {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    justify-content: space-between;
    gap: 8px;
  }

  .mobile-shell .topbar-actions .ghost-button,
  .mobile-shell .topbar-actions .primary-button,
  .mobile-shell .topbar-actions .user-badge,
  .mobile-shell .topbar-actions .status-chip {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .mobile-shell .admin-lang-switcher {
    min-width: 0;
    flex: 0 1 auto;
  }

  .mobile-shell .lang-chip {
    padding: 7px 10px;
  }

  .chart-head {
    align-items: stretch;
  }

  .chart-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 12px;
  }

  .chart-toolbar label {
    min-width: 0;
  }

  .chart-toolbar > button {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .chart-readout {
    font-size: 0.94rem;
  }

  .signal-strip,
  .candle-detail-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(240, 192, 77, 0.16);
  }

  .admin-topbar {
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-main-container {
    width: min(100% - 20px, 1320px);
  }

  .admin-overview-grid,
  .admin-quick-links {
    grid-template-columns: 1fr;
  }

  .profile-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    padding: 16px 18px;
  }

  .topnav {
    display: none;
  }

  .hero-grid,
  .section-grid,
  .section-grid.two-col,
  .section-grid.three-col,
  .trading-layout,
  .support-layout,
  .candle-detail-strip,
  .signal-strip,
  .mobile-shortcuts,
  .landing-hero,
  .market-strip,
  .future-grid,
  .landing-footer,
  .landing-footer-links,
  .feature-earn {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 32px 24px;
  }

  .support-widget {
    right: 16px;
    bottom: 84px;
    width: min(420px, calc(100vw - 20px));
  }

  .support-widget.mobile {
    width: 100%;
    right: 0;
    bottom: 0;
    max-height: calc(100vh - 24px);
    padding: 16px;
  }

  .support-widget-composer-row {
    grid-template-columns: 1fr;
  }

  .support-widget-send,
  .support-widget-close {
    width: 100%;
  }

  .main-container {
    width: min(100% - 20px, 1240px);
    padding-top: 20px;
  }

  .mobile-balance-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-app-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-app-meta {
    justify-content: flex-start;
  }

  .mobile-module-nav,
  .mobile-profile-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-app-nav {
    width: min(100% - 20px, 720px);
    gap: 6px;
    padding: 8px;
  }

  .mobile-app-nav a {
    min-height: 38px;
    font-size: 0.8rem;
  }

  .interval-switcher {
    min-width: 100%;
  }

  .trade-switcher {
    grid-template-columns: 1fr;
  }

  .trade-switcher.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mobile-trade-terminal {
    padding: 12px;
    border-radius: 22px;
  }

  .mobile-terminal-grid {
    grid-template-columns: minmax(0, 1fr) minmax(132px, 0.82fr);
    gap: 10px;
  }

  .mobile-control-row {
    grid-template-columns: 1fr;
  }

  .mobile-orderbook-panel {
    min-height: 390px;
    padding: 8px;
  }

  .mobile-terminal-form input,
  .mobile-terminal-form select {
    min-height: 42px;
    padding-inline: 10px;
  }

  .mobile-terminal-balance p {
    display: grid;
    gap: 2px;
  }

  .landing-hero-copy,
  .promo-card,
  .landing-market-table,
  .landing-footer,
  .feature-panel {
    padding: 24px 20px;
  }

  .landing-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-signup-bar {
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
  }

  .landing-signup-bar .primary-button {
    width: 100%;
  }

  .promo-card {
    min-height: 460px;
  }

  .promo-coin {
    width: 108px;
    height: 108px;
    font-size: 3.4rem;
  }

  .admin-chat-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .admin-chat-sidebar {
    grid-template-rows: auto auto 260px;
  }

  .admin-chat-message-stack {
    max-width: 100%;
  }

  .admin-chat-thread-head,
  .admin-chat-conversation-top,
  .admin-chat-conversation-meta,
  .admin-chat-composer-actions,
  .admin-chat-message .message-meta {
    flex-wrap: wrap;
  }
}

/* Keep the new mobile exchange terminal in the first viewport even after
   generic mobile-shell rules are applied later in the cascade. */
@media (max-width: 980px) {
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
  }

  body[data-page-key="mobile-trade-futures"].mobile-shell .topnav {
    display: none;
  }

  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions {
    width: auto;
    min-width: 0;
    justify-self: end;
    justify-content: flex-end;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions::-webkit-scrollbar {
    display: none;
  }

  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .admin-lang-switcher {
    flex: 0 0 auto;
  }

  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .ghost-button,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .primary-button,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .user-badge,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .status-chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 11px;
    font-size: 0.82rem;
  }

  body[data-page-key="mobile-trade-futures"].mobile-shell .main-container {
    width: 100%;
    padding: 6px 4px 28px;
  }
}

@media (max-width: 520px) {
  .mobile-exchange-screen {
    gap: 6px;
  }

  .mobile-terminal-kyc {
    margin: 0 8px 6px;
    padding: 12px 14px;
    font-size: clamp(0.9rem, 3.8vw, 1rem);
  }

  .mobile-terminal-console {
    border-radius: 0;
    min-height: calc(100svh - 128px);
    padding: 12px 8px 16px;
  }

  .mobile-terminal-workspace {
    grid-template-columns: minmax(0, 0.98fr) minmax(118px, 1.02fr);
    gap: 8px;
  }

  .mobile-terminal-order-form {
    gap: 8px;
  }

  .mobile-contract-tabs,
  .mobile-order-choice-grid,
  .mobile-risk-row,
  .mobile-side-buttons {
    gap: 7px;
  }

  .mobile-terminal-select-card,
  .mobile-terminal-money-field,
  .mobile-risk-pill,
  .mobile-side-button span {
    min-height: 46px;
    border-radius: 9px;
  }

  .mobile-order-choice-grid .mobile-terminal-select-card {
    padding: 7px 8px;
  }

  .mobile-order-choice-grid .mobile-terminal-select-card strong {
    font-size: clamp(0.66rem, 3vw, 0.82rem);
    letter-spacing: -0.03em;
  }

  .mobile-terminal-money-field input {
    font-size: clamp(0.84rem, 4vw, 1rem);
  }

  .mobile-terminal-balance-panel {
    gap: 8px;
    padding-top: 2px;
  }

  .mobile-terminal-balance-panel p {
    font-size: clamp(0.72rem, 3.2vw, 0.9rem);
  }

  .mobile-terminal-orderbook {
    min-height: 510px;
    padding-left: 10px;
  }

  .mobile-terminal-orderbook .mobile-orderbook-row {
    min-height: 23px;
  }

  .mobile-last-price-stack strong {
    font-size: clamp(1.25rem, 6vw, 1.7rem);
  }

  .mobile-terminal-history,
  .mobile-terminal-notice {
    margin-inline: 8px;
  }
}

/* Unified mobile app shell: keep the bottom tab bar everywhere while giving
   every /m/* screen the same premium dark-glass language as desktop. */
.mobile-shell {
  background:
    radial-gradient(circle at 80% 8%, rgba(22, 119, 255, 0.2), transparent 30%),
    linear-gradient(180deg, #111010 0%, #141112 48%, #0e0d0d 100%);
}

.mobile-shell .page-shell {
  min-height: 100svh;
  background:
    radial-gradient(circle at 10% 18%, rgba(22, 119, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(24, 21, 22, 0.92), rgba(10, 10, 10, 0.96));
}

.mobile-shell .main-container {
  width: min(720px, calc(100vw - 18px));
  padding: 18px 0 calc(142px + env(safe-area-inset-bottom));
}

.mobile-shell .page-hero.compact,
.mobile-shell .card,
.mobile-shell .review-card,
.mobile-shell .mobile-app-header {
  border-color: rgba(22, 119, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(36, 35, 35, 0.94), rgba(22, 21, 21, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(22, 119, 255, 0.18), transparent 30%);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mobile-shell .page-hero.compact {
  margin-bottom: 18px;
  padding: clamp(22px, 6vw, 36px);
  border-radius: 24px;
}

.mobile-shell .page-hero.compact h1 {
  font-size: clamp(2rem, 9vw, 3.7rem);
  letter-spacing: -0.065em;
}

.mobile-shell .page-hero.compact .lead {
  max-width: 36rem;
  color: #c7d8f2;
}

.mobile-app-header {
  position: sticky;
  top: 10px;
  z-index: 40;
  margin: 0 0 16px;
  border-radius: 22px;
}

.mobile-module-nav {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.mobile-module-nav::-webkit-scrollbar {
  display: none;
}

.mobile-module-nav a {
  flex: 0 0 auto;
  min-width: 118px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 999px;
  scroll-snap-align: start;
  background: rgba(18, 18, 18, 0.9);
  border-color: rgba(22, 119, 255, 0.12);
}

.mobile-module-nav a.active {
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.88), rgba(22, 119, 255, 0.88));
  color: #1c1017;
  box-shadow: 0 12px 26px rgba(22, 119, 255, 0.25);
}

.mobile-shell .section-grid,
.mobile-shell .section-grid.two-col,
.mobile-shell .section-grid.three-col,
.mobile-shell .mobile-shortcuts,
.mobile-shell .mobile-profile-grid,
.mobile-shell .admin-review-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mobile-shell .mobile-shortcuts {
  margin-bottom: 16px;
}

.mobile-shell .shortcut-card,
.mobile-shell .profile-tile {
  display: grid;
  min-height: 96px;
  align-content: center;
  gap: 8px;
  border-radius: 22px;
}

.mobile-shell .shortcut-card strong,
.mobile-shell .profile-tile strong,
.mobile-shell .stat-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.15rem, 5vw, 1.6rem);
}

.mobile-shell .chart-head,
.mobile-shell .chart-toolbar,
.mobile-shell .action-row,
.mobile-shell .pill-row,
.mobile-shell .review-head,
.mobile-shell .support-panel-head {
  gap: 12px;
}

.mobile-shell .chart-toolbar,
.mobile-shell .stack-form,
.mobile-shell .support-widget-composer,
.mobile-shell .asset-choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mobile-shell input,
.mobile-shell select,
.mobile-shell textarea {
  min-height: 52px;
  border-radius: 16px;
  border-color: rgba(22, 119, 255, 0.12);
  background: rgba(7, 7, 7, 0.92);
}

.mobile-shell .primary-button,
.mobile-shell .ghost-button,
.mobile-shell .danger-button {
  min-height: 48px;
  border-radius: 999px;
  justify-content: center;
}

.mobile-shell .market-chart-wrap {
  min-height: 260px;
  border-radius: 20px;
  overflow: hidden;
  background: #0b0a0b;
}

.mobile-shell .support-direct-chat,
.mobile-shell .mobile-profile-summary,
.mobile-shell .mobile-balance-strip {
  display: grid;
  gap: 14px;
}

.mobile-app-nav,
body[data-page-key="mobile-trade-futures"] .mobile-app-nav {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 120;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(720px, calc(100vw - 18px));
  margin: 0;
  transform: translateX(-50%);
  border-radius: 28px;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(22, 119, 255, 0.15);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mobile-app-nav a {
  min-height: 48px;
  white-space: nowrap;
}

.mobile-app-nav a.active {
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.72), rgba(22, 119, 255, 0.58));
  color: #fff;
}

.floating-support-button.mobile {
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 130;
}

body[data-page-key^="mobile-trade-"].mobile-shell .main-container,
body[data-page-key="mobile-trade-futures"].mobile-shell .main-container {
  width: min(760px, 100vw);
  padding: 6px 4px calc(132px + env(safe-area-inset-bottom));
}

body[data-page-key="mobile-trade-spot"] .mobile-app-header,
body[data-page-key="mobile-trade-futures"] .mobile-app-header,
body[data-page-key="mobile-trade-delivery"] .mobile-app-header {
  display: none;
}

@media (max-width: 520px) {
  .mobile-shell .main-container {
    width: min(100vw - 12px, 720px);
    padding-top: 12px;
  }

  .mobile-shell .topbar {
    padding-inline: 10px;
  }

  .mobile-shell .topbar-actions {
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .mobile-shell .topbar-actions::-webkit-scrollbar {
    display: none;
  }

  .mobile-app-header {
    border-radius: 20px;
    padding: 14px;
  }

  .mobile-module-nav a {
    min-width: 108px;
  }

  .mobile-app-nav {
    width: calc(100vw - 12px);
    padding: 8px;
    gap: 5px;
  }

  .mobile-app-nav a {
    min-height: 44px;
    font-size: 0.78rem;
    padding-inline: 6px;
  }

  .floating-support-button.mobile {
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    min-width: 58px;
    padding: 0 14px;
  }

  body[data-page-key^="mobile-trade-"].mobile-shell .main-container,
  body[data-page-key="mobile-trade-futures"].mobile-shell .main-container {
    padding-bottom: calc(126px + env(safe-area-inset-bottom));
  }

  body[data-page-key^="mobile-trade-"].mobile-shell .mobile-terminal-console,
  body[data-page-key="mobile-trade-futures"].mobile-shell .mobile-terminal-console {
    min-height: calc(100svh - 196px);
  }
}

/* Final mobile shell pass: mobile pages keep the PC visual language, but the
   header becomes an app chrome instead of trying to fit the desktop nav. */
@media (max-width: 980px) {
  .mobile-shell .topbar,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar {
    position: sticky;
    top: 0;
    z-index: 140;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
    padding: 12px 10px 10px;
    background:
      linear-gradient(180deg, rgba(18, 17, 18, 0.98), rgba(18, 17, 18, 0.9)),
      radial-gradient(circle at 100% 0%, rgba(22, 119, 255, 0.16), transparent 42%);
    border-bottom: 1px solid rgba(22, 119, 255, 0.1);
    backdrop-filter: blur(18px);
  }

  .mobile-shell .topnav,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topnav {
    display: none;
  }

  .mobile-shell .brand,
  body[data-page-key="mobile-trade-futures"].mobile-shell .brand {
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(1.55rem, 8vw, 2.45rem);
    line-height: 1;
    padding: 0;
    overflow: visible;
    text-overflow: clip;
  }

  .mobile-shell .topbar-actions,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 0 3px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .mobile-shell .topbar-actions::-webkit-scrollbar,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions::-webkit-scrollbar {
    display: none;
  }

  .mobile-shell .topbar-actions > *,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .mobile-shell .topbar-actions .admin-lang-switcher,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .admin-lang-switcher {
    min-width: max-content;
    gap: 3px;
    padding: 3px;
  }

  .mobile-shell .topbar-actions .lang-chip,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .lang-chip {
    min-width: 40px;
    min-height: 36px;
    padding: 0 10px;
  }

  .mobile-shell .topbar-actions .ghost-button,
  .mobile-shell .topbar-actions .primary-button,
  .mobile-shell .topbar-actions .user-badge,
  .mobile-shell .topbar-actions .status-chip,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .ghost-button,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .primary-button,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .user-badge,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .status-chip {
    min-height: 38px;
    max-width: 132px;
    padding: 0 13px;
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-shell .topbar-actions .primary-button {
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.94), rgba(22, 119, 255, 0.9));
  }

  .mobile-shell .topbar-actions .status-chip,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .status-chip {
    display: none;
  }

  .mobile-shell .topbar-actions .user-badge,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .user-badge {
    max-width: 104px;
  }
}

@media (max-width: 430px) {
  .mobile-shell .topbar,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar {
    padding-inline: 8px;
  }

  .mobile-shell .topbar-actions .ghost-button,
  .mobile-shell .topbar-actions .primary-button,
  .mobile-shell .topbar-actions .user-badge,
  .mobile-shell .topbar-actions .status-chip,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .ghost-button,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .primary-button,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .user-badge,
  body[data-page-key="mobile-trade-futures"].mobile-shell .topbar-actions .status-chip {
    max-width: 112px;
    min-height: 36px;
    padding-inline: 11px;
  }
}

/* Mobile is a separate app surface: no desktop top navigation or mobile
   title strip, only the bottom tab bar persists. */
.mobile-shell .topbar,
.mobile-shell .mobile-app-header {
  display: none !important;
}

.mobile-shell .main-container {
  padding-top: 10px;
}

body[data-page-key="mobile-home"].mobile-shell .main-container {
  width: min(720px, 100vw);
  padding: 10px 10px calc(132px + env(safe-area-inset-bottom));
}

/* Phone bottom navigation hardening. The mobile app uses a fixed five-tab
   shell; keep it independent from Tailwind utility drift and stale mojibake
   labels in older templates. */
.mobile-shell .mobile-app-nav {
  display: block !important;
  left: max(10px, env(safe-area-inset-left)) !important;
  right: max(10px, env(safe-area-inset-right)) !important;
  bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  width: auto !important;
  max-width: 520px;
  margin-inline: auto !important;
  transform: none !important;
  padding: 8px !important;
  border-radius: 28px !important;
  background: rgba(8, 7, 8, 0.94) !important;
  border: 1px solid rgba(22, 119, 255, 0.12) !important;
  box-shadow: 0 -18px 45px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.mobile-shell .mobile-app-nav > div {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 3px !important;
  height: auto !important;
  padding: 0 !important;
}

.mobile-shell .mobile-app-nav a {
  display: grid !important;
  place-items: center !important;
  min-width: 0 !important;
  min-height: 58px !important;
  width: 100% !important;
  padding: 7px 2px !important;
  border-radius: 22px !important;
  color: #a9b8d0 !important;
  text-decoration: none !important;
  white-space: normal !important;
  overflow: hidden !important;
}

.mobile-shell .mobile-app-nav a .material-symbols-outlined {
  margin: 0 0 3px !important;
  font-size: 25px !important;
  line-height: 1 !important;
}

.mobile-shell .mobile-app-nav a span:last-child {
  display: block !important;
  max-width: 100% !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

.mobile-shell .mobile-app-nav a span:last-child::after {
  content: none !important;
  display: none !important;
}

.mobile-shell .mobile-app-nav a[href="/m/home"] span:last-child::after { content: "棣栭〉"; }
.mobile-shell .mobile-app-nav a[href="/m/markets"] span:last-child::after { content: "琛屾儏"; }
.mobile-shell .mobile-app-nav a[href^="/m/trade"] span:last-child::after { content: "浜ゆ槗"; }
.mobile-shell .mobile-app-nav a[href="/m/assets"] span:last-child::after { content: "璧勪骇"; }
.mobile-shell .mobile-app-nav a[href="/m/profile"] span:last-child::after { content: "鎴戠殑"; }

.mobile-shell .mobile-app-nav a.active,
.mobile-shell .mobile-app-nav a[class*="bg-[#0b5cff]"] {
  color: #fff !important;
  background: radial-gradient(circle at 50% 0%, rgba(22, 119, 255, 0.5), rgba(22, 119, 255, 0.55)) !important;
  box-shadow: 0 12px 28px rgba(22, 119, 255, 0.3) !important;
}

.mobile-shell a[href="/m/support"].fixed {
  font-size: 18px !important;
  font-weight: 900;
  min-width: 68px;
  min-height: 68px;
  display: grid;
  place-items: center;
}

.mobile-shell a[href="/m/support"].fixed::after {
  content: none !important;
  display: none !important;
}

.mobile-home-screen {
  display: grid;
  gap: 14px;
  color: var(--text);
}

.mobile-home-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mobile-home-shortcut-grid a {
  display: grid;
  place-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 82px;
  padding: 10px 4px;
  border-radius: 24px;
  text-decoration: none;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(22, 119, 255, 0.12), transparent 64%),
    rgba(28, 27, 27, 0.86);
  border: 1px solid rgba(22, 119, 255, 0.1);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
}

.mobile-home-shortcut-grid .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--accent-soft);
  background: rgba(22, 119, 255, 0.1);
  border: 1px solid rgba(22, 119, 255, 0.1);
  font-size: 25px;
}

.mobile-home-shortcut-grid b {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.82rem;
}

.mobile-home-stage,
.mobile-home-trade-desk,
.mobile-home-market-board,
.mobile-home-wallet-card,
.mobile-home-recent {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(22, 119, 255, 0.13);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(22, 119, 255, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(36, 35, 35, 0.92), rgba(15, 14, 15, 0.96));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mobile-home-stage {
  min-height: calc(100svh - 122px);
  padding: 16px;
  align-content: start;
  display: grid;
  gap: 14px;
}

.mobile-home-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 22px;
  background: rgba(10, 10, 10, 0.58);
  border: 1px solid rgba(22, 119, 255, 0.1);
}

.mobile-home-status strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.25rem, 7vw, 2rem);
  line-height: 1.05;
}

.mobile-home-status p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.mobile-home-kicker {
  display: inline-flex;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.mobile-home-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 74px;
  padding: 10px 12px;
  border-radius: 18px;
  text-align: center;
  color: var(--text);
  background: rgba(22, 119, 255, 0.11);
  border: 1px solid rgba(22, 119, 255, 0.16);
  text-decoration: none;
  font-weight: 900;
}

.mobile-home-pill span {
  color: var(--muted);
  font-size: 0.72rem;
}

.mobile-home-market-hero {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
  min-height: 210px;
  background:
    linear-gradient(135deg, rgba(12, 11, 12, 0.96), rgba(31, 18, 29, 0.88)),
    radial-gradient(circle at 85% 22%, rgba(244, 87, 180, 0.22), transparent 36%);
  border: 1px solid rgba(22, 119, 255, 0.2);
}

.mobile-home-market-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.mobile-home-currency-mark {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.7rem;
  line-height: 1;
}

.mobile-home-market-top strong {
  min-width: 0;
  font-size: clamp(1.55rem, 8vw, 2.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-home-mini-chart {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--accent);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(22, 119, 255, 0.16);
  font-size: 1.4rem;
  font-weight: 900;
  transform: rotate(-18deg);
}

.mobile-home-price-line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.mobile-home-price-line span {
  color: var(--muted);
  font-weight: 800;
}

.mobile-home-price-line strong {
  font-size: clamp(2rem, 12vw, 3.5rem);
  line-height: 0.95;
}

.mobile-home-market-hero .sparkline-bars {
  height: 52px;
  gap: 7px;
}

.mobile-home-trade-desk,
.mobile-home-market-board,
.mobile-home-wallet-card,
.mobile-home-recent {
  padding: 16px;
}

.mobile-home-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-home-tabs a,
.mobile-home-order-tile {
  min-height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--text);
  background: rgba(8, 8, 8, 0.62);
  border: 1px solid rgba(22, 119, 255, 0.12);
  font-weight: 900;
}

.mobile-home-tabs a.active,
.mobile-home-order-tile.primary {
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.86), rgba(22, 119, 255, 0.74));
  color: #fff;
  box-shadow: 0 18px 34px rgba(22, 119, 255, 0.22);
}

.mobile-home-order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-home-order-tile {
  justify-items: start;
  align-content: center;
  padding: 14px;
  gap: 5px;
}

.mobile-home-order-tile span {
  color: var(--muted);
  font-size: 0.82rem;
}

.mobile-home-order-tile.primary span {
  color: rgba(255, 255, 255, 0.8);
}

.mobile-home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.mobile-home-section-head h2 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.mobile-home-section-head a {
  color: var(--accent-soft);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 900;
}

.mobile-home-market-list,
.mobile-home-trade-list {
  display: grid;
  gap: 8px;
}

.mobile-home-market-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  background: rgba(8, 8, 8, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-home-asset-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--accent-soft);
  font-weight: 900;
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.16), rgba(255, 184, 77, 0.08));
  border: 1px solid rgba(22, 119, 255, 0.13);
}

.mobile-home-asset-copy {
  display: grid;
  min-width: 0;
}

.mobile-home-asset-copy strong,
.mobile-home-asset-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-home-asset-copy small {
  color: var(--muted);
}

.mobile-home-row-price {
  font-weight: 900;
  white-space: nowrap;
}

.mobile-home-wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mobile-home-wallet-grid > div,
.mobile-home-trade-row {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(8, 8, 8, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-home-wallet-grid span,
.mobile-home-trade-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.mobile-home-wallet-grid strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-home-trade-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.mobile-home-trade-row strong {
  grid-column: 1 / -1;
}

.mobile-home-trade-row b {
  color: var(--accent-soft);
}

.mobile-home-auth-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 430px) {
  body[data-page-key="mobile-home"].mobile-shell .main-container {
    padding-inline: 6px;
  }

  .mobile-home-stage,
  .mobile-home-trade-desk,
  .mobile-home-market-board,
  .mobile-home-wallet-card,
  .mobile-home-recent {
    border-radius: 24px;
  }

  .mobile-home-stage {
    min-height: calc(100svh - 114px);
    padding: 12px;
  }

  .mobile-home-status {
    padding: 12px;
  }

  .mobile-home-market-hero {
    min-height: 190px;
    padding: 15px;
  }

  .mobile-home-market-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .mobile-home-market-row .status-chip {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .mobile-home-wallet-grid {
    grid-template-columns: 1fr;
  }
}

.mobile-home-kyc-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.22), rgba(22, 119, 255, 0.34));
  border: 1px solid rgba(22, 119, 255, 0.22);
}

.mobile-home-kyc-banner span {
  min-width: 0;
  color: rgba(255, 235, 247, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
}

.mobile-home-kyc-banner b {
  display: block;
  color: #fff;
  font-size: 0.88rem;
}

.mobile-home-kyc-banner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-home-terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-home-terminal-symbol {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.mobile-home-terminal-symbol strong {
  font-size: clamp(1.35rem, 7vw, 2rem);
  line-height: 1;
  white-space: nowrap;
}

.mobile-home-terminal-symbol em {
  color: var(--accent-soft);
  font-style: normal;
  font-weight: 900;
}

.mobile-home-terminal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.mobile-home-ticket,
.mobile-home-book {
  min-width: 0;
  padding: 12px;
  border-radius: 20px;
  background: rgba(5, 5, 5, 0.62);
  border: 1px solid rgba(22, 119, 255, 0.1);
}

.mobile-home-ticket {
  display: grid;
  gap: 10px;
}

.mobile-home-ticket-tabs,
.mobile-home-ticket-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-home-ticket-tabs a,
.mobile-home-ticket-row button {
  min-height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(22, 119, 255, 0.2);
  color: #fff;
  background: rgba(24, 12, 32, 0.72);
  text-decoration: none;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.mobile-home-ticket-tabs a.active {
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.9), rgba(22, 119, 255, 0.76));
  box-shadow: 0 12px 28px rgba(22, 119, 255, 0.2);
}

.mobile-home-ticket-row button {
  font: inherit;
  cursor: pointer;
}

.mobile-home-ticket-row span,
.mobile-home-ticket-input span,
.mobile-home-ticket-meta span {
  color: var(--muted);
}

.mobile-home-ticket-input {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(22, 119, 255, 0.12);
}

.mobile-home-ticket-input b {
  font-size: 1rem;
}

.mobile-home-risk-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.mobile-home-risk-row::before {
  content: "";
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.18));
}

.mobile-home-ticket-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  align-items: center;
  font-size: 0.8rem;
}

.mobile-home-book {
  display: grid;
  gap: 8px;
}

.mobile-home-book-head,
.mobile-home-book .mobile-orderbook-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.mobile-home-book-head {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.mobile-home-book-side {
  display: grid;
  gap: 4px;
}

.mobile-home-book .mobile-orderbook-row {
  font-size: 0.82rem;
  font-weight: 900;
}

.mobile-home-book .mobile-orderbook-row.ask span:first-child {
  color: #ff7c8a;
}

.mobile-home-book .mobile-orderbook-row.bid span:first-child {
  color: #6ee7a2;
}

.mobile-home-book-price {
  padding: 4px 0;
  text-align: center;
  color: #ff6d76;
  font-size: clamp(1.45rem, 8vw, 2.1rem);
  line-height: 1;
}

@media (max-width: 430px) {
  .mobile-home-terminal-grid {
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1fr);
    gap: 8px;
  }

  .mobile-home-terminal-symbol {
    gap: 5px;
  }

  .mobile-home-terminal-symbol .status-chip {
    padding-inline: 8px;
    min-height: 30px;
  }

  .mobile-home-ticket,
  .mobile-home-book {
    padding: 9px;
    border-radius: 17px;
  }

  .mobile-home-ticket-tabs a,
  .mobile-home-ticket-row button {
    min-height: 38px;
    font-size: 0.83rem;
  }

  .mobile-home-ticket-input {
    padding: 8px;
  }

  .mobile-home-ticket-input b {
    font-size: 0.88rem;
  }

  .mobile-home-book .mobile-orderbook-row {
    font-size: 0.74rem;
  }

  .mobile-home-book-side .mobile-orderbook-row:nth-child(n+5) {
    display: none;
  }

  .mobile-home-stage {
    gap: 10px;
  }

  .mobile-home-ticket {
    gap: 7px;
  }

  .mobile-home-ticket-input {
    gap: 2px;
  }

  .mobile-home-risk-row {
    font-size: 0.64rem;
  }

  .mobile-home-ticket-meta {
    font-size: 0.7rem;
  }
}

/* Mobile home v71: tighter first viewport, working filters, and app-like
   controls tuned for 390px phones. */
body[data-page-key="mobile-home"].mobile-shell {
  padding-bottom: calc(116px + env(safe-area-inset-bottom));
}

body[data-page-key="mobile-home"].mobile-shell > a[href="/m/support"].fixed {
  display: none !important;
}

.mobile-home-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: max(8px, env(safe-area-inset-top)) 16px 8px;
  background: linear-gradient(180deg, rgba(16, 15, 16, 0.94), rgba(16, 15, 16, 0.66));
  border-bottom: 1px solid rgba(22, 119, 255, 0.08);
  backdrop-filter: blur(18px);
}

.mobile-home-brand {
  justify-self: center;
  min-width: 0;
  color: var(--primary);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.055em;
}

.mobile-home-icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: var(--primary);
  background: rgba(28, 27, 27, 0.84);
  border: 1px solid rgba(22, 119, 255, 0.12);
}

body[data-page-key="mobile-home"].mobile-shell .mobile-home-screen {
  width: min(720px, 100vw);
  margin: 0 auto;
  padding: 74px 12px 26px;
}

.mobile-home-account-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: rgba(8, 8, 8, 0.56);
  border: 1px solid rgba(22, 119, 255, 0.12);
}

.mobile-home-account-panel strong,
.mobile-home-account-panel small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-home-account-panel strong {
  margin-top: 5px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
}

.mobile-home-account-panel small {
  color: var(--muted);
  font-weight: 700;
}

.mobile-home-status-pill {
  display: grid;
  min-width: 82px;
  min-height: 54px;
  place-items: center;
  padding: 8px 12px;
  border-radius: 18px;
  color: var(--danger);
  background: rgba(255, 180, 171, 0.1);
  border: 1px solid rgba(255, 180, 171, 0.16);
  text-transform: uppercase;
}

.mobile-home-status-pill span {
  font-size: 0.68rem;
  font-weight: 900;
  color: var(--muted);
}

.mobile-home-status-pill b {
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
}

.mobile-home-status-pill.is-good {
  color: var(--success);
  background: rgba(97, 222, 138, 0.1);
  border-color: rgba(97, 222, 138, 0.18);
}

.mobile-home-hero-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  min-height: 258px;
  background:
    linear-gradient(145deg, rgba(11, 10, 11, 0.96), rgba(33, 20, 30, 0.9)),
    radial-gradient(circle at 94% 12%, rgba(22, 119, 255, 0.24), transparent 34%);
  border: 1px solid rgba(22, 119, 255, 0.18);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mobile-home-hero-card h1 {
  margin: 6px 0 0;
  max-width: 11ch;
  color: #fff;
  font-size: clamp(2rem, 11vw, 3.35rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.mobile-home-hero-card .mobile-home-mini-chart {
  width: 44px;
  height: 44px;
  transform: none;
}

.mobile-home-price-line em {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-home-price-line em.up {
  color: var(--success);
}

.mobile-home-price-line em.down {
  color: var(--danger);
}

.mobile-home-sparkline {
  display: grid;
  grid-template-columns: repeat(18, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  height: 52px;
  padding: 8px 0 0;
}

.mobile-home-sparkline i {
  display: block;
  min-height: 8px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, rgba(97, 222, 138, 0.95), rgba(22, 119, 255, 0.22));
}

.mobile-home-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-home-buy,
.mobile-home-sell {
  display: grid;
  min-height: 48px;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
}

.mobile-home-buy {
  color: #082010;
  background: linear-gradient(135deg, #7efba4, #28d978);
}

.mobile-home-sell {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(22, 119, 255, 0.14);
}

.mobile-home-stage {
  min-height: auto;
  padding: 12px;
}

.mobile-home-shortcut-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mobile-home-shortcut-grid a {
  min-height: 92px;
  align-content: center;
}

.mobile-home-shortcut-grid small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(220, 191, 203, 0.78);
  font-size: 0.68rem;
  font-weight: 800;
}

.mobile-home-terminal-grid {
  grid-template-columns: minmax(0, 1fr) minmax(132px, 0.74fr);
}

.mobile-home-slider {
  width: 100%;
  accent-color: var(--primary);
}

.mobile-home-product-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mobile-home-product-rail a {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 14px 10px;
  border-radius: 22px;
  color: var(--text);
  background: rgba(28, 27, 27, 0.78);
  border: 1px solid rgba(22, 119, 255, 0.1);
}

.mobile-home-product-rail .material-symbols-outlined {
  color: var(--primary);
}

.mobile-home-product-rail strong,
.mobile-home-product-rail small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-home-product-rail small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.mobile-home-search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-bottom: 10px;
  padding: 0 14px;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(8, 8, 8, 0.58);
  border: 1px solid rgba(22, 119, 255, 0.1);
}

.mobile-home-search input {
  min-height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.mobile-home-filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-home-filter-row button {
  min-height: 40px;
  border: 1px solid rgba(22, 119, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(8, 8, 8, 0.52);
  font: inherit;
  font-weight: 900;
}

.mobile-home-filter-row button.active {
  color: #1c1017;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}

.mobile-home-empty {
  margin: 8px 0 0;
  padding: 16px;
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(8, 8, 8, 0.48);
  border: 1px dashed rgba(22, 119, 255, 0.18);
}

@media (max-width: 430px) {
  body[data-page-key="mobile-home"].mobile-shell .mobile-home-screen {
    padding-inline: 8px;
  }

  .mobile-home-topbar {
    padding-inline: 12px;
  }

  .mobile-home-hero-card {
    min-height: 236px;
    padding: 15px;
  }

  .mobile-home-terminal-grid {
    grid-template-columns: minmax(0, 1fr) minmax(118px, 0.64fr);
  }

  .mobile-home-product-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-home-product-rail a {
    padding-inline: 8px;
  }

  .mobile-home-ticket-tabs a,
  .mobile-home-ticket-row button {
    min-height: 36px;
    font-size: 0.76rem;
  }

  .mobile-home-book-price {
    font-size: clamp(1.22rem, 7vw, 1.72rem);
  }
}

/* Mobile trade v73 bottom-nav final guard. The trade screen is intentionally
   dense, so keep the five-tab chrome immune to Tailwind utility classes and
   external icon-font loading delays. */
body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav {
  display: block !important;
  position: fixed !important;
  left: max(10px, env(safe-area-inset-left)) !important;
  right: max(10px, env(safe-area-inset-right)) !important;
  bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  width: auto !important;
  max-width: 520px !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 7px !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  background: rgba(8, 7, 8, 0.96) !important;
  border: 1px solid rgba(22, 119, 255, 0.14) !important;
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.74), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav > div {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: center !important;
  gap: 3px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
}

body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav a {
  display: grid !important;
  grid-template-rows: 24px 14px !important;
  place-items: center !important;
  gap: 3px !important;
  min-width: 0 !important;
  width: 100% !important;
  min-height: 55px !important;
  padding: 6px 2px !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  text-decoration: none !important;
}

body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav a[class*="bg-[#0b5cff]"],
body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav a.active {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.82), rgba(22, 119, 255, 0.58)) !important;
}

body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav a .material-symbols-outlined {
  display: grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: currentColor !important;
  font-size: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav a .material-symbols-outlined::before {
  display: block !important;
  color: currentColor !important;
  font: 700 21px/1 Arial, sans-serif !important;
}

body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav a[href="/m/home"] .material-symbols-outlined::before { content: "\2302" !important; }
body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav a[href="/m/markets"] .material-symbols-outlined::before { content: "\25A5" !important; }
body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav a[href^="/m/trade"] .material-symbols-outlined::before { content: "\21C4" !important; }
body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav a[href="/m/assets"] .material-symbols-outlined::before { content: "\25A3" !important; }
body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav a[href="/m/profile"] .material-symbols-outlined::before { content: "\25C9" !important; }

body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav a span:last-child {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 14px !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: currentColor !important;
  font-size: 0 !important;
  line-height: 14px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav a span:last-child::before {
  display: block !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 14px !important;
  letter-spacing: 0 !important;
}

body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav a[href="/m/home"] span:last-child::before { content: "棣栭〉" !important; }
body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav a[href="/m/markets"] span:last-child::before { content: "琛屾儏" !important; }
body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav a[href^="/m/trade"] span:last-child::before { content: "浜ゆ槗" !important; }
body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav a[href="/m/assets"] span:last-child::before { content: "璧勪骇" !important; }
body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav a[href="/m/profile"] span:last-child::before { content: "鎴戠殑" !important; }

/* Mobile support v74: use the same live chat engine as desktop, with a
   phone-first shell and composer. */
.mobile-shell:has([data-support-widget-shell]) > a[href="/m/support"].fixed {
  display: none !important;
}

.mobile-shell .floating-support-button.mobile {
  position: fixed;
  right: 14px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 125;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 60px;
  min-height: 54px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #180713;
  background: linear-gradient(135deg, #8bbcff, #0b5cff);
  box-shadow: 0 16px 34px rgba(22, 119, 255, 0.34);
  font: 900 0.86rem/1 "Inter", sans-serif;
}

.mobile-shell .floating-support-button.mobile .floating-support-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 1rem;
}

body[data-page-key="mobile-support"].mobile-shell .floating-support-button.mobile {
  display: none !important;
}

body[data-page-key^="mobile-assets"].mobile-shell .floating-support-button.mobile {
  display: none !important;
}

.mobile-shell .support-widget-shell.mobile {
  z-index: 180;
}

.mobile-shell .support-widget.mobile {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-height: min(88svh, 760px);
  gap: 12px;
  padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(22, 119, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(27, 24, 27, 0.99), rgba(12, 12, 12, 0.99));
}

.mobile-shell .support-widget.mobile .support-widget-thread {
  min-height: 260px;
  max-height: min(48svh, 460px);
  padding: 10px 4px 10px 0;
}

.mobile-shell .support-widget.mobile .support-widget-composer-row,
.mobile-support-composer .support-widget-composer-row {
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 9px;
  align-items: stretch;
}

.mobile-shell .support-widget.mobile textarea,
.mobile-support-composer textarea {
  min-height: 54px;
  max-height: 120px;
  resize: none;
}

.mobile-shell .support-widget.mobile .support-widget-send,
.mobile-support-composer .support-widget-send {
  min-width: 0;
  min-height: 54px;
  padding-inline: 12px;
  border-radius: 16px;
  font-size: 0.88rem;
}

.mobile-support-screen {
  display: grid;
  gap: 14px;
  padding: 12px 10px calc(110px + env(safe-area-inset-bottom));
  color: var(--text);
}

.mobile-support-topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
  padding: 8px 2px 10px;
  background: rgba(19, 19, 19, 0.92);
  backdrop-filter: blur(14px);
}

.mobile-support-topbar div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 2px;
}

.mobile-support-topbar h1 {
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-support-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 18px;
  color: #f4dce8;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(22, 119, 255, 0.1);
}

.mobile-support-screen .support-direct-chat.mobile {
  min-height: min(68svh, 680px);
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(22, 119, 255, 0.14), transparent 34%),
    rgba(28, 27, 27, 0.88);
}

.mobile-support-chat-head {
  align-items: center;
}

.mobile-support-screen .support-widget-header-copy {
  min-width: 0;
}

.mobile-support-screen .support-widget-header-copy strong {
  color: #fff;
  font-size: 1.08rem;
}

.mobile-support-screen .support-widget-header-copy .muted-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mobile-support-screen .support-direct-chat.mobile .support-widget-thread {
  min-height: 330px;
  max-height: min(52svh, 520px);
  padding: 12px;
  border-radius: 18px;
  background: rgba(7, 7, 7, 0.58);
}

.mobile-support-screen .support-chat-message {
  max-width: 92%;
}

.mobile-support-screen .support-chat-message.user {
  justify-self: end;
}

.mobile-support-screen .message-bubble {
  border-radius: 18px;
}

.mobile-support-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-support-link-grid a {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 14px 12px;
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
  background: rgba(28, 27, 27, 0.82);
  border: 1px solid rgba(22, 119, 255, 0.1);
}

.mobile-support-link-grid .material-symbols-outlined {
  color: var(--primary);
}

.mobile-support-link-grid strong,
.mobile-support-link-grid small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-support-link-grid small {
  color: var(--muted);
  font-size: 0.72rem;
}

/* Mobile assets v75: compact asset console with funding, payout, and history. */
.mobile-assets-screen {
  display: grid;
  gap: 14px;
  padding: 12px 10px calc(116px + env(safe-area-inset-bottom));
  color: var(--text);
}

.mobile-assets-topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
  padding: 8px 2px 10px;
  background: rgba(19, 19, 19, 0.92);
  backdrop-filter: blur(14px);
}

.mobile-assets-topbar div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 2px;
}

.mobile-assets-topbar h1 {
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-assets-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 18px;
  color: #f4dce8;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(22, 119, 255, 0.1);
}

.mobile-assets-hero {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 96% 0%, rgba(22, 119, 255, 0.26), transparent 36%),
    linear-gradient(145deg, rgba(32, 22, 30, 0.98), rgba(12, 12, 12, 0.98));
  border: 1px solid rgba(22, 119, 255, 0.16);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.mobile-assets-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.mobile-assets-hero-head div {
  min-width: 0;
}

.mobile-assets-hero-head span,
.mobile-assets-hero-head small,
.mobile-assets-balance-grid span,
.mobile-assets-section-head span,
.mobile-assets-note {
  color: rgba(220, 191, 203, 0.82);
}

.mobile-assets-hero-head strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #61de8a;
  font: 900 clamp(2.05rem, 10vw, 3.1rem)/0.92 "Space Grotesk", sans-serif;
  letter-spacing: 0;
  text-overflow: clip;
  white-space: nowrap;
}

.mobile-assets-kyc-pill {
  display: inline-grid;
  gap: 2px;
  min-width: 78px;
  padding: 9px 12px;
  border-radius: 16px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(22, 119, 255, 0.12);
  font-size: 0.75rem;
  font-weight: 800;
}

.mobile-assets-kyc-pill b {
  color: #61de8a;
}

.mobile-assets-balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-assets-balance-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 13px;
  border-radius: 18px;
  background: rgba(8, 8, 8, 0.56);
  border: 1px solid rgba(22, 119, 255, 0.1);
}

.mobile-assets-balance-grid b {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
}

.mobile-assets-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mobile-assets-actions a {
  display: grid;
  min-width: 0;
  min-height: 72px;
  place-items: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
  background: rgba(28, 27, 27, 0.82);
  border: 1px solid rgba(22, 119, 255, 0.12);
}

.mobile-assets-actions a.primary {
  color: #180713;
  background: linear-gradient(135deg, #8bbcff, #0b5cff);
}

.mobile-assets-actions .material-symbols-outlined {
  font-size: 24px;
}

.mobile-assets-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(28, 27, 27, 0.86);
  border: 1px solid rgba(22, 119, 255, 0.12);
}

.mobile-assets-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.mobile-assets-section-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.15;
}

.mobile-assets-section-head > span {
  flex: 0 0 auto;
  max-width: 122px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 800;
}

.mobile-assets-deposit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.mobile-assets-deposit-grid a {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 12px 8px;
  border-radius: 18px;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  background: rgba(8, 8, 8, 0.52);
  border: 1px solid rgba(22, 119, 255, 0.1);
}

.mobile-assets-token {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border-radius: 14px;
  color: #171017;
  background: #61de8a;
  font-weight: 900;
}

.mobile-assets-deposit-grid strong,
.mobile-assets-deposit-grid small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-assets-deposit-grid small {
  color: var(--muted);
  font-size: 0.68rem;
}

.mobile-assets-form {
  display: grid;
  gap: 11px;
}

.mobile-assets-form label {
  display: grid;
  gap: 6px;
  color: rgba(220, 191, 203, 0.9);
  font-size: 0.78rem;
  font-weight: 900;
}

.mobile-assets-form input,
.mobile-assets-form select,
.mobile-assets-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid rgba(22, 119, 255, 0.14);
  border-radius: 16px;
  color: #fff;
  background: rgba(7, 7, 7, 0.78);
}

.mobile-assets-form textarea {
  padding-top: 12px;
  resize: vertical;
}

.mobile-assets-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-assets-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  border-radius: 18px;
  background: rgba(7, 7, 7, 0.64);
  border: 1px solid rgba(22, 119, 255, 0.1);
}

.mobile-assets-segmented button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  color: rgba(244, 220, 232, 0.72);
  background: transparent;
  font: inherit;
  font-weight: 900;
}

.mobile-assets-segmented button.active {
  color: #170813;
  background: linear-gradient(135deg, #8bbcff, #0b5cff);
}

.mobile-withdraw-panel {
  display: grid;
  gap: 11px;
}

.mobile-withdraw-panel.hidden {
  display: none;
}

.mobile-assets-note {
  margin: 0;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.76rem;
  line-height: 1.45;
}

.mobile-assets-submit {
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  color: #170813;
  background: linear-gradient(135deg, #8bbcff, #0b5cff);
  font: inherit;
  font-weight: 900;
}

.mobile-assets-submit.secondary {
  color: #071b10;
  background: linear-gradient(135deg, #8dffb1, #61de8a);
}

.mobile-payment-list,
.mobile-activity-list {
  display: grid;
  gap: 10px;
}

.mobile-payment-list article,
.mobile-activity-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-radius: 17px;
  background: rgba(8, 8, 8, 0.48);
  border: 1px solid rgba(22, 119, 255, 0.08);
}

.mobile-activity-list article {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.mobile-payment-list article div,
.mobile-activity-list article div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mobile-payment-list strong,
.mobile-payment-list span,
.mobile-payment-list b,
.mobile-activity-list strong,
.mobile-activity-list small,
.mobile-activity-list b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-payment-list span,
.mobile-activity-list small {
  color: var(--muted);
  font-size: 0.72rem;
}

.mobile-payment-list b,
.mobile-activity-list b {
  color: #fff;
  text-align: right;
  font-size: 0.82rem;
}

.mobile-activity-list .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  color: #8bbcff;
  background: rgba(22, 119, 255, 0.1);
  font-size: 20px;
}

.mobile-activity-list em {
  display: block;
  color: #61de8a;
  font-style: normal;
  font-size: 0.7rem;
}

.mobile-assets-empty {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  background: rgba(8, 8, 8, 0.42);
}

.mobile-deposit-asset-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.mobile-deposit-asset-tabs a {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 18px;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  background: rgba(8, 8, 8, 0.52);
  border: 1px solid rgba(22, 119, 255, 0.1);
}

.mobile-deposit-asset-tabs a.active {
  color: #180713;
  background: linear-gradient(135deg, #8bbcff, #0b5cff);
}

.mobile-deposit-asset-tabs strong,
.mobile-deposit-asset-tabs small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-deposit-asset-tabs small {
  color: inherit;
  opacity: 0.72;
  font-size: 0.68rem;
}

@media (max-width: 380px) {
  .mobile-assets-screen {
    padding-inline: 8px;
  }

  .mobile-assets-hero,
  .mobile-assets-section {
    padding: 14px;
  }

  .mobile-assets-actions a {
    min-height: 66px;
    font-size: 0.82rem;
  }

  .mobile-assets-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Mobile profile v78: account and KYC pages aligned with the app shell. */
.mobile-profile-screen,
.mobile-kyc-screen {
  display: grid;
  gap: 14px;
  padding: 12px 10px calc(116px + env(safe-area-inset-bottom));
  color: var(--text);
}

.mobile-profile-topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
  padding: 8px 2px 10px;
  background: rgba(19, 19, 19, 0.92);
  backdrop-filter: blur(14px);
}

.mobile-profile-topbar > strong {
  overflow: hidden;
  color: #d6e8ff;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 900 1.35rem/1 "Space Grotesk", sans-serif;
}

.mobile-profile-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 18px;
  color: #f4dce8;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(22, 119, 255, 0.1);
}

.mobile-profile-identity-card,
.mobile-kyc-status-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 20px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 0%, rgba(22, 119, 255, 0.24), transparent 36%),
    linear-gradient(145deg, rgba(32, 22, 30, 0.98), rgba(16, 16, 16, 0.98));
  border: 1px solid rgba(22, 119, 255, 0.16);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.mobile-profile-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: #1a0714;
  background: linear-gradient(135deg, #8bbcff, #0b5cff);
  font: 900 1.35rem/1 "Space Grotesk", sans-serif;
}

.mobile-profile-main-copy {
  min-width: 0;
}

.mobile-profile-main-copy h1,
.mobile-kyc-status-card h1,
.mobile-profile-section-head h2 {
  margin: 0;
  color: #fff;
  line-height: 1.08;
}

.mobile-profile-main-copy h1,
.mobile-kyc-status-card h1 {
  font-size: clamp(1.65rem, 7.6vw, 2.35rem);
}

.mobile-profile-main-copy span,
.mobile-kyc-status-card span,
.mobile-profile-balance-row span,
.mobile-profile-balance-row small,
.mobile-profile-action-grid small,
.mobile-profile-list small,
.mobile-profile-empty,
.mobile-kyc-snapshot span,
.mobile-kyc-upload-zone small,
.mobile-kyc-history-list span,
.mobile-kyc-history-list small {
  color: rgba(220, 191, 203, 0.82);
}

.mobile-profile-status-pill {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(22, 119, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 900;
}

.mobile-profile-status-pill b,
.mobile-kyc-status-card b {
  color: #61de8a;
}

.mobile-profile-kyc-panel,
.mobile-profile-section,
.mobile-kyc-form-card,
.mobile-kyc-history-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(28, 27, 27, 0.88);
  border: 1px solid rgba(22, 119, 255, 0.12);
}

.mobile-profile-kyc-panel {
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
  align-items: center;
}

.mobile-profile-kyc-panel > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.mobile-profile-kyc-panel .material-symbols-outlined,
.mobile-profile-action-grid .material-symbols-outlined {
  color: #8bbcff;
  font-size: 26px;
}

.mobile-profile-kyc-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 16px;
  color: #1b0714;
  text-decoration: none;
  background: linear-gradient(135deg, #8bbcff, #0b5cff);
  font-size: 0.84rem;
  font-weight: 900;
}

.mobile-profile-balance-row,
.mobile-kyc-snapshot,
.mobile-profile-action-grid {
  display: grid;
  gap: 10px;
}

.mobile-profile-balance-row,
.mobile-kyc-snapshot {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-profile-balance-row article,
.mobile-kyc-snapshot article,
.mobile-profile-action-grid a,
.mobile-profile-list article,
.mobile-profile-link-list a,
.mobile-kyc-history-list article {
  min-width: 0;
  border-radius: 20px;
  background: rgba(8, 8, 8, 0.56);
  border: 1px solid rgba(22, 119, 255, 0.1);
}

.mobile-profile-balance-row article,
.mobile-kyc-snapshot article,
.mobile-profile-action-grid a {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.mobile-profile-balance-row strong,
.mobile-kyc-snapshot strong {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 900 1.18rem/1 "Space Grotesk", sans-serif;
}

.mobile-profile-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-profile-action-grid a {
  min-height: 132px;
  color: #fff;
  text-decoration: none;
}

.mobile-profile-action-grid strong,
.mobile-profile-list strong,
.mobile-profile-link-list span,
.mobile-kyc-history-list strong {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
}

.mobile-profile-action-grid strong,
.mobile-profile-list strong,
.mobile-profile-link-list span {
  white-space: nowrap;
}

.mobile-profile-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.mobile-profile-section-head a {
  flex: 0 0 auto;
  color: #8bbcff;
  text-decoration: none;
  font-weight: 900;
}

.mobile-profile-list,
.mobile-profile-link-list,
.mobile-kyc-history-list {
  display: grid;
  gap: 10px;
}

.mobile-profile-list article {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

.mobile-profile-list b {
  grid-column: 2;
  color: #61de8a;
  font: 900 0.88rem/1 "Space Grotesk", sans-serif;
}

.mobile-profile-token {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 15px;
  color: #171017;
  background: #61de8a;
  font-weight: 900;
}

.mobile-profile-link-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 14px;
  color: #fff;
  text-decoration: none;
}

.mobile-profile-link-list em {
  color: #8bbcff;
  font-style: normal;
  font-weight: 900;
}

.mobile-kyc-status-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.mobile-kyc-status-card b {
  align-self: start;
  padding: 9px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(22, 119, 255, 0.12);
}

.mobile-kyc-form {
  display: grid;
  gap: 12px;
}

.mobile-kyc-form label {
  display: grid;
  gap: 7px;
  color: #f3c9dd;
  font-size: 0.78rem;
  font-weight: 900;
}

.mobile-kyc-form input,
.mobile-kyc-form select,
.mobile-kyc-form textarea {
  width: 100%;
  min-height: 50px;
  border-radius: 17px;
  color: #fff;
  background: rgba(0, 0, 0, 0.66);
  border: 1px solid rgba(22, 119, 255, 0.14);
  padding: 0 13px;
  font: 800 1rem/1.2 "Inter", sans-serif;
}

.mobile-kyc-form textarea {
  min-height: 88px;
  padding-block: 13px;
  resize: vertical;
}

.mobile-kyc-upload-zone {
  position: relative;
  place-items: center;
  min-height: 104px;
  border-radius: 20px;
  color: #fff;
  background: rgba(8, 8, 8, 0.56);
  border: 1px dashed rgba(22, 119, 255, 0.32);
}

.mobile-kyc-upload-zone .material-symbols-outlined {
  color: #8bbcff;
  font-size: 30px;
}

.mobile-kyc-upload-zone input {
  position: absolute;
  inset: 0;
  min-height: 100%;
  opacity: 0;
}

.mobile-kyc-submit {
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  color: #1b0714;
  background: linear-gradient(135deg, #8bbcff, #0b5cff);
  box-shadow: 0 16px 36px rgba(22, 119, 255, 0.24);
  font-weight: 900;
}

.mobile-kyc-history-list article {
  display: grid;
  gap: 8px;
  padding: 13px;
}

.mobile-kyc-history-list p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #f4dce8;
  font-size: 0.86rem;
}

.mobile-kyc-history-list a {
  color: #8bbcff;
}

body[data-page-key="mobile-profile"] .floating-support-button.mobile,
body[data-page-key="mobile-kyc"] .floating-support-button.mobile {
  display: none !important;
}

.mobile-lang-switcher {
  position: relative;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  width: min(360px, calc(100vw - 20px));
  min-height: 42px;
  margin: 8px auto 4px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(8, 7, 8, 0.86);
  border: 1px solid rgba(22, 119, 255, 0.14);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.mobile-lang-switcher .lang-chip {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 32px;
  border: 0;
  border-radius: 14px;
  color: #a9b8d0;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.mobile-lang-switcher .lang-chip.is-active {
  color: #1a0714;
  background: linear-gradient(135deg, #8bbcff, #0b5cff);
  box-shadow: 0 10px 24px rgba(22, 119, 255, 0.28);
}

body[data-page-key="mobile-home"] .mobile-lang-switcher {
  position: fixed;
  top: 70px;
  left: 50%;
  z-index: 96;
  margin: 0;
  transform: translateX(-50%);
}

body[data-page-key="mobile-home"].mobile-shell .mobile-home-screen {
  padding-top: 126px;
}

/* scalarcrypto desktop home: adapted from stitch_website_ui_clone/swan_trading_platform_200px_margin_layout/code.html */
body[data-page-key="home"] {
  background: #131313;
}

body[data-page-key="home"] .main-container {
  width: 100%;
  max-width: none;
  padding: 0;
}

body[data-page-key="home"] .floating-support-button {
  display: none;
}

body[data-page-key="trade-spot"] {
  overflow-x: hidden;
  background: #131315;
}

body[data-page-key="trade-spot"] .main-container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.swan-spot-page {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  color: #e5e1e4;
  background: #131315;
  font-family: "Inter", Arial, sans-serif;
}

.spot-topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #151517;
}

.spot-brand-nav,
.spot-brand-nav nav,
.spot-top-actions,
.spot-market-strip,
.spot-pair-block,
.spot-chart-toolbar,
.spot-order-tabs,
.spot-percent-row,
.spot-bottom-tabs {
  display: flex;
  align-items: center;
}

.spot-brand-nav {
  gap: 34px;
  min-width: 0;
}

.spot-brand {
  color: #1677ff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: lowercase;
  white-space: nowrap;
}

.spot-brand-nav nav {
  gap: 24px;
  height: 64px;
}

.spot-brand-nav nav a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  color: #a1a1aa;
  font-size: 14px;
  font-weight: 700;
}

.spot-brand-nav nav a.active {
  color: #1677ff;
  border-bottom: 2px solid #1677ff;
}

.spot-top-actions {
  gap: 12px;
}

.spot-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: #1f1f21;
}

.spot-search select {
  min-width: 130px;
  border: 0;
  color: #e5e1e4;
  background: transparent;
  font-weight: 700;
  outline: 0;
}

.spot-wallet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  background: #1677ff;
  font-size: 14px;
  font-weight: 800;
}

.spot-terminal {
  display: grid;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  min-height: calc(100vh - 64px);
}

.spot-market-strip {
  gap: 34px;
  min-height: 50px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
}

.spot-pair-block {
  gap: 12px;
  white-space: nowrap;
}

.spot-pair-block strong {
  color: #fff;
  font-size: 19px;
}

.spot-pair-block span {
  font-weight: 800;
}

.spot-symbol-switcher select {
  min-width: 116px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #111722;
  color: #f5f7fb;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.spot-market-strip article {
  display: grid;
  gap: 2px;
  white-space: nowrap;
}

.spot-market-strip article span,
.spot-pane-head span,
.spot-book-head,
.spot-trade-head,
.spot-order-card label span,
.spot-order-available,
.spot-assets-panel a {
  color: #76808f;
  font-size: 11px;
  font-weight: 700;
}

.spot-market-strip article strong {
  color: #e5e1e4;
  font-size: 12px;
}

.spot-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  width: 100%;
  max-width: 100vw;
  min-height: 780px;
  background: rgba(255, 255, 255, 0.05);
  gap: 1px;
  overflow-x: hidden;
}

.spot-pane,
.spot-chart-pane,
.spot-bottom-panel {
  background: #131315;
}

.spot-pane {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.spot-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spot-pane-head strong {
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spot-book-head,
.spot-trade-head,
.spot-book-row,
.spot-trade-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}

.spot-book-head,
.spot-trade-head {
  min-height: 32px;
  text-transform: uppercase;
}

.spot-book-head span:nth-child(n + 2),
.spot-trade-head span:nth-child(n + 2),
.spot-book-row span:nth-child(n + 2),
.spot-trade-row span:nth-child(n + 2) {
  text-align: right;
}

.spot-book-list {
  display: grid;
  align-content: start;
  min-height: 214px;
  overflow: hidden;
}

.spot-book-row,
.spot-trade-row {
  position: relative;
  min-height: 25px;
  color: #e5e1e4;
  font-size: 12px;
  font-weight: 700;
}

.spot-book-row i {
  position: absolute;
  inset-block: 0;
  right: 0;
  opacity: 0.12;
  pointer-events: none;
}

.spot-book-row.ask i {
  background: #ff4b5c;
}

.spot-book-row.bid i {
  background: #00c087;
}

.spot-book-row.ask span:first-of-type,
.spot-trade-row.sell span:first-child {
  color: #ff4b5c;
}

.spot-book-row.bid span:first-of-type,
.spot-trade-row.buy span:first-child {
  color: #00c087;
}

.spot-mid-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  background: #1f1f21;
}

.spot-mid-price strong {
  color: #00c087;
  font-size: 20px;
  font-weight: 900;
}

.spot-mid-price span {
  color: #76808f;
  font-size: 12px;
}

.spot-chart-pane {
  display: grid;
  grid-template-rows: auto minmax(420px, 1fr) auto auto;
  min-width: 0;
  max-width: 100%;
  min-height: 780px;
  overflow-x: hidden;
}

.spot-chart-toolbar {
  gap: 24px;
  min-height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spot-chart-toolbar button {
  border: 0;
  color: #76808f;
  background: transparent;
  font-weight: 800;
}

.spot-chart-toolbar button.active {
  align-self: stretch;
  color: #fff;
  border-bottom: 1px solid #fff;
}

.spot-chart-toolbar span {
  margin-left: auto;
  color: #76808f;
  font-size: 12px;
  font-weight: 700;
}

.spot-chart-stage {
  position: relative;
  min-height: 420px;
  height: 100%;
  overflow: hidden;
  background: #0e0e10;
}

.spot-ma-legend {
  position: absolute;
  top: 10px;
  left: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #f9c33f;
  font-size: 11px;
  font-weight: 800;
}

.spot-ma-legend span:nth-child(2) {
  color: #1677ff;
}

.spot-ma-legend span:nth-child(3) {
  color: #9d4dff;
}

.spot-chart-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.spot-order-zone {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) repeat(2, minmax(0, 1fr));
  gap: 22px;
  min-width: 0;
  max-width: 100%;
  padding: 22px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #1b1b1d;
}

.spot-api-context {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #16181f;
}

.spot-api-context dl {
  display: grid;
  grid-template-columns: minmax(78px, auto) minmax(0, 1fr);
  gap: 10px 12px;
  margin: 12px 0 0;
}

.spot-api-context dt,
.spot-api-context dd {
  margin: 0;
  min-width: 0;
  font-size: 12px;
}

.spot-api-context dt {
  color: #76808f;
  font-weight: 900;
  text-transform: uppercase;
}

.spot-api-context dd {
  overflow: hidden;
  color: #e5e1e4;
  font-weight: 900;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spot-order-card {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.spot-order-tabs {
  gap: 18px;
  min-height: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spot-order-tabs button {
  align-self: stretch;
  border: 0;
  color: #76808f;
  background: transparent;
  font-weight: 900;
}

.spot-order-tabs button.active {
  color: #fff;
  border-bottom: 2px solid #1677ff;
}

.spot-order-card label {
  position: relative;
  display: grid;
}

.spot-order-card label span {
  position: absolute;
  top: 8px;
  left: 12px;
  text-transform: uppercase;
}

.spot-order-card input {
  width: 100%;
  min-height: 58px;
  padding: 24px 58px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  background: #1f1f21;
  font-weight: 900;
}

.spot-order-card label em {
  position: absolute;
  right: 12px;
  top: 22px;
  color: #76808f;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.spot-percent-row {
  justify-content: space-between;
  gap: 8px;
}

.spot-percent-row button {
  flex: 1;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #76808f;
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-weight: 900;
}

.spot-submit {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.spot-submit.buy {
  background: #00c087;
}

.spot-submit.sell {
  background: #ff4b5c;
}

.spot-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.spot-order-available {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spot-order-available strong {
  color: #fff;
}

.spot-order-message {
  min-height: 28px;
  padding: 0 24px 18px;
  color: #76808f;
  background: #1b1b1d;
  font-size: 13px;
  font-weight: 800;
}

.spot-order-message.success {
  color: #00c087;
}

.spot-order-message.error {
  color: #ff4b5c;
}

.spot-trade-list {
  min-height: 420px;
  max-height: 500px;
  overflow: hidden;
}

.spot-assets-panel {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #0e0e10;
}

.spot-pane-head.compact a {
  text-transform: uppercase;
}

.spot-asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.spot-bottom-panel {
  min-height: 210px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.spot-bottom-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spot-bottom-tabs button {
  min-height: 44px;
  border: 0;
  color: #76808f;
  background: transparent;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 900;
}

.spot-bottom-tabs button.active {
  color: #1677ff;
  border-bottom: 2px solid #1677ff;
}

.spot-history-table {
  display: grid;
  padding: 14px 24px;
}

.spot-history-table article,
.spot-history-table a {
  display: grid;
  grid-template-columns: 90px 1fr 70px 90px 110px 90px;
  gap: 12px;
  min-height: 34px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e5e1e4;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.spot-history-table a:hover {
  color: #fff;
  background: rgba(7, 93, 245, 0.08);
}

.spot-history-table em {
  font-style: normal;
  text-transform: uppercase;
}

.spot-empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  color: #76808f;
}

.spot-empty-state strong {
  color: #e5e1e4;
}

@media (max-width: 1180px) {
  .spot-grid {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .trades-pane {
    grid-column: 1 / -1;
    min-height: 260px;
  }

  .spot-trade-list {
    max-height: 210px;
  }
}

@media (max-width: 820px) {
  .spot-topbar,
  .spot-brand-nav,
  .spot-top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .spot-topbar {
    position: static;
    padding-block: 12px;
  }

  .spot-brand-nav nav {
    height: auto;
    overflow-x: auto;
  }

  .spot-market-strip {
    gap: 18px;
    padding: 12px 16px;
    max-width: 100vw;
  }

  .spot-grid,
  .spot-order-zone {
    grid-template-columns: minmax(0, 1fr);
  }

  .spot-grid {
    min-height: 0;
  }

  .spot-chart-stage,
  .spot-order-zone,
  .spot-order-card,
  .spot-order-tabs,
  .spot-order-card label,
  .spot-percent-row,
  .spot-order-message {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .spot-chart-toolbar,
  .spot-chart-stage,
  .spot-order-zone,
  .spot-order-message {
    box-sizing: border-box;
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .spot-order-zone {
    padding-inline: 12px;
  }

  .spot-order-card,
  .spot-order-tabs,
  .spot-order-card label,
  .spot-percent-row,
  .spot-submit {
    box-sizing: border-box;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }

  .spot-chart-toolbar {
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .spot-chart-toolbar::-webkit-scrollbar {
    display: none;
  }

  .spot-chart-toolbar button,
  .spot-chart-toolbar span {
    flex: 0 0 auto;
  }

  .orderbook-pane {
    order: 2;
  }

  .spot-chart-pane {
    order: 1;
  }

  .trades-pane {
    order: 3;
  }

  .spot-order-zone {
    gap: 18px;
    padding: 16px;
  }

  .spot-bottom-tabs {
    overflow-x: auto;
  }

  .spot-bottom-tabs button {
    flex: 0 0 auto;
  }
}

.swan-home-page {
  min-height: 100vh;
  color: #e5e2e1;
  background: #131313;
  font-family: "Inter", Arial, sans-serif;
}

.swan-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid #27272a;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(18px);
}

.swan-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  width: 100%;
  padding: 0 clamp(24px, 10.5vw, 200px);
}

.swan-brand-block,
.swan-nav,
.swan-top-actions,
.swan-balance,
.swan-asset-cell {
  display: flex;
  align-items: center;
}

.swan-brand-block {
  gap: 32px;
  min-width: 0;
}

.swan-brand {
  color: #fff;
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.swan-nav {
  gap: 24px;
  min-width: 0;
}

.swan-nav a {
  position: relative;
  color: #a1a1aa;
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}

.swan-nav a:hover,
.swan-nav a.active {
  color: #0052ff;
}

.swan-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -23px;
  height: 2px;
  background: #0052ff;
}

.swan-top-actions {
  gap: 18px;
  color: #a1a1aa;
}

.swan-balance {
  gap: 12px;
  white-space: nowrap;
}

.swan-balance span {
  color: #a1a1aa;
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.swan-balance strong {
  color: #fff;
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.swan-primary-action,
.swan-auth-link.is-filled,
.swan-table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 4px;
  color: #fff;
  background: #0052ff;
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.swan-primary-action {
  padding: 0 16px;
}

.swan-auth-link {
  color: #e5e2e1;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.swan-auth-link.is-filled {
  padding: 0 14px;
}

.swan-icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #27272a;
  border-radius: 999px;
  color: #fff;
  background: #2a2a2a;
  font-weight: 800;
  text-transform: uppercase;
}

.scalar-global-topbar {
  position: sticky;
  top: 0;
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  width: 100%;
  padding: 0 clamp(24px, 10.5vw, 200px);
  border-bottom: 1px solid #27272a;
  color: #e5e2e1;
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(18px);
  font-family: "Inter", Arial, sans-serif;
}

.scalar-global-brand-row,
.scalar-global-nav,
.scalar-global-actions,
.scalar-global-lang {
  display: flex;
  align-items: center;
}

.scalar-global-brand-row {
  gap: 32px;
  min-width: 0;
}

.scalar-global-brand {
  color: #fff;
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.scalar-global-nav {
  gap: 24px;
  min-width: 0;
}

.scalar-global-nav a {
  position: relative;
  color: #a1a1aa;
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.scalar-global-nav a:hover,
.scalar-global-nav a.active {
  color: #0052ff;
}

.scalar-global-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -23px;
  height: 2px;
  background: #0052ff;
}

.scalar-global-actions {
  gap: 12px;
  flex-shrink: 0;
}

.scalar-global-lang {
  gap: 4px;
  min-height: 36px;
  padding: 3px;
  border: 1px solid #27272a;
  border-radius: 4px;
  background: #17171a;
}

.scalar-global-lang button,
.scalar-global-login,
.scalar-global-primary {
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.scalar-global-lang button {
  min-width: 36px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  color: #a1a1aa;
  background: transparent;
  cursor: pointer;
}

.scalar-global-lang button.active,
.scalar-global-lang button:hover {
  color: #fff;
  background: #0052ff;
}

.scalar-global-login {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #e5e2e1;
}

.scalar-global-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: #0052ff;
  cursor: pointer;
}

body[data-frontend-page="true"] .page-shell > .main-container .swan-topbar,
body[data-frontend-page="true"] .page-shell > .main-container .market-topbar,
body[data-frontend-page="true"] .page-shell > .main-container .spot-topbar,
body[data-frontend-page="true"] .page-shell > .main-container .futures-topbar,
body[data-frontend-page="true"] .page-shell > .main-container .options-topbar,
body[data-frontend-page="true"] .page-shell > .main-container .delivery-topbar,
body[data-frontend-page="true"] .page-shell > .main-container .wallet-topbar,
body[data-frontend-page="true"] .page-shell > .main-container .withdraw-topbar,
body[data-frontend-page="true"] .page-shell > .main-container .bank-topbar,
body[data-frontend-page="true"] .page-shell > .main-container .bill-topbar,
body[data-frontend-page="true"] .page-shell > .main-container .dashboard-topbar,
body[data-frontend-page="true"] .page-shell > .main-container .profile-topbar,
body[data-frontend-page="true"] .page-shell > .main-container .kyc-topbar,
body[data-frontend-page="true"] .page-shell > .main-container .security-topbar,
body[data-frontend-page="true"] .page-shell > .main-container .support-topbar,
body[data-frontend-page="true"] .page-shell > .main-container .auth-topbar,
body[data-frontend-page="true"] .page-shell > .main-container .swan-content-topbar {
  display: none !important;
}

@media (max-width: 1280px) {
  .scalar-global-topbar {
    padding-inline: 24px;
  }

  .scalar-global-nav {
    gap: 16px;
  }
}

@media (max-width: 980px) {
  .scalar-global-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .scalar-global-brand-row {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .scalar-global-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .scalar-global-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.swan-main {
  display: grid;
  gap: 56px;
  width: 100%;
  padding: 32px clamp(24px, 10.5vw, 200px) 72px;
}

.swan-market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.swan-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  background: #1c1c1f;
}

.swan-card h2,
.swan-section-head h1 {
  margin: 0;
  color: #fff;
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-weight: 700;
}

.swan-card h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.swan-mini-list {
  display: grid;
  gap: 12px;
}

.swan-mini-list a {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) minmax(96px, auto) minmax(64px, auto);
  align-items: center;
  gap: 12px;
  min-height: 34px;
  margin-inline: -8px;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.18s ease;
}

.swan-mini-list a:hover {
  background: #2a2a2a;
}

.swan-mini-list span {
  color: #e5e2e1;
  font-size: 14px;
  font-weight: 700;
}

.swan-mini-list strong,
.swan-mini-list em,
.swan-market-table td {
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.up {
  color: #00ff66 !important;
}

.down {
  color: #ff3366 !important;
}

.swan-market-table-panel {
  display: grid;
  gap: 24px;
}

.swan-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.swan-section-head h1 {
  font-size: 24px;
}

.swan-segmented {
  display: inline-flex;
  gap: 8px;
}

.swan-segmented button {
  min-height: 28px;
  border: 0;
  border-radius: 4px;
  color: #a1a1aa;
  background: transparent;
  padding: 0 12px;
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.swan-segmented button.active {
  color: #fff;
  background: #2a2a2a;
}

.swan-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.swan-market-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  text-align: left;
}

.swan-market-table th {
  padding: 12px 16px;
  border-bottom: 1px solid #1c1c1f;
  color: #71717a;
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.swan-market-table th:not(:first-child),
.swan-market-table td:not(:first-child) {
  text-align: right;
}

.swan-market-table td {
  padding: 16px;
  border-bottom: 1px solid #1c1c1f;
  color: #d4d4d8;
}

.swan-market-table tbody tr {
  transition: background 0.18s ease;
}

.swan-market-table tbody tr:hover {
  background: #1c1c1f;
}

.swan-asset-cell {
  gap: 12px;
  text-align: left;
}

.swan-token {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #ffb86c;
  background: rgba(255, 184, 108, 0.14);
  font-size: 11px;
  font-weight: 900;
}

.swan-asset-cell strong {
  color: #fff;
}

.swan-trend-pill {
  display: inline-flex;
  justify-content: center;
  min-width: 46px;
  padding: 4px 8px;
  border-radius: 4px;
  color: #d4d4d8;
  background: #27272a;
  text-transform: capitalize;
}

.swan-asset-cell small {
  color: #71717a;
}

.swan-table-action {
  min-height: 30px;
  padding: 0 14px;
}

.swan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px clamp(24px, 10.5vw, 200px) 32px;
  border-top: 1px solid #27272a;
  background: #09090b;
}

.swan-footer strong {
  color: #e5e2e1;
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.swan-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.swan-footer a,
.swan-footer span {
  color: #71717a;
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .swan-topbar-inner,
  .swan-main,
  .swan-footer {
    padding-inline: 24px;
  }

  .swan-nav {
    display: none;
  }

  .swan-market-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .swan-topbar-inner,
  .swan-top-actions,
  .swan-section-head,
  .swan-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .swan-balance {
    justify-content: space-between;
  }

  .swan-main {
    gap: 32px;
    padding-block: 20px 48px;
  }

  .swan-card {
    padding: 18px;
  }

  .swan-mini-list a {
    grid-template-columns: minmax(54px, 1fr) minmax(80px, auto) minmax(54px, auto);
  }

  .swan-market-table {
    min-width: 0;
  }

  .swan-market-table th:nth-child(n + 4),
  .swan-market-table td:nth-child(n + 4) {
    display: none;
  }

  .swan-market-table th,
  .swan-market-table td {
    padding-inline: 14px;
  }
}

@media (max-width: 380px) {
  .mobile-profile-action-grid,
  .mobile-profile-balance-row,
  .mobile-kyc-snapshot {
    grid-template-columns: 1fr;
  }

  .mobile-profile-kyc-panel {
    grid-template-columns: 1fr;
  }
}

.target-market-page {
  min-height: 100vh;
  background: #f4f6f9;
  color: #111827;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-page-key="market"],
body[data-page-key="market"] .page-shell {
  background: #f4f6f9;
}

body[data-page-key="market"] .main-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.target-market-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.market-topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 44px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e4e7ee;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.market-brand,
.market-nav,
.market-actions {
  display: flex;
  align-items: center;
}

.market-brand {
  gap: 10px;
  color: #111827;
  text-decoration: none;
  min-width: 190px;
}

.market-brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #1677ff;
  color: #fff;
  font-weight: 800;
}

.market-nav {
  gap: 4px;
  flex: 1;
}

.market-nav a,
.market-login,
.market-register {
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.market-nav a {
  padding: 10px 14px;
  border-radius: 8px;
}

.market-nav a:hover,
.market-nav a.active {
  color: #111827;
  background: #eef4ff;
}

.market-actions {
  gap: 10px;
}

.market-login,
.market-register {
  height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.market-login {
  background: #fff;
  border: 1px solid #dce2ec;
}

.market-register {
  color: #fff;
  background: #1677ff;
}

.market-shell {
  width: min(1260px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.market-hero-panel,
.market-spotlight-card,
.market-table-panel {
  background: #fff;
  border: 1px solid #e1e6ef;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.06);
}

.market-hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-end;
  padding: 30px;
  border-radius: 8px;
}

.market-kicker {
  margin: 0 0 8px;
  color: #1677ff;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 800;
}

.market-hero-panel h1 {
  max-width: 650px;
  margin: 0;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: 0;
}

.market-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  min-width: 430px;
}

.market-hero-stats article {
  padding: 16px;
  border-radius: 8px;
  background: #f7f9fc;
  border: 1px solid #e6ebf3;
}

.market-hero-stats span,
.market-source span,
.market-table small,
.market-mini-row small {
  display: block;
  color: #6b7280;
  font-size: 12px;
}

.market-hero-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.market-category-bar {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e1e6ef;
}

.market-category,
.market-refresh {
  height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.market-category {
  background: transparent;
  color: #4b5563;
}

.market-category:hover,
.market-category.active {
  background: #111827;
  color: #fff;
}

.market-search {
  flex: 1;
}

.market-search input {
  width: 100%;
  height: 38px;
  border: 1px solid #dce2ec;
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  background: #f8fafc;
}

.market-refresh {
  color: #1677ff;
  background: #eaf2ff;
}

.market-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.market-spotlight-card {
  border-radius: 8px;
  padding: 18px;
}

.market-spotlight-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.market-spotlight-head strong {
  font-size: 18px;
}

.market-spotlight-head span {
  color: #6b7280;
  font-size: 12px;
}

.market-mini-list {
  display: grid;
  gap: 8px;
}

.market-mini-row {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f9fc;
  color: inherit;
  text-decoration: none;
}

.market-mini-row:hover {
  background: #eef4ff;
}

.market-mini-row em {
  font-style: normal;
  font-weight: 800;
}

.market-table-panel {
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
}

.market-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid #e6ebf3;
}

.market-table-toolbar h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

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

.market-table-wrap {
  position: relative;
  overflow-x: auto;
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.market-table th,
.market-table td {
  padding: 15px 24px;
  text-align: left;
  border-bottom: 1px solid #edf1f6;
  white-space: nowrap;
}

.market-table th {
  color: #6b7280;
  background: #fbfcfe;
  font-size: 12px;
  font-weight: 800;
}

.market-table td {
  font-size: 14px;
  font-weight: 650;
}

.market-table td:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.market-coin {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef4ff;
  color: #1677ff;
  font-weight: 900;
}

.target-market-page .up {
  color: #00a77a;
}

.target-market-page .down {
  color: #e23d4f;
}

.market-trade-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  height: 34px;
  border-radius: 8px;
  background: #f0f7ff;
  color: #1677ff;
  text-decoration: none;
  font-weight: 800;
}

.market-trade-link:hover {
  color: #fff;
  background: #1677ff;
}

.market-empty {
  padding: 36px;
  text-align: center;
  color: #6b7280;
}

.target-market-page.market-dark {
  background: #080a0f;
  color: #f3f6fc;
}

body[data-page-key="market"],
body[data-page-key="market"] .page-shell {
  background: #080a0f;
}

.market-dark .market-topbar,
.market-dark .market-hero-panel,
.market-dark .market-category-bar,
.market-dark .market-spotlight-card,
.market-dark .market-table-panel {
  background: #10131b;
  border-color: #242a36;
  box-shadow: none;
}

.market-dark .market-topbar {
  background: rgba(13, 16, 24, 0.96);
}

.market-dark .market-brand,
.market-dark .market-nav a.active,
.market-dark .market-spotlight-head strong,
.market-dark .market-table-toolbar h2,
.market-dark .market-table td {
  color: #f7f9ff;
}

.market-dark .market-nav a,
.market-dark .market-login {
  color: #a7b0c0;
}

.market-dark .market-nav a:hover,
.market-dark .market-nav a.active {
  background: #1b2230;
}

.market-dark .market-login,
.market-dark .market-hero-stats article,
.market-dark .market-search input,
.market-dark .market-mini-row {
  background: #151a24;
  border-color: #2a3140;
  color: #eef3fb;
}

.market-dark .market-category {
  color: #b9c2d0;
}

.market-dark .market-category:hover,
.market-dark .market-category.active {
  background: #1677ff;
  color: #fff;
}

.market-dark .market-refresh,
.market-dark .market-trade-link {
  background: #11233b;
  color: #5fa2ff;
}

.market-dark .market-refresh:hover,
.market-dark .market-trade-link:hover {
  background: #1677ff;
  color: #fff;
}

.market-dark .market-table th {
  background: #0c0f16;
  color: #80899a;
}

.market-dark .market-table th,
.market-dark .market-table td,
.market-dark .market-table-toolbar {
  border-color: #242a36;
}

.market-dark .market-coin {
  background: #17243a;
}

.options-terminal-page {
  min-height: 100vh;
  background: #07090e;
  color: #eff4fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-page-key="trade-options"],
body[data-page-key="trade-options"] .page-shell {
  background: #07090e;
}

body[data-page-key="trade-options"] .main-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.options-topbar {
  height: 64px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid #1d2330;
  background: #0d1017;
}

.options-brand,
.options-nav,
.options-account {
  display: flex;
  align-items: center;
}

.options-brand {
  gap: 10px;
  color: #fff;
}

.options-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #1677ff;
  font-weight: 900;
}

.options-nav {
  gap: 8px;
}

.options-nav a,
.options-account a {
  color: #aeb7c7;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.options-nav a.active,
.options-nav a:hover,
.options-account .primary {
  color: #fff;
  background: #1677ff;
}

.options-account {
  gap: 8px;
}

.options-workspace {
  display: grid;
  grid-template-columns: 280px minmax(520px, 1fr) 330px;
  gap: 10px;
  padding: 10px;
}

.options-market-rail,
.options-chart-panel,
.options-order-panel,
.options-history-panel {
  border: 1px solid #1f2633;
  background: #0f131b;
}

.options-market-rail,
.options-order-panel {
  min-height: calc(100vh - 84px);
  padding: 16px;
}

.options-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.options-panel-head strong {
  font-size: 18px;
}

.options-panel-head span,
.options-search span,
.options-order-form span,
.options-risk-box span,
.options-market-stats span,
.options-pair-strip p,
.options-history-table .head {
  color: #7f8a9d;
  font-size: 12px;
  font-weight: 800;
}

.options-search,
.options-order-form label {
  display: grid;
  gap: 7px;
}

.options-search input,
.options-order-form input,
.options-order-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #283141;
  border-radius: 6px;
  padding: 0 12px;
  background: #090c12;
  color: #f1f5fb;
  font: inherit;
}

.options-symbol-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.options-symbol-list button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px;
  color: #edf2fa;
  background: #121823;
  text-align: left;
  cursor: pointer;
}

.options-symbol-list button.active,
.options-symbol-list button:hover {
  border-color: #1677ff;
  background: #15243a;
}

.options-symbol-list small {
  display: block;
  color: #738094;
}

.options-symbol-list em {
  font-style: normal;
  font-weight: 900;
}

.options-chart-panel {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.options-pair-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border-bottom: 1px solid #1f2633;
}

.options-pair-strip h1 {
  margin: 2px 0 0;
  font-size: 32px;
  line-height: 1;
}

.options-market-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: 8px;
}

.options-market-stats article {
  padding: 12px;
  border-radius: 8px;
  background: #121823;
  border: 1px solid #232b39;
}

.options-market-stats strong {
  display: block;
  margin-top: 6px;
  white-space: nowrap;
  font-size: 15px;
}

.options-chart-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-bottom: 1px solid #1f2633;
}

.options-chart-toolbar button {
  border: 0;
  border-radius: 6px;
  padding: 7px 11px;
  background: transparent;
  color: #aab4c4;
  font-weight: 900;
  cursor: pointer;
}

.options-chart-toolbar button.active,
.options-chart-toolbar button:hover {
  color: #fff;
  background: #1677ff;
}

.options-chart-toolbar span {
  margin-left: auto;
  color: #7f8a9d;
  font-size: 12px;
}

.options-chart {
  width: 100%;
  height: 100%;
  min-height: 460px;
  display: block;
  background: #090b10;
}

.options-order-form {
  display: grid;
  gap: 13px;
}

.options-direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.options-direction-grid button {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  color: #07100d;
  font-weight: 950;
  cursor: pointer;
}

.options-direction-grid .call {
  background: #00c087;
}

.options-direction-grid .put {
  background: #ff4b5c;
  color: #1d0509;
}

.options-risk-box {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  background: #111722;
  color: #aab4c4;
}

.options-risk-box p {
  margin: 6px 0 0;
  font-size: 13px;
}

.options-history-panel {
  margin: 0 10px 18px;
  padding: 16px;
}

.options-history-table {
  display: grid;
  gap: 0;
}

.options-history-table > div {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #1f2633;
}

.options-history-table .empty {
  display: block;
  color: #7f8a9d;
}

.options-terminal-page .up {
  color: #00c087;
}

.options-terminal-page .down {
  color: #ff4b5c;
}

.wallet-page {
  min-height: 100vh;
  background: #07090e;
  color: #eef3fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-page-key="assets"],
body[data-page-key="assets"] .page-shell {
  background: #07090e;
}

body[data-page-key="assets"] .main-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.wallet-topbar {
  height: 64px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid #1d2330;
  background: #0d1017;
}

.wallet-brand,
.wallet-nav,
.wallet-account,
.wallet-action-row,
.wallet-section-head {
  display: flex;
  align-items: center;
}

.wallet-brand {
  gap: 10px;
  color: #fff;
}

.wallet-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #1677ff;
  font-weight: 900;
}

.wallet-nav {
  gap: 8px;
}

.wallet-nav a,
.wallet-account a,
.wallet-account button,
.wallet-section-head a {
  color: #aeb7c7;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.wallet-nav a.active,
.wallet-nav a:hover,
.wallet-section-head a,
.wallet-account button:hover {
  color: #fff;
  background: #1677ff;
}

.wallet-account {
  gap: 8px;
}

.wallet-account button {
  border: 0;
  background: #151a24;
  cursor: pointer;
}

.wallet-shell {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.wallet-balance-panel,
.wallet-asset-panel,
.wallet-panel {
  border: 1px solid #1f2633;
  background: #0f131b;
}

.wallet-balance-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 1.2fr) max-content;
  align-items: center;
  gap: 22px;
  min-height: 214px;
  padding: 28px;
}

.wallet-balance-copy span,
.wallet-section-head span,
.wallet-form span,
.wallet-address-strip span,
.wallet-asset-row span,
.wallet-history-table .head,
.wallet-method-list span,
.wallet-method-list em {
  color: #7f8a9d;
  font-size: 12px;
  font-weight: 800;
}

.wallet-balance-copy h1 {
  margin: 8px 0 12px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.wallet-balance-copy strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.wallet-balance-copy p {
  margin: 12px 0 0;
  color: #9aa5b8;
  font-weight: 700;
}

.wallet-balance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(128px, 1fr));
  gap: 10px;
}

.wallet-balance-grid article {
  min-height: 92px;
  padding: 16px;
  border: 1px solid #232b39;
  background: #121823;
}

.wallet-balance-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 18px;
}

.wallet-action-row {
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 148px;
}

.wallet-action-row button,
.wallet-asset-row button,
.wallet-primary {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #1677ff;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.wallet-action-row button:nth-child(2),
.wallet-action-row button:nth-child(3),
.wallet-asset-row button {
  background: #11233b;
  color: #5fa2ff;
}

.wallet-action-row button:hover,
.wallet-asset-row button:hover,
.wallet-primary:hover {
  background: #2c8dff;
  color: #fff;
}

.wallet-asset-panel,
.wallet-panel {
  padding: 18px;
}

.wallet-section-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.wallet-section-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.wallet-asset-list {
  display: grid;
  gap: 8px;
}

.wallet-asset-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) 110px;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid #1f2633;
  background: #121823;
}

.wallet-asset-row strong {
  display: block;
  font-size: 17px;
}

.wallet-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.wallet-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wallet-form.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wallet-form label,
.wallet-form .wide {
  display: grid;
  gap: 7px;
}

.wallet-form .wide {
  grid-column: span 2;
}

.wallet-form.compact .wide {
  grid-column: span 3;
}

.wallet-form input,
.wallet-form select,
.wallet-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #283141;
  border-radius: 6px;
  padding: 0 12px;
  background: #090c12;
  color: #f1f5fb;
  font: inherit;
}

.wallet-form textarea {
  padding-top: 10px;
  resize: vertical;
}

.wallet-form button {
  align-self: end;
}

.wallet-address-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.wallet-address-strip div {
  padding: 12px;
  border: 1px solid #232b39;
  background: #111722;
}

.wallet-method-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.wallet-method-list div,
.wallet-method-list p {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr) 72px;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 12px;
  border: 1px solid #232b39;
  background: #111722;
  color: #f1f5fb;
}

.wallet-method-list em {
  font-style: normal;
  text-align: right;
}

.wallet-history-grid {
  display: grid;
  gap: 18px;
}

.wallet-history-grid > div > strong {
  display: block;
  margin-bottom: 8px;
}

.wallet-history-table {
  display: grid;
  border-top: 1px solid #232b39;
}

.wallet-history-table > div,
.wallet-history-table > a {
  display: grid;
  grid-template-columns: 0.7fr 0.8fr 1fr 0.9fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #232b39;
  color: inherit;
}

.wallet-history-table p {
  margin: 0;
  padding: 14px 0;
  color: #7f8a9d;
}

.wallet-dark input::placeholder,
.wallet-dark textarea::placeholder {
  color: #596579;
}

.bank-card-page,
.add-bank-card-page {
  min-height: 100vh;
  background: #07090e;
  color: #eef3fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-page-key="bank-card"],
body[data-page-key="add-bank-card"],
body[data-page-key="bank-card"] .page-shell,
body[data-page-key="add-bank-card"] .page-shell {
  background: #07090e;
}

body[data-page-key="bank-card"] .main-container,
body[data-page-key="add-bank-card"] .main-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.bank-card-topbar {
  height: 64px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid #1d2330;
  background: #0d1017;
}

.bank-card-brand,
.bank-card-nav,
.bank-card-account,
.bank-card-panel-head,
.bank-card-form-actions {
  display: flex;
  align-items: center;
}

.bank-card-brand {
  gap: 10px;
  color: #fff;
}

.bank-card-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #1677ff;
  font-weight: 900;
}

.bank-card-nav {
  gap: 8px;
}

.bank-card-nav a,
.bank-card-account a,
.bank-card-form-actions a {
  color: #aeb7c7;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.bank-card-nav a.active,
.bank-card-nav a:hover,
.bank-card-account a:hover,
.bank-card-form-actions a:hover {
  color: #fff;
  background: #1677ff;
}

.bank-card-account {
  gap: 8px;
}

.bank-card-shell {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.bank-card-hero,
.bank-card-side-panel,
.bank-card-list-panel,
.bank-card-form-panel,
.bank-card-security-panel {
  border: 1px solid #1f2633;
  background: #0f131b;
}

.bank-card-hero {
  min-height: 214px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(260px, 360px) 160px;
  align-items: center;
  gap: 22px;
  padding: 28px;
}

.bank-card-hero.compact {
  grid-template-columns: minmax(360px, 1fr) minmax(280px, 420px);
}

.bank-card-hero h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
}

.bank-card-hero p,
.bank-card-security-panel p,
.bank-card-empty p {
  margin: 12px 0 0;
  color: #8f9aac;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 700;
}

.bank-card-hero-card {
  min-height: 120px;
  padding: 18px;
  border: 1px solid #232b39;
  background: #121823;
}

.bank-card-hero-card span,
.bank-card-panel-head span,
.bank-card-detail-list span,
.bank-card-item-main span,
.bank-card-meta-grid span,
.bank-card-form-grid span {
  color: #7f8a9d;
  font-size: 12px;
  font-weight: 800;
}

.bank-card-hero-card strong {
  display: block;
  margin: 12px 0 8px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.bank-card-hero-card small {
  color: #8f9aac;
  font-weight: 700;
}

.bank-card-primary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: #1677ff;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.bank-card-primary:hover {
  background: #2c8dff;
  color: #fff;
}

.bank-card-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 12px;
}

.bank-card-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 12px;
}

.bank-card-side-panel,
.bank-card-list-panel,
.bank-card-form-panel,
.bank-card-security-panel {
  padding: 18px;
}

.bank-card-panel-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.bank-card-panel-head strong {
  font-size: 18px;
}

.bank-card-user-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px;
  border: 1px solid #232b39;
  background: #111722;
  text-align: center;
}

.bank-card-user-card span {
  color: #8f9aac;
  font-size: 13px;
  font-weight: 700;
}

.bank-card-avatar {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #1677ff;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.bank-card-detail-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.bank-card-detail-list div {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1.1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #232b39;
  background: #111722;
}

.bank-card-detail-list b {
  overflow-wrap: anywhere;
  color: #f1f5fb;
  font-size: 13px;
}

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

.bank-card-item {
  padding: 18px;
  border: 1px solid #232b39;
  background: #111722;
}

.bank-card-item-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.bank-card-item-main strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.bank-card-number {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #263042;
  background: #080b11;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.bank-card-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bank-card-meta-grid div {
  min-height: 68px;
  padding: 12px;
  border: 1px solid #232b39;
  background: #0c111a;
}

.bank-card-meta-grid b {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: #f1f5fb;
  font-size: 13px;
}

.bank-card-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  justify-items: center;
  padding: 32px;
  border: 1px solid #232b39;
  background: #111722;
  text-align: center;
}

.bank-card-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bank-card-form-grid label {
  display: grid;
  gap: 7px;
}

.bank-card-form-grid .wide {
  grid-column: span 2;
}

.bank-card-form-grid input,
.bank-card-form-grid textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #283141;
  border-radius: 6px;
  padding: 0 12px;
  background: #090c12;
  color: #f1f5fb;
  font: inherit;
}

.bank-card-form-grid textarea {
  min-height: 108px;
  padding-top: 10px;
  resize: vertical;
}

.bank-card-dark input::placeholder,
.bank-card-dark textarea::placeholder {
  color: #596579;
}

.bank-card-form-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.bank-card-security-panel p {
  padding-top: 4px;
}

.deposit-page {
  min-height: 100vh;
  background: #07090e;
  color: #eef3fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-page-key="assets-deposit"],
body[data-page-key="assets-deposit"] .page-shell {
  background: #07090e;
}

body[data-page-key="assets-deposit"] .main-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.deposit-shell {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.deposit-hero,
.deposit-asset-rail,
.deposit-address-panel,
.deposit-submit-panel,
.deposit-history-panel {
  border: 1px solid #1f2633;
  background: #0f131b;
}

.deposit-hero {
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 0.9fr);
  gap: 22px;
  align-items: center;
  padding: 28px;
}

.deposit-back {
  display: inline-flex;
  margin-bottom: 12px;
  color: #5fa2ff;
  font-size: 13px;
  font-weight: 900;
}

.deposit-hero h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
}

.deposit-hero p {
  max-width: 640px;
  margin: 14px 0 0;
  color: #9aa5b8;
  font-weight: 700;
  line-height: 1.55;
}

.deposit-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.deposit-hero-stats article {
  min-height: 92px;
  padding: 16px;
  border: 1px solid #232b39;
  background: #121823;
}

.deposit-section-head span,
.deposit-hero-stats span,
.deposit-form span,
.deposit-network-head span,
.deposit-copy-stack span,
.deposit-asset-list small,
.deposit-history-table .head,
.deposit-risk-card span {
  color: #7f8a9d;
  font-size: 12px;
  font-weight: 800;
}

.deposit-hero-stats strong,
.deposit-section-head strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.deposit-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 360px;
  gap: 12px;
}

.deposit-asset-rail,
.deposit-address-panel,
.deposit-submit-panel,
.deposit-history-panel {
  padding: 18px;
}

.deposit-section-head {
  margin-bottom: 16px;
}

.deposit-section-head.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.deposit-section-head a {
  color: #5fa2ff;
  font-size: 13px;
  font-weight: 900;
}

.deposit-asset-list {
  display: grid;
  gap: 8px;
}

.deposit-asset-list a {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid transparent;
  background: #121823;
  color: #eef3fb;
}

.deposit-asset-list a.active,
.deposit-asset-list a:hover {
  border-color: #1677ff;
  background: #15243a;
}

.deposit-asset-list small,
.deposit-asset-list em {
  display: block;
  font-style: normal;
}

.deposit-asset-list em {
  color: #5fa2ff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.deposit-risk-card {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #2d2634;
  background: #19131b;
}

.deposit-risk-card p {
  margin: 8px 0 0;
  color: #b8a6b0;
  font-size: 13px;
  line-height: 1.45;
}

.deposit-network-list {
  display: grid;
  gap: 12px;
}

.deposit-network-list article {
  border: 1px solid #232b39;
  background: #121823;
}

.deposit-network-list article.active {
  border-color: #1677ff;
}

.deposit-network-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid #232b39;
}

.deposit-address-box {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.deposit-qr-frame {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2a3344;
  background: #090c12;
  overflow: hidden;
}

.deposit-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deposit-qr-frame.fallback {
  display: grid;
  place-items: center;
  color: #f3f7ff;
  text-align: center;
}

.deposit-qr-frame.fallback span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 14px solid #1677ff;
  background: #101827;
  font-weight: 950;
}

.deposit-qr-frame.fallback small {
  align-self: start;
  color: #7f8a9d;
  font-weight: 900;
}

.deposit-copy-stack,
.deposit-form {
  display: grid;
  gap: 12px;
}

.deposit-copy-stack label,
.deposit-form label {
  display: grid;
  gap: 7px;
}

.deposit-copy-stack input,
.deposit-form input,
.deposit-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #283141;
  border-radius: 6px;
  padding: 0 12px;
  background: #090c12;
  color: #f1f5fb;
  font: inherit;
}

.deposit-copy-stack button,
.deposit-primary {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #1677ff;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.deposit-copy-stack button:hover,
.deposit-primary:hover {
  background: #2c8dff;
}

.deposit-empty-address {
  padding: 26px;
  border: 1px dashed #2d3545;
  background: #101722;
  color: #9aa5b8;
}

.deposit-empty-address strong {
  display: block;
  color: #fff;
  margin-bottom: 8px;
}

.deposit-upload-zone {
  min-height: 132px;
  padding: 14px;
  border: 1px dashed #334059;
  background: #090c12;
  cursor: pointer;
}

.deposit-upload-zone input {
  padding: 9px 0;
  border: 0;
  min-height: 0;
}

.deposit-upload-zone em {
  color: #7f8a9d;
  font-size: 13px;
  font-style: normal;
}

.deposit-upload-zone img {
  width: 100%;
  max-height: 160px;
  margin-top: 10px;
  object-fit: contain;
  border: 1px solid #232b39;
  background: #05070b;
}

.deposit-history-table {
  display: grid;
  border-top: 1px solid #232b39;
}

.deposit-history-table > div,
.deposit-history-table > a {
  display: grid;
  grid-template-columns: 0.7fr 0.8fr 0.9fr 1fr 0.9fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #232b39;
  color: inherit;
}

.deposit-history-table p {
  margin: 0;
  padding: 14px 0;
  color: #7f8a9d;
}

.deposit-dark input::placeholder {
  color: #596579;
}

.futures-terminal-page {
  min-height: 100vh;
  background: #07090e;
  color: #eff4fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-page-key="trade-futures"],
body[data-page-key="trade-futures"] .page-shell {
  background: #07090e;
}

body[data-page-key="trade-futures"] .main-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.futures-topbar {
  height: 64px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid #1d2330;
  background: #0d1017;
}

.futures-brand,
.futures-nav,
.futures-account {
  display: flex;
  align-items: center;
}

.futures-brand {
  gap: 10px;
  color: #fff;
}

.futures-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #1677ff;
  font-weight: 900;
}

.futures-nav,
.futures-account {
  gap: 8px;
}

.futures-nav a,
.futures-account a {
  color: #aeb7c7;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.futures-nav a.active,
.futures-nav a:hover,
.futures-account .primary {
  color: #fff;
  background: #1677ff;
}

.futures-workspace {
  display: grid;
  grid-template-columns: 280px minmax(560px, 1fr) 340px;
  gap: 10px;
  padding: 10px;
}

.futures-market-rail,
.futures-chart-panel,
.futures-order-panel,
.futures-history-panel {
  border: 1px solid #1f2633;
  background: #0f131b;
}

.futures-market-rail,
.futures-order-panel {
  min-height: calc(100vh - 84px);
  padding: 16px;
}

.futures-market-rail {
  max-height: calc(100vh - 84px);
  overflow: hidden;
}

.futures-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.futures-panel-head strong {
  font-size: 18px;
}

.futures-panel-head span,
.futures-search span,
.futures-order-form span,
.futures-market-stats span,
.futures-pair-strip p,
.futures-balance-box span,
.futures-rule-box span,
.futures-estimate-box span,
.futures-depth-head,
.futures-history-table .head {
  color: #7f8a9d;
  font-size: 12px;
  font-weight: 800;
}

.futures-search,
.futures-order-form label {
  display: grid;
  gap: 7px;
}

.futures-search input,
.futures-order-form input,
.futures-order-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #283141;
  border-radius: 6px;
  padding: 0 12px;
  background: #090c12;
  color: #f1f5fb;
  font: inherit;
}

.futures-symbol-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  max-height: calc(100vh - 204px);
  overflow-y: auto;
  padding-right: 4px;
}

.futures-symbol-list::-webkit-scrollbar {
  width: 6px;
}

.futures-symbol-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #283141;
}

.futures-symbol-list button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px;
  color: #edf2fa;
  background: #121823;
  text-align: left;
  cursor: pointer;
}

.futures-symbol-list button.active,
.futures-symbol-list button:hover {
  border-color: #1677ff;
  background: #15243a;
}

.futures-symbol-list small {
  display: block;
  color: #738094;
}

.futures-symbol-list em {
  font-style: normal;
  font-weight: 900;
}

.futures-chart-panel {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-rows: auto auto minmax(360px, 1fr) auto;
}

.futures-pair-strip {
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) minmax(0, 1.28fr);
  gap: 20px;
  padding: 18px;
  border-bottom: 1px solid #1f2633;
}

.futures-pair-strip h1 {
  margin: 2px 0 0;
  font-size: 32px;
  line-height: 1;
}

.futures-market-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.futures-market-stats article,
.futures-balance-box,
.futures-estimate-box,
.futures-rule-box,
.futures-market-context,
.futures-warning {
  padding: 12px;
  border-radius: 8px;
  background: #121823;
  border: 1px solid #232b39;
}

.futures-market-stats strong,
.futures-balance-box strong,
.futures-estimate-box strong,
.futures-market-context strong {
  display: block;
  margin-top: 6px;
  white-space: nowrap;
  font-size: 15px;
}

.futures-market-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.futures-market-context > span {
  grid-column: 1 / -1;
  color: #7f8a9d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.futures-market-context div {
  min-width: 0;
}

.futures-market-context small {
  display: block;
  margin-top: 2px;
  color: #6e7a8d;
  font-weight: 800;
}

.futures-chart-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-bottom: 1px solid #1f2633;
}

.futures-chart-toolbar button {
  border: 0;
  border-radius: 6px;
  padding: 7px 11px;
  background: transparent;
  color: #aab4c4;
  font-weight: 900;
  cursor: pointer;
}

.futures-chart-toolbar button.active,
.futures-chart-toolbar button:hover {
  color: #fff;
  background: #1677ff;
}

.futures-chart-toolbar span {
  margin-left: auto;
  color: #7f8a9d;
  font-size: 12px;
}

.futures-chart {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  background: #090b10;
}

.futures-depth-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 18px 18px;
  border-top: 1px solid #1f2633;
}

.futures-depth-head,
.futures-depth-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 6px 0;
}

.futures-depth-row {
  position: relative;
  color: #dfe6f2;
  font-size: 12px;
  font-weight: 800;
}

.futures-depth-row.ask span:first-child,
.futures-terminal-page .down {
  color: #ff4b5c;
}

.futures-depth-row.bid span:first-child,
.futures-terminal-page .up {
  color: #00c087;
}

.futures-order-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.futures-balance-box {
  margin-bottom: 12px;
}

.futures-balance-box a {
  display: inline-flex;
  margin-top: 8px;
  color: #5fa2ff;
  font-weight: 900;
}

.futures-warning {
  margin-bottom: 12px;
  color: #ffb4bf;
  background: #1a1218;
  border-color: #3b2530;
  font-size: 13px;
  font-weight: 800;
}

.futures-estimate-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.futures-direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.futures-direction-grid button {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  font-weight: 950;
  cursor: pointer;
}

.futures-direction-grid .long {
  background: #00c087;
  color: #04120e;
}

.futures-direction-grid .short {
  background: #ff4b5c;
  color: #190407;
}

.futures-rule-box {
  margin-top: 14px;
  color: #aab4c4;
}

.futures-rule-box p {
  margin: 7px 0;
  font-size: 13px;
}

.futures-rule-box strong {
  color: #fff;
}

.futures-history-panel {
  margin: 0 10px 18px;
  padding: 16px;
}

.futures-history-table {
  display: grid;
}

.futures-history-table > div,
.futures-history-table > a {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #1f2633;
  color: #dbe4f5;
  text-decoration: none;
}

.futures-history-table > a:hover {
  color: #fff;
  background: rgba(7, 93, 245, 0.08);
}

.futures-history-table .empty {
  display: block;
  color: #7f8a9d;
}

.futures-terminal-page input::placeholder {
  color: #596579;
}

.delivery-terminal-page {
  min-height: 100vh;
  background: #07090e;
  color: #eff4fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-page-key="trade-delivery"],
body[data-page-key="trade-delivery"] .page-shell {
  background: #07090e;
}

body[data-page-key="trade-delivery"] .main-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.delivery-topbar {
  height: 64px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid #1d2330;
  background: #0d1017;
}

.delivery-brand,
.delivery-nav,
.delivery-account {
  display: flex;
  align-items: center;
}

.delivery-brand {
  gap: 10px;
  color: #fff;
}

.delivery-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #1677ff;
  font-weight: 900;
}

.delivery-nav,
.delivery-account {
  gap: 8px;
}

.delivery-nav a,
.delivery-account a {
  color: #aeb7c7;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.delivery-nav a.active,
.delivery-nav a:hover,
.delivery-account .primary {
  color: #fff;
  background: #1677ff;
}

.delivery-workspace {
  display: grid;
  grid-template-columns: 280px minmax(560px, 1fr) 340px;
  gap: 10px;
  padding: 10px;
}

.delivery-market-rail,
.delivery-chart-panel,
.delivery-order-panel,
.delivery-history-panel {
  border: 1px solid #1f2633;
  background: #0f131b;
}

.delivery-market-rail,
.delivery-order-panel {
  min-height: calc(100vh - 84px);
  padding: 16px;
}

.delivery-market-rail {
  max-height: calc(100vh - 84px);
  overflow: hidden;
}

.delivery-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.delivery-panel-head strong {
  font-size: 18px;
}

.delivery-panel-head span,
.delivery-search span,
.delivery-order-form span,
.delivery-market-stats span,
.delivery-pair-strip p,
.delivery-balance-box span,
.delivery-rule-box span,
.delivery-estimate-box span,
.delivery-rules-strip span,
.delivery-history-table .head {
  color: #7f8a9d;
  font-size: 12px;
  font-weight: 800;
}

.delivery-search,
.delivery-order-form label {
  display: grid;
  gap: 7px;
}

.delivery-search input,
.delivery-order-form input,
.delivery-order-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #283141;
  border-radius: 6px;
  padding: 0 12px;
  background: #090c12;
  color: #f1f5fb;
  font: inherit;
}

.delivery-symbol-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  max-height: calc(100vh - 204px);
  overflow-y: auto;
  padding-right: 4px;
}

.delivery-symbol-list::-webkit-scrollbar {
  width: 6px;
}

.delivery-symbol-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #283141;
}

.delivery-symbol-list button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px;
  color: #edf2fa;
  background: #121823;
  text-align: left;
  cursor: pointer;
}

.delivery-symbol-list button.active,
.delivery-symbol-list button:hover {
  border-color: #1677ff;
  background: #15243a;
}

.delivery-symbol-list small {
  display: block;
  color: #738094;
}

.delivery-symbol-list em {
  font-style: normal;
  font-weight: 900;
}

.delivery-chart-panel {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-rows: auto auto minmax(360px, 1fr) auto;
}

.delivery-pair-strip {
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) minmax(0, 1.28fr);
  gap: 20px;
  padding: 18px;
  border-bottom: 1px solid #1f2633;
}

.delivery-pair-strip h1 {
  margin: 2px 0 0;
  font-size: 32px;
  line-height: 1;
}

.delivery-market-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.delivery-market-stats article,
.delivery-balance-box,
.delivery-estimate-box,
.delivery-rule-box,
.delivery-warning {
  padding: 12px;
  border-radius: 8px;
  background: #121823;
  border: 1px solid #232b39;
}

.delivery-market-stats strong,
.delivery-balance-box strong,
.delivery-estimate-box strong {
  display: block;
  margin-top: 6px;
  white-space: nowrap;
  font-size: 15px;
}

.delivery-chart-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-bottom: 1px solid #1f2633;
}

.delivery-chart-toolbar button {
  border: 0;
  border-radius: 6px;
  padding: 7px 11px;
  background: transparent;
  color: #aab4c4;
  font-weight: 900;
  cursor: pointer;
}

.delivery-chart-toolbar button.active,
.delivery-chart-toolbar button:hover {
  color: #fff;
  background: #1677ff;
}

.delivery-chart-toolbar span {
  margin-left: auto;
  color: #7f8a9d;
  font-size: 12px;
}

.delivery-chart {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  background: #090b10;
}

.delivery-rules-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 18px 18px;
  border-top: 1px solid #1f2633;
}

.delivery-rules-strip button {
  min-height: 68px;
  border: 1px solid #232b39;
  border-radius: 8px;
  background: #121823;
  color: #f1f5fb;
  text-align: left;
  padding: 10px;
  cursor: pointer;
}

.delivery-rules-strip button.active,
.delivery-rules-strip button:hover {
  border-color: #1677ff;
  background: #15243a;
}

.delivery-rules-strip strong,
.delivery-rules-strip span {
  display: block;
}

.delivery-order-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.delivery-balance-box {
  margin-bottom: 12px;
}

.delivery-balance-box a {
  display: inline-flex;
  margin-top: 8px;
  color: #5fa2ff;
  font-weight: 900;
}

.delivery-warning {
  margin-bottom: 12px;
  color: #ffb4bf;
  background: #1a1218;
  border-color: #3b2530;
  font-size: 13px;
  font-weight: 800;
}

.delivery-estimate-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.delivery-direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.delivery-direction-grid button {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  font-weight: 950;
  cursor: pointer;
}

.delivery-direction-grid .call {
  background: #00c087;
  color: #04120e;
}

.delivery-direction-grid .put {
  background: #ff4b5c;
  color: #190407;
}

.delivery-rule-box {
  margin-top: 14px;
  color: #aab4c4;
}

.delivery-rule-box p {
  margin: 7px 0 0;
  font-size: 13px;
}

.delivery-history-panel {
  margin: 0 10px 18px;
  padding: 16px;
}

.delivery-history-table {
  display: grid;
}

.delivery-history-table > div,
.delivery-history-table > a {
  display: grid;
  grid-template-columns: 0.9fr 1fr 0.9fr 0.9fr 0.9fr 0.9fr 0.9fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #1f2633;
  color: #dbe4f5;
  text-decoration: none;
}

.delivery-history-table > a:hover {
  color: #fff;
  background: rgba(7, 93, 245, 0.08);
}

.delivery-history-table .empty {
  display: block;
  color: #7f8a9d;
}

.delivery-terminal-page .up {
  color: #00c087;
}

.delivery-terminal-page .down {
  color: #ff4b5c;
}

.delivery-terminal-page input::placeholder {
  color: #596579;
}

/* Swan-style stock options terminal */
.options-terminal-page[data-options-layout="asset-options-terminal"] {
  min-height: 100vh;
  overflow: hidden;
  background: #08090d;
  color: #f4f6fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.options-terminal-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-topbar {
  height: 72px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 22px;
  padding: 0 20px;
  border-bottom: 1px solid #1d222c;
  background: #0d0f14;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-brand {
  gap: 10px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-brand span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #0b111c;
  font-weight: 950;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-nav {
  justify-content: center;
  gap: 28px;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-nav a {
  padding: 0;
  color: #8f9299;
  background: transparent;
  border-radius: 0;
  font-size: 19px;
  font-weight: 850;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-nav a.active,
.options-terminal-page[data-options-layout="asset-options-terminal"] .options-nav a:hover {
  color: #f8f8fb;
  background: transparent;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-account {
  gap: 12px;
}

.options-deposit {
  min-width: 94px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #ffffff !important;
  background: #075df5 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.options-icon-button,
.options-avatar {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #2a2f38;
  color: #d5dae4;
  font-size: 12px;
  font-weight: 900;
}

.options-balance-chip {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 8px;
  padding: 0 !important;
  color: #e9eef7 !important;
  background: transparent !important;
  line-height: 1.05;
}

.options-balance-chip span {
  color: #1d77ff;
  font-size: 13px;
  font-weight: 850;
}

.options-balance-chip strong {
  color: #0f65ff;
  font-size: 24px;
  font-weight: 900;
}

.options-balance-chip small {
  grid-column: 1 / -1;
  justify-self: end;
  color: #e6e9ef;
  font-size: 12px;
}

.options-stage {
  height: calc(100vh - 72px);
  display: grid;
  grid-template-rows: 82px minmax(0, 1fr) 32px;
  gap: 0;
  min-width: 0;
}

.options-product-strip {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(104px, 128px) minmax(280px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 20px 10px;
  background: #08090d;
  min-width: 0;
}

.options-product-selector {
  display: flex;
  align-items: center;
  gap: 16px;
}

.options-menu-dot {
  width: 30px;
  height: 30px;
  border: 0;
  background:
    linear-gradient(#93a0b5, #93a0b5) 4px 7px / 18px 3px no-repeat,
    linear-gradient(#93a0b5, #93a0b5) 4px 14px / 12px 3px no-repeat,
    linear-gradient(#93a0b5, #93a0b5) 4px 21px / 18px 3px no-repeat;
  cursor: pointer;
}

.options-product-pill {
  min-width: 132px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 24px;
  padding: 6px 12px 6px 8px;
  background: #071a3e;
  color: #ffffff;
  cursor: pointer;
}

.options-product-logo {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  color: #0a0d13;
  font-size: 18px;
  font-weight: 950;
}

.options-product-pill strong {
  font-size: 16px;
  white-space: nowrap;
}

.options-price-ticker {
  display: grid;
  gap: 3px;
}

.options-price-ticker strong {
  color: #ff3155;
  font-size: 18px;
  font-weight: 950;
}

.options-price-ticker span {
  font-size: 14px;
  font-weight: 900;
}

.options-market-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  max-width: 520px;
  gap: 24px;
}

.options-market-stats article {
  padding: 0;
  border: 0;
  background: transparent;
}

.options-market-stats span {
  display: block;
  color: #8792a7;
  font-size: 12px;
  font-weight: 800;
}

.options-market-stats strong {
  display: block;
  margin-top: 6px;
  color: #f6f8fc;
  font-size: 17px;
  font-weight: 900;
}

.options-info-button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #8d96a6;
  color: #ffffff;
  font-weight: 950;
}

.options-strip-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.options-funding-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  background: #0052ff;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.options-trading-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 316px) minmax(0, 1fr);
  gap: 10px;
  padding: 0 16px;
  overflow: hidden;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-order-panel,
.options-terminal-page[data-options-layout="asset-options-terminal"] .options-chart-panel,
.options-terminal-page[data-options-layout="asset-options-terminal"] .options-history-panel {
  border: 0;
  background: #0d111a;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-order-panel {
  min-height: 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  padding: 12px;
  border-radius: 8px;
  overflow: hidden;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-order-form {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.options-duration-select select,
.options-amount-stepper,
.options-terminal-page[data-options-layout="asset-options-terminal"] .options-order-form input {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 4px;
  background: #0c1a36;
  color: #f7f9fd;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}

.options-duration-select select {
  padding: 0 12px;
  appearance: none;
}

.options-amount-stepper {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
}

.options-amount-stepper button {
  height: 58px;
  border: 0;
  background: transparent;
  color: #d7e4ff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.options-amount-stepper label {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.options-amount-stepper label span {
  color: #75839c;
  font-size: 16px;
  font-weight: 700;
}

.options-amount-stepper input {
  min-height: 22px !important;
  padding: 0 !important;
  border: 0 !important;
  width: min(100%, 240px) !important;
  text-align: center;
  background: transparent !important;
}

.options-profit-row,
.options-available-row {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  color: #aeb8c9;
  font-size: 13px;
  font-weight: 750;
}

.options-profit-row strong,
.options-available-row strong {
  color: #f4f7fc;
  min-width: 48px;
  text-align: left;
  white-space: nowrap;
}

.options-available-row strong {
  color: #0b66ff;
  font-size: 14px;
}

.options-profit-value {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-direction-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 4px;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-direction-grid button {
  min-height: 56px;
  border: 0;
  border-radius: 0;
  color: #eafff8;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-direction-grid button span {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-direction-grid .call {
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  background: #2fa272;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-direction-grid .put {
  margin-left: -8px;
  padding-left: 12px;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
  background: #c93652;
  color: #ffeef2;
}

.options-sentiment {
  align-self: end;
  display: grid;
  gap: 8px;
  padding: 16px 0 0;
  min-width: 0;
  overflow: hidden;
}

.options-sentiment-track {
  display: grid;
  grid-template-columns: repeat(28, minmax(0, 1fr));
  gap: 3px;
  min-height: 32px;
  align-items: center;
  overflow: hidden;
}

.options-sentiment-track span {
  width: 100%;
  min-width: 0;
  height: 20px;
  display: block;
  transform: skewX(-28deg);
  border: 1px solid currentColor;
  border-radius: 2px;
}

.options-sentiment > div:last-child {
  display: flex;
  justify-content: space-between;
  color: #9da7b8;
  font-size: 12px;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-chart-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) minmax(180px, 250px);
  gap: 10px;
  background: transparent;
  overflow: hidden;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-chart-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 50px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: #0d1423;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-chart-toolbar button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #adc0e8;
  font-size: 16px;
  font-weight: 750;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-chart-toolbar button.active,
.options-terminal-page[data-options-layout="asset-options-terminal"] .options-chart-toolbar button:hover {
  color: #ffffff;
  background: transparent;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-chart-toolbar span {
  margin-left: auto;
  color: #8490a4;
  font-size: 12px;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-chart {
  width: 100%;
  height: min(100%, 520px);
  max-height: clamp(300px, 54vh, 520px);
  min-height: 0;
  display: block;
  border-radius: 0 0 8px 8px;
  background: #080b11;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-history-panel {
  margin: 0;
  padding: 18px 20px;
  border-radius: 8px;
  overflow: hidden;
  min-height: 0;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-history-table {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.options-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.options-history-head strong {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-radius: 7px;
  background: #06296f;
  color: #116dff;
  font-size: 14px;
  font-weight: 900;
}

.options-history-head span {
  color: #bac5d5;
  font-size: 12px;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-history-table > div {
  display: grid;
  grid-template-columns: 1.25fr 1.25fr 1.2fr 1.1fr 1.15fr 1fr 1.2fr 0.9fr;
  min-width: 860px;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid #242936;
  color: #d5dbea;
  font-size: 13px;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-history-table .head {
  color: #80889a;
  font-size: 15px;
  font-weight: 700;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-history-table .empty {
  display: block;
  color: #828da1;
  text-align: center;
  font-size: 12px;
}

.options-footer {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  color: #ffffff;
  background: #08090d;
  font-size: 14px;
  font-weight: 800;
}

.options-footer a {
  color: #ffffff;
}

.options-footer span {
  margin-left: auto;
}

.options-product-drawer[hidden] {
  display: none;
}

.options-product-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.options-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.42);
}

.options-drawer-panel {
  position: absolute;
  top: 84px;
  left: 20px;
  width: 320px;
  max-height: calc(100vh - 120px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid #222b3a;
  border-radius: 8px;
  background: #101722;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.options-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.options-drawer-head strong {
  font-size: 18px;
}

.options-drawer-head button {
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-search,
.options-terminal-page[data-options-layout="asset-options-terminal"] .options-order-form label {
  display: grid;
  gap: 7px;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-search span {
  color: #8590a3;
  font-size: 12px;
  font-weight: 800;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #273144;
  border-radius: 5px;
  padding: 0 12px;
  background: #090d14;
  color: #f5f7fc;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-symbol-list {
  min-height: 0;
  display: grid;
  gap: 8px;
  overflow: auto;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-symbol-list button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 10px;
  color: #f3f6fb;
  background: #121a27;
  text-align: left;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-symbol-list button.active,
.options-terminal-page[data-options-layout="asset-options-terminal"] .options-symbol-list button:hover {
  border-color: #116dff;
  background: #13243e;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-symbol-list small {
  display: block;
  margin-top: 3px;
  color: #8290a5;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .options-symbol-list em {
  font-style: normal;
  font-weight: 900;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .up {
  color: #00d58b;
}

.options-terminal-page[data-options-layout="asset-options-terminal"] .down {
  color: #ff3155;
}

@media (max-width: 1380px) {
  .options-product-strip {
    grid-template-columns: minmax(210px, 260px) 110px minmax(260px, 1fr) auto;
    gap: 10px;
    padding-inline: 16px;
  }

  .options-market-stats {
    max-width: 460px;
    gap: 14px;
  }

  .options-trading-grid {
    grid-template-columns: 300px minmax(0, 1fr);
    padding-inline: 10px;
  }

  .options-terminal-page[data-options-layout="asset-options-terminal"] .options-order-panel {
    padding: 10px;
  }

  .options-terminal-page[data-options-layout="asset-options-terminal"] .options-chart-toolbar {
    gap: 20px;
    padding-inline: 36px;
  }

  .options-terminal-page[data-options-layout="asset-options-terminal"] .options-history-panel {
    padding: 14px 16px;
  }
}

@media (max-width: 1180px) {
  .options-stage {
    grid-template-rows: auto minmax(0, 1fr) 32px;
  }

  .options-product-strip {
    grid-template-columns: minmax(200px, 240px) 96px minmax(220px, 1fr);
  }

  .options-strip-actions {
    display: none;
  }

  .options-market-stats {
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    gap: 10px;
  }

  .options-market-stats strong {
    font-size: 14px;
  }

  .options-trading-grid {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 8px;
    padding-inline: 8px;
  }

  .options-terminal-page[data-options-layout="asset-options-terminal"] .options-chart-panel {
    grid-template-rows: auto minmax(300px, 1fr) minmax(170px, 220px);
  }

  .options-terminal-page[data-options-layout="asset-options-terminal"] .options-chart-toolbar {
    gap: 14px;
    padding-inline: 24px;
  }

  .options-terminal-page[data-options-layout="asset-options-terminal"] .options-chart-toolbar button {
    font-size: 14px;
  }
}

/* Dark activity dashboard */
.dashboard-page {
  min-height: 100vh;
  background: #08090d;
  color: #f3f6fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-page-key="dashboard"],
body[data-page-key="dashboard"] .page-shell {
  background: #08090d;
}

body[data-page-key="dashboard"] .main-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.dashboard-topbar {
  height: 72px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 22px;
  padding: 0 20px;
  border-bottom: 1px solid #1d222c;
  background: #0d0f14;
}

.dashboard-brand,
.dashboard-nav,
.dashboard-account {
  display: flex;
  align-items: center;
}

.dashboard-brand {
  gap: 10px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.dashboard-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  color: #0b111c;
  font-weight: 950;
}

.dashboard-nav {
  justify-content: center;
  gap: 28px;
}

.dashboard-nav a {
  color: #8f9299;
  font-size: 19px;
  font-weight: 850;
}

.dashboard-nav a.active,
.dashboard-nav a:hover {
  color: #ffffff;
}

.dashboard-account {
  gap: 12px;
}

.dashboard-deposit,
.dashboard-hero-actions a,
.dashboard-action-grid a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 900;
}

.dashboard-deposit,
.dashboard-hero-actions a:first-child {
  min-width: 94px;
  color: #ffffff;
  background: #075df5;
}

.dashboard-balance {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: #0f65ff;
  font-weight: 950;
}

.dashboard-balance span {
  font-size: 13px;
}

.dashboard-balance strong {
  font-size: 24px;
}

.dashboard-avatar {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #2a2f38;
  color: #d5dae4;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-shell {
  display: grid;
  gap: 12px;
  padding: 18px 16px 24px;
}

.dashboard-hero {
  min-height: 116px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid #1c2430;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 93, 245, 0.22), transparent 42%),
    #0d111a;
}

.dashboard-hero h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1;
}

.dashboard-hero p {
  max-width: 680px;
  margin: 10px 0 0;
  color: #96a0b2;
  font-size: 14px;
}

.dashboard-hero-actions {
  display: flex;
  gap: 10px;
}

.dashboard-hero-actions a {
  min-width: 90px;
  border: 1px solid #263145;
  color: #dce6f6;
  background: #111925;
}

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

.dashboard-metrics article,
.dashboard-main-panel,
.dashboard-side-panel,
.dashboard-panel {
  border: 1px solid #1d2633;
  border-radius: 8px;
  background: #0d111a;
}

.dashboard-metrics article {
  min-height: 104px;
  display: grid;
  gap: 7px;
  padding: 18px;
}

.dashboard-metrics span,
.dashboard-metrics small,
.dashboard-panel-head span,
.dashboard-stat-stack span,
.dashboard-market-summary span,
.dashboard-activity-list small {
  color: #8792a7;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-metrics strong {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.1;
}

.dashboard-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 10px;
}

.dashboard-main-panel,
.dashboard-side-panel,
.dashboard-panel {
  padding: 18px;
}

.dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.dashboard-panel-head strong {
  font-size: 18px;
}

.dashboard-table {
  display: grid;
}

.dashboard-table > div {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr 0.8fr 0.8fr 0.8fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #222a37;
  color: #d8deeb;
  font-size: 13px;
}

.dashboard-table .head {
  color: #8792a7;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-table .empty,
.dashboard-activity-list .empty {
  display: block;
  color: #8792a7;
}

.dashboard-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-action-grid a {
  min-height: 48px;
  color: #eaf1ff;
  background: #111b2a;
  border: 1px solid #263145;
}

.dashboard-action-grid a:first-child {
  color: #ffffff;
  background: #075df5;
  border-color: #075df5;
}

.dashboard-stat-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.dashboard-stat-stack div,
.dashboard-market-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 7px;
  background: #111824;
}

.dashboard-stat-stack strong,
.dashboard-market-summary strong {
  font-size: 15px;
}

.dashboard-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 10px;
}

.dashboard-activity-list {
  display: grid;
  gap: 9px;
}

.dashboard-activity-list > div:not(.empty) {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) max-content max-content;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 7px;
  background: #111824;
  animation: dashboard-row-in 320ms ease both;
  animation-delay: var(--activity-delay, 0ms);
}

.activity-kind {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: #075df5;
  font-weight: 950;
}

.dashboard-activity-list strong,
.dashboard-activity-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-activity-list b {
  white-space: nowrap;
}

.dashboard-market-list {
  display: grid;
  gap: 8px;
}

.dashboard-market-list a {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 7px;
  color: #eef3fb;
  background: #111824;
}

.dashboard-market-list span {
  color: #dce5f5;
  font-weight: 900;
}

.dashboard-market-list em {
  font-style: normal;
  font-weight: 900;
}

.dashboard-market-summary {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.dashboard-page .status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #b8c7df;
  background: #172236;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-page .status.open,
.dashboard-page .status.approved,
.dashboard-page .status.filled {
  color: #00d58b;
  background: rgba(0, 213, 139, 0.12);
}

.dashboard-page .status.pending,
.dashboard-page .status.reviewing {
  color: #f2c94c;
  background: rgba(242, 201, 76, 0.12);
}

.dashboard-page .status.rejected,
.dashboard-page .status.cancelled {
  color: #ff3155;
  background: rgba(255, 49, 85, 0.12);
}

.dashboard-page .up {
  color: #00d58b;
}

.dashboard-page .down {
  color: #ff3155;
}

/* Dark funds bill page */
.bill-page {
  min-height: 100vh;
  background: #08090d;
  color: #f3f6fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-page-key="bill"],
body[data-page-key="bill"] .page-shell {
  background: #08090d;
}

body[data-page-key="bill"] .main-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.bill-topbar {
  height: 72px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 22px;
  padding: 0 20px;
  border-bottom: 1px solid #1d222c;
  background: #0d0f14;
}

.bill-brand,
.bill-nav,
.bill-account {
  display: flex;
  align-items: center;
}

.bill-brand {
  gap: 10px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.bill-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #075df5;
  color: #ffffff;
  font-weight: 950;
}

.bill-nav {
  justify-content: center;
  gap: 24px;
}

.bill-nav a,
.bill-account a {
  color: #9ca5b6;
  font-size: 15px;
  font-weight: 850;
}

.bill-nav a.active,
.bill-nav a:hover,
.bill-account a:hover {
  color: #ffffff;
}

.bill-account {
  gap: 16px;
}

.bill-account a:first-child {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  border-radius: 6px;
  color: #ffffff;
  background: #075df5;
  font-weight: 900;
}

.bill-shell {
  display: grid;
  gap: 12px;
  padding: 18px 16px 24px;
}

.bill-hero {
  min-height: 128px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid #1c2430;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 93, 245, 0.2), transparent 45%),
    #0d111a;
}

.bill-hero h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1;
}

.bill-hero p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #96a0b2;
  font-size: 14px;
  font-weight: 700;
}

.bill-hero-card,
.bill-metrics article,
.bill-filter-panel,
.bill-ledger-panel {
  border: 1px solid #1d2633;
  border-radius: 8px;
  background: #0d111a;
}

.bill-hero-card {
  min-height: 96px;
  padding: 16px;
}

.bill-hero-card span,
.bill-hero-card small,
.bill-metrics span,
.bill-metrics small,
.bill-panel-head span,
.bill-filter-list span,
.bill-profile-box span,
.bill-profile-box small,
.bill-table .head,
.bill-row small {
  color: #8792a7;
  font-size: 12px;
  font-weight: 800;
}

.bill-hero-card strong {
  display: block;
  margin: 8px 0;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
}

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

.bill-metrics article {
  min-height: 104px;
  display: grid;
  gap: 7px;
  padding: 18px;
}

.bill-metrics strong {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.1;
}

.bill-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 10px;
}

.bill-filter-panel,
.bill-ledger-panel {
  padding: 18px;
}

.bill-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.bill-panel-head strong {
  font-size: 18px;
}

.bill-filter-list {
  display: grid;
  gap: 8px;
}

.bill-filter-list a {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid #263145;
  border-radius: 7px;
  color: #eaf1ff;
  background: #111824;
}

.bill-filter-list a.active,
.bill-filter-list a:hover {
  border-color: #075df5;
  background: #075df5;
}

.bill-filter-list b {
  color: #ffffff;
  font-size: 13px;
}

.bill-profile-box {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 7px;
  background: #111824;
}

.bill-profile-box strong {
  color: #ffffff;
  font-size: 18px;
}

.bill-table {
  display: grid;
}

.bill-table > div {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) 0.8fr 0.8fr 0.9fr 0.8fr 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #222a37;
  color: #d8deeb;
  font-size: 13px;
}

.bill-table .head {
  text-transform: uppercase;
}

.bill-row > span {
  min-width: 0;
}

.bill-row strong,
.bill-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bill-kind {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: left;
  margin-right: 10px;
  border-radius: 7px;
  color: #ffffff;
  background: #075df5;
  font-size: 12px;
}

.bill-kind.withdrawal {
  background: #ff3155;
}

.bill-kind.trade {
  background: #00a3ff;
}

.bill-kind.adjustment {
  background: #7c5cff;
}

.bill-table .empty {
  display: block;
  color: #8792a7;
}

.bill-page .status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #b8c7df;
  background: #172236;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.bill-page .status.open,
.bill-page .status.approved,
.bill-page .status.filled,
.bill-page .status.closed,
.bill-page .status.available {
  color: #00d58b;
  background: rgba(0, 213, 139, 0.12);
}

.bill-page .status.pending,
.bill-page .status.reviewing,
.bill-page .status.frozen {
  color: #f2c94c;
  background: rgba(242, 201, 76, 0.12);
}

.bill-page .status.rejected,
.bill-page .status.cancelled {
  color: #ff3155;
  background: rgba(255, 49, 85, 0.12);
}

.bill-page .up {
  color: #00d58b;
}

.bill-page .down {
  color: #ff3155;
}

/* Dark profile security center */
.security-page {
  min-height: 100vh;
  background: #08090d;
  color: #f3f6fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-page-key="profile-security"],
body[data-page-key="profile-security"] .page-shell {
  background: #08090d;
}

body[data-page-key="profile-security"] .main-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.security-topbar {
  height: 72px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 22px;
  padding: 0 20px;
  border-bottom: 1px solid #1d222c;
  background: #0d0f14;
}

.security-brand,
.security-nav,
.security-account {
  display: flex;
  align-items: center;
}

.security-brand {
  gap: 10px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.security-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #075df5;
  color: #ffffff;
  font-weight: 950;
}

.security-nav {
  justify-content: center;
  gap: 24px;
}

.security-nav a,
.security-account a {
  color: #9ca5b6;
  font-size: 15px;
  font-weight: 850;
}

.security-nav a.active,
.security-nav a:hover,
.security-account a:hover {
  color: #ffffff;
}

.security-account {
  gap: 16px;
}

.security-account a:first-child {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  border-radius: 6px;
  color: #ffffff;
  background: #075df5;
  font-weight: 900;
}

.security-shell {
  display: grid;
  gap: 12px;
  padding: 18px 16px 24px;
}

.security-hero {
  min-height: 128px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid #1c2430;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 93, 245, 0.2), transparent 45%),
    #0d111a;
}

.security-hero h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1;
}

.security-hero p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #96a0b2;
  font-size: 14px;
  font-weight: 700;
}

.security-score-card,
.security-metrics article,
.security-panel {
  border: 1px solid #1d2633;
  border-radius: 8px;
  background: #0d111a;
}

.security-score-card {
  min-height: 96px;
  padding: 16px;
}

.security-score-card span,
.security-score-card small,
.security-metrics span,
.security-metrics small,
.security-panel-head span,
.security-check-list small,
.security-form span {
  color: #8792a7;
  font-size: 12px;
  font-weight: 800;
}

.security-score-card strong {
  display: block;
  margin: 8px 0;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
}

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

.security-metrics article {
  min-height: 104px;
  display: grid;
  gap: 7px;
  padding: 18px;
}

.security-metrics strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.1;
}

.security-metrics small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.security-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 10px;
}

.security-panel {
  padding: 18px;
}

.security-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.security-panel-head strong {
  font-size: 18px;
}

.security-check-list {
  display: grid;
  gap: 9px;
}

.security-check-list article {
  min-height: 68px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 7px;
  background: #111824;
}

.security-check-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: #075df5;
  font-weight: 950;
}

.security-check-icon.not_set {
  background: #313a4b;
}

.security-check-list strong,
.security-check-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.security-form {
  display: grid;
  gap: 12px;
}

.security-form label {
  display: grid;
  gap: 7px;
}

.security-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #283141;
  border-radius: 6px;
  padding: 0 12px;
  background: #090c12;
  color: #f1f5fb;
  font: inherit;
}

.security-primary {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #075df5;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.security-primary:hover {
  background: #2378ff;
}

.security-page .status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #b8c7df;
  background: #172236;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.security-page .status.enabled,
.security-page .status.verified,
.security-page .status.active {
  color: #00d58b;
  background: rgba(0, 213, 139, 0.12);
}

.security-page .status.pending,
.security-page .status.reviewing,
.security-page .status.not_set {
  color: #f2c94c;
  background: rgba(242, 201, 76, 0.12);
}

.security-page .status.rejected,
.security-page .status.suspended,
.security-page .status.disabled {
  color: #ff3155;
  background: rgba(255, 49, 85, 0.12);
}

/* Dark withdrawal detail page */
.withdraw-page {
  min-height: 100vh;
  background: #08090d;
  color: #f3f6fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-page-key="assets-withdraw"],
body[data-page-key="assets-withdraw"] .page-shell {
  background: #08090d;
}

body[data-page-key="assets-withdraw"] .main-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.withdraw-topbar {
  height: 72px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 22px;
  padding: 0 20px;
  border-bottom: 1px solid #1d222c;
  background: #0d0f14;
}

.withdraw-brand,
.withdraw-nav,
.withdraw-account {
  display: flex;
  align-items: center;
}

.withdraw-brand {
  gap: 10px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.withdraw-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  color: #0b111c;
  font-weight: 950;
}

.withdraw-nav {
  justify-content: center;
  gap: 24px;
}

.withdraw-nav a {
  color: #8f9299;
  font-size: 18px;
  font-weight: 850;
}

.withdraw-nav a.active,
.withdraw-nav a:hover {
  color: #ffffff;
}

.withdraw-account {
  gap: 12px;
}

.withdraw-account a {
  color: #dce5f5;
  font-weight: 850;
}

.withdraw-deposit-link {
  min-width: 94px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #ffffff !important;
  background: #075df5;
}

.withdraw-shell {
  display: grid;
  gap: 12px;
  padding: 18px 16px 24px;
}

.withdraw-hero {
  min-height: 128px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border: 1px solid #1c2430;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 93, 245, 0.22), transparent 48%),
    #0d111a;
}

.withdraw-hero h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1;
}

.withdraw-hero p {
  max-width: 620px;
  margin: 10px 0 0;
  color: #96a0b2;
  font-size: 14px;
}

.withdraw-balance-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 8px;
  background: #111824;
  border: 1px solid #263145;
}

.withdraw-balance-card span,
.withdraw-balance-card small,
.withdraw-panel-head span,
.withdraw-rule-box p,
.withdraw-form label span,
.withdraw-estimate-box span,
.withdraw-history-list small {
  color: #8792a7;
  font-size: 12px;
  font-weight: 800;
}

.withdraw-balance-card strong {
  color: #ffffff;
  font-size: 25px;
}

.withdraw-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 360px;
  gap: 10px;
}

.withdraw-asset-panel,
.withdraw-form-panel,
.withdraw-history-panel {
  border: 1px solid #1d2633;
  border-radius: 8px;
  background: #0d111a;
  padding: 18px;
}

.withdraw-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.withdraw-panel-head strong {
  font-size: 18px;
}

.withdraw-asset-list {
  display: grid;
  gap: 9px;
}

.withdraw-asset-list button {
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px;
  color: #f3f6fb;
  background: #111824;
  text-align: left;
  cursor: pointer;
}

.withdraw-asset-list button.active,
.withdraw-asset-list button:hover {
  border-color: #075df5;
  background: #10213c;
}

.withdraw-asset-list small {
  display: block;
  margin-top: 4px;
  color: #8792a7;
}

.withdraw-asset-list b {
  white-space: nowrap;
}

.withdraw-rule-box {
  margin-top: 16px;
  padding: 13px;
  border-radius: 8px;
  background: #111824;
}

.withdraw-rule-box strong {
  font-size: 14px;
}

.withdraw-rule-box p {
  margin: 7px 0 0;
  line-height: 1.5;
}

.withdraw-form {
  display: grid;
  gap: 14px;
}

.withdraw-destination-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border-radius: 8px;
  background: #111824;
}

.withdraw-destination-switch button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  color: #9ca8bc;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.withdraw-destination-switch button.active {
  color: #ffffff;
  background: #075df5;
}

.withdraw-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.withdraw-form label {
  display: grid;
  gap: 7px;
}

.withdraw-form [hidden] {
  display: none !important;
}

.withdraw-form input,
.withdraw-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #263145;
  border-radius: 6px;
  padding: 0 12px;
  color: #f3f6fb;
  background: #090d14;
  font: inherit;
  font-weight: 750;
}

.withdraw-estimate-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.withdraw-estimate-box div {
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 12px;
  border-radius: 8px;
  background: #111824;
}

.withdraw-estimate-box strong {
  font-size: 15px;
}

.withdraw-primary {
  min-height: 50px;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  background: #075df5;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
}

.withdraw-history-list {
  display: grid;
  gap: 9px;
}

.withdraw-history-list article,
.withdraw-history-list a {
  min-height: 64px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #111824;
  color: inherit;
}

.withdraw-history-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: #075df5;
  font-weight: 950;
}

.withdraw-history-list strong,
.withdraw-history-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.withdraw-history-list b {
  white-space: nowrap;
}

.withdraw-history-list .status {
  grid-column: 2 / 4;
  justify-self: start;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #f2c94c;
  background: rgba(242, 201, 76, 0.12);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.withdraw-history-list .status.approved {
  color: #00d58b;
  background: rgba(0, 213, 139, 0.12);
}

.withdraw-history-list .status.rejected,
.withdraw-history-list .status.cancelled {
  color: #ff3155;
  background: rgba(255, 49, 85, 0.12);
}

.withdraw-history-list p {
  color: #8792a7;
}

@keyframes dashboard-row-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark KYC detail page */
body[data-page-key="profile-kyc"] {
  background: #08090d;
  color: #f3f6fb;
}

body[data-page-key="profile-kyc"] .page-shell,
body[data-page-key="profile-kyc"] .main-container {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #08090d;
}

body[data-page-key="profile-kyc"] .flash {
  width: min(1408px, calc(100vw - 32px));
  margin: 12px auto;
}

.kyc-page,
.kyc-page * {
  box-sizing: border-box;
}

.kyc-page {
  min-height: 100vh;
  color: #f3f6fb;
  background: #08090d;
}

.kyc-topbar {
  min-height: 74px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid #1d2633;
  background: #0d111a;
}

.kyc-brand,
.kyc-nav,
.kyc-account {
  display: flex;
  align-items: center;
}

.kyc-brand {
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.kyc-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #0b1018;
  background: #ffffff;
  font-weight: 950;
}

.kyc-brand strong {
  font-size: 18px;
}

.kyc-nav {
  justify-content: center;
  gap: 26px;
}

.kyc-nav a,
.kyc-account a {
  color: #9ca8bc;
  text-decoration: none;
  font-weight: 850;
}

.kyc-nav a:hover,
.kyc-nav a.active,
.kyc-account a:hover,
.kyc-account a.active {
  color: #ffffff;
}

.kyc-account {
  justify-content: flex-end;
  gap: 12px;
}

.kyc-account a:first-child {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 6px;
  color: #ffffff;
  background: #075df5;
}

.kyc-shell {
  width: min(1408px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.kyc-hero {
  min-height: 170px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 28px;
  padding: 24px;
  border: 1px solid #1d2633;
  border-radius: 8px;
  background: linear-gradient(105deg, #0d285d 0%, #101722 58%, #10131a 100%);
}

.kyc-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: 0;
}

.kyc-hero p {
  max-width: 680px;
  margin: 12px 0 0;
  color: #aab7ca;
  line-height: 1.55;
}

.kyc-status-card {
  min-height: 120px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 18px;
  border: 1px solid #28354a;
  border-radius: 8px;
  background: #111824;
}

.kyc-status-card span,
.kyc-status-card small,
.kyc-panel-head span,
.kyc-step-list span,
.kyc-rule-box p,
.kyc-form span,
.kyc-upload-zone span,
.kyc-submit-row span,
.kyc-history-list span,
.kyc-history-list small {
  color: #9fb0cc;
  font-size: 12px;
  font-weight: 800;
}

.kyc-status-card strong {
  color: #ffffff;
  font-size: 28px;
}

.kyc-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 360px;
  gap: 10px;
  margin-top: 12px;
}

.kyc-side-panel,
.kyc-form-panel,
.kyc-history-panel {
  border: 1px solid #1d2633;
  border-radius: 8px;
  background: #0d111a;
  padding: 18px;
}

.kyc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.kyc-panel-head strong {
  font-size: 18px;
}

.kyc-step-list {
  display: grid;
  gap: 10px;
}

.kyc-step-list article {
  min-height: 76px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #111824;
}

.kyc-step-list article.active {
  border-color: #075df5;
  background: #10213c;
}

.kyc-step-list b {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: #075df5;
  font-size: 13px;
}

.kyc-step-list strong,
.kyc-rule-box strong,
.kyc-upload-zone strong,
.kyc-submit-row strong {
  display: block;
  color: #ffffff;
}

.kyc-step-list span {
  display: block;
  margin-top: 4px;
  line-height: 1.35;
}

.kyc-rule-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #111824;
}

.kyc-rule-box p {
  margin: 8px 0 0;
  line-height: 1.55;
}

.kyc-form {
  display: grid;
  gap: 14px;
}

.kyc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kyc-form label {
  display: grid;
  gap: 7px;
}

.kyc-form input,
.kyc-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #263145;
  border-radius: 6px;
  padding: 0 12px;
  color: #f3f6fb;
  background: #090d14;
  font: inherit;
  font-weight: 750;
}

.kyc-upload-zone {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px dashed #2d3b54;
  border-radius: 8px;
  background: #111824;
}

.kyc-upload-zone span {
  display: block;
  margin-top: 7px;
  line-height: 1.4;
}

.kyc-upload-zone label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #ffffff;
  background: #075df5;
  font-weight: 900;
  cursor: pointer;
}

.kyc-upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.kyc-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #111824;
}

.kyc-submit-row > div {
  display: grid;
  gap: 5px;
}

.kyc-primary {
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: #075df5;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.kyc-primary:hover,
.kyc-upload-zone label:hover,
.kyc-account a:first-child:hover {
  background: #1f73ff;
}

.kyc-history-list {
  display: grid;
  gap: 10px;
}

.kyc-history-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 8px;
  background: #111824;
}

.kyc-history-list strong {
  display: block;
  color: #ffffff;
}

.kyc-history-list span,
.kyc-history-list small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kyc-history-list a {
  color: #7dacff;
  text-decoration: none;
}

.kyc-history-list p {
  margin: 0;
  color: #9fb0cc;
  font-weight: 800;
}

.kyc-history-list .status {
  padding: 5px 9px;
  border-radius: 999px;
  color: #9fb0cc;
  background: rgba(159, 176, 204, 0.12);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.kyc-history-list .status.pending,
.kyc-history-list .status.reviewing {
  color: #ffd166;
  background: rgba(255, 209, 102, 0.12);
}

.kyc-history-list .status.verified {
  color: #39d98a;
  background: rgba(57, 217, 138, 0.12);
}

.kyc-history-list .status.rejected {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.12);
}

@media (max-width: 1180px) {
  .kyc-topbar,
  .kyc-layout,
  .kyc-hero {
    grid-template-columns: 1fr;
  }

  .kyc-nav,
  .kyc-account {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Dark account profile page */
body[data-page-key="profile"] {
  background: #08090d;
  color: #f3f6fb;
}

body[data-page-key="profile"] .page-shell,
body[data-page-key="profile"] .main-container {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #08090d;
}

body[data-page-key="profile"] .flash {
  width: min(1408px, calc(100vw - 32px));
  margin: 12px auto;
}

.profile-page,
.profile-page * {
  box-sizing: border-box;
}

.profile-page {
  min-height: 100vh;
  color: #f3f6fb;
  background: #08090d;
}

.profile-topbar {
  min-height: 74px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid #1d2633;
  background: #0d111a;
}

.profile-brand,
.profile-nav,
.profile-account {
  display: flex;
  align-items: center;
}

.profile-brand {
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.profile-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #0b1018;
  background: #ffffff;
  font-weight: 950;
}

.profile-brand strong {
  font-size: 18px;
}

.profile-nav {
  justify-content: center;
  gap: 26px;
}

.profile-nav a,
.profile-account a {
  color: #9ca8bc;
  text-decoration: none;
  font-weight: 850;
}

.profile-nav a:hover,
.profile-account a:hover,
.profile-account a.active {
  color: #ffffff;
}

.profile-account {
  justify-content: flex-end;
  gap: 12px;
}

.profile-account a:first-child {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 6px;
  color: #ffffff;
  background: #075df5;
}

.profile-shell {
  width: min(1408px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.profile-hero {
  min-height: 170px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 28px;
  padding: 24px;
  border: 1px solid #1d2633;
  border-radius: 8px;
  background: linear-gradient(105deg, #0d285d 0%, #101722 58%, #10131a 100%);
}

.profile-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: 0;
}

.profile-hero p {
  max-width: 690px;
  margin: 12px 0 0;
  color: #aab7ca;
  line-height: 1.55;
}

.profile-identity-card {
  min-height: 120px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 18px;
  border: 1px solid #28354a;
  border-radius: 8px;
  background: #111824;
}

.profile-identity-card span,
.profile-identity-card small,
.profile-summary-grid span,
.profile-side-panel span,
.profile-detail-list span,
.profile-panel-head span,
.profile-tabs button,
.profile-row span,
.profile-action-list span,
.profile-empty {
  color: #9fb0cc;
  font-size: 12px;
  font-weight: 800;
}

.profile-identity-card strong {
  color: #ffffff;
  font-size: 28px;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.profile-summary-grid article {
  min-height: 96px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 18px;
  border: 1px solid #1d2633;
  border-radius: 8px;
  background: #0d111a;
}

.profile-summary-grid strong {
  color: #ffffff;
  font-size: 22px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 360px;
  gap: 10px;
  margin-top: 12px;
}

.profile-side-panel,
.profile-center-panel,
.profile-action-panel {
  border: 1px solid #1d2633;
  border-radius: 8px;
  background: #0d111a;
  padding: 18px;
}

.profile-side-panel {
  display: grid;
  gap: 10px;
  align-content: start;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: #075df5;
  font-size: 24px;
  font-weight: 950;
}

.profile-side-panel > strong {
  color: #ffffff;
  font-size: 20px;
}

.profile-detail-list {
  display: grid;
  gap: 9px;
  margin-top: 8px;
}

.profile-detail-list div {
  display: grid;
  gap: 5px;
  min-height: 58px;
  padding: 11px;
  border-radius: 8px;
  background: #111824;
}

.profile-detail-list b {
  overflow: hidden;
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.profile-panel-head strong {
  color: #ffffff;
  font-size: 18px;
}

.profile-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, max-content);
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #111824;
}

.profile-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: transparent;
  cursor: pointer;
}

.profile-tabs button.active {
  color: #ffffff;
  background: #075df5;
}

.profile-tab-panel {
  display: grid;
  gap: 10px;
}

.profile-tab-panel[hidden] {
  display: none !important;
}

.profile-section-title {
  color: #ffffff;
  font-weight: 900;
}

.profile-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #111824;
}

.profile-row strong,
.profile-action-list strong {
  display: block;
  color: #ffffff;
}

.profile-row span,
.profile-action-list span {
  display: block;
  margin-top: 5px;
  line-height: 1.35;
}

.profile-row b {
  color: #ffffff;
  white-space: nowrap;
}

.profile-row .status {
  padding: 5px 9px;
  border-radius: 999px;
  color: #9fb0cc;
  background: rgba(159, 176, 204, 0.12);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.profile-row .status.pending,
.profile-row .status.reviewing {
  color: #ffd166;
  background: rgba(255, 209, 102, 0.12);
}

.profile-row .status.verified {
  color: #39d98a;
  background: rgba(57, 217, 138, 0.12);
}

.profile-row .status.rejected {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.12);
}

.profile-empty {
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  background: #111824;
}

.profile-action-list {
  display: grid;
  gap: 10px;
}

.profile-action-list a {
  display: block;
  min-height: 70px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  background: #111824;
  text-decoration: none;
}

.profile-action-list a:hover {
  border-color: #075df5;
  background: #10213c;
}

.profile-account a:first-child:hover {
  background: #1f73ff;
}

@media (max-width: 1180px) {
  .profile-topbar,
  .profile-hero,
  .profile-layout,
  .profile-summary-grid {
    grid-template-columns: 1fr;
  }

  .profile-nav,
  .profile-account,
  .profile-panel-head {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Dark support chat page */
body[data-page-key="support"] {
  background: #08090d;
  color: #f3f6fb;
}

body[data-page-key="support"] .page-shell,
body[data-page-key="support"] .main-container {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #08090d;
}

body[data-page-key="support"] .flash {
  width: min(1408px, calc(100vw - 32px));
  margin: 12px auto;
}

.support-page,
.support-page * {
  box-sizing: border-box;
}

.support-page {
  min-height: 100vh;
  color: #f3f6fb;
  background: #08090d;
}

.support-topbar {
  min-height: 74px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid #1d2633;
  background: #0d111a;
}

.support-brand,
.support-nav,
.support-account {
  display: flex;
  align-items: center;
}

.support-brand {
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.support-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #0b1018;
  background: #ffffff;
  font-weight: 950;
}

.support-brand strong {
  font-size: 18px;
}

.support-nav {
  justify-content: center;
  gap: 26px;
}

.support-nav a,
.support-account a {
  color: #9ca8bc;
  text-decoration: none;
  font-weight: 850;
}

.support-nav a:hover,
.support-account a:hover,
.support-account a.active {
  color: #ffffff;
}

.support-account {
  justify-content: flex-end;
  gap: 12px;
}

.support-account a:first-child {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 6px;
  color: #ffffff;
  background: #075df5;
}

.support-shell {
  width: min(1408px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.support-hero {
  min-height: 156px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 28px;
  padding: 24px;
  border: 1px solid #1d2633;
  border-radius: 8px;
  background: linear-gradient(105deg, #0d285d 0%, #101722 58%, #10131a 100%);
}

.support-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: 0;
}

.support-hero p {
  max-width: 690px;
  margin: 12px 0 0;
  color: #aab7ca;
  line-height: 1.55;
}

.support-status-card {
  min-height: 108px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 18px;
  border: 1px solid #28354a;
  border-radius: 8px;
  background: #111824;
}

.support-status-card span,
.support-status-card small,
.support-panel-head span,
.support-conversation-list span,
.support-thread-head span,
.support-alert,
.message-meta,
.support-empty-list {
  color: #9fb0cc;
  font-size: 12px;
  font-weight: 800;
}

.support-status-card strong {
  color: #ffffff;
  font-size: 28px;
}

.support-chat-shell {
  min-height: 650px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.support-conversation-panel,
.support-thread-panel {
  min-width: 0;
  border: 1px solid #1d2633;
  border-radius: 8px;
  background: #0d111a;
}

.support-conversation-panel {
  padding: 18px;
}

.support-panel-head,
.support-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.support-panel-head {
  margin-bottom: 14px;
}

.support-panel-head strong,
.support-thread-head strong {
  color: #ffffff;
  font-size: 18px;
}

.support-conversation-list {
  display: grid;
  gap: 9px;
}

.support-conversation-list a {
  position: relative;
  min-height: 74px;
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  background: #111824;
  text-decoration: none;
}

.support-conversation-list a.active,
.support-conversation-list a:hover {
  border-color: #075df5;
  background: #10213c;
}

.support-conversation-list strong {
  color: #ffffff;
}

.support-conversation-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-conversation-list b {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: #075df5;
  font-size: 11px;
}

.support-empty-list {
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: #111824;
}

.support-thread-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.support-thread-head {
  min-height: 72px;
  padding: 16px 18px;
  border-bottom: 1px solid #1d2633;
}

.support-thread-head div {
  display: grid;
  gap: 5px;
}

.support-alert {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: #111824;
}

.support-alert.hidden,
.support-empty-list.hidden {
  display: none !important;
}

.support-alert i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39d98a;
}

.support-message-stream {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  overflow-y: auto;
  padding: 18px;
  background: #090d14;
}

.support-message-stream .support-widget-empty-state {
  min-height: 360px;
  border-radius: 8px;
  border: 1px dashed #2d3b54;
  background: #111824;
  color: #9fb0cc;
}

.support-page .support-chat-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.support-page .support-chat-message.user {
  align-items: flex-end;
}

.support-page .support-chat-message-stack {
  max-width: min(72%, 720px);
  display: grid;
  gap: 6px;
}

.support-page .message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-page .support-chat-message.user .message-meta {
  justify-content: flex-end;
}

.support-page .message-bubble {
  border: 1px solid #263145;
  border-radius: 8px;
  padding: 12px 14px;
  color: #f3f6fb;
  background: #111824;
}

.support-page .message-bubble.user {
  border-color: #075df5;
  background: #0f3a88;
}

.support-page .message-bubble.admin {
  background: #111824;
}

.support-page .message-bubble p {
  margin: 0;
  line-height: 1.5;
}

.support-message-actions {
  display: flex;
  justify-content: flex-end;
}

.support-recall-button {
  min-height: 28px;
  border: 1px solid #263145;
  border-radius: 6px;
  padding: 0 10px;
  color: #9fb0cc;
  background: #0d111a;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.support-recall-button:hover {
  color: #ffffff;
  border-color: #075df5;
}

.support-page .support-image {
  max-width: 240px;
  max-height: 180px;
  border-radius: 8px;
  border: 1px solid #263145;
  object-fit: cover;
}

.support-recalled-note {
  color: #9fb0cc;
  font-style: italic;
}

.support-composer {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid #1d2633;
  background: #0d111a;
}

.support-composer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
  align-items: end;
}

.support-composer textarea {
  width: 100%;
  min-height: 78px;
  max-height: 160px;
  resize: vertical;
  border: 1px solid #263145;
  border-radius: 6px;
  padding: 12px;
  color: #f3f6fb;
  background: #090d14;
  font: inherit;
  font-weight: 750;
}

.support-upload-zone.compact {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  border: 1px dashed #2d3b54;
  border-radius: 6px;
  padding: 0 14px;
  color: #9fb0cc;
  background: #111824;
  font-weight: 850;
  cursor: pointer;
}

.support-upload-zone.compact input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.support-send-button {
  min-height: 78px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: #075df5;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.support-send-button:hover,
.support-account a:first-child:hover {
  background: #1f73ff;
}

@media (max-width: 1180px) {
  .support-topbar,
  .support-hero,
  .support-chat-shell {
    grid-template-columns: 1fr;
  }

  .support-nav,
  .support-account {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Dark authentication pages */
body[data-page-key="login"],
body[data-page-key="signup"] {
  background: #08090d;
  color: #f3f6fb;
}

body[data-page-key="login"] .page-shell,
body[data-page-key="signup"] .page-shell,
body[data-page-key="login"] .main-container,
body[data-page-key="signup"] .main-container {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #08090d;
}

body[data-page-key="login"] .flash,
body[data-page-key="signup"] .flash {
  width: min(1180px, calc(100vw - 32px));
  margin: 12px auto;
}

.auth-page,
.auth-page * {
  box-sizing: border-box;
}

.auth-page {
  min-height: 100vh;
  color: #f3f6fb;
  background: radial-gradient(circle at 72% 14%, rgba(7, 93, 245, 0.18), transparent 32%), #08090d;
}

.auth-topbar {
  min-height: 74px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 220px;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid #1d2633;
  background: rgba(13, 17, 26, 0.94);
}

.auth-brand,
.auth-nav {
  display: flex;
  align-items: center;
}

.auth-brand {
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.auth-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #0b1018;
  background: #ffffff;
  font-weight: 950;
}

.auth-brand strong {
  font-size: 18px;
}

.auth-nav {
  justify-content: center;
  gap: 26px;
}

.auth-nav a,
.auth-top-link,
.auth-alt-row a {
  color: #9ca8bc;
  text-decoration: none;
  font-weight: 850;
}

.auth-nav a:hover,
.auth-top-link:hover,
.auth-alt-row a:hover {
  color: #ffffff;
}

.auth-top-link {
  justify-self: end;
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 6px;
  color: #ffffff;
  background: #075df5;
}

.auth-stage {
  width: min(1180px, calc(100vw - 32px));
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 16px;
  align-items: center;
  margin: 0 auto;
  padding: 28px 0 64px;
}

.auth-stage.signup-stage {
  grid-template-columns: minmax(0, 0.9fr) 520px;
}

.auth-copy-panel {
  min-height: 480px;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 36px;
  border: 1px solid #1d2633;
  border-radius: 8px;
  background: linear-gradient(125deg, #0d285d 0%, #101722 52%, #10131a 100%);
}

.auth-copy-panel h1 {
  max-width: 620px;
  margin: 0;
  color: #ffffff;
  font-size: 48px;
  line-height: 1.02;
  letter-spacing: 0;
}

.auth-copy-panel p {
  max-width: 610px;
  margin: 0;
  color: #aab7ca;
  font-size: 16px;
  line-height: 1.6;
}

.auth-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.auth-proof-grid article {
  min-height: 84px;
  display: grid;
  gap: 7px;
  align-content: center;
  padding: 14px;
  border: 1px solid #28354a;
  border-radius: 8px;
  background: rgba(17, 24, 36, 0.82);
}

.auth-proof-grid span,
.auth-panel-head span,
.auth-form label span,
.auth-alt-row span {
  color: #9fb0cc;
  font-size: 12px;
  font-weight: 850;
}

.auth-proof-grid strong,
.auth-panel-head strong {
  color: #ffffff;
}

.auth-card-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid #1d2633;
  border-radius: 8px;
  background: #0d111a;
}

.auth-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.auth-panel-head strong {
  font-size: 20px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label,
.signup-method-panel {
  display: grid;
  gap: 7px;
}

.signup-method-panel {
  border-color: #263145;
  background: rgba(17, 24, 36, 0.78);
}

.signup-method-panel[hidden] {
  display: none !important;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #263145;
  border-radius: 6px;
  padding: 0 12px;
  color: #f3f6fb;
  background: #090d14;
  font: inherit;
  font-weight: 750;
}

.auth-field-hint {
  color: #72829c;
  font-size: 11px;
  line-height: 1.4;
}

.signup-method-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 8px;
  background: #111824;
}

.signup-method-button,
.auth-secondary,
.auth-primary {
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.signup-method-button {
  min-height: 40px;
  color: #9ca8bc;
  background: transparent;
}

.signup-method-button.active {
  color: #ffffff;
  background: #075df5;
  box-shadow: 0 12px 30px rgba(7, 93, 245, 0.22);
}

.auth-secondary {
  min-height: 42px;
  color: #ffffff;
  background: #111824;
  border: 1px solid #263145;
}

.auth-primary {
  min-height: 50px;
  color: #ffffff;
  background: #075df5;
}

.auth-primary:hover,
.auth-top-link:hover,
.signup-method-button.active:hover {
  background: #1f73ff;
}

.auth-secondary:hover {
  border-color: #075df5;
}

.auth-alt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #1d2633;
}

@media (max-width: 980px) {
  .auth-topbar,
  .auth-stage,
  .auth-stage.signup-stage {
    grid-template-columns: 1fr;
  }

  .auth-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .auth-top-link {
    justify-self: start;
  }

  .auth-copy-panel {
    min-height: auto;
  }

  .auth-proof-grid {
    grid-template-columns: 1fr;
  }
}

.scalar-admin-body {
  min-height: 100vh;
  overflow: hidden;
  margin: 0;
  color: #e8e9ef;
  background:
    radial-gradient(circle at 18% 0%, rgba(22, 119, 255, 0.1), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(57, 255, 20, 0.05), transparent 26%),
    #0f1014;
  font-family: Inter, Arial, sans-serif;
}

.scalar-admin-body a {
  color: inherit;
  text-decoration: none;
}

.scalar-admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 264px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 14, 18, 0.98);
}

.scalar-admin-brand {
  display: grid;
  gap: 4px;
  padding: 28px 24px 22px;
}

.scalar-admin-brand span {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
}

.scalar-admin-brand small {
  color: #778095;
  font-size: 0.74rem;
}

.scalar-admin-primary-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  margin: 0 16px 28px;
  border-radius: 8px;
  color: #fff;
  background: #1677ff;
  font-weight: 850;
}

.scalar-admin-glyph {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: #afc6ff;
  background: rgba(175, 198, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 950;
}

.scalar-admin-primary-link .scalar-admin-glyph {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1rem;
}

.scalar-admin-nav {
  display: grid;
  gap: 4px;
  padding: 0 10px;
}

.scalar-admin-nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 52px;
  padding: 0 16px;
  border-right: 2px solid transparent;
  color: #7d8495;
  font-weight: 740;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.scalar-admin-nav a:hover,
.scalar-admin-nav a.active {
  color: #1677ff;
  border-color: #1677ff;
  background: rgba(22, 119, 255, 0.08);
}

.scalar-admin-operator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 18px 16px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.scalar-admin-operator > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  background: #2b2d36;
  font-weight: 950;
}

.scalar-admin-operator strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
}

.scalar-admin-operator small {
  color: #39ff14;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.scalar-admin-topbar {
  position: fixed;
  inset: 0 0 auto 264px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 16, 20, 0.86);
  backdrop-filter: blur(16px);
}

.scalar-admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #848b9b;
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scalar-admin-breadcrumb strong {
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.94rem;
}

.scalar-admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.scalar-admin-topbar-actions a {
  color: #a1a7b5;
  font-weight: 740;
}

.scalar-admin-topbar-actions button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #1c1d24;
  font: inherit;
  font-weight: 820;
  cursor: pointer;
}

.scalar-admin-main {
  height: calc(100vh - 64px);
  margin: 64px 0 0 264px;
  overflow-y: auto;
  padding: 32px;
}

.scalar-admin-main::-webkit-scrollbar,
.scalar-admin-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.scalar-admin-main::-webkit-scrollbar-thumb,
.scalar-admin-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #3a3d49;
}

.scalar-admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 28px;
}

.scalar-admin-kicker {
  margin: 0 0 10px;
  color: #afc6ff;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scalar-admin-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 2.35rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.scalar-admin-hero p {
  max-width: 700px;
  margin: 14px 0 0;
  color: #8d94a4;
  line-height: 1.62;
}

.scalar-admin-search {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 0 12px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(28, 29, 36, 0.9);
  min-width: 0;
  width: min(720px, 100%);
}

.scalar-admin-search span {
  color: #7d8495;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.scalar-admin-search input {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: transparent;
  font: inherit;
  outline: 0;
}

.scalar-admin-search input::placeholder {
  color: #5f6676;
}

.scalar-admin-search button,
.scalar-admin-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #1677ff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
}

.scalar-admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.scalar-admin-stat,
.scalar-admin-panel {
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  background: rgba(28, 29, 36, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.scalar-admin-stat {
  min-height: 142px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px 24px;
}

.scalar-admin-stat span {
  color: #7d8495;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scalar-admin-stat strong {
  color: #fff;
  font-size: 2rem;
}

.scalar-admin-stat small {
  color: #39ff14;
  font-weight: 820;
}

.scalar-admin-stat.danger small {
  color: #ff5a5a;
}

.scalar-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.scalar-admin-users-panel {
  min-width: 0;
  overflow: hidden;
}

.scalar-admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.scalar-admin-panel-head.compact {
  min-height: 74px;
}

.scalar-admin-panel-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
}

.scalar-admin-panel-head p {
  margin: 5px 0 0;
  color: #7d8495;
  font-size: 0.82rem;
}

.scalar-admin-mini-metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scalar-admin-mini-metrics span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  color: #cfd3dd;
  background: #171820;
  font-size: 0.78rem;
  font-weight: 760;
}

.scalar-admin-table-wrap {
  overflow-x: auto;
}

.scalar-admin-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
}

.scalar-admin-deposit-table {
  min-width: 900px;
  table-layout: fixed;
}

.scalar-admin-withdrawal-table {
  min-width: 840px;
  table-layout: fixed;
}

.scalar-admin-deposit-table th,
.scalar-admin-deposit-table td,
.scalar-admin-withdrawal-table th,
.scalar-admin-withdrawal-table td {
  padding-left: 14px;
  padding-right: 14px;
}

.scalar-admin-table th {
  padding: 13px 20px;
  color: #798091;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.72rem;
  font-weight: 950;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scalar-admin-table td {
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  vertical-align: top;
}

.scalar-admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.scalar-admin-table td strong,
.scalar-admin-user-link {
  display: block;
  color: #fff;
  font-weight: 860;
}

.scalar-admin-table td small {
  display: block;
  margin-top: 5px;
  color: #737b8c;
  font-size: 0.76rem;
}

.scalar-admin-table .right {
  text-align: right;
}

.scalar-admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #afc6ff;
  background: rgba(175, 198, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
}

.scalar-admin-status.verified,
.scalar-admin-status.active,
.scalar-admin-status.completed,
.scalar-admin-status.approved {
  color: #39ff14;
  background: rgba(57, 255, 20, 0.09);
}

.scalar-admin-status.pending {
  color: #f6c85f;
  background: rgba(246, 200, 95, 0.1);
}

.scalar-admin-status.rejected,
.scalar-admin-status.suspended {
  color: #ff5a5a;
  background: rgba(255, 90, 90, 0.1);
}

.scalar-admin-open {
  min-height: 36px;
  padding-inline: 12px;
  background: #1c1d24;
  font-size: 0.78rem;
}

.scalar-admin-side-stack {
  display: grid;
  gap: 24px;
}

.scalar-admin-risk-list,
.scalar-admin-recent-list {
  display: grid;
}

.scalar-admin-risk-list a,
.scalar-admin-recent-list a {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.scalar-admin-risk-list a:hover,
.scalar-admin-recent-list a:hover {
  background: rgba(255, 255, 255, 0.025);
}

.scalar-admin-risk-list strong,
.scalar-admin-recent-list strong {
  color: #fff;
}

.scalar-admin-risk-list p {
  margin: 5px 0 0;
  color: #858d9f;
  font-size: 0.82rem;
  line-height: 1.5;
}

.scalar-admin-risk-list span {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #afc6ff;
  background: rgba(175, 198, 255, 0.1);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.scalar-admin-risk-list span.watch {
  color: #ff5a5a;
  background: rgba(255, 90, 90, 0.1);
}

.scalar-admin-risk-list small {
  color: #747c8d;
}

.scalar-admin-recent-list a {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
}

.scalar-admin-recent-list a > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #fff;
  background: #2b2d36;
  font-weight: 950;
}

.scalar-admin-recent-list small {
  display: block;
  margin-top: 4px;
  color: #737b8c;
}

.scalar-admin-empty {
  padding: 20px;
  color: #7d8495;
  text-align: center;
}

.scalar-admin-command-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.scalar-admin-command-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(175, 198, 255, 0.18);
  border-radius: 8px;
  color: #d7e1ff;
  background: rgba(175, 198, 255, 0.08);
  font-size: 0.84rem;
  font-weight: 850;
}

.scalar-admin-dashboard-layout {
  margin-bottom: 24px;
}

.scalar-admin-bar-chart {
  height: 280px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 26px 24px 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 100% 25%,
    transparent;
}

.scalar-admin-bar-chart span {
  flex: 1;
  min-height: 18px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, rgba(175, 198, 255, 0.9), rgba(22, 119, 255, 0.12));
  box-shadow: 0 0 30px rgba(22, 119, 255, 0.12);
}

.scalar-admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.scalar-admin-dashboard-grid > .scalar-admin-panel:first-child:last-child {
  grid-column: 1 / -1;
}

.scalar-admin-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.scalar-admin-review-grid section {
  min-width: 0;
  padding: 20px;
}

.scalar-admin-review-grid section + section {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.scalar-admin-review-grid h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.95rem;
}

.scalar-admin-review-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.scalar-admin-review-item:first-of-type {
  border-top: 0;
}

.scalar-admin-review-item strong {
  display: block;
  color: #fff;
}

.scalar-admin-review-item p {
  margin: 6px 0;
  color: #8b93a5;
  font-size: 0.84rem;
}

.scalar-admin-review-item small {
  display: block;
  max-width: 420px;
  overflow-wrap: anywhere;
  color: #687083;
}

.scalar-admin-review-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.scalar-admin-review-actions b {
  color: #fff;
}

.scalar-admin-review-actions form {
  display: flex;
  gap: 8px;
}

.scalar-admin-review-actions button {
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  color: #39ff14;
  background: rgba(57, 255, 20, 0.1);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

.scalar-admin-review-actions button.danger {
  color: #ff5a5a;
  background: rgba(255, 90, 90, 0.1);
}

.scalar-admin-list-grid {
  display: grid;
}

.scalar-admin-list-grid a {
  display: grid;
  gap: 6px;
  padding: 17px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.scalar-admin-list-grid a:hover {
  background: rgba(255, 255, 255, 0.025);
}

.scalar-admin-list-grid strong {
  color: #fff;
}

.scalar-admin-list-grid span {
  color: #8d95a7;
  font-size: 0.86rem;
}

.scalar-admin-list-grid small {
  color: #687083;
  overflow-wrap: anywhere;
}

.scalar-admin-user-hero {
  align-items: end;
}

.scalar-admin-user-layout {
  margin-bottom: 24px;
}

.scalar-admin-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.scalar-admin-profile-grid div {
  min-width: 0;
  padding: 18px 20px;
  background: #111219;
}

.scalar-admin-profile-grid span,
.scalar-admin-bank-card dt,
.scalar-admin-detail-row span {
  display: block;
  margin-bottom: 6px;
  color: #727b8e;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.scalar-admin-profile-grid strong,
.scalar-admin-detail-row strong {
  color: #fff;
  overflow-wrap: anywhere;
}

.scalar-admin-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}

.scalar-admin-wide-panel {
  grid-column: 1 / -1;
}

.scalar-admin-banks-hero {
  align-items: end;
}

.scalar-admin-bank-registry {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scalar-admin-bank-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: #111219;
}

.scalar-admin-bank-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.scalar-admin-bank-card strong,
.scalar-admin-rule-grid h3 {
  color: #fff;
}

.scalar-admin-bank-card p {
  margin: 0 0 16px;
  color: #9aa4b8;
  font-size: 0.9rem;
}

.scalar-admin-bank-card dl {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.scalar-admin-bank-card dt {
  margin: 0;
}

.scalar-admin-bank-card dd {
  min-width: 0;
  margin: 0;
  color: #dfe6f7;
  overflow-wrap: anywhere;
}

.scalar-admin-bank-card small {
  display: block;
  margin-top: 16px;
  color: #758095;
}

.scalar-admin-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.scalar-admin-detail-row span {
  margin: 0;
  text-align: right;
  text-transform: none;
}

.scalar-admin-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.scalar-admin-rule-grid section {
  min-width: 0;
  padding: 20px;
  background: #111219;
}

.scalar-admin-rule-grid h3 {
  margin: 0 0 12px;
  font-size: 0.92rem;
}

.scalar-admin-rule-grid pre {
  min-height: 132px;
  max-height: 220px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-radius: 8px;
  color: #b9c7e8;
  background: #090a0f;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.scalar-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}

.scalar-admin-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #d7e1ff;
  font-size: 0.78rem;
  font-weight: 850;
}

.scalar-admin-form label span {
  color: #7d8495;
  text-transform: uppercase;
}

.scalar-admin-form input,
.scalar-admin-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: #fff;
  background: #0d1019;
  font: inherit;
}

.scalar-admin-form textarea {
  min-height: 116px;
  resize: vertical;
}

.scalar-admin-form input[type="file"] {
  padding: 10px;
}

.scalar-admin-form-wide,
.scalar-admin-submit {
  grid-column: 1 / -1;
}

.scalar-admin-submit,
.scalar-admin-inline-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #1677ff, #4e8bff);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.scalar-admin-treasury-item {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.scalar-admin-treasury-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.scalar-admin-treasury-head strong {
  color: #fff;
}

.scalar-admin-treasury-item p {
  margin: 0;
  color: #8d95a7;
}

.scalar-admin-treasury-item dl {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}

.scalar-admin-treasury-item dt {
  color: #727b8e;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.scalar-admin-treasury-item dd {
  min-width: 0;
  margin: 0;
  color: #dfe6f7;
  overflow-wrap: anywhere;
}

.scalar-admin-image-preview {
  display: block;
}

.scalar-admin-image-preview img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.scalar-admin-inline-actions {
  display: flex;
}

.scalar-admin-inline-actions button {
  min-height: 34px;
  padding: 0 12px;
}

.scalar-admin-proof-link {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 260px;
  margin-top: 10px;
  padding: 7px;
  border: 1px solid rgba(78, 139, 255, 0.18);
  border-radius: 8px;
  color: #d7e1ff;
  background: rgba(22, 119, 255, 0.07);
}

.scalar-admin-proof-link img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}

.scalar-admin-proof-link span {
  color: #d7e1ff;
  font-size: 0.78rem;
  font-weight: 850;
}

.scalar-admin-review-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.scalar-admin-review-form input {
  width: 176px;
  flex: 0 0 176px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  color: #fff;
  background: #0d1019;
  font: inherit;
  font-size: 0.78rem;
}

.scalar-admin-review-form button {
  min-height: 30px;
  min-width: 76px;
  border: 0;
  border-radius: 7px;
  color: #39ff14;
  background: rgba(57, 255, 20, 0.1);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

.scalar-admin-review-form button.danger {
  color: #ff5a5a;
  background: rgba(255, 90, 90, 0.1);
}

.scalar-admin-destination-card {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.54);
  text-align: left;
}

.scalar-admin-destination-card strong {
  color: #fff;
  font-size: 0.84rem;
}

.scalar-admin-destination-card span {
  display: block;
  margin-top: 2px;
  color: #39ff14;
  font-size: 0.72rem;
  font-weight: 850;
}

.scalar-admin-destination-card dl {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px 8px;
  margin: 8px 0 0;
}

.scalar-admin-destination-card dt,
.scalar-admin-destination-card dd {
  margin: 0;
  min-width: 0;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.scalar-admin-destination-card dt {
  color: #737b8c;
  font-weight: 850;
}

.scalar-admin-destination-card dd {
  color: #d7e1ff;
}

.scalar-admin-market-panel {
  margin-bottom: 28px;
}

.scalar-admin-order-toolbar,
.scalar-admin-chart-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.scalar-admin-order-toolbar label {
  display: grid;
  gap: 6px;
  color: #7c8aa4;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scalar-admin-order-toolbar select,
.scalar-admin-order-toolbar button,
.scalar-admin-inline-form input,
.scalar-admin-inline-form select {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: #fff;
  background: #0b101b;
  font-size: 0.82rem;
  font-weight: 760;
}

.scalar-admin-order-toolbar select,
.scalar-admin-inline-form input,
.scalar-admin-inline-form select {
  width: 100%;
  padding: 0 10px;
}

.scalar-admin-order-toolbar button,
.scalar-admin-inline-form button {
  border: 0;
  padding-inline: 14px;
  color: #fff;
  background: #2178ff;
  font-weight: 900;
  cursor: pointer;
}

.scalar-admin-chart-strip {
  margin: 18px 0 14px;
  color: #9aa6bf;
  font-size: 0.82rem;
}

.scalar-admin-order-readout {
  margin-bottom: 12px;
}

.scalar-admin-order-chart {
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #080c14;
}

.scalar-admin-order-rule-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.scalar-admin-inline-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.scalar-admin-inline-form label {
  display: grid;
  gap: 6px;
}

.scalar-admin-inline-form label span {
  color: #7c8aa4;
  font-size: 0.72rem;
  font-weight: 900;
}

.scalar-admin-inline-form button {
  align-self: end;
  min-height: 36px;
  border-radius: 8px;
}

.scalar-admin-settlement-form {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.scalar-admin-trade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.scalar-admin-trade-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(9, 14, 24, 0.72);
}

.scalar-admin-trade-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.scalar-admin-trade-head strong {
  display: block;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 950;
}

.scalar-admin-trade-head span:not(.scalar-admin-status) {
  display: block;
  margin-top: 4px;
  color: #8b96ad;
  font-size: 0.78rem;
  font-weight: 820;
}

.scalar-admin-trade-card dl {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 7px 12px;
  margin: 0;
}

.scalar-admin-trade-card dt,
.scalar-admin-trade-card dd {
  margin: 0;
  min-width: 0;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.scalar-admin-trade-card dt {
  color: #737b8c;
  font-weight: 900;
}

.scalar-admin-trade-card dd {
  color: #d7e1ff;
  font-weight: 760;
}

.scalar-admin-kyc-grid {
  display: grid;
  gap: 18px;
}

.scalar-admin-kyc-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(9, 14, 24, 0.72);
}

.scalar-admin-kyc-head,
.scalar-admin-kyc-user {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.scalar-admin-kyc-head strong {
  display: block;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 950;
  text-transform: uppercase;
}

.scalar-admin-kyc-head span:not(.scalar-admin-status) {
  display: block;
  margin-top: 4px;
  color: #76829a;
  font-size: 0.78rem;
  font-weight: 760;
}

.scalar-admin-kyc-user {
  justify-content: flex-start;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.54);
}

.scalar-admin-kyc-user > span {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: #2178ff;
  font-size: 1rem;
  font-weight: 950;
}

.scalar-admin-kyc-user a {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 950;
}

.scalar-admin-kyc-user small {
  display: block;
  margin-top: 4px;
  color: #7f8aa2;
  font-size: 0.78rem;
}

.scalar-admin-kyc-details {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.scalar-admin-kyc-details dt,
.scalar-admin-kyc-details dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.scalar-admin-kyc-details dt {
  color: #737b8c;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.scalar-admin-kyc-details dd {
  margin-top: 5px;
  color: #d7e1ff;
  font-size: 0.84rem;
  font-weight: 820;
}

.scalar-admin-kyc-note {
  margin-top: 16px;
  padding: 12px;
  border-left: 3px solid #2178ff;
  background: rgba(33, 120, 255, 0.08);
}

.scalar-admin-kyc-note strong {
  display: block;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
}

.scalar-admin-kyc-note p {
  margin: 6px 0 0;
  color: #a8b4cc;
  font-size: 0.84rem;
}

.scalar-admin-kyc-files,
.scalar-admin-kyc-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.scalar-admin-kyc-files a,
.scalar-admin-kyc-preview a {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  background: #0b101b;
}

.scalar-admin-kyc-files a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
}

.scalar-admin-kyc-files img,
.scalar-admin-kyc-files span {
  width: 52px;
  height: 52px;
  border-radius: 6px;
}

.scalar-admin-kyc-files img {
  object-fit: cover;
}

.scalar-admin-kyc-files span {
  display: grid;
  place-items: center;
  color: #39ff14;
  background: rgba(57, 255, 20, 0.08);
  font-size: 0.72rem;
  font-weight: 950;
}

.scalar-admin-kyc-files strong {
  min-width: 0;
  color: #d7e1ff;
  font-size: 0.78rem;
  font-weight: 880;
  overflow-wrap: anywhere;
}

.scalar-admin-kyc-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.scalar-admin-kyc-review-form {
  margin-top: 16px;
  justify-content: flex-start;
}

@media (max-width: 1100px) {
  .scalar-admin-kyc-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.scalar-admin-support-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  min-height: 720px;
}

.scalar-admin-support-list-panel,
.scalar-admin-support-thread-panel {
  min-width: 0;
  min-height: 0;
}

.scalar-admin-support-list-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
}

.scalar-admin-support-list-head {
  align-items: flex-start;
}

.scalar-admin-support-search {
  display: grid;
  gap: 8px;
}

.scalar-admin-support-search span,
.admin-chat-composer-field span {
  color: #788397;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.scalar-admin-support-search input,
.scalar-admin-support-composer textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #f5f7ff;
  background: #090e18;
  outline: none;
}

.scalar-admin-support-search input {
  height: 42px;
  padding: 0 13px;
}

.scalar-admin-support-search input::placeholder,
.scalar-admin-support-composer textarea::placeholder {
  color: #596477;
}

.scalar-admin-support-list {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.scalar-admin-support-conversation {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: #0a101b;
}

.scalar-admin-support-conversation:hover,
.scalar-admin-support-conversation.active {
  border-color: rgba(33, 120, 255, 0.58);
  background: linear-gradient(180deg, rgba(33, 120, 255, 0.12), rgba(33, 120, 255, 0.04));
}

.scalar-admin-support-conversation .admin-chat-avatar,
.scalar-admin-support-thread-panel .admin-chat-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #dbe7ff;
  background: #111927;
  font-size: 0.86rem;
  font-weight: 950;
}

.scalar-admin-support-conversation .admin-chat-count {
  min-width: 24px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  background: #2178ff;
  font-size: 0.72rem;
}

.scalar-admin-support-conversation .admin-chat-conversation-meta {
  display: grid;
  gap: 4px;
}

.scalar-admin-support-conversation .admin-chat-conversation-meta small {
  color: #5e687b;
  font-size: 0.72rem;
}

.scalar-admin-support-thread-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  overflow: hidden;
}

.scalar-admin-support-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.scalar-admin-support-thread-head .admin-chat-thread-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.scalar-admin-support-thread-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.25;
}

.scalar-admin-support-thread-head p {
  margin: 5px 0 0;
  color: #778299;
}

.scalar-admin-support-thread-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.scalar-admin-support-thread-actions a,
.scalar-admin-support-thread-actions span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #bdc9df;
  background: #0a101b;
  font-size: 0.78rem;
  font-weight: 900;
}

.scalar-admin-support-thread-actions a {
  color: #fff;
  background: #075df5;
}

.scalar-admin-support-stream {
  display: grid;
  align-content: start;
  gap: 15px;
  overflow-y: auto;
  padding: 2px 10px 2px 0;
}

.scalar-admin-support-stream .admin-chat-message {
  display: flex;
  gap: 10px;
}

.scalar-admin-support-stream .admin-chat-message.user {
  justify-content: flex-start;
}

.scalar-admin-support-stream .admin-chat-message.admin {
  justify-content: flex-end;
}

.scalar-admin-support-stream .admin-chat-message-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: min(680px, 78%);
}

.scalar-admin-support-stream .admin-chat-message.admin .admin-chat-message-stack {
  align-items: flex-end;
}

.scalar-admin-support-stream .message-meta {
  display: flex;
  gap: 8px;
  color: #687489;
  font-size: 0.72rem;
}

.scalar-admin-support-stream .message-meta strong {
  color: #b8c6dc;
}

.scalar-admin-support-stream .message-bubble {
  display: grid;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #e7edff;
  background: #0b111d;
}

.scalar-admin-support-stream .message-bubble.user {
  border-color: rgba(255, 255, 255, 0.1);
  background: #111824;
}

.scalar-admin-support-stream .message-bubble.admin {
  border-color: rgba(33, 120, 255, 0.45);
  background: linear-gradient(180deg, rgba(7, 93, 245, 0.3), rgba(7, 93, 245, 0.14));
}

.scalar-admin-support-stream .message-bubble p {
  margin: 0;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.scalar-admin-support-stream .support-image {
  display: block;
  max-width: min(320px, 100%);
  max-height: 240px;
  border-radius: 8px;
  object-fit: cover;
}

.scalar-admin-support-stream .support-recalled-note {
  color: #8b97ab;
  font-style: italic;
}

.scalar-admin-support-file {
  color: #8db4ff;
  font-size: 0.84rem;
  font-weight: 900;
}

.scalar-admin-support-composer {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.scalar-admin-support-composer .admin-chat-composer-field {
  display: grid;
  gap: 8px;
}

.scalar-admin-support-composer textarea {
  min-height: 92px;
  max-height: 180px;
  resize: vertical;
  padding: 12px 13px;
  font: inherit;
  line-height: 1.45;
}

.scalar-admin-support-composer .admin-chat-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.scalar-admin-support-composer .support-upload-zone {
  min-height: 40px;
  padding: 0 14px;
  border: 1px dashed rgba(141, 180, 255, 0.42);
  border-radius: 8px;
  color: #c5d6ff;
  background: rgba(33, 120, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 900;
}

.scalar-admin-support-composer .support-upload-zone:hover,
.scalar-admin-support-composer .support-upload-zone.dragover {
  border-color: #2178ff;
  background: rgba(33, 120, 255, 0.16);
}

.scalar-admin-blue-button,
.scalar-admin-support-composer .primary-button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #075df5;
  box-shadow: 0 16px 32px rgba(7, 93, 245, 0.22);
  font-size: 0.84rem;
  font-weight: 950;
}

.scalar-admin-support-stream .support-recall-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: #9fb5d6;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 900;
}

.scalar-admin-support-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 420px;
  color: #758197;
}

.front-content-shell {
  min-height: calc(100vh - 120px);
  color: #f4f7ff;
}

.front-content-hero,
.front-content-article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: stretch;
  padding: 30px;
  border: 1px solid #232a37;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 93, 245, 0.18), rgba(14, 18, 28, 0.92) 42%),
    #10131b;
}

.front-content-kicker {
  margin: 0 0 10px;
  color: #8db4ff;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.front-content-hero h1,
.front-content-article-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.05rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.front-content-hero p,
.front-content-article-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #9fadbf;
  font-size: 1rem;
  line-height: 1.65;
}

.front-content-hero-panel,
.front-content-article-hero aside {
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 160px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(8, 13, 22, 0.8);
}

.front-content-hero-panel span,
.front-content-article-hero aside span,
.front-content-article-hero aside small {
  color: #8e9bb0;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.front-content-hero-panel strong,
.front-content-article-hero aside strong {
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  white-space: nowrap;
}

.front-content-hero-panel small {
  color: #39ff14;
  font-size: 0.82rem;
  font-weight: 850;
}

.front-content-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.front-content-side,
.front-content-main,
.front-content-list-panel,
.front-content-article-side {
  min-width: 0;
}

.front-content-side {
  position: sticky;
  top: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
  height: fit-content;
}

.front-content-side a,
.front-content-detail-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #232a37;
  border-radius: 8px;
  color: #a7b3c7;
  background: #10131b;
  font-weight: 850;
}

.front-content-side a:hover,
.front-content-side a.active,
.front-content-detail-nav a:hover {
  color: #fff;
  border-color: rgba(7, 93, 245, 0.7);
  background: rgba(7, 93, 245, 0.16);
}

.front-content-side span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: #b9ccff;
  background: rgba(141, 180, 255, 0.1);
  font-size: 0.68rem;
  font-weight: 950;
}

.front-content-main {
  display: grid;
  gap: 22px;
}

.front-content-featured,
.front-content-list-panel {
  padding: 22px;
  border: 1px solid #232a37;
  border-radius: 8px;
  background: #10131b;
}

.front-content-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.front-content-section-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
}

.front-content-section-head p {
  max-width: 520px;
  margin: 0;
  color: #738095;
  line-height: 1.5;
  text-align: right;
}

.front-content-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.front-content-card,
.front-content-row {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #0a101b;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.front-content-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 18px;
}

.front-content-card:hover,
.front-content-row:hover {
  transform: translateY(-1px);
  border-color: rgba(7, 93, 245, 0.68);
  background: #0d1524;
}

.front-content-card-head,
.front-content-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.front-content-card-head span,
.front-content-row-head span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #39ff14;
  background: rgba(57, 255, 20, 0.08);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.front-content-card-head small,
.front-content-row small {
  color: #647187;
  font-size: 0.78rem;
}

.front-content-card h3,
.front-content-row h3,
.front-content-empty h3,
.front-content-article-side h2 {
  margin: 0;
  color: #fff;
}

.front-content-card p,
.front-content-row p,
.front-content-empty p,
.front-content-article-side p {
  margin: 0;
  color: #8d9ab0;
  line-height: 1.55;
}

.front-content-list {
  display: grid;
  gap: 10px;
}

.front-content-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.front-content-row-index {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #8db4ff;
  background: rgba(141, 180, 255, 0.08);
  font-weight: 950;
}

.front-content-row strong {
  color: #8db4ff;
  font-size: 0.84rem;
}

.front-content-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  border: 1px dashed #2a3343;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.front-content-detail-shell {
  display: grid;
  gap: 20px;
}

.front-content-detail-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.front-content-detail-nav a {
  min-height: 40px;
  padding: 0 13px;
}

.front-content-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.front-content-article {
  padding: 30px;
  border: 1px solid #232a37;
  border-radius: 8px;
  background: #10131b;
}

.front-content-article p {
  margin: 0;
  color: #d7dfec;
  font-size: 1.02rem;
  line-height: 1.85;
}

.front-content-article p + p {
  margin-top: 18px;
}

.front-content-article-side {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid #232a37;
  border-radius: 8px;
  background: #10131b;
}

.front-content-article-side a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-right: 104px;
  border-radius: 8px;
  color: #fff;
  background: #075df5;
  font-weight: 950;
}

.funding-detail-page {
  min-height: 100vh;
  color: #f7f9ff;
  background:
    radial-gradient(circle at 82% 10%, rgba(7, 93, 245, 0.14), transparent 28%),
    radial-gradient(circle at 18% 0%, rgba(222, 75, 178, 0.12), transparent 25%),
    #0f1014;
}

.funding-detail-shell {
  width: min(1240px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 96px 0 48px;
}

.funding-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: stretch;
  padding: 28px 30px;
  border: 1px solid #252d3c;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 93, 245, 0.2), rgba(13, 17, 27, 0.94) 40%),
    #10131b;
}

.funding-detail-back {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(141, 180, 255, 0.25);
  border-radius: 8px;
  color: #8db4ff;
  background: rgba(141, 180, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 900;
}

.funding-detail-hero h1 {
  margin: 16px 0 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.funding-detail-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #9fadbf;
  line-height: 1.65;
}

.funding-detail-hero aside {
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 170px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #090f19;
}

.funding-detail-hero aside span,
.funding-detail-hero aside small,
.funding-detail-panel-head span {
  color: #8996ad;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.funding-status {
  color: #f2c94c;
  font-size: 1.6rem;
  line-height: 1;
  text-transform: capitalize;
}

.funding-status.approved,
.funding-status.completed {
  color: #00d58b;
}

.funding-status.rejected,
.funding-status.cancelled {
  color: #ff3155;
}

.funding-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.8fr);
  gap: 18px;
  margin-top: 20px;
}

.funding-detail-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid #252d3c;
  border-radius: 8px;
  background: #10131b;
}

.funding-detail-panel.primary {
  grid-row: span 2;
}

.funding-detail-panel-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.funding-detail-panel-head strong {
  color: #fff;
  font-size: 1.2rem;
}

.funding-detail-list {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px 18px;
  margin: 0;
}

.funding-detail-list dt,
.funding-detail-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.funding-detail-list dt {
  color: #6f7b90;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.funding-detail-list dd {
  color: #e6edff;
  font-weight: 850;
}

.funding-proof-frame {
  display: block;
  overflow: hidden;
  border: 1px solid #293246;
  border-radius: 8px;
  background: #080d16;
}

.funding-proof-frame img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.funding-proof-empty,
.funding-review-note {
  display: grid;
  align-content: center;
  min-height: 190px;
  padding: 18px;
  border: 1px dashed #303a4d;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.funding-proof-empty strong {
  color: #fff;
}

.funding-proof-empty p,
.funding-review-note p {
  margin: 8px 0 0;
  color: #9caabe;
  line-height: 1.6;
}

.funding-timeline {
  display: grid;
  gap: 14px;
}

.funding-timeline div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0 12px;
  align-items: start;
}

.funding-timeline span {
  grid-row: span 2;
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: #30394b;
}

.funding-timeline .active span {
  background: #075df5;
  box-shadow: 0 0 0 5px rgba(7, 93, 245, 0.14);
}

.funding-timeline strong {
  color: #fff;
}

.funding-timeline small {
  margin-top: 3px;
  color: #78869b;
}

.funding-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.funding-detail-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #293246;
  border-radius: 8px;
  color: #c9d7f2;
  background: #111824;
  font-weight: 900;
}

.funding-detail-actions a:first-child {
  color: #fff;
  border-color: #075df5;
  background: #075df5;
}

.order-detail-page {
  background:
    radial-gradient(circle at 74% 8%, rgba(7, 93, 245, 0.18), transparent 26%),
    linear-gradient(180deg, #070b12 0%, #0b1018 52%, #070b12 100%);
}

.order-detail-hero aside strong {
  font-size: 1.65rem;
  text-transform: capitalize;
}

.order-detail-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
}

.order-detail-metric-panel {
  background: linear-gradient(145deg, #101826 0%, #0f131c 100%);
}

.order-detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.order-detail-metrics div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid #252f40;
  border-radius: 8px;
  background: #0b1018;
}

.order-detail-metrics span {
  display: block;
  color: #77849a;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.order-detail-metrics strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 1.15rem;
}

.order-detail-note {
  margin: 0;
  color: #9ba8bc;
  line-height: 1.7;
}

.funding-detail-list.compact {
  grid-template-columns: 132px minmax(0, 1fr);
}

@media (max-width: 980px) {
  .funding-detail-hero,
  .funding-detail-grid {
    grid-template-columns: 1fr;
  }

  .funding-detail-panel.primary {
    grid-row: auto;
  }

  .funding-detail-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .front-content-hero,
  .front-content-article-hero,
  .front-content-layout,
  .front-content-detail-layout {
    grid-template-columns: 1fr;
  }

  .front-content-side,
  .front-content-article-side {
    position: static;
  }

  .front-content-section-head {
    display: grid;
  }

  .front-content-section-head p {
    text-align: left;
  }

  .front-content-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .front-content-row > strong {
    display: none;
  }
}

body[data-page-key="announcements"] .page-shell,
body[data-page-key="help-center"] .page-shell,
body[data-page-key="about-us"] .page-shell,
body[data-page-key="privacy-policy"] .page-shell,
body[data-page-key="terms-of-service"] .page-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 10%, rgba(0, 82, 255, 0.08), transparent 30%),
    #131313;
}

body[data-page-key="announcements"] .main-container,
body[data-page-key="help-center"] .main-container,
body[data-page-key="about-us"] .main-container,
body[data-page-key="privacy-policy"] .main-container,
body[data-page-key="terms-of-service"] .main-container {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.swan-content-page {
  min-height: 100vh;
  color: #e5e2e1;
  background: #131313;
  font-family: "Inter", Arial, sans-serif;
}

.swan-content-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  min-height: 122px;
  padding: 18px clamp(20px, 2vw, 36px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(13, 13, 15, 0.9);
  backdrop-filter: blur(18px);
}

.swan-content-brand-block,
.swan-content-nav,
.swan-content-actions,
.swan-content-lang {
  display: flex;
  align-items: center;
}

.swan-content-brand-block {
  display: contents;
}

.swan-content-brand {
  grid-column: 1;
  grid-row: 1;
  color: #fff;
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.swan-content-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  gap: 24px;
  min-width: 0;
  flex-wrap: wrap;
}

.swan-content-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #a1a1aa;
  background: transparent;
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0;
  transition: color 0.16s ease;
}

.swan-content-nav a:hover,
.swan-content-nav a.active {
  color: #0052ff;
}

.swan-content-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 2px;
  border-radius: 999px;
  background: #0052ff;
}

.swan-content-actions {
  grid-column: 2;
  grid-row: 1;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.swan-content-lang {
  gap: 6px;
  min-height: 42px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.swan-content-lang button,
.swan-content-login,
.swan-content-signup {
  border: 0;
  font-family: "Inter", Arial, sans-serif;
  font-weight: 900;
  white-space: nowrap;
}

.swan-content-lang button {
  min-width: 46px;
  height: 34px;
  border-radius: 999px;
  color: #d4c8d2;
  background: transparent;
  cursor: pointer;
}

.swan-content-lang button.active,
.swan-content-lang button:hover {
  color: #fff;
  background: #0052ff;
}

.swan-content-login,
.swan-content-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 14px;
}

.swan-content-login {
  color: #f3eef2;
  background: rgba(255, 255, 255, 0.1);
}

.swan-content-signup {
  color: #fff;
  background: #0052ff;
  box-shadow: none;
  cursor: pointer;
}

.swan-content-stage {
  width: min(1550px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 78px;
}

.swan-content-page .front-content-hero,
.swan-content-page .front-content-article-hero {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 236px;
  padding: clamp(32px, 4vw, 48px);
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(0, 82, 255, 0.2), rgba(13, 16, 24, 0.94) 45%),
    #0d111a;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.swan-content-page .front-content-hero::after,
.swan-content-page .front-content-article-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -38% 42%;
  height: 180px;
  background: linear-gradient(90deg, transparent, rgba(0, 82, 255, 0.12), transparent);
  transform: rotate(-6deg);
  pointer-events: none;
}

.swan-content-page .front-content-kicker {
  color: #87aaff;
  font-size: 0.82rem;
}

.swan-content-page .front-content-hero h1,
.swan-content-page .front-content-article-hero h1 {
  max-width: 900px;
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-size: clamp(2.7rem, 5.2vw, 5rem);
}

.swan-content-page .front-content-hero p,
.swan-content-page .front-content-article-hero p {
  color: #b8c4da;
  font-size: 1.08rem;
}

.swan-content-page .front-content-hero-panel,
.swan-content-page .front-content-article-hero aside,
.swan-content-page .front-content-featured,
.swan-content-page .front-content-list-panel,
.swan-content-page .front-content-article,
.swan-content-page .front-content-article-side {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(9, 12, 18, 0.82);
}

.swan-content-page .front-content-hero-panel,
.swan-content-page .front-content-article-hero aside {
  min-height: 172px;
  background: rgba(5, 9, 16, 0.78);
}

.swan-content-page .front-content-hero-panel small {
  color: #5dff78;
}

.swan-content-page .front-content-layout {
  grid-template-columns: 326px minmax(0, 1fr);
  gap: 28px;
  margin-top: 28px;
}

.swan-content-page .front-content-side {
  gap: 12px;
}

.swan-content-page .front-content-side a,
.swan-content-page .front-content-detail-nav a {
  min-height: 60px;
  border-color: rgba(255, 255, 255, 0.08);
  color: #c4b6c2;
  background: rgba(12, 15, 22, 0.82);
}

.swan-content-page .front-content-detail-nav a {
  min-height: 42px;
}

.swan-content-page .front-content-side a:hover,
.swan-content-page .front-content-side a.active,
.swan-content-page .front-content-detail-nav a:hover {
  border-color: rgba(0, 82, 255, 0.78);
  color: #fff;
  background: rgba(0, 82, 255, 0.16);
}

.swan-content-page .front-content-side span {
  color: #b9c8ff;
  background: rgba(78, 112, 196, 0.24);
}

.swan-content-page .front-content-card,
.swan-content-page .front-content-row {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 19, 0.88);
}

.swan-content-page .front-content-card:hover,
.swan-content-page .front-content-row:hover {
  border-color: rgba(0, 82, 255, 0.62);
  background: rgba(13, 19, 31, 0.96);
}

.swan-content-page .front-content-row-index,
.swan-content-page .front-content-row strong {
  color: #8fb0ff;
}

.swan-content-page .front-content-section-head p {
  color: #8794aa;
}

.swan-content-page .front-content-article p {
  color: #dce5f4;
}

.swan-content-page .front-content-article-side a {
  background: #0052ff;
  width: 100%;
  min-height: 48px;
  text-align: center;
  line-height: 1.18;
}

@media (max-width: 980px) {
  .swan-content-topbar {
    align-items: flex-start;
    padding: 18px 24px;
  }

  .swan-content-brand-block {
    display: contents;
  }

  .swan-content-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .swan-content-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 860px) {
  .swan-content-stage {
    width: min(100% - 28px, 760px);
    padding-top: 24px;
  }

  .swan-content-page .front-content-hero,
  .swan-content-page .front-content-article-hero,
  .swan-content-page .front-content-layout,
  .swan-content-page .front-content-detail-layout {
    grid-template-columns: 1fr;
  }

  .swan-content-page .front-content-hero h1,
  .swan-content-page .front-content-article-hero h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .swan-content-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
/* scalarcrypto Earn desktop surface */
body[data-page-key="earn"],
body[data-page-key="earn"] .page-shell,
body[data-page-key="earn"] .main-container {
  background: #080a0f;
}

body[data-page-key="earn"] .main-container {
  max-width: none;
  padding: 0;
}

.earn-dark {
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 8%, rgba(18, 104, 243, 0.16), transparent 26rem),
    linear-gradient(180deg, #080a0f 0%, #0b0e14 54%, #080a0f 100%);
  color: #f7f9ff;
}

.earn-shell {
  width: min(1200px, calc(100vw - 120px));
  margin: 0 auto;
  padding: 34px 0 78px;
}

.earn-hero,
.earn-account-strip,
.earn-products-panel,
.earn-side-panel,
.earn-position-panel {
  border: 1px solid rgba(108, 133, 178, 0.22);
  background: rgba(17, 22, 32, 0.88);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.earn-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 32px;
  align-items: end;
  padding: 48px;
  border-radius: 8px;
}

.earn-hero h1 {
  margin: 0;
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 900;
}

.earn-hero p {
  max-width: 640px;
  margin: 22px 0 0;
  color: #9fb2d6;
  font-size: 18px;
  line-height: 1.55;
}

.earn-hero-actions,
.earn-filter-tabs,
.earn-product-top,
.earn-rate-row {
  display: flex;
  align-items: center;
}

.earn-hero-actions {
  gap: 12px;
  margin-top: 30px;
}

.earn-hero-actions a,
.earn-panel-head a,
.earn-subscribe-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid rgba(34, 105, 255, 0.44);
  background: rgba(13, 90, 244, 0.18);
  color: #77adff;
  font-weight: 800;
  text-decoration: none;
}

.earn-hero-actions a:first-child,
.earn-subscribe-button {
  background: #1268f3;
  border-color: #1268f3;
  color: #fff;
}

.earn-hero-stats,
.earn-account-strip {
  display: grid;
  gap: 12px;
}

.earn-hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.earn-hero-stats article,
.earn-account-strip article {
  min-height: 92px;
  border: 1px solid rgba(115, 141, 185, 0.22);
  background: rgba(9, 14, 23, 0.72);
  border-radius: 8px;
  padding: 18px;
}

.earn-hero-stats span,
.earn-account-strip span,
.earn-panel-head span,
.earn-rate-row span,
.earn-subscribe-form label span,
.earn-calc-result span {
  display: block;
  color: #8ca0c4;
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 800;
}

.earn-hero-stats strong,
.earn-account-strip strong {
  display: block;
  margin-top: 10px;
  font-size: 25px;
  line-height: 1.1;
  color: #f7f9ff;
}

.earn-account-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
}

.earn-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-top: 18px;
}

.earn-products-panel,
.earn-side-panel,
.earn-position-panel {
  border-radius: 8px;
  padding: 26px;
}

.earn-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.earn-panel-head.compact {
  margin-bottom: 16px;
}

.earn-panel-head h2 {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.1;
}

.earn-filter-tabs {
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(115, 141, 185, 0.18);
  border-radius: 8px;
  background: rgba(9, 14, 23, 0.58);
}

.earn-filter-tabs button {
  min-width: 86px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9ba9bf;
  font-weight: 800;
  cursor: pointer;
}

.earn-filter-tabs button.active {
  background: #1268f3;
  color: #fff;
}

.earn-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.earn-product-card {
  border: 1px solid rgba(115, 141, 185, 0.2);
  border-radius: 8px;
  background: rgba(10, 15, 24, 0.76);
  padding: 18px;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.earn-product-card:hover,
.earn-product-card.active {
  border-color: rgba(18, 104, 243, 0.8);
  background: rgba(15, 28, 51, 0.92);
  transform: translateY(-1px);
}

.earn-product-top {
  gap: 12px;
}

.earn-token {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(18, 104, 243, 0.18);
  color: #62a0ff;
  font-weight: 900;
}

.earn-product-top strong,
.earn-product-top small {
  display: block;
}

.earn-product-top strong {
  font-size: 18px;
}

.earn-product-top small,
.earn-product-card p,
.earn-risk-note p {
  color: #8fa1bd;
}

.earn-rate-row {
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 14px;
}

.earn-rate-row > div {
  flex: 1;
  border: 1px solid rgba(115, 141, 185, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: rgba(8, 13, 21, 0.62);
}

.earn-rate-row b {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.earn-product-card p {
  min-height: 56px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
}

.earn-subscribe-button {
  width: 100%;
  cursor: pointer;
}

.earn-subscribe-form {
  display: grid;
  gap: 14px;
}

.earn-subscribe-form label {
  display: grid;
  gap: 8px;
}

.earn-subscribe-form input {
  width: 100%;
  min-height: 48px;
  border-radius: 6px;
  border: 1px solid rgba(115, 141, 185, 0.25);
  background: rgba(5, 10, 17, 0.86);
  color: #f7f9ff;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 800;
}

.earn-subscribe-form .primary-button {
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid #1268f3;
  background: #1268f3;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.earn-calc-result {
  border: 1px solid rgba(18, 104, 243, 0.34);
  border-radius: 8px;
  padding: 18px;
  background: rgba(18, 104, 243, 0.1);
}

.earn-calc-result strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.earn-calc-result small {
  display: block;
  margin-top: 8px;
  color: #87a2cf;
  line-height: 1.45;
}

.earn-risk-note {
  margin-top: 18px;
  border-top: 1px solid rgba(115, 141, 185, 0.18);
  padding-top: 18px;
}

.earn-risk-note strong {
  font-size: 16px;
}

.earn-risk-note p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.earn-position-panel {
  margin-top: 18px;
}

.earn-position-table {
  overflow: hidden;
  border: 1px solid rgba(115, 141, 185, 0.18);
  border-radius: 8px;
}

.earn-position-table .head,
.earn-position-table > div:not(.empty) {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr 0.6fr 0.9fr 0.7fr;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(115, 141, 185, 0.14);
}

.earn-position-table .head {
  color: #8ca0c4;
  background: rgba(8, 13, 21, 0.74);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.earn-position-table > div:not(.head):not(.empty) {
  color: #f7f9ff;
  font-weight: 800;
}

.earn-position-table .empty {
  padding: 26px 18px;
  color: #8fa1bd;
}

@media (max-width: 980px) {
  .earn-shell {
    width: min(100% - 28px, 760px);
  }

  .earn-hero,
  .earn-workspace {
    grid-template-columns: 1fr;
  }

  .earn-account-strip,
  .earn-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.scalar-global-menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid rgba(64, 81, 108, 0.78);
  border-radius: 6px;
  background: #111827;
  cursor: pointer;
}

.scalar-global-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #eef4ff;
}

@media (max-width: 760px) {
  html,
  body,
  body[data-frontend-page="true"] {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body[data-frontend-page="true"] .page-shell,
  body[data-frontend-page="true"] .main-container,
  body[data-frontend-page="true"] main,
  body[data-frontend-page="true"] section,
  body[data-frontend-page="true"] article,
  body[data-frontend-page="true"] aside {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .scalar-global-topbar {
    display: grid;
    gap: 12px;
    min-height: 0;
    padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
    background: rgba(5, 7, 13, 0.96);
  }

  .scalar-global-brand-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    gap: 12px;
  }

  .scalar-global-brand {
    font-size: clamp(17px, 5.4vw, 22px);
    letter-spacing: 0.1em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .scalar-global-menu-toggle {
    display: inline-grid;
    place-content: center;
  }

  .scalar-global-nav,
  .scalar-global-actions {
    display: none;
    width: 100%;
  }

  .scalar-global-topbar.is-open .scalar-global-nav,
  .scalar-global-topbar.is-open .scalar-global-actions {
    display: grid;
  }

  .scalar-global-topbar.is-open .scalar-global-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .scalar-global-nav a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(64, 81, 108, 0.54);
    border-radius: 6px;
    background: #0f1724;
  }

  .scalar-global-nav a.active::after {
    display: none;
  }

  .scalar-global-actions {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 8px;
  }

  .scalar-global-lang {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
  }

  .scalar-global-lang button {
    flex: 1;
  }

  .scalar-global-login,
  .scalar-global-primary {
    justify-content: center;
    min-height: 42px;
  }

  .swan-main,
  .market-page,
  .target-market-page,
  .spot-terminal-page,
  .futures-terminal-page,
  .delivery-terminal-page,
  .options-terminal-page,
  .wallet-page,
  .deposit-page,
  .withdraw-page,
  .bank-card-page,
  .bill-page,
  .dashboard-page,
  .profile-page,
  .kyc-page,
  .security-page,
  .support-page,
  .auth-shell,
  .earn-dark {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .swan-main,
  .wallet-shell,
  .deposit-shell,
  .withdraw-shell,
  .bank-card-shell,
  .bill-shell,
  .dashboard-shell,
  .profile-shell,
  .kyc-shell,
  .security-shell,
  .auth-shell,
  .earn-shell {
    padding-inline: 12px;
  }

  .swan-market-grid,
  .spot-grid,
  .futures-workspace,
  .delivery-workspace,
  .options-workspace,
  .options-trading-grid,
  .wallet-balance-grid,
  .wallet-form-grid,
  .wallet-history-grid,
  .deposit-workspace,
  .deposit-hero-stats,
  .withdraw-layout,
  .withdraw-hero,
  .withdraw-balance-card,
  .bank-card-layout,
  .bank-card-form-layout,
  .bank-card-form-grid,
  .bill-workspace,
  .bill-metrics,
  .dashboard-grid,
  .dashboard-workspace,
  .dashboard-metrics,
  .dashboard-lower-grid,
  .profile-layout,
  .profile-summary-grid,
  .profile-action-grid,
  .kyc-layout,
  .kyc-form-grid,
  .kyc-preview-grid,
  .security-layout,
  .security-workspace,
  .security-metrics,
  .support-layout,
  .auth-grid,
  .earn-grid,
  .earn-hero,
  .earn-workspace,
  .earn-account-strip,
  .earn-product-grid,
  .earn-hero-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
  }

  .spot-grid,
  .futures-workspace,
  .delivery-workspace,
  .options-workspace {
    min-height: 0;
  }

  .spot-market-strip,
  .futures-symbol-list,
  .delivery-symbol-list,
  .options-symbol-list,
  .earn-filter-tabs,
  .profile-tabs,
  .wallet-action-row,
  .deposit-asset-list,
  .withdraw-asset-list,
  .bill-filter-list {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .spot-market-strip::-webkit-scrollbar,
  .futures-symbol-list::-webkit-scrollbar,
  .delivery-symbol-list::-webkit-scrollbar,
  .options-symbol-list::-webkit-scrollbar,
  .earn-filter-tabs::-webkit-scrollbar,
  .profile-tabs::-webkit-scrollbar,
  .wallet-action-row::-webkit-scrollbar,
  .deposit-asset-list::-webkit-scrollbar,
  .withdraw-asset-list::-webkit-scrollbar,
  .bill-filter-list::-webkit-scrollbar {
    display: none;
  }

  .spot-chart-pane,
  .futures-chart-panel,
  .delivery-chart-panel,
  .options-chart-panel {
    min-height: 0;
    max-width: 100%;
  }

  .spot-chart-stage,
  .futures-chart,
  .delivery-chart,
  .options-chart {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 300px;
    height: 300px;
  }

  .spot-order-zone,
  .futures-order-form,
  .delivery-order-form,
  .options-order-form,
  .wallet-form,
  .deposit-form,
  .withdraw-form,
  .security-form,
  .kyc-form,
  .earn-subscribe-form {
    width: 100%;
    max-width: 100%;
  }

  .spot-history-table,
  .futures-history-table,
  .delivery-history-table,
  .options-history-table,
  .wallet-history-table,
  .deposit-history-table,
  .withdraw-history-table,
  .dashboard-table,
  .bill-table,
  .earn-position-table,
  .data-table {
    width: 100%;
    overflow-x: auto;
  }

  .spot-history-table article,
  .spot-history-table a,
  .futures-history-table > div,
  .futures-history-table > a,
  .delivery-history-table > div,
  .delivery-history-table > a,
  .options-history-table > div,
  .wallet-history-table > div,
  .wallet-history-table > a,
  .deposit-history-table > div,
  .deposit-history-table > a,
  .withdraw-history-table > div,
  .withdraw-history-table > a,
  .dashboard-table > div,
  .bill-table > div,
  .earn-position-table .head,
  .earn-position-table > div:not(.empty) {
    min-width: 640px;
  }

  .swan-market-table {
    min-width: 680px;
  }

  .swan-section-head,
  .wallet-section-head,
  .deposit-section-head,
  .withdraw-panel-head,
  .bank-card-panel-head,
  .dashboard-panel-head,
  .profile-panel-head,
  .kyc-panel-head,
  .security-panel-head,
  .support-panel-head,
  .earn-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .wallet-balance-copy h1,
  .deposit-hero h1,
  .withdraw-hero h1,
  .bank-card-hero h1,
  .bill-hero h1,
  .dashboard-hero h1,
  .profile-hero h1,
  .kyc-hero h1,
  .security-hero h1,
  .earn-hero h1,
  .auth-card h1 {
    font-size: clamp(28px, 9vw, 42px);
    line-height: 1.05;
  }

  .mobile-shell {
    background:
      radial-gradient(circle at 78% 6%, rgba(22, 119, 255, 0.18), transparent 34%),
      linear-gradient(180deg, #05070d 0%, #080b12 46%, #05070d 100%) !important;
  }

  .mobile-shell .page-shell,
  .mobile-shell .page-hero.compact,
  .mobile-shell .card,
  .mobile-shell .review-card,
  .mobile-shell .mobile-app-header {
    border-color: rgba(22, 119, 255, 0.18) !important;
    background:
      linear-gradient(145deg, rgba(15, 23, 36, 0.96), rgba(7, 10, 18, 0.96)),
      radial-gradient(circle at 100% 0%, rgba(22, 119, 255, 0.14), transparent 34%) !important;
  }

  .mobile-shell input,
  .mobile-shell select,
  .mobile-shell textarea {
    border-color: rgba(64, 81, 108, 0.72) !important;
    background: rgba(5, 7, 13, 0.94) !important;
  }

  .mobile-shell .primary-button,
  .mobile-shell .mobile-app-nav a.active,
  .mobile-shell .mobile-app-nav a[class*="bg-[#0b5cff]"],
  body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav a[class*="bg-[#0b5cff]"],
  body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav a.active {
    background: linear-gradient(135deg, #1677ff, #0b5cff) !important;
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(22, 119, 255, 0.22) !important;
  }

  .mobile-shell .mobile-app-nav,
  body[data-page-key^="mobile-trade-"].mobile-shell .mobile-app-nav {
    border-color: rgba(22, 119, 255, 0.18) !important;
    background: rgba(5, 7, 13, 0.96) !important;
  }

  .mobile-shell .mobile-app-nav a {
    color: #a9b8d0 !important;
  }
}

@media (max-width: 760px) {
  .market-shell {
    width: 100%;
    padding: 18px 12px 44px;
  }

  .market-hero-panel,
  .market-table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .market-hero-panel {
    padding: 18px;
    gap: 18px;
  }

  .market-hero-panel h1 {
    max-width: 100%;
    font-size: clamp(28px, 9vw, 38px);
  }

  .market-hero-stats,
  .market-spotlight-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0;
    width: 100%;
  }

  .market-category-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .market-search {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .market-refresh {
    grid-column: 1 / -1;
    width: 100%;
  }

  .market-source {
    text-align: left;
  }

  .market-table {
    min-width: 720px;
  }
}

