/* Coin page in the look of the landing (index.html): a black field with faint dots, panels drawn like the landing's
   terminal window (#08080a, #2a2a31 edge, 26px corners), numbers in pills, the stage as a sticker, white pill for the
   active choice. Loaded after crew-terminal.css; layout, sizes and breakpoints stay with the earlier layers. */
html{background:#000}
.terminal-page{background:transparent}
.terminal-page .page-dots{position:fixed;inset:0;z-index:-1;width:100%;height:100%;pointer-events:none;opacity:.3;-webkit-mask-image:linear-gradient(to bottom,#0000 0,#0000 56px,#000 260px);mask-image:linear-gradient(to bottom,#0000 0,#0000 56px,#000 260px)}

/* Header line of the coin: one bar like the landing terminal's, numbers in pills */
.terminal-page .tb-token-view{grid-template-rows:auto minmax(0,1fr);row-gap:12px}
.terminal-page .tb-token-view .tb-token-heading{gap:12px;min-height:62px;margin:0;padding:10px 14px;border:1px solid #2a2a31;border-radius:26px;background:#0c0c0f;box-shadow:0 0 0 1px #ffffff08 inset}
.terminal-page .tb-token-view .tb-back{width:38px;height:38px;border:1px solid #2a2a31;border-radius:50%;background:#141417;color:#fff}
.terminal-page .tb-token-view .tb-back:hover{border-color:#4a4a54;background:#1b1b20}
.terminal-page .tb-token-view .tb-token-identity h1{font-size:22px;letter-spacing:-.04em}
.terminal-page .tb-token-view .tb-token-identity p{color:#9b9ba7}
.terminal-page .tb-token-view .tb-stage-tag{padding:7px 13px;border:0;border-radius:999px;background:#2f6bff;color:#fff;font-size:12px;font-weight:800;transform:rotate(-3deg);box-shadow:0 10px 24px -10px #000,inset 0 -2px 0 #00000026}
.terminal-page .tb-token-view .tb-stage-tag[data-stage=new]{background:#3fc77a;color:#04210f}
.terminal-page .tb-token-view .tb-stage-tag[data-stage=bonding]{background:#ffb21e;color:#1d1300}
.terminal-page .tb-token-view .tb-token-metrics{gap:6px}
@media(min-width:701px){.terminal-page .tb-token-view .tb-token-metrics{flex:1 1 auto;flex-wrap:nowrap;min-width:0;margin-left:6px;overflow-x:auto;scrollbar-width:none}}
.terminal-page .tb-token-view .tb-token-metrics>div{flex:none;flex-direction:row;align-items:center;gap:7px;padding:6px 11px;border:1px solid #1f1f25;border-radius:999px;background:#0a0a0c;white-space:nowrap}
.terminal-page .tb-token-view .tb-token-metrics small{margin:0;color:#8c8c97;font-size:11.5px;font-weight:700;letter-spacing:0;text-transform:none}
.terminal-page .tb-token-view .tb-token-metrics strong,.terminal-page .tb-token-view .tb-token-metrics .tb-change{font-size:13.5px;font-weight:800}
.terminal-page .tb-token-view .ti-copy{white-space:nowrap}
.terminal-page .tb-token-view .tb-token-actions .ti-copy,.terminal-page .tb-token-view .tb-token-actions .ti-socials a,.terminal-page .tb-token-view .tb-star,.terminal-page .tb-token-view .tb-hide{border:1px solid #2a2a31;border-radius:999px;background:#141417;color:#fff}
.terminal-page .tb-token-view .tb-token-actions .ti-copy:hover,.terminal-page .tb-token-view .tb-token-actions .ti-socials a:hover,.terminal-page .tb-token-view .tb-star:hover,.terminal-page .tb-token-view .tb-hide:hover{border-color:#4a4a54;background:#1b1b20}

/* Panels: the landing terminal window */
.terminal-page .tb-token-view .tb-chart-panel,.terminal-page .tb-token-view .tb-market-activity,.terminal-page .tb-token-view .tb-order-panel,.terminal-page .tb-token-view .tb-side-block{border:1px solid #2a2a31;border-radius:26px;background:#08080a;box-shadow:0 40px 100px -50px #000,0 0 0 1px #ffffff08 inset}
.terminal-page .tb-token-view .tb-chart-panel{box-shadow:0 40px 100px -50px #000,0 0 0 1px #ffffff08 inset,0 0 80px -30px #2f6bff24}
.terminal-page .tb-token-view .tb-chart-top,.terminal-page .tb-token-view .tb-activity-tabs{border-bottom:1px solid #1c1c21;background:#0c0c0f}
.terminal-page .tb-token-view .tb-chart-wrap{background:#08080a}

/* Choices: a pill group, the active one white */
.terminal-page .tb-token-view .tb-timeframes{gap:2px;padding:3px;border:1px solid #1f1f25;border-radius:999px;background:#0a0a0c}
.terminal-page .tb-token-view .tb-timeframes button{border-radius:999px;color:#9b9ba7;font-weight:800}
.terminal-page .tb-token-view .tb-timeframes button:hover{background:#ffffff0f;color:#fff}
.terminal-page .tb-token-view .tb-timeframes button[aria-pressed=true]{background:#fff;color:#000}
.terminal-page .tb-token-view .tb-chart-display{border-color:#1f1f25;background:#0a0a0c}
.terminal-page .tb-token-view .tb-chart-display button[aria-pressed=true]{background:#fff;color:#000}
.terminal-page .tb-token-view .tb-activity-tabs button{border-radius:999px;color:#9b9ba7;font-weight:800}
.terminal-page .tb-token-view .tb-activity-tabs button:hover{background:#ffffff0f;color:#fff}
.terminal-page .tb-token-view .tb-activity-tabs button[aria-selected=true]{background:#fff;color:#000}
.terminal-page .tb-token-view .tb-activity-tabs button[aria-selected=true] *{color:inherit}

/* Trades and lists */
.terminal-page .tb-token-view .tb-trades-head{color:#6c6c78}
.terminal-page .tb-token-view .tb-trade-row{border-color:#16161a}
.terminal-page .tb-token-view .tb-trade-row:hover{background:#ffffff06}

/* Ticket */
.terminal-page .tb-token-view .tb-side-toggle{border-color:#1f1f25;background:#0a0a0c}
.terminal-page .tb-token-view .tb-amount{border-color:#2a2a31;border-radius:20px;background:#0a0a0c}
.terminal-page .tb-token-view .tb-order-panel .tb-btn,.terminal-page .tb-token-view .tb-btn{border-radius:999px}
.terminal-page .tb-token-view .tb-order-panel>.tb-btn.primary[disabled],.terminal-page .tb-token-view .tb-order-panel>.tb-btn.primary:disabled{border-color:#1f1f25;background:#0a0a0c;color:#6c6c78}

/* Side blocks; CORE read sits on black like CORE's cell on the landing */
.terminal-page .tb-token-view .tb-side-label{color:#8c8c97;font-weight:800;letter-spacing:.12em}
.terminal-page .tb-token-view .tb-core-read{border-color:#2f6bff40;background:#000;box-shadow:0 0 0 1px #ffffff08 inset,0 0 60px -30px #2f6bff55}
.terminal-page .tb-token-view .tb-core-read .tb-side-label{color:#8fb0ff}
.terminal-page .tb-token-view .tb-core-read p{color:#e6e6ec}

/* Splitter handles keep the black gap between panels */
.terminal-page .tb-token-view [data-split]{background:transparent}

/* Status line */
.terminal-page .tb-status{background:#000000e6;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}

/* Phones: the header wraps instead of widening the page; the chart's top row scrolls sideways */
@media(max-width:700px){
  .terminal-page .tb-token-view .tb-token-heading{padding:10px}
  .terminal-page .tb-token-view .tb-token-actions{flex-wrap:wrap;gap:6px;min-width:0}
  .terminal-page .tb-token-view .tb-token-metrics{flex-wrap:wrap;justify-content:flex-start;overflow:visible}
  .terminal-page .tb-token-view .tb-chart-top{overflow-x:auto;scrollbar-width:none}
}
