/* VOLX — stylesheet. Tailwind not used; all layout + colour here.
   Design system colours live in :root. */

:root {
  --bg-void:     #13131F;
  --bg-base:     #1A1A2C;
  --bg-active:   #202038;
  --border:      #2E2E48;
  --mid:         #565680;
  --text-muted:  #9090B8;
  --text-sec:    #C8C8E8;
  --text-pri:    #E8E8F8;
  --accent:      #7B6EE8;
  --accent-dim:  rgba(123,110,232,0.12);
  --long:        #3DB87A;
  --long-dim:    rgba(61,184,122,0.12);
  --short:       #E05555;
  --short-dim:   rgba(224,85,85,0.12);
  --grid-line:   rgba(123,110,232,0.05);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg-void);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--text-pri);
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }
.pos { color: var(--long); }
.neg { color: var(--short); }
.volx-muted { color: var(--text-muted); }

::selection { background: var(--accent-dim); }

/* scrollbars */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--mid); }

button { font-family: inherit; }
input, select { font-family: inherit; }

.volx-root { display: flex; flex-direction: column; min-height: 100vh; }

/* ============================ Navbar ============================ */
.volx-navbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(19,19,31,0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.volx-navbar-inner {
  max-width: 1680px; margin: 0 auto; height: 60px;
  padding: 0 24px; display: flex; align-items: center; justify-content: space-between;
}
.volx-nav-left { display: flex; align-items: center; gap: 32px; }
.volx-nav-links { display: flex; align-items: center; gap: 4px; }
.volx-nav-link {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-weight: 500; font-size: 14px;
  padding: 8px 14px; position: relative; transition: color .15s;
}
.volx-nav-link:hover { color: var(--text-sec); }
.volx-nav-link.active { color: var(--text-pri); }
.volx-nav-link.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.volx-nav-right { display: flex; align-items: center; gap: 14px; }
.volx-network {
  display: flex; align-items: center; gap: 7px; color: var(--text-muted);
  font-size: 13px; font-weight: 500;
}
.volx-network.inline { font-size: 14px; color: var(--text-pri); }
.volx-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--long);
  box-shadow: 0 0 0 3px var(--long-dim); animation: volx-pulse 2.4s infinite;
}
@keyframes volx-pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.volx-wallet-wrap { position: relative; }
.volx-wallet-pill {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--bg-base); border: 1px solid var(--border); color: var(--text-sec);
  padding: 7px 12px; border-radius: 8px; font-size: 13px; transition: background .15s;
}
.volx-wallet-pill:hover { background: var(--bg-active); }
.volx-wallet-pill.static { cursor: default; }
.volx-wallet-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 190px;
  background: var(--bg-base); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px; display: flex; flex-direction: column; gap: 2px; z-index: 50;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.volx-menu-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  background: none; border: none; cursor: pointer; color: var(--text-sec);
  padding: 9px 10px; border-radius: 6px; font-size: 13px; text-align: left;
}
.volx-menu-item:hover { background: var(--bg-active); }
.volx-menu-item.danger { color: var(--short); }
.volx-hamburger {
  display: none; background: none; border: none; color: var(--text-sec); cursor: pointer; padding: 4px;
}
.volx-icon-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; display: flex; }
.volx-icon-btn:hover { color: var(--text-pri); }

