:root {
  --bg: #05080d;
  --p: #0b1018;
  --p2: #111826;
  --ln: #1e2a3c;
  --a: #7eb6ff;
  --live: #3ecf8e;
  --plastic: #e0b45c;
  --up: #3ecf8e;
  --dn: #ff5d73;
  --m: #8aa0b8;
  --t: #e8eef6;
}
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; background: var(--bg); color: var(--t); font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 13px; -webkit-font-smoothing: antialiased; }
.btn, .ghost, .tab, .watch-row { transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.btn:hover { transform: translateY(-1px); }
.watch-row:hover { background: var(--p2); }
.gate-card { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
h1,h2 { font-family: Syne, sans-serif; letter-spacing: -0.04em; }
button, input { font: inherit; }
.mono { font-family: "IBM Plex Mono", monospace; }
.k { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--m); }
.up { color: var(--up); } .dn { color: var(--dn); }

.gate { min-height: 100%; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(800px 400px at 20% -10%, rgba(126,182,255,.14), transparent); }
.gate-card { width: min(440px, 100%); background: var(--p); border: 1px solid var(--ln); border-left: 3px solid var(--a); border-radius: 16px; padding: 28px; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg,#7eb6ff,#3d6aa8); color: #061018; display: grid; place-items: center; font-family: Syne, sans-serif; font-weight: 800; }
.btn { background: var(--a); color: #061018; border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 700; cursor: pointer; }
.ghost { background: transparent; color: var(--t); border: 1px solid var(--ln); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
input { width: 100%; background: #05080d; border: 1px solid var(--ln); color: var(--t); border-radius: 10px; padding: 10px 12px; }

.shell { display: grid; grid-template-columns: 250px minmax(0,1fr) 300px; grid-template-rows: 52px 36px minmax(0,1fr) 210px; height: 100vh; }
.top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; background: var(--p); border-bottom: 1px solid var(--ln); }
.banner { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.banner.plastic { background: #2a210e; color: var(--plastic); border-bottom: 1px solid #5a4718; }
.banner.live { background: #0d241c; color: var(--live); border-bottom: 1px solid #1e5a42; }
.cell { background: var(--p); border-right: 1px solid var(--ln); border-bottom: 1px solid var(--ln); min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.head { padding: 8px 12px; border-bottom: 1px solid var(--ln); color: var(--m); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; display: flex; justify-content: space-between; }
.ticker { display: flex; gap: 18px; overflow: hidden; font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--m); }
.ticker b { color: var(--t); margin-right: 6px; }
.row { display: flex; align-items: center; gap: 10px; }
.watch-row { display: flex; justify-content: space-between; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid #1e2a3c55; font-family: "IBM Plex Mono", monospace; font-size: 12px; }
.watch-row.on { background: var(--p2); box-shadow: inset 3px 0 0 var(--a); }
.buy { background: var(--up); color: #04150d; border: 0; border-radius: 10px; padding: 14px; width: 48%; font-weight: 800; cursor: pointer; }
.sell { background: var(--dn); color: #fff; border: 0; border-radius: 10px; padding: 14px; width: 48%; font-weight: 800; cursor: pointer; }
.tab { padding: 6px 10px; cursor: pointer; border: 1px solid var(--ln); border-radius: 999px; font-size: 11px; }
.tab.on { background: var(--a); color: #061018; border-color: var(--a); }
.tab[disabled] { opacity: 0.35; cursor: not-allowed; }
table { width: 100%; border-collapse: collapse; font-size: 12px; font-family: "IBM Plex Mono", monospace; }
th,td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--ln); }
th { color: var(--m); font-weight: 500; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.depth { font-family: "IBM Plex Mono", monospace; font-size: 11px; padding: 8px 12px; overflow: auto; }
.drow { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
.dbar { height: 7px; border-radius: 2px; }
.dbar.a { background: linear-gradient(90deg, transparent, rgba(62,207,142,.5)); margin-left: auto; }
.dbar.b { background: linear-gradient(90deg, rgba(255,93,115,.5), transparent); }
.msg { font-size: 12px; margin-top: 8px; min-height: 18px; }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; min-height: 100vh; }
}
