:root {
  --v2-bg: #07101f;
  --v2-ink: #edf4ff;
  --v2-muted: #9faccc;
  --v2-line: rgba(115, 157, 230, .26);
  --v2-card: rgba(30, 48, 91, .78);
  --v2-card-solid: #172446;
  --v2-card-deep: #0d162d;
  --v2-blue: #64bff4;
  --v2-purple: #6746f5;
  --v2-green: #6fd0a4;
  --v2-red: #e27683;
  --v2-orange: #e39a38;
  --v2-radius: 18px;
  --v2-gap: 12px;
  --v2-rail: clamp(330px, 25vw, 392px);
  --v2-chart-height: clamp(360px, 46vh, 500px);
}

body:has(.future-trade-page--core) {
  background: #08111f;
}

.future-trade-page--core,
.future-trade-page--core * {
  box-sizing: border-box;
}

.future-trade-page--core {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  color: var(--v2-ink);
  font-family: inherit;
}

.future-trade-page--core a { color: inherit; }
.future-trade-page--core button { font: inherit; }
.future-trade-page--core iframe { display: block; width: 100%; border: 0; }

.v2-core-shell {
  width: 100%;
  max-width: 100%;
  padding: 12px clamp(10px, 1.1vw, 18px) 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--v2-gap);
}

.v2-market-header,
.v2-ticker-strip,
.v2-main-grid,
.v2-chart-card,
.v2-chart-stage,
.v2-news-panel,
.v2-positions-panel,
.v2-intel-shell {
  min-width: 0;
  max-width: 100%;
}

.v2-core-shell > *,
.v2-market-card > *,
.v2-main-grid > *,
.v2-left-stack > *,
.v2-right-rail > * {
  min-width: 0;
  max-width: 100%;
}

.v2-market-header { position: relative; z-index: 20; }

.v2-market-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(230px, 320px) auto minmax(430px, 1fr);
  align-items: center;
  gap: clamp(14px, 2vw, 38px);
  padding: 12px 20px;
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(5, 12, 25, .96), rgba(28, 43, 82, .82));
  border: 1px solid rgba(92, 128, 198, .13);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .22);
}

.v2-asset-toggle {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(103, 151, 235, .25);
  border-radius: 14px;
  color: var(--v2-ink);
  background: linear-gradient(135deg, rgba(45, 67, 124, .95), rgba(32, 48, 89, .95));
  display: grid;
  grid-template-columns: 28px 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  text-align: left;
}

