/* ============================================================
   NOVA / SOLVMARKETS TERMINAL SKIN
   Shared by /spot.html and /nova/spot.html.
   Scoped under .terminal-page so the rest of the app is untouched.
   ============================================================ */

.terminal-page {
  --t-bg: #000000;
  --t-panel: #030303;
  --t-panel-2: #050505;
  --t-line: rgba(255, 255, 255, 0.08);
  --t-line-strong: rgba(255, 255, 255, 0.14);
  --t-line-bright: rgba(255, 255, 255, 0.24);
  --t-text: #f2f2f2;
  --t-text-2: #a0a0a0;
  --t-text-3: #707070;
  --t-text-4: #4a4a4a;
  --t-up: #00ffa0;
  --t-down: #ff4664;
  --t-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --t-sans: "IBM Plex Sans", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 58px;
  background: #000 !important;
  color: var(--t-text);
  font-family: var(--t-sans);
}

.terminal-page .page-main {
  max-width: none;
  min-height: calc(100vh - var(--nav-height));
  padding: var(--nav-height) 0 0 !important;
}

.terminal-page .page-main > .container {
  max-width: none;
  margin: 0;
  padding: 0;
}

.terminal-page .footer {
  display: none !important;
}

/* The floating support launcher sits on top of the bot rail's action button. */
.terminal-page #supportFab,
.terminal-page #supportMenu,
.terminal-page #supportCard {
  display: none !important;
}

/* ------------------------------------------------------------------
   Top bar
   ------------------------------------------------------------------ */

.terminal-page .navbar {
  height: var(--nav-height);
  padding-top: 0;
  background: #000 !important;
  border-bottom: 1px solid var(--t-line);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.terminal-page .navbar-inner {
  max-width: none;
  height: var(--nav-height);
  padding: 0 16px;
  gap: 18px;
}

.terminal-page .nv-brand-mark,
.terminal-page .logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #000 !important;
  color: #ffffff !important;
}

.terminal-page .nv-brand-mark svg,
.terminal-page .logo-icon svg {
  width: 19px;
  height: 19px;
  color: #ffffff !important;
}

.terminal-page .nv-brand:hover .nv-brand-mark {
  border-color: #ffffff !important;
  background: #000 !important;
}

.terminal-page .nv-brand:hover .nv-brand-mark svg {
  color: #ffffff !important;
}

.terminal-page .nv-brand-name,
.terminal-page .logo-text {
  color: #ffffff !important;
  font-family: var(--t-sans) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.22em !important;
}

.terminal-page .nv-brand-sub,
.terminal-page .logo-highlight {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--t-text-3) !important;
  font-family: var(--t-mono) !important;
  font-size: 7px !important;
  font-weight: 400 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
}

.terminal-page .logo-highlight {
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid var(--t-line-strong);
}

.terminal-page .nav-links {
  gap: 2px;
}

