:root {
  --bg: #0b0e11;
  --panel: #181a20;
  --panel-2: #1e2329;
  --border: #2b3139;
  --border-2: #363c45;
  --text: #eaecef;
  --muted: #848e9c;
  --faint: #5e6673;
  --accent: #fcd535;
  --accent-2: #f0b90b;
  --accent-ink: #181a20;
  --accent-soft: rgba(252, 213, 53, .12);
  --up: #0ecb81;
  --up-soft: rgba(14, 203, 129, .14);
  --down: #f6465d;
  --down-soft: rgba(246, 70, 93, .14);
  --warn: #f0b90b;
  --warn-soft: rgba(240, 185, 11, .14);
  --radius: 12px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 "IBM Plex Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0 0 1em; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .95em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.up { color: var(--up); }
.down { color: var(--down); }
.small { font-size: 12px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hide-sm { }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }

/* ---------- top bar ---------- */
.demo-strip {
  background: #1e2329;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
  padding: 6px 16px;
  border-bottom: 1px solid var(--border);
}
.demo-strip b { color: #fff; }
.impersonate {
  background: var(--warn-soft);
  color: var(--warn);
  text-align: center;
  padding: 6px 16px;
  font-size: 13px;
}
header.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(24, 26, 32, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.top-inner {
  display: flex; align-items: center; gap: 24px;
  height: 60px; padding: 0 20px; max-width: 1600px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }
.brand small { color: var(--muted); font-weight: 500; font-size: 11px; display: block; margin-top: -3px; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  color: var(--muted); padding: 7px 12px; border-radius: 8px; font-weight: 500;
}
.nav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav a.on { color: var(--text); background: var(--panel-2); }
.top-right { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 9px; cursor: pointer; }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--text); padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px solid var(--border); }
.user-chip:hover { text-decoration: none; border-color: var(--border-2); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px;
}

/* ---------- layout ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; }
.container.wide { max-width: 1600px; padding: 12px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}
.card.flush { padding: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head h3 { margin: 0; font-size: 15px; }
.card-body { padding: 18px; }

.stat .label { color: var(--muted); font-size: 12.5px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 22px; font-weight: 650; font-family: var(--mono); letter-spacing: -.02em; }
.stat .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.stat.hero { background: linear-gradient(135deg, #2a2510 0%, #1e2329 65%); border-color: #4a3f12; }
.stat.hero .value { font-size: 30px; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px; border: 1px solid transparent;
  background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover { text-decoration: none; border-color: var(--border-2); }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn-up { background: var(--up); color: #fff; }
.btn-up:hover { filter: brightness(1.08); }
.btn-down { background: var(--down); color: #fff; }
.btn-down:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 6px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-block { width: 100%; }

label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field { margin-bottom: 14px; }
.field .hint { font-size: 12px; color: var(--faint); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 10px 12px; font: inherit; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-group { display: flex; align-items: stretch; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
.input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-group input { flex: 1; min-width: 0; color: var(--text); padding: 10px 12px; font-size: 14px; border: 0; background: transparent; box-shadow: none !important; font-family: var(--mono); text-align: right; }
.input-group .pre, .input-group .suf { display: flex; align-items: center; padding: 0 12px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }

.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13.5px; border: 1px solid; }
.alert-success { background: var(--up-soft); border-color: rgba(14, 203, 129, .35); color: #6ee7b7; }
.alert-error { background: var(--down-soft); border-color: rgba(246, 70, 93, .35); color: #ff9aa6; }
.alert-info { background: var(--accent-soft); border-color: rgba(252, 213, 53, .35); color: #f8e08e; }
.flash-wrap { position: fixed; top: 74px; right: 16px; z-index: 90; width: min(380px, calc(100% - 32px)); }
.flash-wrap .alert { box-shadow: 0 8px 30px rgba(0, 0, 0, .4); animation: slidein .25s ease; }
@keyframes slidein { from { transform: translateY(-6px); opacity: 0; } }

.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--panel-2); color: var(--muted); text-transform: capitalize; }
.tag.up, .tag.filled, .tag.approved, .tag.active, .tag.buy { background: var(--up-soft); color: var(--up); }
.tag.down, .tag.cancelled, .tag.rejected, .tag.blocked, .tag.sell { background: var(--down-soft); color: var(--down); }
.tag.open, .tag.pending { background: var(--warn-soft); color: var(--warn); }
.tag.completed { background: var(--accent-soft); color: var(--accent); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, .015); }
.table .right, .table th.right { text-align: right; }
.table.compact td, .table.compact th { padding: 7px 12px; }
.empty { padding: 30px 16px; text-align: center; color: var(--muted); }

.coin { display: flex; align-items: center; gap: 10px; }
.coin-icon {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 10.5px; font-weight: 800; color: #fff; letter-spacing: -.03em;
}
.coin b { display: block; font-weight: 600; }
.coin span { color: var(--muted); font-size: 12px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs a, .tabs button {
  background: none; border: 0; color: var(--muted); font: inherit; font-weight: 500;
  padding: 11px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tabs .on { color: var(--text); border-bottom-color: var(--accent); }

.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--border); }

.copy-box { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 6px 6px 6px 12px; }
.copy-box code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; }

dialog.modal {
  background: var(--panel); color: var(--text); border: 1px solid var(--border-2); border-radius: 14px;
  padding: 0; width: min(460px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
dialog.modal::backdrop { background: rgba(0, 0, 0, .6); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 18px; }
.x { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }

footer.foot { border-top: 1px solid var(--border); color: var(--faint); font-size: 12.5px; }
footer.foot .inner { max-width: 1240px; margin: 0 auto; padding: 22px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- auth ---------- */
.auth { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 40px 16px; }
.auth .card { width: 100%; max-width: 420px; padding: 28px; }
.auth h1 { font-size: 22px; }
.demo-creds { background: var(--accent-soft); border: 1px dashed rgba(252, 213, 53, .45); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 18px; color: #f8e08e; }

/* landing styles: see bottom */

/* ---------- trade screen ---------- */
.trade-grid {
  display: grid; gap: 8px;
  grid-template-columns: 290px minmax(0, 1fr) 300px;
  grid-template-areas:
    "head head head"
    "book chart markets"
    "book form trades"
    "orders orders orders";
}
.trade-grid > .card { padding: 0; border-radius: 8px; }
.t-head { grid-area: head; display: flex; align-items: center; gap: 28px; padding: 10px 16px !important; flex-wrap: wrap; }
.t-book { grid-area: book; }
.t-chart { grid-area: chart; display: flex; flex-direction: column; min-height: 470px; }
.t-markets { grid-area: markets; }
.t-form { grid-area: form; }
.t-trades { grid-area: trades; }
.t-orders { grid-area: orders; }
.t-head .pair { display: flex; align-items: center; gap: 10px; }
.t-head .pair h2 { margin: 0; font-size: 18px; }
.t-head .last { font-size: 20px; font-weight: 650; font-family: var(--mono); }
.t-head .kv span { display: block; color: var(--muted); font-size: 11.5px; }
.t-head .kv b { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.panel-title { padding: 10px 14px; font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.chart-tools { display: flex; gap: 2px; padding: 6px 10px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.chart-tools button { background: none; border: 0; color: var(--muted); padding: 4px 9px; border-radius: 5px; font: inherit; font-size: 12.5px; cursor: pointer; }
.chart-tools button.on, .chart-tools button:hover { color: var(--text); background: var(--panel-2); }
#chart { flex: 1; min-height: 420px; position: relative; }
.book-table, .trades-table, .mk-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.book-table th, .trades-table th, .mk-table th { font-family: "IBM Plex Sans", Inter, system-ui, sans-serif; color: var(--faint); font-weight: 500; font-size: 11.5px; text-align: right; padding: 6px 12px; }
.book-table th:first-child, .trades-table th:first-child, .mk-table th:first-child { text-align: left; }
.book-table td, .trades-table td, .mk-table td { padding: 2.5px 12px; text-align: right; position: relative; }
.book-table td:first-child, .trades-table td:first-child, .mk-table td:first-child { text-align: left; }
.book-table tr { position: relative; cursor: pointer; }
.book-table tr:hover td { background: rgba(255, 255, 255, .03); }
.book-table .bar { position: absolute; top: 1px; bottom: 1px; right: 0; opacity: .16; pointer-events: none; }
.book-table .ask .bar { background: var(--down); }
.book-table .bid .bar { background: var(--up); }
.book-mid { padding: 9px 12px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 16px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; }
.mk-table tr { cursor: pointer; }
.mk-table tr:hover td { background: rgba(255, 255, 255, .03); }
.mk-table tr.on td { background: var(--accent-soft); }
.scroll { overflow-y: auto; }
.t-markets .scroll { max-height: 440px; }
.t-trades .scroll { max-height: 330px; }
.side-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 14px 0; }
.side-tabs button { padding: 9px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); font: inherit; font-weight: 650; cursor: pointer; }
.side-tabs button.on.buy { background: var(--up); color: #fff; border-color: var(--up); }
.side-tabs button.on.sell { background: var(--down); color: #fff; border-color: var(--down); }
.type-tabs { display: flex; gap: 14px; padding: 12px 14px 4px; }
.type-tabs button { background: none; border: 0; padding: 2px 0; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; }
.type-tabs button.on { color: var(--text); border-color: var(--accent); }
.order-form { padding: 10px 14px 16px; }
.order-form .field { margin-bottom: 10px; }
.pct { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.pct button { background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); border-radius: 6px; padding: 4px; font: inherit; font-size: 12px; cursor: pointer; }
.pct button:hover { color: var(--text); border-color: var(--border-2); }
.avail { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.avail b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.login-prompt { padding: 28px 16px; text-align: center; color: var(--muted); }
.feed-status { font-size: 11.5px; color: var(--faint); display: inline-flex; align-items: center; gap: 5px; }
.feed-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.feed-status.live::before { background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }
.feed-status.poll::before { background: var(--warn); }
.flash-up { animation: fu .6s; }
.flash-down { animation: fd .6s; }
@keyframes fu { from { background: var(--up-soft); } }
@keyframes fd { from { background: var(--down-soft); } }

/* ---------- team tree ---------- */
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 22px; border-left: 1px dashed var(--border-2); padding-left: 14px; }
.tree li { padding: 4px 0; }
.tree .node { display: inline-flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px 6px 6px; }
.tree .node .meta { font-size: 12px; color: var(--muted); }
.tree details > summary { list-style: none; cursor: pointer; }
.tree details > summary::-webkit-details-marker { display: none; }
.tree details > summary .node::after { content: "+"; color: var(--muted); margin-left: 4px; font-weight: 700; }
.tree details[open] > summary .node::after { content: "–"; }

/* ---------- admin ---------- */
.admin-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--panel); border-right: 1px solid var(--border); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { padding: 0 8px 18px; }
.admin-side nav a { display: flex; justify-content: space-between; align-items: center; color: var(--muted); padding: 9px 12px; border-radius: 8px; font-weight: 500; margin-bottom: 2px; }
.admin-side nav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.admin-side nav a.on { color: var(--text); background: var(--accent-soft); }
.admin-side nav .badge { background: var(--warn); color: #1a1200; border-radius: 99px; font-size: 11px; font-weight: 700; padding: 0 7px; }
.admin-side .sep { height: 1px; background: var(--border); margin: 12px 8px; }
.admin-main { min-width: 0; }
.admin-top { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .trade-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas:
      "head head"
      "chart chart"
      "form book"
      "trades markets"
      "orders orders";
  }
  .t-trades .scroll, .t-markets .scroll { max-height: 360px; }
}
@media (max-width: 960px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, .g-side { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; }
  .hero h1 { font-size: 36px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: var(--panel); border-bottom: 1px solid var(--border); padding: 10px 16px; }
  .nav.open { display: flex; }
  .top-inner { gap: 12px; padding: 0 16px; }
  .top-inner .nav-spacer { flex: 1; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: none; position: fixed; inset: 0 30% 0 0; z-index: 80; height: 100%; }
  .admin-side.open { display: block; }
  .admin-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--panel); position: sticky; top: 0; z-index: 70; }
}
@media (max-width: 720px) {
  .trade-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "chart" "form" "book" "trades" "orders" "markets";
  }
  .t-chart { min-height: 380px; }
  #chart { min-height: 330px; }
  .t-head { gap: 14px; }
  .t-head .kv.hide-sm, .hide-sm { display: none; }
  .g2, .g4 { grid-template-columns: minmax(0, 1fr); }
  .container { padding: 20px 16px 48px; }
  .container.wide { padding: 8px; }
  .hero h1 { font-size: 32px; }
  .section { padding: 44px 16px; }
  .stat .value { font-size: 20px; }
  .user-chip .nm { display: none; }
  .brand small { display: none; }
}

/* ---------- landing ---------- */
.y { color: var(--accent); }
.lp-hero { position: relative; overflow: hidden; }
.lp-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 420px at 78% 18%, rgba(252, 213, 53, .13), transparent 65%),
    radial-gradient(520px 380px at 8% 85%, rgba(14, 203, 129, .07), transparent 60%);
}
.lp-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.lp-hero-inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 72px 20px 64px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.lp-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px var(--up-soft); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(14, 203, 129, 0); } }
.lp-hero h1 { font-size: 58px; line-height: 1.05; letter-spacing: -.035em; font-weight: 700; margin-bottom: 20px; }
.lp-hero .lead { font-size: 18px; color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.lp-signup { display: flex; gap: 10px; max-width: 520px; }
.lp-signup input { flex: 1; min-width: 0; padding: 13px 16px; font-size: 15px; background: var(--panel); }
.lp-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 13.5px; }
.lp-trust span { display: inline-flex; align-items: center; gap: 7px; }
.lp-trust svg { width: 18px; height: 18px; color: var(--accent); }