/* mobile drawer */
.volx-drawer-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.55); }
.volx-drawer {
  position: absolute; top: 0; left: 0; bottom: 0; width: 264px;
  background: var(--bg-base); border-right: 1px solid var(--border);
  padding: 18px; display: flex; flex-direction: column;
  animation: volx-slide-in .2s ease;
}
@keyframes volx-slide-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.volx-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.volx-drawer-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.volx-drawer-link {
  display: flex; align-items: center; gap: 12px; background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 15px; font-weight: 500; padding: 12px 12px; border-radius: 8px; text-align: left;
}
.volx-drawer-link:hover { background: var(--bg-active); color: var(--text-sec); }
.volx-drawer-link.active { background: var(--accent-dim); color: var(--accent); }
.volx-drawer-foot { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ============================ Main / pages ============================ */
.volx-main { flex: 1; max-width: 1680px; width: 100%; margin: 0 auto; padding: 28px 24px 40px; }
.volx-page { display: flex; flex-direction: column; gap: 22px; }
.volx-page-head h1 { font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.volx-page-head.leaderboard { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.volx-page-sub { color: var(--text-muted); margin: 6px 0 0; font-size: 14px; }

.volx-panel { background: var(--bg-base); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.volx-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.volx-panel-head h2 { font-size: 14px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }

/* ============================ Stat cards ============================ */
.volx-stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.volx-stat-card {
  text-align: left; background: var(--bg-base); border: 1px solid var(--border); border-radius: 8px; color: var(--text-pri);
  padding: 16px; cursor: pointer; transition: background .15s, border-color .15s; display: flex; flex-direction: column;
}
.volx-stat-card:hover { background: var(--bg-active); border-color: var(--accent); }
.volx-stat-top { display: flex; align-items: center; justify-content: space-between; }
.volx-stat-name { font-weight: 700; font-size: 14px; color: var(--text-pri); }
.volx-stat-change { font-size: 13px; font-weight: 600; font-family: 'IBM Plex Mono', monospace; }
.volx-stat-price { font-size: 24px; font-weight: 600; margin: 12px 0 10px; letter-spacing: -0.01em; color: var(--text-pri); }
.volx-stat-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }

/* balance cards */
.volx-balance-card { background: var(--bg-base); border: 1px solid var(--border); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.volx-balance-label { color: var(--text-muted); font-size: 12px; font-weight: 500; }
.volx-balance-val { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.volx-balance-unit { font-size: 12px; color: var(--text-muted); }

/* ============================ Tables ============================ */
.volx-table-wrap { overflow-x: auto; }
.volx-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.volx-table thead th {
  text-align: left; color: var(--text-muted); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 12px 14px;
  border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--bg-base);
}
.volx-table th.r, .volx-table td.r { text-align: right; }
.volx-table th.sortable { cursor: pointer; user-select: none; }
.volx-table th.sortable span { display: inline-flex; align-items: center; gap: 3px; }
.volx-table th.sortable.r span { justify-content: flex-end; width: 100%; }
.volx-table th.sortable:hover { color: var(--text-sec); }
.volx-table tbody td { padding: 13px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.volx-table tbody tr:last-child td { border-bottom: none; }
.volx-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.012); }
.volx-table tbody tr:hover { background: var(--bg-active); }
.volx-cell-market { font-weight: 600; color: var(--text-pri); }
.volx-pnl-pct { display: block; font-size: 11px; opacity: 0.75; }

.volx-side { font-weight: 600; font-size: 12px; }
.volx-side.long { color: var(--long); }
.volx-side.short { color: var(--short); }

/* ============================ Buttons ============================ */
.volx-btn-accent {
  background: var(--accent); color: #fff; border: none; cursor: pointer; font-weight: 600; white-space: nowrap;
  padding: 9px 16px; border-radius: 7px; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  transition: filter .15s;
}
.volx-btn-accent:hover { filter: brightness(1.1); }
.volx-btn-accent.sm { padding: 6px 14px; font-size: 12px; }
.volx-btn-outline {
  background: transparent; color: var(--text-sec); border: 1px solid var(--border); cursor: pointer; font-weight: 600; white-space: nowrap;
  padding: 9px 16px; border-radius: 7px; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  transition: background .15s, border-color .15s;
}
.volx-btn-outline:hover { background: var(--bg-active); border-color: var(--mid); }
.volx-btn-outline.sm { padding: 5px 13px; font-size: 12px; }
.volx-btn-outline.danger { color: var(--short); border-color: rgba(224,85,85,0.4); }
.volx-btn-outline.danger:hover { background: var(--short-dim); }
.volx-btn-outline.accent { color: var(--accent); border-color: rgba(123,110,232,0.45); }
.volx-btn-outline.accent:hover { background: var(--accent-dim); border-color: var(--accent); }
.volx-btn-danger { background: var(--short); color: #fff; border: none; cursor: pointer; font-weight: 600; padding: 9px 16px; border-radius: 7px; font-size: 13px; }
.volx-btn-danger:hover { filter: brightness(1.08); }
.block { width: 100%; }

/* ============================ Chips ============================ */
.volx-chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 5px; font-size: 11px; font-weight: 600; }
.volx-chip-long { background: var(--long-dim); color: var(--long); }
.volx-chip-short { background: var(--short-dim); color: var(--short); }
.volx-chip-accent { background: var(--accent-dim); color: var(--accent); }
.volx-chip-muted { background: rgba(144,144,184,0.12); color: var(--text-muted); }

/* ============================ Empty state ============================ */
.volx-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 20px; color: var(--mid); }
.volx-empty-title { color: var(--text-sec); font-weight: 600; margin: 4px 0 0; }
.volx-empty-sub { color: var(--text-muted); font-size: 13px; margin: 0; }

/* ============================ Skeleton ============================ */
.volx-skeleton { background: linear-gradient(90deg, var(--bg-active) 25%, var(--border) 37%, var(--bg-active) 63%); background-size: 400% 100%; border-radius: 4px; animation: volx-shimmer 1.2s infinite; }
@keyframes volx-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ============================ Trade layout ============================ */
.volx-trade { display: flex; flex-direction: column; gap: 14px; }

/* market header bar */
.volx-trade-header { display: flex; align-items: stretch; gap: 0; background: var(--bg-base); border: 1px solid var(--border); border-radius: 8px; }
.volx-mkt-select { position: relative; display: flex; align-items: center; padding: 0 18px; border-right: 1px solid var(--border); }
.volx-mkt-select-btn { display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; color: var(--text-pri); padding: 16px 0; }
.volx-mkt-select-btn:hover { color: var(--accent); }
.volx-mkt-select-name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.volx-mkt-select-menu { position: absolute; top: calc(100% - 6px); left: 10px; z-index: 30; min-width: 230px; background: var(--bg-base); border: 1px solid var(--border); border-radius: 8px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,0.45); }
.volx-mkt-select-item { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; width: 100%; background: none; border: none; cursor: pointer; color: var(--text-sec); padding: 9px 10px; border-radius: 6px; font-size: 13px; text-align: left; }
.volx-mkt-select-item:hover { background: var(--bg-active); }
.volx-mkt-select-item.active { background: var(--accent-dim); }
.volx-mkt-select-iname { font-weight: 600; color: var(--text-pri); white-space: nowrap; }

.volx-hstat-price { display: flex; align-items: center; padding: 0 20px; border-right: 1px solid var(--border); }
.volx-hstat-price .mono { font-size: 22px; font-weight: 600; color: var(--text-pri); letter-spacing: -0.01em; }

.volx-hstat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); grid-auto-rows: 1fr; gap: 1px; background: var(--border); flex: 1; align-self: stretch; }
.volx-hstat-cell { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 20px; background: var(--bg-base); }
.volx-hstat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); white-space: nowrap; }
.volx-hstat-cell .mono { font-size: 13px; white-space: nowrap; }
.volx-hstat-sub { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; font-family: 'IBM Plex Mono', monospace; }