.v2-asset-star,
.asset-list__star {
  border: 0;
  background: transparent;
  color: #9eb0d4;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.v2-asset-star.favorite,
.asset-list__star.favorite { color: #f0bf5d; }

.v2-asset-icon,
.asset-list__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}

.v2-asset-icon img,
.asset-list__icon { width: 100%; height: 100%; object-fit: cover; }

.v2-asset-copy { min-width: 0; display: grid; gap: 2px; }
.v2-asset-copy strong { font-size: 18px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-asset-copy small { color: var(--v2-muted); font-size: 13px; line-height: 1; }
.v2-asset-chevron { color: #9db0d3; font-size: 20px; }

.v2-main-price {
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.v2-market-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.v2-metric,
.v2-top-more__btn {
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  display: grid;
  align-content: center;
  gap: 4px;
  color: var(--v2-ink);
}

.v2-metric span,
.v2-top-more__btn { color: #6897ff; font-size: 12px; font-weight: 700; }
.v2-metric strong { font-size: 15px; line-height: 1; }
.up, .text--success { color: var(--v2-green) !important; }
.down, .text--danger { color: var(--v2-red) !important; }

.v2-top-more { position: relative; }
.v2-top-more__btn { width: 100%; text-align: left; padding: 0 12px; cursor: pointer; }
.v2-top-more__btn[aria-expanded="true"] { background: rgba(35, 53, 100, .65); border-color: var(--v2-line); }
.v2-top-more__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(330px, 82vw);
  padding: 14px 18px;
  border: 1px solid rgba(114, 162, 238, .42);
  border-radius: 16px;
  background: #121d39;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  display: none;
  z-index: 70;
}
.v2-top-more.is-open .v2-top-more__panel { display: grid; gap: 12px; }
.v2-top-more__panel div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(125, 153, 211, .16); }
.v2-top-more__panel div:last-child { border-bottom: 0; padding-bottom: 0; }
.v2-top-more__panel span { color: #78a4ff; font-size: 12px; }
.v2-top-more__panel strong { color: var(--v2-ink); }

.v2-asset-panel {
  position: absolute;
  left: clamp(8px, 1.3vw, 20px);
  top: calc(100% + 10px);
  width: min(860px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 150px));
  display: none;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(111, 161, 234, .32);
  background: linear-gradient(160deg, #263969, #21335f 48%, #1c2f5a);
  box-shadow: 0 26px 90px rgba(0,0,0,.5);
}
.v2-asset-panel.is-open { display: grid; }
.v2-asset-panel__head { display: flex; align-items: center; justify-content: space-between; }
.v2-asset-panel__head h3 { margin: 0; color: var(--v2-ink); font-size: 24px; }
.v2-asset-close { border: 0; background: transparent; color: #a9b6d4; font-size: 26px; }
.v2-asset-search { height: 48px; display: flex; align-items: center; gap: 12px; color: #9baccd; }
.v2-asset-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--v2-ink); font-size: 18px; }
.v2-asset-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-asset-tab { border: 0; border-radius: 999px; color: #a9b7d7; background: transparent; padding: 9px 14px; font-weight: 700; }
.v2-asset-tab.active { color: #88d8ff; background: rgba(86, 125, 214, .26); }
.v2-asset-list { overflow: auto; padding-right: 8px; display: grid; gap: 4px; scrollbar-color: #6f8fc5 transparent; }
.v2-asset-row { min-height: 72px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 13px; }
.v2-asset-row:hover { background: rgba(255,255,255,.055); }
.asset-list__link { min-width: 0; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 12px; text-decoration: none; }
.asset-list__info { min-width: 0; display: grid; gap: 2px; }
.asset-list__info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 17px; }
.asset-list__info small { color: var(--v2-muted); font-size: 13px; }
.asset-list__metrics { display: grid; justify-items: end; gap: 3px; font-weight: 700; }
.v2-asset-empty { padding: 30px; text-align: center; color: var(--v2-muted); }

.v2-ticker-strip {
  height: 50px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(13, 23, 43, .78);
}
.v2-ticker-strip iframe { height: 72px; transform: translateY(-8px); }

.v2-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--v2-rail);
  align-items: start;
  gap: var(--v2-gap);
}
.v2-left-stack,
.v2-right-rail { min-width: 0; display: grid; gap: var(--v2-gap); }

.v2-chart-card,
.v2-news-panel,
.v2-positions-panel,
.v2-order-panel,
.v2-auto-panel,
.v2-intel-shell {
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius);
  background: linear-gradient(180deg, rgba(38, 58, 108, .88), rgba(27, 42, 78, .86));
  box-shadow: 0 22px 60px rgba(0,0,0,.23);
}

.v2-chart-card { overflow: hidden; background: linear-gradient(180deg, rgba(20, 29, 50, .94), rgba(15, 24, 43, .96)); }
.v2-chart-stage {
  position: relative;
  height: var(--v2-chart-height);
  min-height: 340px;
  max-height: 520px;
  overflow: hidden;
  background: #111927;
}
.v2-chart-stage .trading-chart,
.v2-chart-stage .tradingview-widget-container,
.v2-chart-stage [id^="tradingview_"],
.v2-chart-stage iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
}
.v2-chart-stage .trading-chart { padding: 0 !important; overflow: hidden !important; }
.v2-chart-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #111927;
  color: #dce8ff;
  transition: opacity .22s ease, visibility .22s ease;
}
.v2-chart-stage:not(.is-chart-pending) .v2-chart-loader { opacity: 0; visibility: hidden; pointer-events: none; }
.v2-chart-loader span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(121,184,255,.2); border-top-color: #78d3ff; animation: v2-spin .8s linear infinite; }
@keyframes v2-spin { to { transform: rotate(360deg); } }

.v2-side-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(7, 13, 28, .78);
  border: 1px solid rgba(98, 129, 199, .12);
}
.v2-side-tab-btn,
.v2-intel-tabs button,
.v2-position-tabs button,
.v2-mobile-nav button {
  border: 0;
  color: #aab7d8;
  background: transparent;
  font-weight: 800;
}
.v2-side-tab-btn { min-height: 44px; border-radius: 13px; }
.v2-side-tab-btn.is-active,
.v2-intel-tabs button.is-active,
.v2-mobile-nav button.is-active,
.v2-position-tabs button.is-active {
  color: #eef6ff;
  background: linear-gradient(135deg, #654df3, #69cef4);
  box-shadow: inset 0 0 0 1px rgba(157,212,255,.3), 0 12px 26px rgba(61,112,226,.24);
}
.v2-side-pane { display: none; }
.v2-side-pane.is-active { display: block; }

.v2-order-panel,
.v2-auto-panel { padding: 14px; }
.v2-order-head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: start; margin-bottom: 14px; position: relative; }
.v2-order-head h3,
.v2-auto-head h3 { margin: 0; font-size: 17px; color: var(--v2-ink); }
.v2-order-controls { grid-column: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.future-trade-btn { min-height: 34px; border: 1px solid rgba(131, 177, 255, .4); border-radius: 7px; padding: 0 10px; color: #fff; background: linear-gradient(135deg, #634df1, #66c9ef); font-weight: 800; }
.v2-equity-box { grid-column: 2; grid-row: 1 / span 2; text-align: right; color: #aebadd; }
.v2-equity-box span { display: block; font-weight: 800; }
.v2-equity-box strong { color: var(--v2-ink); font-size: 14px; white-space: nowrap; }
.v2-sheet-close { display: none; }

.v2-order-form { display: grid; gap: 12px; }
.v2-rate-box { height: 44px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; border: 1px solid rgba(105, 159, 239, .54); border-radius: 8px; background: rgba(18, 30, 58, .55); overflow: hidden; }
.v2-rate-box input,
.v2-size-input,
.v2-order-tools__pane input,
.v2-auto-input input { width: 100%; border: 0; outline: 0; color: var(--v2-ink); background: transparent; padding: 0 14px; font-weight: 700; }
.v2-rate-box span { padding: 0 14px; color: var(--v2-ink); font-weight: 800; }
.v2-size-input { height: 44px; border: 1px solid rgba(105,159,239,.45); border-radius: 8px; background: rgba(12, 20, 39, .68); }

.v2-range { position: relative; height: 24px; display: flex; align-items: center; cursor: pointer; }
.v2-range::before { content: ''; position: absolute; left: 0; right: 0; height: 4px; border-radius: 99px; background: rgba(83,105,166,.55); }
.v2-range__fill { position: absolute; left: 0; width: var(--v2-percent, 0%); height: 4px; border-radius: 99px; background: linear-gradient(90deg, #764eff, #75d8ef); }
.v2-range__thumb { position: absolute; left: var(--v2-percent, 0%); width: 24px; height: 24px; border-radius: 50%; border: 0; background: #7bd4ef; box-shadow: 0 0 0 10px rgba(98, 85, 235, .18); transform: translateX(-50%); }
.v2-range-labels { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: -10px; }
.v2-range-labels button { border: 0; background: transparent; color: #a9b7d5; font-weight: 700; font-size: 12px; padding: 0; text-align: center; }
.v2-range-labels button:first-child { text-align: left; }
.v2-range-labels button:last-child { text-align: right; }

.v2-order-tools { display: grid; gap: 10px; }
.v2-order-tools__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v2-order-tools__tabs button { border: 0; min-height: 38px; border-radius: 11px; color: #aab7d8; background: transparent; font-weight: 800; }
.v2-order-tools__tabs button.is-active { color: #fff; background: linear-gradient(135deg, #654df3, #69cef4); }
.v2-order-tools__pane { display: none; color: #b5c0dc; font-size: 13px; line-height: 1.45; }
.v2-order-tools__pane.is-active { display: grid; gap: 8px; }
.v2-order-tools__pane label { display: grid; grid-template-columns: 1fr; gap: 5px; color: var(--v2-ink); }
.v2-order-tools__pane input { height: 38px; border: 1px solid rgba(105,159,239,.4); border-radius: 8px; background: rgba(12,20,39,.76); }
.v2-order-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 10px 0; }
.v2-order-metrics div { display: grid; gap: 3px; }
.v2-order-metrics span { color: #96a5c8; font-size: 12px; }
.v2-order-metrics strong { font-size: 14px; color: #e8f0ff; }
.v2-order-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-top: 8px; border-top: 1px solid rgba(120, 150, 211, .16); }
.v2-buy,
.v2-sell,
.v2-mobile-cta,
.v2-login-link,
.auto-btn--start,
.auto-btn--stop,
.v2-load-more,
.custom--modal .btn--base {
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  font-weight: 900;
  text-align: center;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.v2-buy,
.v2-mobile-cta,
.v2-login-link,
.auto-btn--start,
.custom--modal .btn--base { background: linear-gradient(135deg, #654df3, #6dd7f4); clip-path: polygon(0 0, 100% 0, 100% 74%, 88% 100%, 0 100%); }
.v2-sell,
.auto-btn--stop { background: linear-gradient(135deg, #c76767, #e49e38); }
.v2-buy:disabled,
.v2-sell:disabled,
.auto-btn--start:disabled,
.auto-btn--stop:disabled { opacity: .48; cursor: not-allowed; }

.v2-auto-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.auto-status-pill { display: inline-flex; align-items: center; gap: 8px; color: #9ce4d3; font-weight: 800; }
.auto-status-pill i { width: 9px; height: 9px; border-radius: 50%; background: #e58d8d; box-shadow: 0 0 18px rgba(229,141,141,.55); }
.auto-status-pill.is-running i { background: #84e6d3; box-shadow: 0 0 18px rgba(132,230,211,.55); }
.v2-auto-input { display: grid; gap: 8px; color: #c3cee8; font-weight: 800; }
.v2-auto-input input { height: 44px; border: 1px solid rgba(105,159,239,.45); border-radius: 12px; background: rgba(12,20,39,.68); }
.v2-auto-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.v2-auto-stats div { min-height: 52px; border: 1px solid rgba(105,159,239,.35); border-radius: 12px; display: grid; align-content: center; gap: 3px; padding: 8px 12px; }
.v2-auto-stats span { color: #96a5c8; font-size: 12px; }
.v2-auto-stats strong { font-size: 14px; color: #e8f0ff; }
.v2-auto-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.auto-log-entries { margin-top: 12px; max-height: 180px; overflow: auto; display: grid; gap: 6px; color: #dce6ff; }
.auto-log-line { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.045); font-size: 13px; }

.v2-intel-shell { padding: 12px; }
.v2-intel-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 10px; }
.v2-intel-tabs button { min-height: 36px; border-radius: 10px; font-size: 12px; }
.v2-intel-body { height: 292px; overflow: hidden; border-radius: 14px; background: #070d1b; }
.v2-intel-pane { display: none; width: 100%; height: 100%; }
.v2-intel-pane.is-active { display: block; }
.v2-intel-pane iframe { height: 100%; background: #070d1b; }
.v2-intel-pane.is-intel-loading::before,
.v2-intel-pane:empty::before {
  content: 'Loading market module...';
  display: grid;
  place-items: center;
  height: 100%;
  color: #aebade;
  background: radial-gradient(circle at 50% 0%, rgba(108, 211, 244, .12), transparent 48%), #070d1b;
}

.v2-news-panel { padding: 14px; min-height: 190px; }
.v2-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.v2-panel-head h3 { margin: 0; font-size: 28px; color: var(--v2-ink); }
.v2-panel-head span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.17); font-weight: 900; }
.v2-news-grid { height: 170px; overflow: hidden; border-radius: 14px; background: #07101f; }
.v2-news-grid iframe { height: 100%; }

.v2-positions-panel { padding: 12px; overflow: hidden; }
.v2-position-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; scrollbar-width: none; }
.v2-position-tabs button { white-space: nowrap; padding: 8px 11px; border-radius: 10px; }
.v2-position-tabs button.is-active { background: transparent; box-shadow: none; color: #69cef4; }
.v2-orders-pane { display: none; }
.v2-orders-pane.is-active { display: block; }
.positionedTable,
.openOrderTable { overflow-x: auto; max-width: 100%; }
.positionedTable table,
.openOrderTable table { width: 100%; min-width: 980px; table-layout: fixed; border-collapse: separate; border-spacing: 0 8px; }
.positionedTable th:nth-child(1), .positionedTable td:nth-child(1) { width: 145px; }
.positionedTable th:nth-child(2), .positionedTable td:nth-child(2) { width: 95px; }
.positionedTable th:nth-child(3), .positionedTable td:nth-child(3) { width: 105px; }
.positionedTable th:nth-child(4), .positionedTable td:nth-child(4),
.positionedTable th:nth-child(5), .positionedTable td:nth-child(5),
.positionedTable th:nth-child(6), .positionedTable td:nth-child(6) { width: 120px; }
.positionedTable th:nth-child(7), .positionedTable td:nth-child(7),
.positionedTable th:nth-child(8), .positionedTable td:nth-child(8) { width: 135px; }
.positionedTable th,
.positionedTable td,
.openOrderTable th,
.openOrderTable td { padding: 10px 12px !important; vertical-align: middle; white-space: nowrap; color: #dbe5fb; font-size: 13px; }
.positionedTable thead tr,
.openOrderTable thead tr { background: rgba(8, 15, 33, .88); }
.positionedTable tbody tr,
.openOrderTable tbody tr { background: rgba(18, 30, 58, .8); }
.positionedTable th:last-child,
.positionedTable td:last-child { width: 220px; }
.future-symbol { display: flex; align-items: center; gap: 10px; min-width: 0; }
.future-symbol .title { margin: 0; font-size: 14px; color: var(--v2-ink); }
.future-symbol .sub-title { color: var(--v2-muted); font-size: 12px; }
.future-symbol__badge { color: #f2c55e; font-weight: 900; }
.close-position { display: flex; align-items: center; gap: 8px; }
.closePositionBtn { border: 1px solid rgba(111, 177, 238, .55); background: rgba(56, 94, 150, .35); color: #8fd6ff !important; border-radius: 10px; padding: 8px 15px; font-weight: 800; }
.close-position-amount-display { color: #dfe8fb; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.close-position-input { min-width: 130px; height: 36px; border-radius: 9px; background: rgba(8,15,33,.6) !important; color: #fff !important; }
.v2-empty-inline { min-height: 94px; display: grid; place-items: center; color: #c1cbe5; font-weight: 800; }
.v2-history-list { display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.v2-history-list table { width: 100%; min-width: 760px; }
.v2-history-list th,
.v2-history-list td { white-space: nowrap; padding: 10px 12px; color: #dbe5fb; }
.v2-history-list tbody tr { background: rgba(18,30,58,.72); border-radius: 12px; }
.v2-load-more { width: max-content; min-height: 34px; padding: 0 16px; margin: 10px auto 0; }
.v2-mobile-position-cards { display: none; }

.custom--modal.show { opacity: 1 !important; filter: none !important; }
.modal-backdrop.show { opacity: .42 !important; }
.custom--modal .modal-dialog { transform: none !important; }
.custom--modal .modal-content {
  opacity: 1 !important;
  filter: none !important;
  color: var(--v2-ink) !important;
  background: linear-gradient(150deg, #1b2a4b, #101c33) !important;
  border: 1px solid rgba(119, 159, 229, .44) !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.58) !important;
  padding: 24px !important;
}
.custom--modal .modal-title { color: var(--v2-ink); font-size: 28px; font-weight: 900; }
.custom--modal .modal-close-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(209,223,255,.54); background: transparent; color: #dfe8ff; display: grid; place-items: center; }
.v2-modal-segments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.v2-modal-segments button { min-height: 54px; border: 0; border-radius: 10px; color: #aebade; background: rgba(54,69,113,.58); font-weight: 900; }
.v2-modal-segments button.is-active { color: #7ea8ff; background: rgba(67,94,155,.72); box-shadow: inset 0 0 0 1px rgba(108,153,237,.5); }
.v2-modal-copy { color: #afbad6; line-height: 1.6; font-weight: 700; }
.v2-modal-warning { color: #ffad9e; line-height: 1.5; font-weight: 800; }
.v2-leverage-input { display: grid; gap: 10px; color: var(--v2-ink); font-weight: 900; }
.v2-leverage-input input { height: 58px; border: 1px solid rgba(137,161,210,.55); border-radius: 12px; text-align: center; color: var(--v2-ink); background: rgba(255,255,255,.09); font-size: 28px; font-weight: 900; }
.v2-leverage-range { width: 100%; margin: 22px 0 8px; accent-color: #78d3ff; }
.v2-leverage-labels { display: grid; grid-template-columns: repeat(5, 1fr); color: #c0cbe4; font-size: 12px; font-weight: 800; }
.v2-leverage-labels span { text-align: center; }
.v2-leverage-labels span:first-child { text-align: left; }
.v2-leverage-labels span:last-child { text-align: right; }
.trade-profit-modal .modal-dialog { max-width: min(920px, calc(100vw - 30px)); }
.trade-profit-modal .tpsl-inner { align-items: stretch; }
.trade-profit-modal.show,
.trade-profit-modal.show .modal-dialog,
.trade-profit-modal.show .modal-content,
.trade-profit-modal.show .modal-body,
.trade-profit-modal.show .modal-header {
  opacity: 1 !important;
  filter: none !important;
}
.trade-profit-modal .modal-content * { filter: none !important; }
.trade-profit-modal input,
.trade-profit-modal .form--control,
.trade-profit-modal .input-group-text { background: rgba(9, 16, 31, .75) !important; color: #eef4ff !important; border-color: rgba(104, 151, 232, .35) !important; }
.trade-profit-modal .circular-progress .bg { stroke: rgba(120,150,200,.16) !important; }

.v2-mobile-nav { display: none; }

@media (max-width: 1199.98px) {
  :root { --v2-rail: 330px; --v2-chart-height: clamp(330px, 44vh, 430px); }
  .v2-market-card { grid-template-columns: minmax(230px, 300px) auto 1fr; gap: 14px; }
  .v2-market-metrics { grid-template-columns: repeat(4, minmax(86px, 1fr)); }
}

@media (max-width: 991.98px) {
  body:has(.future-trade-page--core) { overflow-x: hidden; }
  .v2-core-shell { padding: 10px 16px 22px; gap: 10px; overflow-x: hidden; }
  .v2-market-card { grid-template-columns: 1fr; gap: 9px; padding: 12px; }
  .v2-asset-toggle { min-height: 62px; grid-template-columns: 26px 38px minmax(0,1fr) 18px; }
  .v2-main-price { text-align: center; font-size: 24px; }
  .v2-market-metrics { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .v2-metric, .v2-top-more__btn { min-height: 54px; padding: 8px; border-color: rgba(90,132,211,.2); background: rgba(32,48,91,.62); }
  .v2-metric span, .v2-top-more__btn { font-size: 11px; }
  .v2-metric strong { font-size: 13px; }
  .v2-top-more__panel { right: 0; left: auto; }
  .v2-asset-panel { position: fixed; inset: 92px 14px auto; width: auto; max-height: calc(100vh - 116px); z-index: 2000; padding: 18px; }
  .v2-ticker-strip { height: 42px; border-radius: 10px; }
  .v2-main-grid { display: block; }
  .v2-left-stack { gap: 10px; }
  .v2-right-rail { display: block; }
  .v2-chart-stage { height: 330px; min-height: 300px; max-height: 350px; width: 100%; }
  .v2-chart-stage .trading-chart { min-width: 0 !important; max-width: 100% !important; }
  .v2-chart-stage .tradingview-widget-container,
  .v2-chart-stage iframe { min-width: 100% !important; }
  .v2-mobile-cta {
    position: static;
    display: grid !important;
    width: 100%;
    min-height: 54px;
    margin: 10px 0 0;
  }
  .future-trade-page--core.is-manual-sheet-open .v2-mobile-cta { display: none !important; }
  .v2-side-tabs { display: none; }
  .v2-order-panel,
  .v2-auto-panel,
  .v2-positions-panel {
    display: none;
  }
  .future-trade-page--core[data-mobile-view="positions"] .v2-chart-card,
  .future-trade-page--core[data-mobile-view="positions"] .v2-mobile-cta,
  .future-trade-page--core[data-mobile-view="positions"] .v2-news-panel,
  .future-trade-page--core[data-mobile-view="positions"] .v2-right-rail,
  .future-trade-page--core[data-mobile-view="auto"] .v2-left-stack,
  .future-trade-page--core[data-mobile-view="auto"] .v2-intel-shell {
    display: none !important;
  }
  .future-trade-page--core[data-mobile-view="trade"] .v2-order-panel,
  .future-trade-page--core[data-mobile-view="auto"] .v2-auto-panel,
  .future-trade-page--core[data-mobile-view="positions"] .v2-positions-panel {
    display: block;
  }
  .future-trade-page--core[data-mobile-view="positions"] .v2-positions-panel,
  .future-trade-page--core[data-mobile-view="auto"] .v2-auto-panel {
    margin-top: 0;
  }
  .v2-order-panel,
  .v2-auto-panel {
    margin-top: 10px;
    padding: 14px;
  }
  .future-trade-page--core:not(.is-manual-sheet-open) .v2-order-panel {
    display: none !important;
  }
  .future-trade-page--core.is-manual-sheet-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2400;
    background: rgba(3, 8, 18, .72);
    backdrop-filter: blur(8px);
  }
  .future-trade-page--core.is-manual-sheet-open .v2-order-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 74px;
    max-height: calc(100vh - 84px);
    overflow: hidden auto;
    z-index: 2500;
    background: linear-gradient(180deg, #213363 0%, #18284f 48%, #111d3a 100%);
    border: 1px solid rgba(112, 163, 238, .55);
    opacity: 1;
    box-shadow: 0 30px 90px rgba(0,0,0,.75);
  }
  .v2-sheet-close { display: grid; position: absolute; right: 4px; top: 0; border: 0; background: transparent; color: #b8c4df; font-size: 22px; }
  .v2-order-head { grid-template-columns: 1fr; padding-right: 30px; }
  .v2-equity-box { grid-column: 1; grid-row: auto; text-align: left; border: 1px solid rgba(105,159,239,.28); border-radius: 12px; padding: 9px 12px; display: flex; justify-content: space-between; gap: 10px; }
  .v2-equity-box span { display: inline; }
  .v2-order-controls { display: grid; grid-template-columns: repeat(2, 1fr); }
  .future-trade-btn { width: 100%; min-height: 42px; }
  .v2-order-tools__tabs button { font-size: 13px; }
  .v2-order-tools__pane { font-size: 12px; }
  .v2-order-metrics { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .v2-order-metrics div { padding: 6px 0; }
  .v2-order-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .v2-buy, .v2-sell { min-height: 54px; }
  .v2-intel-shell { margin-top: 12px; padding: 10px; }
  .v2-intel-body { height: 300px; }
  .v2-news-panel { margin-top: 12px; min-height: 190px; }
  .v2-news-grid { height: 170px; }
  .v2-positions-panel { margin-top: 10px; padding: 14px; }
  .v2-position-tabs { gap: 10px; }
  .v2-position-tabs button { min-width: max-content; }
  .positionedTable { display: none !important; }
  .v2-mobile-position-cards { display: grid; gap: 10px; }
  .v2-position-card { border: 1px solid rgba(111, 161, 234, .2); border-radius: 14px; background: rgba(15, 25, 51, .88); padding: 12px; display: grid; gap: 10px; }
  .v2-position-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .v2-position-card__head > div { min-width: 0; }
  .v2-position-card__head strong { display: block; color: var(--v2-ink); font-size: 16px; }
  .v2-position-card__head span { color: var(--v2-muted); font-size: 12px; }
  .v2-position-card__head b { color: #f2c55e; }
  .v2-position-card__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .v2-position-card__grid div { display: grid; gap: 2px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.035); }
  .v2-position-card__grid dt { color: #9daacd; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
  .v2-position-card__grid dd { margin: 0; color: #edf4ff; font-size: 13px; overflow-wrap: anywhere; }
  .v2-position-card__actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .v2-position-card .close-position { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; align-items: center; }
  .v2-position-card .close-position-input { grid-column: 1 / -1; width: 100%; }
  .v2-mobile-nav {
    position: static;
    z-index: 1;
    min-height: 68px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(10, 17, 34, .96);
    border: 1px solid rgba(111, 161, 234, .34);
    margin-top: 8px;
    box-shadow: 0 18px 60px rgba(0,0,0,.22);
  }
  .v2-mobile-nav button { border-radius: 13px; display: grid; place-items: center; gap: 2px; padding: 6px 2px; }
  .v2-mobile-nav i { font-size: 20px; }
  .v2-mobile-nav span { font-size: 12px; }
  .trade-profit-modal .modal-content { padding: 18px !important; }
  .trade-profit-modal .tpsl-inner { display: block !important; }
  .trade-profit-modal .modal-dialog { max-width: calc(100vw - 18px); margin: 9px auto; }
  .trade-profit-modal .modal-content { max-height: calc(100vh - 18px); overflow: auto; }
  .v2-history-list { max-height: 360px; overflow-x: auto; }
  .v2-history-list table { min-width: 720px; table-layout: auto; }
}

@media (max-width: 575.98px) {
  .v2-core-shell { padding-left: 12px; padding-right: 12px; }
  .v2-market-metrics { grid-template-columns: repeat(2, 1fr); }
  .v2-chart-stage { height: 310px; min-height: 300px; max-height: 320px; }
  .v2-asset-panel { inset: 78px 10px auto; max-height: calc(100vh - 96px); }
  .v2-asset-row { grid-template-columns: 28px minmax(0,1fr) auto; }
  .asset-list__metrics { font-size: 12px; }
  .v2-order-panel { border-radius: 16px; }
  .v2-order-form { gap: 8px; }
  .v2-order-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
  .v2-order-metrics span { font-size: 11px; }
  .v2-order-metrics strong { font-size: 12px; }
  .v2-order-actions { gap: 8px; }
  .v2-buy, .v2-sell { font-size: 13px; }
  .v2-intel-tabs { overflow-x: auto; grid-template-columns: repeat(5, minmax(88px, 1fr)); }
  .v2-panel-head h3 { font-size: 24px; }
  .v2-news-grid { height: 165px; }
  .custom--modal .modal-content { padding: 18px !important; }
  .custom--modal .modal-title { font-size: 24px; }
}

@media (min-width: 1600px) {
  :root { --v2-chart-height: clamp(390px, 47vh, 540px); }
  .v2-news-grid { height: 210px; }
}

/* === TradeV2 Core Stabilization Pass - 2026-04-30 === */
.future-trade-page--core {
    --v2-type-body: clamp(13px, 0.78vw, 15px);
    --v2-type-small: clamp(11px, 0.68vw, 13px);
    --v2-card-radius: 18px;
}

.future-trade-page--core .v2-main-price,
.future-trade-page--core .v2-selected-price,
.future-trade-page--core .v2-hero-price {
    font-size: clamp(24px, 1.75vw, 34px) !important;
    line-height: 1.05 !important;
}

.future-trade-page--core .v2-asset-meta strong,
.future-trade-page--core .v2-asset-title,
.future-trade-page--core .v2-market-name {
    font-size: clamp(16px, 1.05vw, 22px) !important;
    line-height: 1.12 !important;
}

.future-trade-page--core .v2-metric-label,
.future-trade-page--core .v2-metric-value,
.future-trade-page--core .v2-side-tabs button,
.future-trade-page--core .v2-tab-button {
    font-size: var(--v2-type-small) !important;
}

.future-trade-page--core .v2-panel-head h3,
.future-trade-page--core .v2-card-title,
.future-trade-page--core .v2-order-title {
    font-size: clamp(18px, 1.15vw, 25px) !important;
    line-height: 1.1 !important;
}

/* Keep the TradingView chart from resizing/jittering while widgets hydrate. */
@media (min-width: 992px) {
    .future-trade-page--core .v2-chart-card,
    .future-trade-page--core .v2-chart-stage,
    .future-trade-page--core .v2-market-stage__chart,
    .future-trade-page--core .v2-chart-shell,
    .future-trade-page--core .trading-bottom,
    .future-trade-page--core .trading-bottom__tab {
        height: clamp(430px, 47vh, 570px) !important;
        min-height: clamp(430px, 47vh, 570px) !important;
        max-height: 570px !important;
        overflow: hidden !important;
    }

    .future-trade-page--core .v2-chart-card iframe,
    .future-trade-page--core .v2-chart-stage iframe,
    .future-trade-page--core .v2-market-stage__chart iframe,
    .future-trade-page--core .trading-bottom__tab iframe,
    .future-trade-page--core .tradingview-widget-container,
    .future-trade-page--core .tradingview-widget-container iframe {
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        max-height: 100% !important;
    }
}

/* News card: the TradingView iframe already renders its own title/badge. */
.future-trade-page--core .v2-news-panel > .v2-panel-head,
.future-trade-page--core .v2-news-panel .v2-panel-badge,
.future-trade-page--core .v2-news-panel .v2-provider-badge,
.future-trade-page--core .v2-news-panel .v2-card-badge,
.future-trade-page--core .v2-news-panel .v2-tv-badge {
    display: none !important;
}

.future-trade-page--core .v2-news-panel {
    padding: 10px !important;
}

.future-trade-page--core .v2-news-grid {
    border-radius: 14px !important;
    overflow: hidden !important;
}

@media (min-width: 992px) {
    .future-trade-page--core .v2-news-panel--wide .v2-news-grid,
    .future-trade-page--core .v2-left-stack > .v2-news-panel .v2-news-grid {
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
    }

    .future-trade-page--core .v2-news-panel--wide iframe,
    .future-trade-page--core .v2-left-stack > .v2-news-panel iframe {
        width: 116.3% !important;
        height: 116.3% !important;
        transform: scale(.86) !important;
        transform-origin: top left !important;
    }
}

/* Compact and stabilize position/history tables. */
.future-trade-page--core .v2-positions-panel,
.future-trade-page--core .v2-lower-panel {
    min-height: 0 !important;
}

.future-trade-page--core .positionedTable,
.future-trade-page--core .historyTable,
.future-trade-page--core .table-responsive {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-gutter: stable !important;
}

.future-trade-page--core .positionedTable .order-table,
.future-trade-page--core .historyTable .order-table,
.future-trade-page--core .table-responsive .order-table {
    width: 100% !important;
    min-width: 900px !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

.future-trade-page--core .positionedTable th,
.future-trade-page--core .positionedTable td,
.future-trade-page--core .historyTable th,
.future-trade-page--core .historyTable td,
.future-trade-page--core .table-responsive .order-table th,
.future-trade-page--core .table-responsive .order-table td {
    padding: 8px 9px !important;
    font-size: clamp(11px, 0.72vw, 13px) !important;
    line-height: 1.18 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

.future-trade-page--core .positionedTable .future-symbol__inner .title,
.future-trade-page--core .positionedTable .future-symbol__badge,
.future-trade-page--core .positionedTable .positionSize,
.future-trade-page--core .positionedTable .pnlAndRoi .amount,
.future-trade-page--core .positionedTable .pnlAndRoi .roi {
    font-size: clamp(12px, 0.76vw, 14px) !important;
    line-height: 1.12 !important;
}

.future-trade-page--core .positionedTable .close-position {
    display: grid !important;
    grid-template-columns: auto minmax(78px, 118px) !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
}

.future-trade-page--core .positionedTable .close-position-amount-display {
    display: none !important;
}

.future-trade-page--core .positionedTable .close-position-input {
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    padding: 6px 8px !important;
    font-size: 12px !important;
}

.future-trade-page--core .positionedTable .close-position-input::placeholder {
    color: transparent !important;
}

/* TP/SL modal must remain readable above the page overlay. */
.future-trade-page--core .modal-backdrop,
.future-trade-page--core + .modal-backdrop,
.modal-backdrop.show {
    opacity: .38 !important;
}

#takeProfitLossModal,
#takeProfitLossModal .modal-dialog,
#takeProfitLossModal .modal-content {
    color: #eaf1ff !important;
}

#takeProfitLossModal .modal-content {
    background: linear-gradient(145deg, rgba(16, 28, 52, .98), rgba(8, 18, 32, .98)) !important;
    border: 1px solid rgba(111, 159, 224, .38) !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .55) !important;
}

#takeProfitLossModal .form-control,
#takeProfitLossModal .form--control {
    background: rgba(12, 22, 42, .96) !important;
    border-color: rgba(114, 166, 227, .42) !important;
    color: #f4f8ff !important;
}

#takeProfitLossModal .form-control::placeholder,
#takeProfitLossModal .form--control::placeholder {
    color: rgba(223, 232, 250, .62) !important;
}

@media (max-width: 991.98px) {
    .future-trade-page--core {
        padding-bottom: 104px !important;
    }

    .future-trade-page--core .v2-core-shell {
        padding-bottom: 118px !important;
    }

    .future-trade-page--core.is-manual-sheet-open::before {
        pointer-events: none !important;
    }

    .future-trade-page--core .v2-mobile-nav {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        bottom: max(10px, env(safe-area-inset-bottom)) !important;
        z-index: 2700 !important;
        max-width: 560px !important;
        margin: 0 auto !important;
        transform: translateZ(0) !important;
        min-height: 64px !important;
        padding: 8px !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .future-trade-page--core .v2-mobile-nav button,
    .future-trade-page--core .v2-mobile-nav a {
        min-height: 48px !important;
        font-size: 12px !important;
    }

    .future-trade-page--core .v2-mobile-cta {
        position: sticky !important;
        bottom: 88px !important;
        z-index: 1500 !important;
        margin-top: 14px !important;
        margin-bottom: 14px !important;
    }

    .future-trade-page--core .v2-chart-card,
    .future-trade-page--core .v2-chart-stage,
    .future-trade-page--core .v2-market-stage__chart,
    .future-trade-page--core .v2-chart-shell,
    .future-trade-page--core .trading-bottom,
    .future-trade-page--core .trading-bottom__tab {
        height: 410px !important;
        min-height: 410px !important;
        max-height: 410px !important;
        overflow: hidden !important;
    }

    .future-trade-page--core .v2-chart-card iframe,
    .future-trade-page--core .v2-chart-stage iframe,
    .future-trade-page--core .v2-market-stage__chart iframe,
    .future-trade-page--core .trading-bottom__tab iframe,
    .future-trade-page--core .tradingview-widget-container,
    .future-trade-page--core .tradingview-widget-container iframe {
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        max-height: 100% !important;
    }

    .future-trade-page--core .v2-news-panel {
        display: none !important;
    }

    .future-trade-page--core[data-mobile-view="trade"] .v2-news-panel,
    .future-trade-page--core[data-mobile-view="positions"] .v2-news-panel,
    .future-trade-page--core[data-mobile-view="auto"] .v2-news-panel {
        display: none !important;
    }

    .future-trade-page--core .positionedTable,
    .future-trade-page--core .historyTable {
        overflow: visible !important;
    }

    .future-trade-page--core .positionedTable .order-table,
    .future-trade-page--core .positionedTable .order-table thead,
    .future-trade-page--core .positionedTable .order-table tbody,
    .future-trade-page--core .positionedTable .order-table tr,
    .future-trade-page--core .positionedTable .order-table td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .future-trade-page--core .positionedTable .order-table thead {
        display: none !important;
    }

    .future-trade-page--core .positionedTable .order-table tbody tr {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px 10px !important;
        padding: 12px !important;
        margin: 0 0 10px !important;
        border: 1px solid rgba(105, 151, 220, .22) !important;
        border-radius: 14px !important;
        background: rgba(9, 19, 39, .46) !important;
    }

    .future-trade-page--core .positionedTable .order-table td {
        padding: 0 !important;
        white-space: normal !important;
        font-size: 12px !important;
        min-width: 0 !important;
    }

    .future-trade-page--core .positionedTable .order-table td::before {
        display: block !important;
        margin-bottom: 2px !important;
        color: rgba(170, 188, 222, .74) !important;
        font-size: 10px !important;
        line-height: 1 !important;
        text-transform: uppercase !important;
        letter-spacing: .03em !important;
    }

    .future-trade-page--core .positionedTable .order-table td:nth-child(1) { grid-column: 1 / -1 !important; }
    .future-trade-page--core .positionedTable .order-table td:nth-child(1)::before { content: "Symbol"; }
    .future-trade-page--core .positionedTable .order-table td:nth-child(2)::before { content: "Size"; }
    .future-trade-page--core .positionedTable .order-table td:nth-child(3)::before { content: "TP/SL"; }
    .future-trade-page--core .positionedTable .order-table td:nth-child(4)::before { content: "Entry"; }
    .future-trade-page--core .positionedTable .order-table td:nth-child(5)::before { content: "Current"; }
    .future-trade-page--core .positionedTable .order-table td:nth-child(6)::before { content: "Liq."; }
    .future-trade-page--core .positionedTable .order-table td:nth-child(7)::before { content: "Margin"; }
    .future-trade-page--core .positionedTable .order-table td:nth-child(8)::before { content: "PNL"; }
    .future-trade-page--core .positionedTable .order-table td:nth-child(9) { grid-column: 1 / -1 !important; }
    .future-trade-page--core .positionedTable .order-table td:nth-child(9)::before { content: "Close"; }

    .future-trade-page--core .positionedTable .future-symbol {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    .future-trade-page--core .positionedTable .future-symbol__inner .title,
    .future-trade-page--core .positionedTable .future-symbol__inner .sub-title {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .future-trade-page--core .positionedTable .close-position {
        grid-template-columns: 1fr auto !important;
        width: 100% !important;
    }

    .future-trade-page--core .positionedTable .close-position-input {
        display: none !important;
    }

    .future-trade-page--core .positionedTable .closePositionBtn {
        min-width: 92px !important;
        justify-content: center !important;
    }

    #takeProfitLossModal .modal-dialog {
        width: min(96vw, 520px) !important;
        margin: 10px auto !important;
    }

    #takeProfitLossModal .modal-content {
        max-height: calc(100vh - 20px) !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 520px) {
    .future-trade-page--core .v2-main-price,
    .future-trade-page--core .v2-selected-price,
    .future-trade-page--core .v2-hero-price {
        font-size: 22px !important;
    }

    .future-trade-page--core .v2-chart-card,
    .future-trade-page--core .v2-chart-stage,
    .future-trade-page--core .v2-market-stage__chart,
    .future-trade-page--core .v2-chart-shell,
    .future-trade-page--core .trading-bottom,
    .future-trade-page--core .trading-bottom__tab {
        height: 390px !important;
        min-height: 390px !important;
        max-height: 390px !important;
    }
}

/* === TradeV2 Mobile Table/Nav Refinement - 2026-04-30 === */
@media (max-width: 991.98px) {
    .future-trade-page--core .v2-mobile-nav {
        min-height: 56px !important;
        padding: 6px !important;
        border-radius: 18px !important;
        box-shadow: 0 14px 42px rgba(0, 0, 0, .42) !important;
    }

    .future-trade-page--core .v2-mobile-nav button,
    .future-trade-page--core .v2-mobile-nav a {
        min-height: 42px !important;
        padding: 6px 4px !important;
        font-size: 11px !important;
        line-height: 1.05 !important;
    }

    .future-trade-page--core .v2-positions-panel,
    .future-trade-page--core .v2-lower-panel {
        padding-bottom: 84px !important;
    }

    .future-trade-page--core .positionedTable .order-table tbody tr {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 7px !important;
        padding: 10px !important;
        border-radius: 13px !important;
    }

    .future-trade-page--core .positionedTable .order-table td:nth-child(1) {
        grid-column: 1 / -1 !important;
    }

    .future-trade-page--core .positionedTable .order-table td:nth-child(3),
    .future-trade-page--core .positionedTable .order-table td:nth-child(9) {
        grid-column: auto !important;
    }

    .future-trade-page--core .positionedTable .order-table td:nth-child(9) {
        align-self: end !important;
    }

    .future-trade-page--core .positionedTable .future-symbol {
        min-height: 0 !important;
    }

    .future-trade-page--core .positionedTable .future-symbol__inner .title {
        font-size: 13px !important;
        line-height: 1 !important;
    }

    .future-trade-page--core .positionedTable .future-symbol__inner .sub-title,
    .future-trade-page--core .positionedTable .future-symbol__badge,
    .future-trade-page--core .positionedTable .positionSize,
    .future-trade-page--core .positionedTable .amount,
    .future-trade-page--core .positionedTable .roi,
    .future-trade-page--core .positionedTable td {
        font-size: 11px !important;
        line-height: 1.05 !important;
    }

    .future-trade-page--core .positionedTable .trade-margin-wrapper,
    .future-trade-page--core .positionedTable .trade-margin-left {
        display: block !important;
        gap: 0 !important;
    }

    .future-trade-page--core .positionedTable .trade-margin-left br {
        display: none !important;
    }

    .future-trade-page--core .positionedTable .tp-add-btn,
    .future-trade-page--core .positionedTable .closePositionBtn {
        width: 100% !important;
        min-width: 0 !important;
        height: 32px !important;
        padding: 6px 8px !important;
        font-size: 11px !important;
        border-radius: 10px !important;
    }

    .future-trade-page--core .positionedTable .close-position {
        display: block !important;
        width: 100% !important;
    }

    .future-trade-page--core .positionedTable .close-position-amount-display,
    .future-trade-page--core .positionedTable .closePositionAmount,
    .future-trade-page--core .positionedTable .closePositionTriggerPrice,
    .future-trade-page--core .positionedTable input[name="trigger_price"],
    .future-trade-page--core .positionedTable .close-position-input {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
    }

    .future-trade-page--core .positionedTable .no-position,
    .future-trade-page--core .positionedTable .empty-state,
    .future-trade-page--core .positionedTable .text-center:has(.ri-user-line) {
        display: none !important;
    }
}

/* Final duplicate-title guard for embedded news widgets. */
.future-trade-page--core .v2-news-panel > h2,
.future-trade-page--core .v2-news-panel > h3,
.future-trade-page--core .v2-news-panel > .title,
.future-trade-page--core .v2-news-panel > .widget-title,
.future-trade-page--core .v2-news-panel > .tradingview-widget-copyright {
    display: none !important;
}

@media (min-width: 992px) {
    .future-trade-page--core .v2-market-row,
    .future-trade-page--core .v2-hero-row,
    .future-trade-page--core .v2-main-header {
        min-height: 0 !important;
    }

    .future-trade-page--core .v2-asset-selector,
    .future-trade-page--core .v2-selected-asset {
        min-height: 56px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

/* === TradeV2 Empty State / Mobile Cards Finalization - 2026-04-30 === */
.future-trade-page--core .v2-positions-panel > .v2-empty-inline,
.future-trade-page--core .v2-positions-panel > [data-v2-positions-empty] {
    display: none !important;
}

@media (max-width: 991.98px) {
    .future-trade-page--core .v2-positions-panel .positionedTable {
        display: none !important;
    }

    .future-trade-page--core .v2-positions-panel .v2-mobile-position-cards {
        display: grid !important;
        gap: 9px !important;
        padding-bottom: 78px !important;
    }

    .future-trade-page--core .v2-position-card {
        padding: 11px !important;
        gap: 8px !important;
        border-radius: 14px !important;
        background: rgba(12, 23, 47, .94) !important;
    }

    .future-trade-page--core .v2-position-card__head strong {
        font-size: 13px !important;
        line-height: 1.05 !important;
    }

    .future-trade-page--core .v2-position-card__head span,
    .future-trade-page--core .v2-position-card__grid dt,
    .future-trade-page--core .v2-position-card__grid dd {
        font-size: 11px !important;
        line-height: 1.08 !important;
    }

    .future-trade-page--core .v2-position-card__grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    .future-trade-page--core .v2-position-card__grid > div {
        min-width: 0 !important;
        padding: 7px !important;
        border-radius: 10px !important;
        background: rgba(255,255,255,.035) !important;
    }

    .future-trade-page--core .v2-position-card__actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .future-trade-page--core .v2-position-card__actions .tp-add-btn,
    .future-trade-page--core .v2-position-card__actions .closePositionBtn {
        width: 100% !important;
        height: 34px !important;
        min-width: 0 !important;
        border-radius: 10px !important;
        font-size: 12px !important;
    }

    .future-trade-page--core .v2-position-card__actions .close-position {
        display: block !important;
    }

    .future-trade-page--core .v2-position-card__actions .close-position-amount-display,
    .future-trade-page--core .v2-position-card__actions .close-position-input,
    .future-trade-page--core .v2-position-card__actions input[name="trigger_price"] {
        display: none !important;
    }
}

/* === TradeV2 Duplicate Empty State Hard Suppression - 2026-04-30 === */
.future-trade-page--core .v2-positions-panel .v2-empty-inline,
.future-trade-page--core .v2-positions-panel [data-v2-positions-empty],
.future-trade-page--core .v2-mobile-position-cards .v2-empty-inline,
.future-trade-page--core .v2-mobile-position-cards [data-v2-positions-empty] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 991.98px) {
    .future-trade-page--core .v2-mobile-nav {
        min-height: 50px !important;
        padding: 5px !important;
        left: 14px !important;
        right: 14px !important;
        bottom: 8px !important;
    }

    .future-trade-page--core .v2-mobile-nav button,
    .future-trade-page--core .v2-mobile-nav a {
        min-height: 38px !important;
        font-size: 10px !important;
    }

    .future-trade-page--core .v2-mobile-nav svg,
    .future-trade-page--core .v2-mobile-nav i {
        transform: scale(.86) !important;
    }

    .future-trade-page--core .v2-positions-panel {
        padding-bottom: 68px !important;
    }
}


/* === TradeV2 Actual Wrapper Empty-State Fix - 2026-04-30 === */
.future-trade-page--core.has-open-positions .v2-empty-inline,
.future-trade-page--v2.has-open-positions .v2-empty-inline,
.future-trade-page--core.has-open-positions [data-v2-positions-empty],
.future-trade-page--v2.has-open-positions [data-v2-positions-empty],
.future-trade-page--core.has-open-positions .v2-position-empty,
.future-trade-page--v2.has-open-positions .v2-position-empty,
.future-trade-page--core.has-open-positions .v2-mobile-empty,
.future-trade-page--v2.has-open-positions .v2-mobile-empty,
.future-trade-page--core.has-open-positions .positions-empty-state,
.future-trade-page--v2.has-open-positions .positions-empty-state {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.future-trade-page--core .v2-positions-panel .v2-mobile-position-cards:not(:empty) ~ .v2-empty-inline,
.future-trade-page--v2 .v2-positions-panel .v2-mobile-position-cards:not(:empty) ~ .v2-empty-inline,
.future-trade-page--core .v2-positions-panel .v2-position-card ~ .v2-empty-inline,
.future-trade-page--v2 .v2-positions-panel .v2-position-card ~ .v2-empty-inline {
    display: none !important;
}

@media (max-width: 991.98px) {
    .future-trade-page--core .v2-positions-panel .positionedTable,
    .future-trade-page--v2 .v2-positions-panel .positionedTable {
        display: none !important;
    }

    .future-trade-page--core .v2-positions-panel .v2-mobile-position-cards,
    .future-trade-page--v2 .v2-positions-panel .v2-mobile-position-cards {
        display: grid !important;
    }
}


/* === TradeV2 History/Open-Order Table Repair - 2026-04-30 === */
.future-trade-page--core .v2-positions-panel .tab-pane,
.future-trade-page--v2 .v2-positions-panel .tab-pane {
    min-height: 0 !important;
}

.future-trade-page--core .v2-positions-panel .tab-pane .table-responsive,
.future-trade-page--v2 .v2-positions-panel .tab-pane .table-responsive,
.future-trade-page--core .v2-history-responsive,
.future-trade-page--v2 .v2-history-responsive,
.future-trade-page--core .openOrderTable,
.future-trade-page--v2 .openOrderTable {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 !important;
    border-radius: 14px !important;
}

.future-trade-page--core .v2-positions-panel .tab-pane table,
.future-trade-page--v2 .v2-positions-panel .tab-pane table,
.future-trade-page--core .openOrderTable table,
.future-trade-page--v2 .openOrderTable table {
    display: table !important;
    width: 100% !important;
    min-width: 860px !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    margin: 0 !important;
}

.future-trade-page--core .v2-positions-panel .tab-pane thead,
.future-trade-page--v2 .v2-positions-panel .tab-pane thead,
.future-trade-page--core .v2-positions-panel .tab-pane tbody,
.future-trade-page--v2 .v2-positions-panel .tab-pane tbody {
    display: table-header-group !important;
}

.future-trade-page--core .v2-positions-panel .tab-pane tbody,
.future-trade-page--v2 .v2-positions-panel .tab-pane tbody {
    display: table-row-group !important;
}

.future-trade-page--core .v2-positions-panel .tab-pane tr,
.future-trade-page--v2 .v2-positions-panel .tab-pane tr,
.future-trade-page--core .openOrderTable tr,
.future-trade-page--v2 .openOrderTable tr {
    display: table-row !important;
    background: rgba(15, 26, 52, .82) !important;
}

.future-trade-page--core .v2-positions-panel .tab-pane th,
.future-trade-page--v2 .v2-positions-panel .tab-pane th,
.future-trade-page--core .v2-positions-panel .tab-pane td,
.future-trade-page--v2 .v2-positions-panel .tab-pane td,
.future-trade-page--core .openOrderTable th,
.future-trade-page--v2 .openOrderTable th,
.future-trade-page--core .openOrderTable td,
.future-trade-page--v2 .openOrderTable td {
    display: table-cell !important;
    padding: 9px 10px !important;
    font-size: clamp(12px, .74vw, 14px) !important;
    line-height: 1.15 !important;
    color: #dce8ff !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border: 0 !important;
}

.future-trade-page--core .v2-positions-panel .tab-pane thead tr,
.future-trade-page--v2 .v2-positions-panel .tab-pane thead tr,
.future-trade-page--core .openOrderTable thead tr,
.future-trade-page--v2 .openOrderTable thead tr {
    background: rgba(8, 17, 33, .94) !important;
}

.future-trade-page--core .v2-positions-panel .tab-pane .text--success,
.future-trade-page--v2 .v2-positions-panel .tab-pane .text--success,
.future-trade-page--core .v2-positions-panel .tab-pane .up,
.future-trade-page--v2 .v2-positions-panel .tab-pane .up {
    color: #8ee4ad !important;
}

.future-trade-page--core .v2-positions-panel .tab-pane .text--danger,
.future-trade-page--v2 .v2-positions-panel .tab-pane .text--danger,
.future-trade-page--core .v2-positions-panel .tab-pane .down,
.future-trade-page--v2 .v2-positions-panel .tab-pane .down {
    color: #ee8f98 !important;
}

.future-trade-page--core .v2-positions-panel .tab-pane .btn,
.future-trade-page--v2 .v2-positions-panel .tab-pane .btn,
.future-trade-page--core .v2-positions-panel .tab-pane button,
.future-trade-page--v2 .v2-positions-panel .tab-pane button {
    min-height: 32px !important;
    padding: 6px 10px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
}

@media (max-width: 991.98px) {
    .future-trade-page--core .v2-positions-panel .tab-pane:not(#positions-nav) .table-responsive,
    .future-trade-page--v2 .v2-positions-panel .tab-pane:not(#positions-nav) .table-responsive,
    .future-trade-page--core .openOrderTable,
    .future-trade-page--v2 .openOrderTable {
        overflow: visible !important;
    }

    .future-trade-page--core .v2-positions-panel .tab-pane:not(#positions-nav) table,
    .future-trade-page--v2 .v2-positions-panel .tab-pane:not(#positions-nav) table,
    .future-trade-page--core .openOrderTable table,
    .future-trade-page--v2 .openOrderTable table,
    .future-trade-page--core .v2-positions-panel .tab-pane:not(#positions-nav) thead,
    .future-trade-page--v2 .v2-positions-panel .tab-pane:not(#positions-nav) thead,
    .future-trade-page--core .v2-positions-panel .tab-pane:not(#positions-nav) tbody,
    .future-trade-page--v2 .v2-positions-panel .tab-pane:not(#positions-nav) tbody,
    .future-trade-page--core .v2-positions-panel .tab-pane:not(#positions-nav) tr,
    .future-trade-page--v2 .v2-positions-panel .tab-pane:not(#positions-nav) tr,
    .future-trade-page--core .v2-positions-panel .tab-pane:not(#positions-nav) td,
    .future-trade-page--v2 .v2-positions-panel .tab-pane:not(#positions-nav) td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .future-trade-page--core .v2-positions-panel .tab-pane:not(#positions-nav) thead,
    .future-trade-page--v2 .v2-positions-panel .tab-pane:not(#positions-nav) thead,
    .future-trade-page--core .openOrderTable thead,
    .future-trade-page--v2 .openOrderTable thead {
        display: none !important;
    }

    .future-trade-page--core .v2-positions-panel .tab-pane:not(#positions-nav) tbody tr,
    .future-trade-page--v2 .v2-positions-panel .tab-pane:not(#positions-nav) tbody tr,
    .future-trade-page--core .openOrderTable tbody tr,
    .future-trade-page--v2 .openOrderTable tbody tr {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px 9px !important;
        padding: 11px !important;
        margin-bottom: 9px !important;
        border: 1px solid rgba(105, 151, 220, .22) !important;
        border-radius: 14px !important;
        background: rgba(12, 23, 47, .94) !important;
    }

    .future-trade-page--core .v2-positions-panel .tab-pane:not(#positions-nav) tbody td,
    .future-trade-page--v2 .v2-positions-panel .tab-pane:not(#positions-nav) tbody td,
    .future-trade-page--core .openOrderTable tbody td,
    .future-trade-page--v2 .openOrderTable tbody td {
        padding: 0 !important;
        font-size: 12px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .future-trade-page--core .v2-positions-panel .tab-pane:not(#positions-nav) tbody td::before,
    .future-trade-page--v2 .v2-positions-panel .tab-pane:not(#positions-nav) tbody td::before,
    .future-trade-page--core .openOrderTable tbody td::before,
    .future-trade-page--v2 .openOrderTable tbody td::before {
        display: block !important;
        margin-bottom: 2px !important;
        color: rgba(170, 188, 222, .74) !important;
        font-size: 10px !important;
        line-height: 1 !important;
        text-transform: uppercase !important;
        letter-spacing: .03em !important;
    }

    .future-trade-page--core #orderhistory tbody td:nth-child(1)::before,
    .future-trade-page--v2 #orderhistory tbody td:nth-child(1)::before,
    .future-trade-page--core #tradehistory tbody td:nth-child(1)::before,
    .future-trade-page--v2 #tradehistory tbody td:nth-child(1)::before,
    .future-trade-page--core #positionhistory tbody td:nth-child(1)::before,
    .future-trade-page--v2 #positionhistory tbody td:nth-child(1)::before { content: "Date"; }
    .future-trade-page--core #orderhistory tbody td:nth-child(2)::before,
    .future-trade-page--v2 #orderhistory tbody td:nth-child(2)::before,
    .future-trade-page--core #tradehistory tbody td:nth-child(2)::before,
    .future-trade-page--v2 #tradehistory tbody td:nth-child(2)::before,
    .future-trade-page--core #positionhistory tbody td:nth-child(2)::before,
    .future-trade-page--v2 #positionhistory tbody td:nth-child(2)::before { content: "Pair"; }
    .future-trade-page--core #orderhistory tbody td:nth-child(3)::before,
    .future-trade-page--v2 #orderhistory tbody td:nth-child(3)::before,
    .future-trade-page--core #tradehistory tbody td:nth-child(3)::before,
    .future-trade-page--v2 #tradehistory tbody td:nth-child(3)::before,
    .future-trade-page--core #positionhistory tbody td:nth-child(3)::before,
    .future-trade-page--v2 #positionhistory tbody td:nth-child(3)::before { content: "Side"; }
    .future-trade-page--core #orderhistory tbody td:nth-child(4)::before,
    .future-trade-page--v2 #orderhistory tbody td:nth-child(4)::before,
    .future-trade-page--core #tradehistory tbody td:nth-child(4)::before,
    .future-trade-page--v2 #tradehistory tbody td:nth-child(4)::before,
    .future-trade-page--core #positionhistory tbody td:nth-child(4)::before,
    .future-trade-page--v2 #positionhistory tbody td:nth-child(4)::before { content: "Size"; }
    .future-trade-page--core #orderhistory tbody td:nth-child(5)::before,
    .future-trade-page--v2 #orderhistory tbody td:nth-child(5)::before,
    .future-trade-page--core #tradehistory tbody td:nth-child(5)::before,
    .future-trade-page--v2 #tradehistory tbody td:nth-child(5)::before,
    .future-trade-page--core #positionhistory tbody td:nth-child(5)::before,
    .future-trade-page--v2 #positionhistory tbody td:nth-child(5)::before { content: "Price"; }
    .future-trade-page--core #orderhistory tbody td:nth-child(6)::before,
    .future-trade-page--v2 #orderhistory tbody td:nth-child(6)::before,
    .future-trade-page--core #tradehistory tbody td:nth-child(6)::before,
    .future-trade-page--v2 #tradehistory tbody td:nth-child(6)::before,
    .future-trade-page--core #positionhistory tbody td:nth-child(6)::before,
    .future-trade-page--v2 #positionhistory tbody td:nth-child(6)::before { content: "Status"; }
}

/* === TradeV2 Live V2 Controller + History Final Repair - 2026-04-30 === */
.future-trade-page--core .future-trade-tab-content > .tab-pane:not(.active):not(.show),
.future-trade-page--v2 .future-trade-tab-content > .tab-pane:not(.active):not(.show) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.future-trade-page--core .future-trade-tab-content > .tab-pane.active,
.future-trade-page--core .future-trade-tab-content > .tab-pane.show,
.future-trade-page--v2 .future-trade-tab-content > .tab-pane.active,
.future-trade-page--v2 .future-trade-tab-content > .tab-pane.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

.future-trade-page--core .v2-history-list.is-card-rendered,
.future-trade-page--v2 .v2-history-list.is-card-rendered {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 10px !important;
    max-height: 282px !important;
    overflow: auto !important;
    padding: 0 !important;
    align-items: stretch !important;
}

.future-trade-page--core .v2-history-card,
.future-trade-page--v2 .v2-history-card {
    min-width: 0 !important;
    padding: 11px 12px !important;
    border: 1px solid rgba(105, 151, 220, .22) !important;
    border-radius: 14px !important;
    background: linear-gradient(145deg, rgba(14, 25, 50, .96), rgba(22, 38, 76, .84)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
    color: #dce8ff !important;
}

.future-trade-page--core .v2-history-card__head,
.future-trade-page--v2 .v2-history-card__head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 9px !important;
}

.future-trade-page--core .v2-history-card__head strong,
.future-trade-page--v2 .v2-history-card__head strong {
    color: #f1f6ff !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
}

.future-trade-page--core .v2-history-card__head span,
.future-trade-page--v2 .v2-history-card__head span {
    color: rgba(184, 199, 232, .74) !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-align: right !important;
}

.future-trade-page--core .v2-history-card__grid,
.future-trade-page--v2 .v2-history-card__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px 10px !important;
    margin: 0 !important;
}

.future-trade-page--core .v2-history-card__grid div,
.future-trade-page--v2 .v2-history-card__grid div {
    min-width: 0 !important;
}

.future-trade-page--core .v2-history-card__grid dt,
.future-trade-page--v2 .v2-history-card__grid dt {
    margin: 0 0 2px !important;
    color: rgba(160, 180, 220, .72) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
}

.future-trade-page--core .v2-history-card__grid dd,
.future-trade-page--v2 .v2-history-card__grid dd {
    margin: 0 !important;
    color: #e6eeff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
}

.future-trade-page--core .v2-history-empty,
.future-trade-page--v2 .v2-history-empty {
    grid-column: 1 / -1 !important;
    min-height: 96px !important;
    display: grid !important;
    place-items: center !important;
    color: rgba(184, 199, 232, .76) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    border: 1px solid rgba(105, 151, 220, .18) !important;
    border-radius: 14px !important;
    background: rgba(11, 21, 43, .78) !important;
}

.future-trade-page--core .v2-positions-panel .table-responsive table,
.future-trade-page--v2 .v2-positions-panel .table-responsive table {
    display: table !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

.future-trade-page--core .v2-positions-panel .table-responsive thead,
.future-trade-page--v2 .v2-positions-panel .table-responsive thead { display: table-header-group !important; }
.future-trade-page--core .v2-positions-panel .table-responsive tbody,
.future-trade-page--v2 .v2-positions-panel .table-responsive tbody { display: table-row-group !important; }
.future-trade-page--core .v2-positions-panel .table-responsive tr,
.future-trade-page--v2 .v2-positions-panel .table-responsive tr { display: table-row !important; }
.future-trade-page--core .v2-positions-panel .table-responsive th,
.future-trade-page--core .v2-positions-panel .table-responsive td,
.future-trade-page--v2 .v2-positions-panel .table-responsive th,
.future-trade-page--v2 .v2-positions-panel .table-responsive td {
    display: table-cell !important;
    padding: 8px 9px !important;
    font-size: clamp(11px, .68vw, 13px) !important;
    line-height: 1.15 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.future-trade-page--core .trade-profit-modal.show .modal-content,
.future-trade-page--v2 .trade-profit-modal.show .modal-content,
.trade-profit-modal.show .modal-content {
    opacity: 1 !important;
    filter: none !important;
    color: #e7efff !important;
}

.future-trade-page--core .trade-profit-modal .modal-backdrop,
.future-trade-page--v2 .trade-profit-modal .modal-backdrop,
.modal-backdrop.show { opacity: .48 !important; }

@media (max-width: 991.98px) {
    .future-trade-page--core .v2-core-shell,
    .future-trade-page--v2 .v2-core-shell {
        padding-bottom: 94px !important;
    }

    .future-trade-page--core .v2-chart-card,
    .future-trade-page--core .v2-chart-stage,
    .future-trade-page--core .v2-market-stage__chart,
    .future-trade-page--core .v2-chart-shell,
    .future-trade-page--core .trading-bottom,
    .future-trade-page--core .trading-bottom__tab,
    .future-trade-page--v2 .v2-chart-card,
    .future-trade-page--v2 .v2-chart-stage,
    .future-trade-page--v2 .v2-market-stage__chart,
    .future-trade-page--v2 .v2-chart-shell,
    .future-trade-page--v2 .trading-bottom,
    .future-trade-page--v2 .trading-bottom__tab {
        height: clamp(300px, 43vh, 350px) !important;
        min-height: clamp(300px, 43vh, 350px) !important;
        max-height: clamp(300px, 43vh, 350px) !important;
        overflow: hidden !important;
    }

    .future-trade-page--core .v2-mobile-cta,
    .future-trade-page--v2 .v2-mobile-cta {
        position: sticky !important;
        bottom: 76px !important;
        z-index: 1500 !important;
        margin: 12px 0 12px !important;
    }

    .future-trade-page--core .v2-mobile-nav,
    .future-trade-page--v2 .v2-mobile-nav {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        bottom: max(8px, env(safe-area-inset-bottom)) !important;
        min-height: 54px !important;
        padding: 5px !important;
        z-index: 2700 !important;
    }

    .future-trade-page--core .v2-position-tabs,
    .future-trade-page--v2 .v2-position-tabs {
        gap: 4px !important;
        margin-bottom: 9px !important;
        overflow-x: auto !important;
        overscroll-behavior-x: contain !important;
        scroll-snap-type: x proximity !important;
    }

    .future-trade-page--core .v2-position-tabs button,
    .future-trade-page--v2 .v2-position-tabs button {
        min-width: auto !important;
        flex: 0 0 auto !important;
        padding: 7px 8px !important;
        font-size: 12px !important;
        line-height: 1 !important;
        scroll-snap-align: start !important;
    }

    .future-trade-page--core .v2-history-list.is-card-rendered,
    .future-trade-page--v2 .v2-history-list.is-card-rendered {
        grid-template-columns: 1fr !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .future-trade-page--core .openOrderTable tbody tr,
    .future-trade-page--v2 .openOrderTable tbody tr {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px 9px !important;
        padding: 11px !important;
        margin-bottom: 9px !important;
        border: 1px solid rgba(105, 151, 220, .22) !important;
        border-radius: 14px !important;
        background: rgba(12, 23, 47, .94) !important;
    }

    .future-trade-page--core .openOrderTable thead,
    .future-trade-page--v2 .openOrderTable thead { display: none !important; }

    .future-trade-page--core .openOrderTable tbody td,
    .future-trade-page--v2 .openOrderTable tbody td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .future-trade-page--core .openOrderTable tbody td::before,
    .future-trade-page--v2 .openOrderTable tbody td::before {
        content: attr(data-label) !important;
        display: block !important;
        margin-bottom: 2px !important;
        color: rgba(170, 188, 222, .74) !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        text-transform: uppercase !important;
        letter-spacing: .03em !important;
    }
}

@media (max-width: 520px) {
    .future-trade-page--core .v2-chart-card,
    .future-trade-page--core .v2-chart-stage,
    .future-trade-page--core .v2-market-stage__chart,
    .future-trade-page--core .v2-chart-shell,
    .future-trade-page--core .trading-bottom,
    .future-trade-page--core .trading-bottom__tab,
    .future-trade-page--v2 .v2-chart-card,
    .future-trade-page--v2 .v2-chart-stage,
    .future-trade-page--v2 .v2-market-stage__chart,
    .future-trade-page--v2 .v2-chart-shell,
    .future-trade-page--v2 .trading-bottom,
    .future-trade-page--v2 .trading-bottom__tab {
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
    }
}

/* === TradeV2 core stabilization: live v2 wrapper, history panes, mobile table/card fit === */
.future-trade-page--core .future-trade-tab-content > .tab-pane:not(.active):not(.show),
.future-trade-page--v2 .future-trade-tab-content > .tab-pane:not(.active):not(.show) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.future-trade-page--core .future-trade-tab-content > .tab-pane.active,
.future-trade-page--core .future-trade-tab-content > .tab-pane.show,
.future-trade-page--v2 .future-trade-tab-content > .tab-pane.active,
.future-trade-page--v2 .future-trade-tab-content > .tab-pane.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

.future-trade-page--core .v2-history-list.is-card-rendered,
.future-trade-page--v2 .v2-history-list.is-card-rendered {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
    max-height: 260px !important;
    overflow: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

.future-trade-page--core .v2-history-card,
.future-trade-page--v2 .v2-history-card {
    display: grid !important;
    gap: 8px !important;
    padding: 12px 14px !important;
    min-width: 0 !important;
    border: 1px solid rgba(105, 189, 255, .16) !important;
    border-radius: 16px !important;
    background: linear-gradient(145deg, rgba(12, 20, 42, .92), rgba(25, 40, 78, .84)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

.future-trade-page--core .v2-history-card__row,
.future-trade-page--v2 .v2-history-card__row {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-width: 0 !important;
    line-height: 1.25 !important;
}

.future-trade-page--core .v2-history-card__label,
.future-trade-page--v2 .v2-history-card__label {
    flex: 0 0 auto !important;
    color: rgba(188, 203, 233, .72) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}

.future-trade-page--core .v2-history-card__value,
.future-trade-page--v2 .v2-history-card__value {
    min-width: 0 !important;
    text-align: right !important;
    color: #eef5ff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    word-break: break-word !important;
}

.future-trade-page--core .v2-history-empty,
.future-trade-page--v2 .v2-history-empty {
    display: grid !important;
    place-items: center !important;
    min-height: 120px !important;
    padding: 20px !important;
    color: rgba(205, 216, 240, .78) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-radius: 16px !important;
    background: rgba(10, 18, 38, .5) !important;
}

.future-trade-page--core .order-table td[data-label]::before,
.future-trade-page--v2 .order-table td[data-label]::before {
    content: none;
}

.future-trade-page--core .v2-position-panel,
.future-trade-page--v2 .v2-position-panel,
.future-trade-page--core .future-position-card,
.future-trade-page--v2 .future-position-card {
    min-height: 0 !important;
}

.future-trade-page--core #positions-nav > .v2-empty-state,
.future-trade-page--v2 #positions-nav > .v2-empty-state,
.future-trade-page--core #positions-nav > .v2-mobile-empty,
.future-trade-page--v2 #positions-nav > .v2-mobile-empty {
    display: none !important;
}

.future-trade-page--core .positionedTable,
.future-trade-page--v2 .positionedTable,
.future-trade-page--core .openOrderTable,
.future-trade-page--v2 .openOrderTable {
    overflow-x: auto !important;
    overflow-y: visible !important;
    max-height: none !important;
}

.future-trade-page--core .positionedTable table,
.future-trade-page--v2 .positionedTable table,
.future-trade-page--core .openOrderTable table,
.future-trade-page--v2 .openOrderTable table {
    table-layout: fixed !important;
    min-width: 900px !important;
}

.future-trade-page--core .positionedTable th,
.future-trade-page--v2 .positionedTable th,
.future-trade-page--core .positionedTable td,
.future-trade-page--v2 .positionedTable td,
.future-trade-page--core .openOrderTable th,
.future-trade-page--v2 .openOrderTable th,
.future-trade-page--core .openOrderTable td,
.future-trade-page--v2 .openOrderTable td {
    padding: 10px 10px !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    vertical-align: middle !important;
}

.future-trade-page--core .close-position,
.future-trade-page--v2 .close-position {
    display: grid !important;
    grid-template-columns: auto minmax(64px, max-content) minmax(140px, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
}

.future-trade-page--core .close-position-input,
.future-trade-page--v2 .close-position-input {
    min-width: 0 !important;
    height: 38px !important;
    font-size: 13px !important;
}

.future-trade-page--core .trade-profit-modal .modal-content,
.future-trade-page--v2 .trade-profit-modal .modal-content,
.future-trade-page--core #takeProfitLossModal .modal-content,
.future-trade-page--v2 #takeProfitLossModal .modal-content {
    opacity: 1 !important;
    filter: none !important;
    color: #eef5ff !important;
    background: linear-gradient(145deg, #111c34, #07101d) !important;
}

.future-trade-page--core #takeProfitLossModal .modal-dialog,
.future-trade-page--v2 #takeProfitLossModal .modal-dialog {
    opacity: 1 !important;
    filter: none !important;
}

body.modal-open .future-trade-page--core,
body.modal-open .future-trade-page--v2 {
    filter: none !important;
}

.modal-backdrop.show {
    opacity: .48 !important;
}

.future-trade-page--core .v2-news-card > .v2-card-title,
.future-trade-page--v2 .v2-news-card > .v2-card-title,
.future-trade-page--core .v2-news-card > .v2-section-title,
.future-trade-page--v2 .v2-news-card > .v2-section-title,
.future-trade-page--core .v2-news-card > .section-title,
.future-trade-page--v2 .v2-news-card > .section-title,
.future-trade-page--core .v2-news-card > h2:first-child,
.future-trade-page--v2 .v2-news-card > h2:first-child,
.future-trade-page--core .v2-news-card > h3:first-child,
.future-trade-page--v2 .v2-news-card > h3:first-child {
    display: none !important;
}

.future-trade-page--core .v2-news-card,
.future-trade-page--v2 .v2-news-card {
    overflow: hidden !important;
}

@media (min-width: 992px) {
    .future-trade-page--core,
    .future-trade-page--v2 {
        --v2-chart-target-height: clamp(440px, 44vh, 560px);
    }

    .future-trade-page--core .v2-chart-stage,
    .future-trade-page--v2 .v2-chart-stage,
    .future-trade-page--core .v2-market-stage__chart,
    .future-trade-page--v2 .v2-market-stage__chart,
    .future-trade-page--core .v2-chart-shell,
    .future-trade-page--v2 .v2-chart-shell,
    .future-trade-page--core .trading-bottom,
    .future-trade-page--v2 .trading-bottom,
    .future-trade-page--core .trading-bottom__tab,
    .future-trade-page--v2 .trading-bottom__tab {
        height: var(--v2-chart-target-height) !important;
        min-height: var(--v2-chart-target-height) !important;
        max-height: var(--v2-chart-target-height) !important;
    }

    .future-trade-page--core .future-grid-lower,
    .future-trade-page--v2 .future-grid-lower {
        margin-top: 12px !important;
        gap: 12px !important;
    }
}

@media (max-width: 991.98px) {
    .future-trade-page--core,
    .future-trade-page--v2 {
        padding-bottom: 104px !important;
    }

    .future-trade-page--core .v2-chart-stage,
    .future-trade-page--v2 .v2-chart-stage,
    .future-trade-page--core .v2-market-stage__chart,
    .future-trade-page--v2 .v2-market-stage__chart,
    .future-trade-page--core .v2-chart-shell,
    .future-trade-page--v2 .v2-chart-shell,
    .future-trade-page--core .trading-bottom,
    .future-trade-page--v2 .trading-bottom,
    .future-trade-page--core .trading-bottom__tab,
    .future-trade-page--v2 .trading-bottom__tab {
        height: 330px !important;
        min-height: 330px !important;
        max-height: 330px !important;
        overflow: hidden !important;
    }

    .future-trade-page--core .v2-position-tabs,
    .future-trade-page--v2 .v2-position-tabs {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 0 0 8px !important;
        margin: 0 0 10px !important;
        scrollbar-width: none !important;
    }

    .future-trade-page--core .v2-position-tabs::-webkit-scrollbar,
    .future-trade-page--v2 .v2-position-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .future-trade-page--core .v2-position-tabs button,
    .future-trade-page--v2 .v2-position-tabs button,
    .future-trade-page--core .v2-position-tabs .nav-link,
    .future-trade-page--v2 .v2-position-tabs .nav-link {
        flex: 0 0 auto !important;
        min-width: max-content !important;
        padding: 8px 10px !important;
        font-size: 13px !important;
        line-height: 1.1 !important;
    }

    .future-trade-page--core .positionedTable table,
    .future-trade-page--v2 .positionedTable table,
    .future-trade-page--core .openOrderTable table,
    .future-trade-page--v2 .openOrderTable table {
        min-width: 0 !important;
        width: 100% !important;
    }

    .future-trade-page--core .positionedTable thead,
    .future-trade-page--v2 .positionedTable thead,
    .future-trade-page--core .openOrderTable thead,
    .future-trade-page--v2 .openOrderTable thead {
        display: none !important;
    }

    .future-trade-page--core .positionedTable tbody,
    .future-trade-page--v2 .positionedTable tbody,
    .future-trade-page--core .openOrderTable tbody,
    .future-trade-page--v2 .openOrderTable tbody {
        display: grid !important;
        gap: 10px !important;
    }

    .future-trade-page--core .positionedTable tr,
    .future-trade-page--v2 .positionedTable tr,
    .future-trade-page--core .openOrderTable tr,
    .future-trade-page--v2 .openOrderTable tr {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px 10px !important;
        padding: 12px !important;
        border: 1px solid rgba(105, 189, 255, .16) !important;
        border-radius: 16px !important;
        background: rgba(10, 18, 38, .78) !important;
        min-width: 0 !important;
    }

    .future-trade-page--core .positionedTable td,
    .future-trade-page--v2 .positionedTable td,
    .future-trade-page--core .openOrderTable td,
    .future-trade-page--v2 .openOrderTable td {
        display: block !important;
        min-width: 0 !important;
        padding: 0 !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        color: #eef5ff !important;
        word-break: break-word !important;
    }

    .future-trade-page--core .order-table td[data-label]::before,
    .future-trade-page--v2 .order-table td[data-label]::before,
    .future-trade-page--core .positionedTable td[data-label]::before,
    .future-trade-page--v2 .positionedTable td[data-label]::before,
    .future-trade-page--core .openOrderTable td[data-label]::before,
    .future-trade-page--v2 .openOrderTable td[data-label]::before {
        content: attr(data-label) !important;
        display: block !important;
        margin-bottom: 3px !important;
        color: rgba(188, 203, 233, .68) !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        letter-spacing: .04em !important;
        text-transform: uppercase !important;
    }

    .future-trade-page--core .close-position,
    .future-trade-page--v2 .close-position {
        grid-column: 1 / -1 !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .future-trade-page--core .close-position-input,
    .future-trade-page--v2 .close-position-input {
        width: 100% !important;
    }

    .future-trade-page--core .v2-history-list.is-card-rendered,
    .future-trade-page--v2 .v2-history-list.is-card-rendered {
        grid-template-columns: 1fr !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .future-trade-page--core .v2-mobile-nav,
    .future-trade-page--v2 .v2-mobile-nav {
        position: fixed !important;
        left: 14px !important;
        right: 14px !important;
        bottom: 12px !important;
        z-index: 2700 !important;
        min-height: 58px !important;
        transform: none !important;
    }

    .future-trade-page--core .v2-mobile-cta,
    .future-trade-page--v2 .v2-mobile-cta {
        position: fixed !important;
        left: 14px !important;
        right: 14px !important;
        bottom: 82px !important;
        z-index: 2690 !important;
        transform: none !important;
        margin: 0 !important;
    }
}

@media (max-width: 520px) {
    .future-trade-page--core .v2-chart-stage,
    .future-trade-page--v2 .v2-chart-stage,
    .future-trade-page--core .v2-market-stage__chart,
    .future-trade-page--v2 .v2-market-stage__chart,
    .future-trade-page--core .v2-chart-shell,
    .future-trade-page--v2 .v2-chart-shell,
    .future-trade-page--core .trading-bottom,
    .future-trade-page--v2 .trading-bottom,
    .future-trade-page--core .trading-bottom__tab,
    .future-trade-page--v2 .trading-bottom__tab {
        height: 315px !important;
        min-height: 315px !important;
        max-height: 315px !important;
    }

    .future-trade-page--core .v2-market-header,
    .future-trade-page--v2 .v2-market-header,
    .future-trade-page--core .future-market-card,
    .future-trade-page--v2 .future-market-card {
        gap: 8px !important;
    }

    .future-trade-page--core .future-market-price,
    .future-trade-page--v2 .future-market-price,
    .future-trade-page--core .v2-selected-price,
    .future-trade-page--v2 .v2-selected-price {
        text-align: left !important;
        justify-self: start !important;
        margin: 0 !important;
        font-size: clamp(20px, 6vw, 28px) !important;
        line-height: 1.05 !important;
    }
}

/* TradeV2 final tab hygiene: hide broken Open Order and suppress broken history Load More controls. */
.future-trade-page--core [data-bs-target="#open-order"],
.future-trade-page--core [href="#open-order"],
.future-trade-page--v2 [data-bs-target="#open-order"],
.future-trade-page--v2 [href="#open-order"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.future-trade-page--core #open-order,
.future-trade-page--v2 #open-order {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.future-trade-page--core .v2-history-list .v2-history-card:empty,
.future-trade-page--v2 .v2-history-list .v2-history-card:empty {
    display: none !important;
}

.future-trade-page--core .v2-history-list [class*="loadMore"],
.future-trade-page--core .v2-history-list [class*="load-more"],
.future-trade-page--v2 .v2-history-list [class*="loadMore"],
.future-trade-page--v2 .v2-history-list [class*="load-more"] {
    display: none !important;
}



/* TradeV2 final live-core fixes: hide actual data-v2 Open Order tab/pane. */
.future-trade-page--core [data-v2-orders-tab="open"],
.future-trade-page--v2 [data-v2-orders-tab="open"],
.future-trade-page--core [data-v2-orders-panel="open"],
.future-trade-page--v2 [data-v2-orders-panel="open"],
.future-trade-page--core [data-orders-panel="open"],
.future-trade-page--v2 [data-orders-panel="open"],
.future-trade-page--core [data-v2-orders-pane="open"],
.future-trade-page--v2 [data-v2-orders-pane="open"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* placeholder mobile Open Position CTA geometry repair 2026-04-30 */
@media (max-width: 991px) {
  .future-trade-page--core .v2-mobile-cta.open-position-btn,
  .future-trade-page--v2 .v2-mobile-cta.open-position-btn {
    clip-path: none !important;
    border-radius: 18px !important;
    min-height: 58px !important;
    padding: 0 18px !important;
    width: auto !important;
    left: 14px !important;
    right: 14px !important;
    background: linear-gradient(135deg, #6757ef 0%, #8bcdf4 100%) !important;
    box-shadow: 0 16px 38px rgba(61, 91, 196, .34) !important;
  }
}

/* placeholder future selector cleanup: no favorites page, compact selector, native symbol panel. */
.future-trade-page--core .v2-asset-panel {
  width: min(720px, calc(100vw - 40px)) !important;
  max-height: min(560px, calc(100vh - 140px)) !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) !important;
  padding: 18px !important;
  border-radius: 20px !important;
}

.future-trade-page--core .v2-asset-tab.is-active,
.future-trade-page--core .v2-asset-tab.active {
  color: #88d8ff !important;
  background: rgba(86, 125, 214, .26) !important;
}

.future-trade-page--core .v2-symbol-card {
  height: 100%;
  min-height: 300px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(17, 28, 55, .98), rgba(12, 19, 37, .98));
  border: 1px solid rgba(111, 161, 234, .22);
  color: var(--v2-ink);
}

.future-trade-page--core .v2-symbol-card__head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.future-trade-page--core .v2-symbol-card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(0, 0, 0, .28);
}

.future-trade-page--core .v2-symbol-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.future-trade-page--core .v2-symbol-card__head span,
.future-trade-page--core .v2-symbol-card__grid span {
  display: block;
  color: #8fa1c8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.future-trade-page--core .v2-symbol-card__head strong {
  display: block;
  color: #eef4ff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .95;
}

.future-trade-page--core .v2-symbol-card__head small {
  color: #c1c9dc;
  font-size: 15px;
}

.future-trade-page--core .v2-symbol-card__price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.future-trade-page--core .v2-symbol-card__price strong {
  color: #eef4ff;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.future-trade-page--core .v2-symbol-card__price span {
  font-size: 22px;
  font-weight: 900;
}

.future-trade-page--core .v2-symbol-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.future-trade-page--core .v2-symbol-card__grid div {
  min-width: 0;
  padding: 13px;
  border-radius: 13px;
  background: rgba(37, 54, 99, .55);
  border: 1px solid rgba(111, 161, 234, .16);
}

.future-trade-page--core .v2-symbol-card__grid strong {
  display: block;
  margin-top: 5px;
  color: #eef4ff;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .future-trade-page--core .v2-asset-panel {
    left: 50% !important;
    right: auto !important;
    top: 84px !important;
    bottom: auto !important;
    width: min(560px, calc(100vw - 28px)) !important;
    max-height: min(64vh, 540px) !important;
    transform: translateX(-50%) !important;
    gap: 11px !important;
  }
}

@media (max-width: 575.98px) {
  .future-trade-page--core .v2-asset-panel {
    inset: 74px 12px auto 12px !important;
    width: auto !important;
    max-height: calc(100dvh - 145px) !important;
    transform: none !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .future-trade-page--core .v2-asset-panel__head h3 { font-size: 22px !important; }
  .future-trade-page--core .v2-asset-search { height: 38px !important; }
  .future-trade-page--core .v2-asset-search input { font-size: 16px !important; }
  .future-trade-page--core .v2-asset-tabs { gap: 6px !important; overflow-x: auto !important; flex-wrap: nowrap !important; }
  .future-trade-page--core .v2-asset-tab { flex: 0 0 auto; padding: 7px 10px !important; font-size: 13px !important; }
  .future-trade-page--core .v2-asset-row { min-height: 58px !important; grid-template-columns: 24px minmax(0, 1fr) auto !important; gap: 8px !important; padding: 7px 6px !important; }
  .future-trade-page--core .asset-list__link { grid-template-columns: 32px minmax(0, 1fr) !important; gap: 8px !important; }
  .future-trade-page--core .asset-list__info strong { font-size: 15px !important; }
  .future-trade-page--core .asset-list__info small,
  .future-trade-page--core .asset-list__metrics { font-size: 12px !important; }
  .future-trade-page--core .v2-symbol-card { min-height: 260px; padding: 18px; }
  .future-trade-page--core .v2-symbol-card__grid { grid-template-columns: 1fr; gap: 8px; }
}

/* placeholder urgent future UI repair 2026-04-30: compact symbol card and scrollable selector. */
.future-trade-page--core .v2-symbol-card {
  min-height: 0 !important;
  gap: 12px !important;
  padding: 18px !important;
}

.future-trade-page--core .v2-symbol-card__head {
  grid-template-columns: 44px minmax(0, 1fr) !important;
  gap: 12px !important;
}

.future-trade-page--core .v2-symbol-card__icon {
  width: 44px !important;
  height: 44px !important;
}

.future-trade-page--core .v2-symbol-card__head strong {
  max-width: 100% !important;
  font-size: clamp(28px, 4vw, 42px) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.future-trade-page--core .v2-symbol-card__price strong {
  font-size: clamp(28px, 4vw, 40px) !important;
  line-height: 1 !important;
}

.future-trade-page--core .v2-symbol-card__price span {
  font-size: clamp(18px, 3vw, 24px) !important;
}

.future-trade-page--core .v2-asset-panel {
  width: min(620px, calc(100vw - 48px)) !important;
  height: min(600px, calc(100dvh - 140px)) !important;
  max-height: min(600px, calc(100dvh - 140px)) !important;
  overflow: hidden !important;
}

.future-trade-page--core .v2-asset-list {
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  padding-right: 8px !important;
}

.future-trade-page--core .v2-asset-row {
  min-height: 60px !important;
  padding-block: 6px !important;
}

@media (max-width: 991.98px) {
  .future-trade-page--core .v2-asset-panel {
    width: min(520px, calc(100vw - 28px)) !important;
    height: min(620px, calc(100dvh - 130px)) !important;
    max-height: min(620px, calc(100dvh - 130px)) !important;
  }
}

@media (max-width: 575.98px) {
  .future-trade-page--core .v2-symbol-card {
    padding: 14px !important;
    gap: 10px !important;
  }

  .future-trade-page--core .v2-symbol-card__head {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .future-trade-page--core .v2-symbol-card__icon {
    width: 38px !important;
    height: 38px !important;
  }

  .future-trade-page--core .v2-symbol-card__head strong {
    font-size: clamp(24px, 8vw, 34px) !important;
  }

  .future-trade-page--core .v2-symbol-card__price strong {
    font-size: clamp(24px, 8vw, 32px) !important;
  }

  .future-trade-page--core .v2-symbol-card__head small {
    font-size: 13px !important;
  }

  .future-trade-page--core .v2-asset-panel {
    inset: 74px 12px auto 12px !important;
    height: calc(100dvh - 150px) !important;
    max-height: calc(100dvh - 150px) !important;
  }
}