.terminal-page .nav-link,
.terminal-page .nav-dropdown > .nav-link {
  padding: 8px 10px;
  border-radius: 0;
  color: var(--t-text-3) !important;
  font-family: var(--t-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.terminal-page .nav-links > .nav-link:hover,
.terminal-page .nav-links > .nav-dropdown > .nav-link:hover,
.terminal-page .nav-links > .nav-link.active,
.terminal-page .nav-links > .nav-dropdown > .nav-link.active {
  color: #ffffff !important;
  background: transparent !important;
}

.terminal-page .nav-links > .nav-link.active::after,
.terminal-page .nav-links > .nav-dropdown > .nav-link.active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 1px;
  background: #ffffff;
}

.terminal-page .nav-links .nav-link-stake {
  background: transparent !important;
  color: var(--t-text-3) !important;
}

.terminal-page .nav-links .nav-link-stake:hover,
.terminal-page .nav-links .nav-link-stake.active {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
}

.terminal-page .nav-dropdown-menu {
  border-radius: 0;
  border: 1px solid var(--t-line-strong);
  background: #050505;
}

.terminal-page .nav-dropdown-item {
  font-family: var(--t-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terminal-page .btn-login,
.terminal-page .btn-signup {
  height: 32px;
  padding: 0 13px;
  border-radius: 0;
  font-family: var(--t-mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.terminal-page .btn-login {
  border: 1px solid var(--t-line-strong);
  color: var(--t-text-2);
  background: transparent;
}

.terminal-page .btn-login:hover {
  color: #000;
  background: #fff;
  border-color: #fff;
}

.terminal-page .btn-signup {
  border: 1px solid #fff;
  background: #fff;
  color: #000;
}

.terminal-page .btn-signup:hover {
  background: #e6e6e6;
  border-color: #e6e6e6;
}

.terminal-page .hamburger span {
  background: #fff;
}

/* ------------------------------------------------------------------
   Three-column shell
   ------------------------------------------------------------------ */

.terminal-page .t-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr) 360px;
  gap: 1px;
  height: calc(100vh - var(--nav-height));
  min-height: 660px;
  overflow: hidden;
  background: var(--t-line);
}

.terminal-page .t-rail,
.terminal-page .t-center,
.terminal-page .t-bot-rail {
  min-width: 0;
  min-height: 0;
  background: #000;
}

/* ------------------------------------------------------------------
   Left market rail
   ------------------------------------------------------------------ */

.terminal-page .t-rail {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.terminal-page .t-rail-head {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--t-line);
}

.terminal-page .t-rail-title {
  color: #fff;
  font-family: var(--t-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.terminal-page .t-rail-sub {
  color: var(--t-text-4);
  font-family: var(--t-mono);
  font-size: 6.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.terminal-page .t-search {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin: 12px;
  padding: 0 10px;
  border: 1px solid var(--t-line);
  background: #000;
}

.terminal-page .t-search:focus-within {
  border-color: var(--t-line-bright);
}

.terminal-page .t-search svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--t-text-3);
}

.terminal-page .t-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: #fff;
  font-family: var(--t-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.terminal-page .t-search input::placeholder {
  color: var(--t-text-4);
}

.terminal-page .t-market-list {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 2px;
  min-height: 0;
  padding: 0 12px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.terminal-page .t-market-list::-webkit-scrollbar {
  width: 4px;
}

.terminal-page .t-market-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
}

.terminal-page .t-market-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 8px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.terminal-page .t-market-item:hover {
  border-color: var(--t-line);
  background: #050505;
}

.terminal-page .t-market-item.active {
  border-color: var(--t-line-strong);
  background: #070707;
}

.terminal-page .t-market-item img {
  width: 24px;
  height: 24px;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.terminal-page .t-market-name {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.terminal-page .t-market-name b {
  overflow: hidden;
  color: #fff;
  font-family: var(--t-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-page .t-market-name small {
  overflow: hidden;
  color: var(--t-text-4);
  font-family: var(--t-mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.terminal-page .t-market-quote {
  display: grid;
  gap: 3px;
  justify-items: end;
  min-width: 0;
}

.terminal-page .t-market-quote b {
  color: var(--t-text-2);
  font-family: var(--t-mono);
  font-size: 8.5px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.terminal-page .t-market-quote em {
  font-family: var(--t-mono);
  font-size: 7.5px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.terminal-page .t-market-quote em.up {
  color: var(--t-up);
}

.terminal-page .t-market-quote em.down {
  color: var(--t-down);
}

.terminal-page .t-market-empty {
  padding: 18px 8px;
  color: var(--t-text-4);
  font-family: var(--t-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.terminal-page .t-rail-foot {
  flex: 0 0 auto;
  padding: 11px 16px;
  border-top: 1px solid var(--t-line);
}

.terminal-page .t-rail-foot a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--t-text-3);
  font-family: var(--t-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.terminal-page .t-rail-foot a:hover {
  color: #fff;
}

/* ------------------------------------------------------------------
   Center column
   ------------------------------------------------------------------ */

.terminal-page .t-center {
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) 320px;
  overflow: hidden;
}

/* Pair bar */

.terminal-page .t-pair-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  min-height: 64px;
  margin: 0 !important;
  padding: 0 16px !important;
  border-bottom: 1px solid var(--t-line);
  background: #000;
}

.terminal-page .t-pair-bar .pair-info {
  position: relative;
  min-width: 0;
}

.terminal-page .t-pair-bar .pair-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
}

.terminal-page .t-pair-bar .pair-dropdown-logo {
  width: 28px;
  height: 28px;
  border-radius: 50% !important;
  object-fit: contain;
}

.terminal-page .t-pair-bar .pair-dropdown-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.terminal-page .t-pair-bar .pair-name {
  margin: 0 !important;
  color: #fff !important;
  font-family: var(--t-sans) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
  text-transform: uppercase;
  white-space: nowrap;
}

.terminal-page .t-pair-bar .pair-price-tag {
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  font-family: var(--t-mono) !important;
  font-size: 9px !important;
  font-weight: 400 !important;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.terminal-page .t-pair-bar .pair-change {
  padding: 2px 4px;
  font-family: var(--t-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.terminal-page .t-pair-bar .pair-dropdown-chevron {
  width: 14px;
  height: 14px;
  margin-left: 2px;
  color: var(--t-text-3);
}

.terminal-page .t-pair-bar .pair-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}

.terminal-page .t-pair-bar .stat-item {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 0 12px;
  border-left: 1px solid var(--t-line);
}

.terminal-page .t-pair-bar .stat-item:first-child {
  border-left: 0;
}

.terminal-page .t-pair-bar .stat-label {
  color: var(--t-text-4);
  font-family: var(--t-mono);
  font-size: 6px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.terminal-page .t-pair-bar .stat-value {
  color: var(--t-text-2);
  font-family: var(--t-mono);
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Easy / Advanced mode switch */

.terminal-page .t-mode-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: stretch;
  height: 26px;
  border: 1px solid var(--t-line-strong);
  background: #000;
}

.terminal-page .t-mode-switch button {
  height: 100%;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--t-text-3);
  font-family: var(--t-mono);
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.terminal-page .t-mode-switch button + button {
  border-left: 1px solid var(--t-line-strong);
}

.terminal-page .t-mode-switch button:hover {
  color: #ffffff;
}

.terminal-page .t-mode-switch button.active,
html[data-trading-mode="easy"] .terminal-page .t-mode-switch button[data-mode="easy"],
html[data-trading-mode="advanced"] .terminal-page .t-mode-switch button[data-mode="advanced"] {
  background: #ffffff;
  color: #000000;
}

/* Easy-mode quick pair strip */

.terminal-page .t-easy-strip {
  display: none;
  align-items: stretch;
  height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--t-line);
  background: #000;
  overflow-x: auto;
  scrollbar-width: none;
}

.terminal-page .t-easy-strip::-webkit-scrollbar {
  display: none;
}

.terminal-page .t-easy-chip {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  height: 100%;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid var(--t-line);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.terminal-page .t-easy-chip:first-child {
  padding-left: 0;
  border-left: 0;
}

.terminal-page .t-easy-chip:hover .t-easy-chip-sym {
  color: #ffffff;
}

.terminal-page .t-easy-chip.active {
  background: rgba(255, 255, 255, 0.03);
}

.terminal-page .t-easy-chip img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.terminal-page .t-easy-chip-name {
  display: grid;
  gap: 3px;
  text-align: left;
}

.terminal-page .t-easy-chip-sym {
  color: var(--t-text-2);
  font-family: var(--t-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}

.terminal-page .t-easy-chip-price {
  color: var(--t-text-4);
  font-family: var(--t-mono);
  font-size: 6.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.terminal-page .t-easy-chip-change {
  font-family: var(--t-mono);
  font-size: 7px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.terminal-page .t-easy-chip-change.up {
  color: var(--t-up);
}

.terminal-page .t-easy-chip-change.down {
  color: var(--t-down);
}

/* Pair dropdown */

.terminal-page .pair-dropdown-menu {
  top: calc(100% + 10px);
  left: 0;
  width: 320px;
  max-height: 380px;
  padding: 4px;
  overflow-y: auto;
  border: 1px solid var(--t-line-strong);
  border-radius: 0;
  background: #050505;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  z-index: 40;
}

.terminal-page .pair-dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 0;
}

.terminal-page .pair-dropdown-item:hover,
.terminal-page .pair-dropdown-item.active {
  border-color: var(--t-line);
  background: #0a0a0a;
}

.terminal-page .pair-item-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.terminal-page .pair-item-symbol {
  color: #fff;
  font-family: var(--t-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.terminal-page .pair-item-name {
  color: var(--t-text-4);
  font-family: var(--t-mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Chart */

.terminal-page .t-chart {
  display: grid;
  grid-template-rows: 36px minmax(0, 1fr);
  min-height: 0;
  border-bottom: 1px solid var(--t-line);
  background: #000;
}

.terminal-page .t-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--t-line);
}

.terminal-page .t-chart-title {
  color: var(--t-text-2);
  font-family: var(--t-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.terminal-page .t-chart-sub {
  color: var(--t-text-4);
  font-family: var(--t-mono);
  font-size: 6.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.terminal-page .t-chart .chart-area {
  grid-column: auto !important;
  grid-row: auto !important;
  height: 100% !important;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: #000;
  overflow: hidden;
}

.terminal-page .t-chart #tradingview-widget {
  width: 100%;
  height: 100% !important;
  min-height: 0;
  border-radius: 0;
}

.terminal-page .t-chart .loading-skeleton {
  border-radius: 0;
}

/* Bottom panels */

.terminal-page .t-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  min-height: 0;
  background: var(--t-line);
}

.terminal-page .t-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #000;
}

.terminal-page .t-panel-head {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--t-line);
}

.terminal-page .t-panel-head .panel-title {
  margin: 0;
  color: #fff;
  font-family: var(--t-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.terminal-page .t-panel-sub {
  overflow: hidden;
  color: var(--t-text-4);
  font-family: var(--t-mono);
  font-size: 6.5px;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Order book */

.terminal-page .t-orderbook .ob-header {
  display: grid;
  flex: 0 0 26px;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  height: 26px;
  padding: 0 14px;
  border-bottom: 1px solid var(--t-line);
  color: var(--t-text-4);
  font-family: var(--t-mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.terminal-page .t-orderbook .ob-header span:nth-child(2) {
  text-align: center;
}

.terminal-page .t-orderbook .ob-header span:last-child {
  text-align: right;
}

.terminal-page .t-orderbook .ob-asks,
.terminal-page .t-orderbook .ob-bids {
  flex: 1;
  min-height: 0;
  padding: 0 14px;
  overflow-y: auto;
}

.terminal-page .t-orderbook .ob-row {
  padding: 2px 0;
  font-family: var(--t-mono);
  font-size: 7.5px;
}

.terminal-page .t-orderbook .ob-spread {
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 14px;
  border-top: 1px solid var(--t-line);
  border-bottom: 1px solid var(--t-line);
  background: #050505;
}

.terminal-page .t-orderbook .spread-price {
  color: #fff;
  font-family: var(--t-mono);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.terminal-page .t-orderbook .spread-label {
  color: var(--t-text-4);
  font-family: var(--t-mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Arbitrage orders table */

.terminal-page .t-orders .table-wrapper {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.terminal-page .t-orders .crypto-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--t-mono);
  font-size: 7px;
}

.terminal-page .t-orders .crypto-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 7px 8px;
  border-bottom: 1px solid var(--t-line);
  background: #000;
  color: var(--t-text-4);
  font-size: 6px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.terminal-page .t-orders .crypto-table th:first-child {
  padding-left: 14px !important;
}

.terminal-page .t-orders .crypto-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--t-text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.terminal-page .t-orders .crypto-table td:first-child {
  padding-left: 14px;
}

.terminal-page .t-orders .crypto-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.terminal-page .t-orders .crypto-table img {
  border-radius: 50%;
}

.terminal-page .t-orders .orders-empty,
.terminal-page .t-orders td[colspan] {
  color: var(--t-text-4) !important;
  font-family: var(--t-mono) !important;
  font-size: 7px !important;
  letter-spacing: 0.08em;
  text-align: center !important;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------
   Easy mode: chart + AI signals, no market rail / book / order history
   ------------------------------------------------------------------ */

html[data-trading-mode="easy"] .terminal-page .t-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
}

html[data-trading-mode="easy"] .terminal-page .t-rail {
  display: none;
}

html[data-trading-mode="easy"] .terminal-page .t-center {
  grid-template-rows: 64px 52px minmax(0, 1fr);
}

html[data-trading-mode="easy"] .terminal-page .t-bottom {
  display: none;
}

html[data-trading-mode="easy"] .terminal-page .t-chart {
  border-bottom: 0;
}

html[data-trading-mode="easy"] .terminal-page .t-pair-bar .pair-stats {
  display: none;
}

html[data-trading-mode="easy"] .terminal-page .t-easy-strip {
  display: flex;
}

/* ------------------------------------------------------------------
   Right bot rail
   ------------------------------------------------------------------ */

.terminal-page .ai-arbitrage-sidebar.t-bot-rail {
  display: grid;
  grid-column: auto !important;
  grid-row: auto !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-self: stretch;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #000;
}

.terminal-page .t-bot-rail .qt-bot-details {
  margin: 12px 12px 0;
  overflow: hidden;
  border: 1px solid var(--t-line) !important;
  border-radius: 0 !important;
  background: #000 !important;
}

.terminal-page .t-bot-rail .qt-header {
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--t-line) !important;
}

.terminal-page .t-bot-rail .qt-icon-wrap {
  width: 32px;
  height: 32px;
  border: 1px solid var(--t-line-strong) !important;
  border-radius: 0 !important;
  background: #000 !important;
  color: #fff !important;
}

.terminal-page .t-bot-rail .qt-icon-wrap svg {
  width: 17px;
  height: 17px;
  stroke: #fff !important;
}

.terminal-page .t-bot-rail .qt-title {
  color: #fff !important;
  font-family: var(--t-sans) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  line-height: 1.1;
  text-transform: uppercase;
}

.terminal-page .t-bot-rail .qt-tier-badge {
  align-self: flex-start;
  margin-top: 2px;
  padding: 2px 5px;
  border: 1px solid var(--t-line) !important;
  border-radius: 0 !important;
  background: none !important;
  color: var(--t-text-3) !important;
  font-family: var(--t-mono) !important;
  font-size: 6.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  line-height: 1.2;
}

.terminal-page .t-bot-rail .qt-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--t-line);
}

.terminal-page .t-bot-rail .qt-metric {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.terminal-page .t-bot-rail .qt-metric-label {
  color: var(--t-text-3) !important;
  font-family: var(--t-mono) !important;
  font-size: 6.5px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
}

.terminal-page .t-bot-rail .qt-metric-val {
  color: var(--t-text-2) !important;
  font-family: var(--t-mono) !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.terminal-page .t-bot-rail .qt-power-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.terminal-page .t-bot-rail .qt-power-bar {
  height: 2px !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.terminal-page .t-bot-rail .qt-power-fill {
  border-radius: 0 !important;
  background: #fff !important;
}

.terminal-page .t-bot-rail .qt-upgrade-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--t-line) !important;
  color: var(--t-text-3) !important;
  font-family: var(--t-mono) !important;
  font-size: 7px !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
}

.terminal-page .t-bot-rail .qt-upgrade-link:hover {
  background: #fff !important;
  color: #000 !important;
}

.terminal-page .t-bot-rail .qt-upgrade-link svg {
  width: 12px;
  height: 12px;
}

.terminal-page .t-bot-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 12px 8px;
}

.terminal-page .t-bot-list-head .trades-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #fff;
  font-family: var(--t-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.terminal-page .t-bot-list-head .trades-title::before {
  content: none !important;
}

.terminal-page .t-bot-count {
  color: var(--t-text-4);
  font-family: var(--t-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.terminal-page .profitable-trades-list {
  display: grid;
  align-content: start;
  gap: 8px;
  height: auto !important;
  min-height: 0;
  padding: 0 12px 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  counter-reset: signal;
}

.terminal-page .profitable-trades-list::-webkit-scrollbar {
  width: 4px;
}

.terminal-page .profitable-trades-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
}

.terminal-page .t-bot-action {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--t-line);
  background: #000;
}

.terminal-page .execute-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #fff;
  border-radius: 0;
  background: #fff;
  color: #000;
  font-family: var(--t-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: none;
}

.terminal-page .execute-all-btn:hover {
  border-color: #e6e6e6;
  background: #e6e6e6;
  box-shadow: none;
}

.terminal-page .execute-all-btn.is-locked {
  border-color: var(--t-line-strong);
  background: transparent;
  color: #fff;
}

.terminal-page .execute-all-btn .eab-icon {
  display: inline-flex;
}

.terminal-page .execute-all-btn .eab-icon svg {
  width: 14px;
  height: 14px;
}

.terminal-page .execute-all-btn .eab-energy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 17px;
  padding: 0 5px;
  border: 1px solid currentColor;
  font-size: 7px;
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------------
   Bot cards (markup generated by pages.js)
   ------------------------------------------------------------------ */

.terminal-page .trade-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--t-line);
  border-radius: 0;
  background: #030303;
  opacity: 1;
  animation: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  counter-increment: signal;
}

.terminal-page .trade-card:hover {
  border-color: var(--t-line-strong);
  box-shadow: none;
}

.terminal-page .trade-pair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 0 0 8px;
  border-bottom: 1px dashed var(--t-line);
}

.terminal-page .trade-pair-row::after {
  content: "Signal " counter(signal, decimal-leading-zero);
  color: var(--t-text-4);
  font-family: var(--t-mono);
  font-size: 6.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.terminal-page .trade-pair {
  color: #fff;
  font-family: var(--t-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.terminal-page .trade-exchange-row,
.terminal-page .trade-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin: 0;
}

.terminal-page .trade-exchange-side {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
}

.terminal-page .trade-exchange-side.end,
.terminal-page .trade-field.end {
  justify-items: end;
  text-align: right;
}

.terminal-page .exchange-label,
.terminal-page .field-label {
  color: var(--t-text-3);
  font-family: var(--t-mono);
  font-size: 6.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terminal-page .exchange-name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--t-text-2);
  font-family: var(--t-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.terminal-page .exchange-name img {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
  padding: 2px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.92) !important;
  object-fit: contain;
}

.terminal-page .trade-field {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
}

.terminal-page .price-val {
  color: #fff;
  font-family: var(--t-mono);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.terminal-page .profit-val {
  color: #fff !important;
  font-family: var(--t-mono);
  font-size: 12px !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.terminal-page .profit-val-usdt {
  margin-top: -1px;
  color: var(--t-text-3) !important;
  font-family: var(--t-mono);
  font-size: 6.5px !important;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.terminal-page .ai-confidence-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 5px;
  border: 1px solid var(--t-line);
  background: none;
  color: var(--t-text-2);
  font-family: var(--t-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-shadow: none;
  white-space: nowrap;
}

.terminal-page .trade-card-footer {
  margin: 0;
}

.terminal-page .trade-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--t-line-bright);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: var(--t-mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: none;
}

.terminal-page .trade-card-btn:hover {
  border-color: #fff;
  background: #fff;
  color: #000;
  box-shadow: none;
}

.terminal-page .trade-card-btn svg {
  width: 12px;
  height: 12px;
}

.terminal-page .trade-card-btn-pct {
  padding: 0 0 0 8px;
  border: 0;
  border-left: 1px solid currentColor;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.6;
}

/* ------------------------------------------------------------------
   Trade execution modal
   ------------------------------------------------------------------ */

.terminal-page .trade-modal-overlay {
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.terminal-page .trade-modal {
  width: min(420px, calc(100% - 32px));
  max-width: 420px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--t-line-strong);
  border-radius: 0;
  background: #050505;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.terminal-page .trade-modal-title {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--t-line);
  color: #fff;
  font-family: var(--t-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-align: left;
  text-transform: uppercase;
}

.terminal-page .trade-modal-body {
  padding: 16px;
}

.terminal-page .trade-modal-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  color: var(--t-text-3);
  font-family: var(--t-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.terminal-page .trade-modal-stat strong {
  color: var(--t-text-2);
  font-size: 9px;
  font-weight: 400;
}

.terminal-page .trade-modal-divider {
  height: 1px;
  margin: 12px 0;
  background: var(--t-line);
}

.terminal-page .trade-modal-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--t-text-3);
  font-family: var(--t-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terminal-page .amt-chip {
  height: 30px;
  border: 1px solid var(--t-line);
  border-radius: 0;
  background: transparent;
  color: var(--t-text-3);
  font-family: var(--t-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.terminal-page .amt-chip:hover {
  border-color: var(--t-line-strong);
  color: #fff;
}

.terminal-page .amt-chip.active {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.terminal-page .trade-modal-field input[type="number"] {
  border-radius: 0 !important;
}

.terminal-page .trade-modal-qty {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--t-line-strong);
  border-radius: 0;
  overflow: hidden;
}

.terminal-page .trade-modal-qty button {
  border: 0;
  border-radius: 0;
  background: #000;
  color: var(--t-text-2);
}

.terminal-page .trade-modal-qty input {
  border: 0;
  border-radius: 0;
  background: #000;
  color: #fff;
  font-family: var(--t-mono);
}

.terminal-page .trade-modal-summary {
  margin-top: 14px !important;
  padding: 12px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--t-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.terminal-page .summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  color: var(--t-text-3);
  font-family: var(--t-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-page .summary-row strong {
  color: #fff;
  font-family: var(--t-mono);
  font-size: 10px;
  font-weight: 400;
}

.terminal-page .trade-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-top: 1px solid var(--t-line);
  background: var(--t-line);
}

.terminal-page .modal-btn-cancel,
.terminal-page .modal-btn-execute {
  height: 44px;
  border: 0;
  border-radius: 0;
  font-family: var(--t-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.terminal-page .modal-btn-cancel {
  background: #000;
  color: var(--t-text-3);
}

.terminal-page .modal-btn-cancel:hover {
  color: #fff;
}

.terminal-page .modal-btn-execute {
  background: #fff;
  color: #000;
}

.terminal-page .modal-btn-execute:hover {
  background: #e6e6e6;
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */

@media (max-width: 1500px) {
  .terminal-page .t-pair-bar .stat-item:nth-child(n + 5) {
    display: none;
  }
}

@media (max-width: 1320px) {
  .terminal-page .t-layout {
    grid-template-columns: 248px minmax(0, 1fr) 336px;
  }

  .terminal-page .t-pair-bar .stat-item {
    padding: 0 9px;
  }

  .terminal-page .t-pair-bar .stat-item:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 1120px) {
  .terminal-page .t-layout {
    grid-template-columns: 224px minmax(0, 1fr) 318px;
  }

  .terminal-page .nav-links {
    display: none;
  }

  .terminal-page .hamburger {
    display: flex;
  }

  .terminal-page .t-pair-bar .stat-item:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 980px) {
  .terminal-page .page-main {
    min-height: 0;
    padding-bottom: 84px;
  }

  .terminal-page .t-layout {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .terminal-page .t-rail {
    max-height: 300px;
    border-bottom: 1px solid var(--t-line);
  }

  .terminal-page .t-market-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 10px;
  }

  .terminal-page .t-center {
    grid-template-rows: auto 380px auto;
  }

  .terminal-page .t-pair-bar {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding: 12px 16px;
  }

  .terminal-page .t-pair-bar .pair-stats {
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--t-line);
  }

  .terminal-page .t-pair-bar .stat-item {
    flex: 1;
    padding: 0 10px;
  }

  .terminal-page .t-pair-bar .stat-item:nth-child(n + 3) {
    display: none;
  }

  .terminal-page .t-bottom {
    grid-template-columns: minmax(0, 1fr);
    min-height: 520px;
  }

  .terminal-page .t-orderbook {
    min-height: 300px;
  }

  .terminal-page .t-orders {
    min-height: 220px;
  }

  .terminal-page .ai-arbitrage-sidebar.t-bot-rail {
    height: auto;
    min-height: 0;
    border-top: 1px solid var(--t-line);
  }

  .terminal-page .profitable-trades-list {
    max-height: 620px;
  }

  .terminal-page .t-bot-action {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

/* ------------------------------------------------------------------
   Mobile navigation drawer
   ------------------------------------------------------------------ */

@media (max-width: 768px) {
  .terminal-page .nav-links {
    gap: 0 !important;
    padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px calc(env(safe-area-inset-bottom, 0px) + 18px) !important;
    background: #000 !important;
    border-left: 1px solid var(--t-line-strong);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.75);
  }

  .terminal-page .nav-drawer-head {
    padding: 2px 2px 16px;
    border-bottom-color: var(--t-line);
  }

  .terminal-page .nav-drawer-label {
    margin: 14px 4px 6px;
    color: var(--t-text-4);
    font-family: var(--t-mono);
    font-size: 6.5px;
    font-weight: 400;
    letter-spacing: 0.18em;
  }

  .terminal-page .nav-drawer-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--t-line-strong);
    border-radius: 0;
    background: transparent;
    color: #fff;
  }

  .terminal-page .nav-drawer-close:active {
    border-color: #fff;
    background: #fff;
    color: #000;
  }

  .terminal-page .nav-links > .nav-link,
  .terminal-page .nav-links .nav-link {
    min-height: 46px;
    padding: 13px 4px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--t-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--t-text-3) !important;
    font-family: var(--t-mono) !important;
    font-size: 9px !important;
    font-weight: 500 !important;
    letter-spacing: 0.14em !important;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .terminal-page .nav-links > .nav-link:hover,
  .terminal-page .nav-links .nav-link:hover,
  .terminal-page .nav-links > .nav-link.active,
  .terminal-page .nav-links .nav-link.active {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #ffffff !important;
  }

  .terminal-page .nav-links .nav-link-stake,
  .terminal-page .nav-links .nav-link-stake.active {
    margin: 0;
    border: 0 !important;
    border-bottom: 1px solid var(--t-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .terminal-page .nav-links .nav-link-icon {
    width: 16px;
    height: 16px;
    color: currentColor;
  }

  .terminal-page .nav-links .nav-link-icon svg {
    width: 16px;
    height: 16px;
  }

  .terminal-page .nav-links .nav-dropdown-menu {
    padding: 0 0 6px 30px !important;
    border: 0 !important;
    background: transparent !important;
  }

  .terminal-page .nav-links .nav-dropdown-item {
    padding: 9px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--t-text-3);
    font-family: var(--t-mono);
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .terminal-page .nv-brand--drawer .nv-brand-mark svg {
    display: none !important;
  }

  .terminal-page .nv-brand--drawer .nv-brand-mark::before {
    content: "";
    width: 19px;
    height: 19px;
    background: #ffffff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='white' fill-rule='evenodd' d='M16 1 L18.6 13.4 L31 16 L18.6 18.6 L16 31 L13.4 18.6 L1 16 L13.4 13.4 Z M16 9 L14.4 14.4 L9 16 L14.4 17.6 L16 23 L17.6 17.6 L23 16 L17.6 14.4 Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='white' fill-rule='evenodd' d='M16 1 L18.6 13.4 L31 16 L18.6 18.6 L16 31 L13.4 18.6 L1 16 L13.4 13.4 Z M16 9 L14.4 14.4 L9 16 L14.4 17.6 L16 23 L17.6 17.6 L23 16 L17.6 14.4 Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .terminal-page .nav-drawer-brand .logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .terminal-page .nav-drawer-brand .logo-icon > svg {
    display: none !important;
  }

  .terminal-page .nav-drawer-brand .logo-icon::before {
    content: "";
    width: 19px;
    height: 19px;
    background: #ffffff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='white' fill-rule='evenodd' d='M16 1 L18.6 13.4 L31 16 L18.6 18.6 L16 31 L13.4 18.6 L1 16 L13.4 13.4 Z M16 9 L14.4 14.4 L9 16 L14.4 17.6 L16 23 L17.6 17.6 L23 16 L17.6 14.4 Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='white' fill-rule='evenodd' d='M16 1 L18.6 13.4 L31 16 L18.6 18.6 L16 31 L13.4 18.6 L1 16 L13.4 13.4 Z M16 9 L14.4 14.4 L9 16 L14.4 17.6 L16 23 L17.6 17.6 L23 16 L17.6 14.4 Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

@media (max-width: 640px) {
  .terminal-page .navbar-inner {
    padding: 0 12px;
  }

  .terminal-page .nav-actions .btn-login {
    display: none;
  }

  .terminal-page .t-market-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .terminal-page .t-pair-bar .pair-stats {
    display: none;
  }

  .terminal-page .t-center {
    grid-template-rows: auto 340px auto;
  }

  .terminal-page .t-bottom {
    min-height: 480px;
  }

  .terminal-page .t-chart-head {
    padding: 0 12px;
  }

  .terminal-page .t-chart-sub {
    display: none;
  }
}

/* ------------------------------------------------------------------
   Easy mode — responsive column widths
   ------------------------------------------------------------------ */

@media (max-width: 1320px) {
  html[data-trading-mode="easy"] .terminal-page .t-layout {
    grid-template-columns: minmax(0, 1fr) 336px;
  }
}

@media (max-width: 1120px) {
  html[data-trading-mode="easy"] .terminal-page .t-layout {
    grid-template-columns: minmax(0, 1fr) 318px;
  }

  .terminal-page .t-mode-switch {
    order: 2;
    margin-left: auto;
  }

  .terminal-page .t-pair-bar .pair-stats {
    order: 3;
  }
}

@media (max-width: 980px) {
  html[data-trading-mode="easy"] .terminal-page .t-layout {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  html[data-trading-mode="easy"] .terminal-page .t-center {
    grid-template-rows: auto auto 380px;
  }
}

@media (max-width: 640px) {
  html[data-trading-mode="easy"] .terminal-page .t-center {
    grid-template-rows: auto auto 340px;
  }

  .terminal-page .t-mode-switch button {
    padding: 0 8px;
    font-size: 6px;
  }

  .terminal-page .t-mode-switch {
    height: 24px;
  }

  .terminal-page .t-easy-strip {
    height: 46px;
    padding: 0 12px;
  }

  .terminal-page .t-easy-chip {
    gap: 6px;
    padding: 0 10px;
  }

  .terminal-page .t-easy-chip img {
    width: 18px;
    height: 18px;
  }

  .terminal-page .t-easy-chip-price {
    display: none;
  }

  .terminal-page .t-pair-bar .pair-info {
    flex: 1 1 auto;
    width: auto !important;
  }
}