/* grid layout: chart | book | order(spans both rows) ; positions spans chart+book */
.volx-trade-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) clamp(240px, 22vw, 300px) clamp(300px, 24vw, 360px);
  grid-template-rows: 460px auto;
  grid-template-areas:
    "chart book order"
    "pos   pos  order";
  gap: 14px;
  align-items: start;
}
.volx-chart-panel { grid-area: chart; display: flex; flex-direction: column; height: 460px; }
.volx-col-book { grid-area: book; min-width: 0; }
.volx-col-order { grid-area: order; min-width: 0; align-self: start; }
.volx-positions-panel { grid-area: pos; align-self: stretch; }
.volx-ob-panel { height: 460px; }
.volx-col-book .volx-panel, .volx-col-order .volx-panel { display: flex; flex-direction: column; }

.volx-market-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.volx-market-tab {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start; cursor: pointer; color: var(--text-pri);
  background: var(--bg-base); border: 1px solid var(--border); border-radius: 8px; padding: 11px 14px; transition: background .15s, border-color .15s;
}
.volx-market-tab:hover { background: var(--bg-active); }
.volx-market-tab.active { background: var(--accent-dim); border-color: var(--accent); }
.volx-mt-name { font-weight: 700; font-size: 13px; color: var(--text-pri); white-space: nowrap; }
.volx-stat-name { white-space: nowrap; }
.volx-mt-price { font-size: 14px; }
.volx-mt-change { font-size: 12px; }