.lp-board { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: hidden; }
.lp-board-tabs { display: flex; align-items: center; gap: 4px; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.lp-board-tabs button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.lp-board-tabs button:hover { color: var(--text); }
.lp-board-tabs button.on { color: var(--text); background: var(--panel-2); }
.lp-board-table { width: 100%; border-collapse: collapse; }
.lp-board-table td { padding: 12px 16px; border-bottom: 1px solid rgba(43, 49, 57, .6); }
.lp-board-table tr { cursor: pointer; transition: background .15s; }
.lp-board-table tr:hover td { background: var(--panel-2); }
.lp-board-table .coin b { font-size: 15px; }
.lp-px { font-size: 15px; font-weight: 600; color: var(--text); }
.spark-cell { width: 34%; }
.spark { width: 100%; height: 32px; display: block; overflow: visible; }
.spark polyline { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.lp-board-more { display: block; text-align: center; padding: 13px; color: var(--muted); font-weight: 500; }
.lp-board-more:hover { color: var(--accent); text-decoration: none; }

.lp-tape { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--panel); overflow: hidden; white-space: nowrap; }
.lp-tape-track { display: inline-flex; animation: tape 60s linear infinite; }
.lp-tape:hover .lp-tape-track { animation-play-state: paused; }
.lp-tape-item { display: inline-flex; gap: 10px; align-items: center; padding: 12px 26px; color: var(--text); font-size: 13.5px; border-right: 1px solid var(--border); }
.lp-tape-item:hover { text-decoration: none; background: var(--panel-2); }
.lp-tape-item b { font-weight: 600; }
@keyframes tape { to { transform: translateX(-50%); } }

.lp-stats { max-width: 1240px; margin: 0 auto; padding: 48px 20px 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.lp-stats b { display: block; font-size: 38px; font-weight: 700; letter-spacing: -.03em; color: var(--accent); }
.lp-stats span { color: var(--muted); font-size: 14px; }

.lp-section { max-width: 1240px; margin: 0 auto; padding: 80px 20px 0; }
.lp-center { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.lp-eyebrow { display: inline-block; color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.lp-section h2 { font-size: 40px; letter-spacing: -.03em; font-weight: 700; margin-bottom: 14px; }
.lp-sub { color: var(--muted); font-size: 16.5px; max-width: 560px; margin-bottom: 24px; }
.lp-center .lp-sub { margin: 0 auto; }
.lp-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.lp-checks { list-style: none; padding: 0; margin: 0 0 28px; }
.lp-checks li { padding: 7px 0 7px 30px; position: relative; color: var(--text); }
.lp-checks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23fcd535' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

.lp-terminal { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.lp-terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.lp-terminal-bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.lp-terminal-bar b { margin-left: 10px; }
.lp-terminal-bar em { font-style: normal; }
.lp-terminal-bar em.num { margin-left: auto; font-weight: 600; }
#lpChart { height: 330px; }

.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-feature { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 26px; transition: border-color .2s, transform .2s; }
.lp-feature:hover { border-color: rgba(252, 213, 53, .4); transform: translateY(-3px); }
.lp-feature .ico { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.lp-feature h3 { font-size: 18px; margin-bottom: 6px; }
.lp-feature p { color: var(--muted); margin: 0; }

.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.lp-steps > div { position: relative; padding: 28px; border-radius: 14px; background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%); border: 1px solid var(--border); }
.lp-steps i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-style: normal; font-weight: 700; font-size: 18px; margin-bottom: 18px; }
.lp-steps h3 { font-size: 18px; }
.lp-steps p { color: var(--muted); margin: 0; }

.lp-ladder { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.lp-ladder-head, .lp-ladder-row { display: grid; grid-template-columns: 56px 1fr 120px; gap: 14px; align-items: center; }
.lp-ladder-head { color: var(--faint); font-size: 12.5px; padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.lp-ladder-head span:last-child, .lp-ladder-row > span:last-child { text-align: right; }
.lp-ladder-row { padding: 9px 0; }
.lp-ladder-row .lv { font-weight: 700; color: var(--muted); }
.lp-ladder-row .bar { position: relative; height: 30px; background: var(--panel-2); border-radius: 6px; overflow: hidden; }
.lp-ladder-row .bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #f0b90b, #fcd535); border-radius: 6px; }
.lp-ladder-row .bar b { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--accent-ink); font-size: 13px; mix-blend-mode: normal; }
.lp-ladder-row .num { font-size: 16px; font-weight: 600; }

.lp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.lp-plan { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; }
.lp-plan.hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(252, 213, 53, .08); }
.lp-plan .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.lp-plan .apr { font-size: 44px; font-weight: 700; letter-spacing: -.03em; color: var(--up); margin: 6px 0 4px; }
.lp-plan .apr small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 6px; letter-spacing: 0; }
.lp-plan ul { list-style: none; padding: 0; margin: 14px 0 24px; flex: 1; }
.lp-plan li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.lp-plan li b { color: var(--text); font-weight: 600; }

.lp-faq { max-width: 820px; margin: 0 auto; }
.lp-faq details { border-bottom: 1px solid var(--border); }
.lp-faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-size: 17px; font-weight: 600; position: relative; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--muted); }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { color: var(--muted); margin: 0 0 20px; font-size: 15px; }

.lp-final { margin: 90px 20px 70px; max-width: 1200px; margin-left: auto; margin-right: auto; border-radius: 20px; padding: 56px 24px; text-align: center; background: linear-gradient(135deg, #fcd535 0%, #f0b90b 100%); color: var(--accent-ink); position: relative; overflow: hidden; }
.lp-final h2 { font-size: 38px; letter-spacing: -.03em; font-weight: 700; }
.lp-final p { font-size: 16.5px; opacity: .8; margin-bottom: 26px; }
.lp-dark { background: var(--accent-ink); color: #fff; }
.lp-dark:hover { background: #000; color: #fff; }
.lp-outline { background: transparent; border-color: rgba(24, 26, 32, .45); color: var(--accent-ink); }
.lp-outline:hover { border-color: var(--accent-ink); color: var(--accent-ink); }

@media (max-width: 960px) {
  .lp-hero-inner, .lp-split { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero-inner { padding-top: 44px; }
  .lp-hero h1 { font-size: 42px; }
  .lp-features, .lp-steps, .lp-plans { grid-template-columns: 1fr 1fr; }
  .lp-stats { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .lp-section h2 { font-size: 32px; }
}
@media (max-width: 720px) {
  .lp-hero h1 { font-size: 36px; }
  .lp-hero .lead { font-size: 16px; }
  .lp-signup { flex-direction: column; }
  .lp-features, .lp-steps, .lp-plans { grid-template-columns: 1fr; }
  .lp-stats b { font-size: 30px; }
  .lp-section { padding-top: 60px; }
  .lp-section h2 { font-size: 28px; }
  .spark-cell { width: 28%; }
  .lp-board-tabs .feed-status { display: none; }
  .lp-ladder-head, .lp-ladder-row { grid-template-columns: 40px 1fr 90px; }
  .lp-final { margin: 60px 16px 40px; padding: 40px 20px; }
  .lp-final h2 { font-size: 28px; }
  #lpChart { height: 260px; }
}