/* ============================ Chart ============================ */
.volx-chart { display: flex; flex-direction: column; }
.volx-chart-tfs { display: flex; align-items: center; gap: 2px; padding: 12px 16px 8px; flex-wrap: wrap; }
.volx-tf-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 5px; position: relative; }
.volx-tf-btn:hover { color: var(--text-sec); background: var(--bg-active); }
.volx-tf-btn.active { color: var(--accent); }
.volx-tf-btn.active::after { content: ''; position: absolute; left: 9px; right: 9px; bottom: 0; height: 2px; background: var(--accent); border-radius: 2px; }
.volx-chart-ohlc { display: flex; gap: 14px; margin-left: 12px; font-size: 11px; color: var(--text-muted); }
.volx-chart-ohlc b { color: var(--text-pri); font-weight: 600; }
.volx-chart-canvas { flex: 1; min-height: 300px; width: 100%; padding: 0 4px 4px; }
.volx-axis-label { fill: var(--text-muted); font-family: 'IBM Plex Mono', monospace; font-size: 10px; }

/* ============================ Orderbook ============================ */
.volx-orderbook { display: flex; flex-direction: column; height: 100%; }
.volx-ob-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; font-weight: 700; font-size: 14px; }
.volx-ob-base { font-size: 12px; color: var(--text-muted); }
.volx-ob-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 0 16px 6px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.volx-ob-cols span:nth-child(2), .volx-ob-cols span:nth-child(3) { text-align: right; }
.volx-ob-asks, .volx-ob-bids { display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.volx-ob-row { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 3px 16px; font-size: 12px; align-items: center; }
.volx-ob-bar { position: absolute; top: 0; bottom: 0; right: 0; opacity: 0.14; z-index: 0; transition: width .4s ease; }
.volx-ob-bar.ask { background: var(--short); }
.volx-ob-bar.bid { background: var(--long); }
.volx-ob-row.flash { animation: volx-ob-flash .32s ease; }
@keyframes volx-ob-flash { from { background: var(--accent-dim); } to { background: transparent; } }
.volx-ob-price { z-index: 1; }
.volx-ob-price.ask { color: var(--short); }
.volx-ob-price.bid { color: var(--long); }
.volx-ob-size, .volx-ob-total { text-align: right; z-index: 1; color: var(--text-sec); }
.volx-ob-total { color: var(--text-muted); }
.volx-ob-mid { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 5px 0; font-size: 14px; }
.volx-ob-spread { font-size: 11px; color: var(--text-muted); }

/* ============================ Order entry form ============================ */
.volx-order-form { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.volx-seg { display: inline-flex; background: var(--bg-void); border: 1px solid var(--border); border-radius: 7px; padding: 3px; gap: 2px; }
.volx-seg-3 { display: grid; grid-template-columns: repeat(3,1fr); width: 100%; }
.volx-seg-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); font-weight: 600; font-size: 12px; padding: 7px 14px; border-radius: 5px; transition: all .15s; white-space: nowrap; }
.volx-seg-btn:hover { color: var(--text-sec); }
.volx-seg-btn.active { background: var(--accent); color: #fff; }
.volx-side-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.volx-side-btn { display: flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; font-weight: 700; font-size: 13px; padding: 12px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg-void); transition: all .15s; }
.volx-side-btn.long { color: var(--long); }
.volx-side-btn.short { color: var(--short); }
.volx-side-btn.long.active { background: var(--long-dim); border-color: var(--long); }
.volx-side-btn.short.active { background: var(--short-dim); border-color: var(--short); }
.volx-field { display: flex; flex-direction: column; gap: 6px; }
.volx-field label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.volx-input { background: var(--bg-void); border: 1px solid var(--border); border-radius: 7px; padding: 10px 12px; color: var(--text-pri); font-size: 14px; width: 100%; outline: none; transition: border-color .15s; }
.volx-input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.volx-input.readonly { color: var(--text-muted); background: rgba(255,255,255,0.02); }
.volx-input::placeholder { color: var(--mid); }
.volx-lev-head { display: flex; align-items: center; justify-content: space-between; }
.volx-lev-val { color: var(--accent); font-weight: 600; font-size: 13px; }
.volx-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 4px; background: linear-gradient(to right, var(--accent) var(--pct,50%), var(--border) var(--pct,50%)); outline: none; cursor: pointer; }
.volx-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg-base); cursor: pointer; box-shadow: 0 0 0 1px var(--accent); }
.volx-slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg-base); cursor: pointer; }
.volx-lev-presets { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-top: 10px; }
.volx-lev-preset { background: var(--bg-void); border: 1px solid var(--border); cursor: pointer; color: var(--text-muted); font-weight: 600; font-size: 12px; padding: 6px; border-radius: 5px; font-family: 'IBM Plex Mono', monospace; transition: all .15s; }
.volx-lev-preset:hover { background: var(--bg-active); }
.volx-lev-preset.active { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }
.volx-order-summary { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.volx-sum-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-muted); }
.volx-sum-row .mono { white-space: nowrap; }
.volx-sum-row .mono { color: var(--text-sec); font-size: 12px; }
.volx-place-btn { color: #fff; border: none; cursor: pointer; font-weight: 800; font-size: 14px; letter-spacing: 0.02em; padding: 13px; border-radius: 7px; transition: filter .15s; }
.volx-place-btn:hover { filter: brightness(1.1); }
.volx-place-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.volx-avail { text-align: center; font-size: 12px; color: var(--text-muted); margin: 0; }
.volx-avail .mono { color: var(--text-sec); }

/* ============================ Tabs / filters ============================ */
.volx-tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.volx-tabs { display: inline-flex; gap: 4px; border-bottom: 1px solid var(--border); }
.volx-tab { background: none; border: none; cursor: pointer; color: var(--text-muted); font-weight: 600; font-size: 14px; padding: 10px 16px; position: relative; }
.volx-tab:hover { color: var(--text-sec); }
.volx-tab.active { color: var(--text-pri); }
.volx-tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.volx-filters { display: flex; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.volx-select-wrap { display: flex; flex-direction: column; gap: 5px; }
.volx-select-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.volx-select { position: relative; display: inline-flex; align-items: center; }
.volx-select select { appearance: none; background: var(--bg-void); border: 1px solid var(--border); color: var(--text-sec); padding: 8px 32px 8px 12px; border-radius: 7px; font-size: 13px; cursor: pointer; outline: none; }
.volx-select select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.volx-select svg { position: absolute; right: 10px; pointer-events: none; color: var(--text-muted); }

/* ============================ Deposit/withdraw ============================ */
.volx-dw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.volx-dw-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.volx-demo-note { font-size: 11px; color: var(--text-muted); text-align: center; margin: 0; }

/* ============================ Account info ============================ */
.volx-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.volx-info-item { background: var(--bg-base); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.volx-info-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.volx-info-val { font-size: 14px; }

.volx-copy-hash { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; color: var(--text-sec); font-size: 13px; padding: 0; }
.volx-copy-hash:hover { color: var(--accent); }
.volx-copy-hash svg { color: var(--text-muted); }

/* ============================ Leaderboard ============================ */
.volx-lb-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.volx-lb-stat { background: var(--bg-base); border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.volx-lb-stat-label { font-size: 12px; color: var(--text-muted); }
.volx-lb-stat-val { font-size: 22px; font-weight: 600; }
.volx-row-you { background: var(--accent-dim) !important; box-shadow: inset 2px 0 0 var(--accent); }
.volx-you-badge { display: inline-block; margin-left: 8px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 4px; letter-spacing: 0.04em; vertical-align: middle; }

/* ============================ Modal ============================ */
.volx-modal-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; padding: 20px; animation: volx-fade .15s ease; }
@keyframes volx-fade { from { opacity: 0; } to { opacity: 1; } }
.volx-modal { width: 100%; max-width: 420px; background: var(--bg-base); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.volx-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.volx-modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.volx-modal-body { padding: 20px; color: var(--text-sec); line-height: 1.55; }
.volx-modal-foot { padding: 16px 20px; border-top: 1px solid var(--border); }
.volx-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ============================ Toast ============================ */
.volx-toast-stack { position: fixed; bottom: 22px; right: 22px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.volx-toast { display: flex; align-items: center; gap: 11px; min-width: 280px; max-width: 380px; padding: 13px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-base); box-shadow: 0 12px 30px rgba(0,0,0,0.4); animation: volx-toast-in .25s cubic-bezier(.2,.9,.3,1); }
@keyframes volx-toast-in { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.volx-toast-icon { display: flex; flex-shrink: 0; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 6px; }
.volx-toast-success { border-color: rgba(61,184,122,0.4); }
.volx-toast-success .volx-toast-icon { background: var(--long-dim); color: var(--long); }
.volx-toast-error { border-color: rgba(224,85,85,0.4); }
.volx-toast-error .volx-toast-icon { background: var(--short-dim); color: var(--short); }
.volx-toast-info { border-color: rgba(123,110,232,0.4); }
.volx-toast-info .volx-toast-icon { background: var(--accent-dim); color: var(--accent); }
.volx-toast-msg { flex: 1; font-size: 13px; color: var(--text-pri); }
.volx-toast-close { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 2px; display: flex; }
.volx-toast-close:hover { color: var(--text-pri); }

/* ============================ Footer ============================ */
.volx-footer { border-top: 1px solid var(--border); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1680px; width: 100%; margin: 0 auto; font-size: 12px; color: var(--text-muted); }
.volx-footer-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.volx-footer-sep { color: var(--mid); }
.volx-footer-tag { color: var(--text-sec); }
.volx-footer-mid { display: flex; gap: 18px; }
.volx-footer-link { color: var(--text-muted); cursor: pointer; }
.volx-footer-link:hover { color: var(--accent); }

/* ============================ LP Vault model additions ============================ */
.volx-field-hint { display: block; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.volx-orc-tag { display: inline-block; font-size: 10px; font-weight: 700; color: var(--accent); background: var(--accent-dim); padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; letter-spacing: 0.03em; }

/* Oracle price panel (replaces orderbook) */
.volx-orp { display: flex; flex-direction: column; padding: 16px; gap: 0; }
.volx-orp-section { display: flex; flex-direction: column; gap: 7px; }
.volx-orp-div { height: 1px; background: var(--border); margin: 14px 0; }
.volx-orp-head { font-family: 'IBM Plex Mono', monospace; font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.volx-orp-big { font-size: 28px; font-weight: 600; color: var(--text-pri); letter-spacing: -0.01em; }
.volx-orp-unit { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.volx-orp-sub { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--text-muted); letter-spacing: 0.04em; }
.volx-orp-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.volx-orp-k { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.volx-orp-v { font-size: 13px; color: var(--text-pri); }
.volx-orp-bar { height: 4px; border-radius: 2px; background: var(--bg-active); overflow: hidden; margin-top: 4px; }
.volx-orp-bar.lg { height: 6px; flex: 1; }
.volx-orp-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width .4s ease; }

/* Vault stats bar on Markets page */
.volx-vaultbar { background: var(--bg-base); border: 1px solid var(--border); border-radius: 8px; padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.volx-vaultbar-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.volx-vaultbar-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; }
.volx-vaultbar-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.volx-vaultbar-stat { display: flex; flex-direction: column; gap: 5px; }
.volx-vaultbar-k { font-size: 11px; color: var(--text-muted); }
.volx-vaultbar-v { font-size: 22px; font-weight: 500; color: var(--text-pri); }
.volx-vaultbar-barrow { display: flex; align-items: center; gap: 14px; }
.volx-vaultbar-deployed { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

/* Market stat card OI/cap */
.volx-stat-oi { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.volx-stat-oi-row { display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.volx-stat-oi-row .mono { color: var(--text-sec); }

/* Earn — vault composition */
.volx-vcomp { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.volx-vcomp-row { display: grid; grid-template-columns: 150px 120px 48px 1fr; align-items: center; gap: 14px; }
.volx-vcomp-label { font-size: 13px; color: var(--text-sec); }
.volx-vcomp-amt { font-size: 13px; color: var(--text-pri); text-align: right; }
.volx-vcomp-pct { font-size: 13px; color: var(--text-muted); text-align: right; }
.volx-vcomp-bar { height: 8px; border-radius: 3px; background: var(--bg-void); overflow: hidden; }
.volx-vcomp-fill { height: 100%; border-radius: 3px; transition: width .4s ease; }

/* Earn — my LP position */
.volx-lp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); }
.volx-lp-row { background: var(--bg-base); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.volx-lp-label { font-size: 12px; color: var(--text-muted); }
.volx-lp-val { font-size: 14px; color: var(--text-pri); }
.volx-lp-val.muted { color: var(--text-sec); }
.volx-lp-unlocked { display: inline-flex; align-items: center; gap: 3px; color: var(--long); font-size: 11px; margin-left: 6px; }
.volx-lp-empty { padding: 36px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.volx-lp-empty-title { font-size: 15px; font-weight: 600; color: var(--text-sec); margin: 0; }
.volx-lp-empty-sub { font-size: 13px; color: var(--text-muted); margin: 0 0 8px; }

/* Earn — deposit/withdraw receive box */
.volx-dw-receive { background: var(--bg-void); border: 1px solid var(--border); border-radius: 7px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.volx-dw-receive-head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }

/* Earn — share price chart */
.volx-vchart { width: 100%; }

/* Account LP section */
.volx-acct-lp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.volx-acct-lp .volx-info-item { background: var(--bg-base); }

/* home oracle-feed mini rows */
.vh-mini-row.src span:first-child { color: var(--text-muted); }
.vh-mini-row.src span:last-child { color: var(--text-pri); }

/* ============================ Responsive ============================ */
@media (max-width: 1100px) {
  .volx-trade-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "chart" "book" "order" "pos";
  }
  .volx-chart-canvas { min-height: 320px; }
  .volx-chart-panel { height: auto; min-height: 0; }
  .volx-ob-panel { height: auto; min-height: 420px; }
}
@media (max-width: 920px) {
  .volx-stat-cards, .volx-market-tabs { grid-template-columns: repeat(2, 1fr); }
  .volx-info-grid { grid-template-columns: repeat(2, 1fr); }
  .volx-lb-stats { grid-template-columns: 1fr; }
  .volx-vaultbar-stats { grid-template-columns: repeat(2, 1fr); }
  .volx-acct-lp { grid-template-columns: 1fr; }
  .volx-vcomp-row { grid-template-columns: 110px 90px 40px 1fr; gap: 10px; }
}
@media (max-width: 767px) {
  .volx-nav-links { display: none; }
  .volx-hamburger { display: flex; }
  .volx-network { display: none; }
  .volx-main { padding: 18px 14px 32px; }
  .volx-stat-cards, .volx-market-tabs, .volx-dw-grid { grid-template-columns: 1fr; }
  .volx-info-grid { grid-template-columns: 1fr; }
  .volx-vaultbar-stats { grid-template-columns: 1fr; }
  .volx-lp-grid { grid-template-columns: 1fr; }
  .volx-vaultbar-top { flex-direction: column; align-items: flex-start; }
  .volx-vcomp-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .volx-vcomp-bar { grid-column: 1 / -1; }
  .volx-footer { flex-direction: column; align-items: flex-start; }
  .volx-page-head h1 { font-size: 22px; }
}
