/* The partner's app (css/app.css, ported untouched) dressed in Trenox: black, ember, Inter Display, glass with the
   warm inner glow. Its layout (left nav, middle pane, right rail, Live column) becomes: Trenox navbar on top, the
   page hero, then the page with the rail beside it (and the Live column on very wide screens). */
:root {
  --bg: #000; --bg-2: #0c0a0a;
  --glass: linear-gradient(180deg, rgba(248, 248, 248, .065), rgba(248, 248, 248, .025));
  --glass-hi: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
  --inset: rgba(0, 0, 0, .4);
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14); --line-3: rgba(255, 255, 255, .3);
  --edge: inset 0 1px 0 rgba(255, 255, 255, .05);
  --tx: #fff; --tx-2: rgba(255, 255, 255, .7); --tx-3: rgba(255, 255, 255, .45);
  --acc: #ff640d; --acc-2: #ff8a4c; --acc-ink: #fff; --glow: rgba(255, 100, 13, .3);
  --silver: linear-gradient(180deg, #ff640d 0%, #ab2020 100%);
  --up: #3ddc97; --down: #ff5d6c; --gold: #f5b544; --violet: #c4a6ff; --blue: #ffb38a;
  --sans: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.t { font: 400 15px/1.5 var(--sans); }
::selection { background: rgba(255, 100, 13, .35); }
* { scrollbar-color: rgba(255, 255, 255, .18) transparent; }

/* ---- layout ---- */
.app { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; max-width: 1340px; margin: 0 auto; padding: 0 50px; min-height: 0; justify-content: stretch; align-items: start; }
.main { margin: 0; min-height: 60vh; border-radius: 8px; border: 0; background: rgba(248, 248, 248, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); padding-bottom: 40px; overflow: clip; }
.rail { position: sticky; top: 110px; height: auto; max-height: calc(100vh - 124px); padding: 0; overflow: auto; }
.live { display: none; }
body.page-norail .app { grid-template-columns: minmax(0, 1fr); }
body.page-norail .rail { display: none; }
body.page-tpl .app { display: block; max-width: none; padding: 0; }
body.page-tpl .main { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; padding: 0; min-height: 0; }
body.page-landing .tfoot { margin-top: 0; }
@media (min-width: 1700px) {
  .app { grid-template-columns: minmax(0, 1fr) 330px 340px; max-width: 1760px; }
  body.page-norail:not(.page-tpl) .app { grid-template-columns: minmax(0, 1fr) 340px; }
  .live { display: flex; flex-direction: column; position: sticky; top: 110px; height: calc(100vh - 124px); min-height: 0; }
  body.page-tpl .live { display: none; }
}
@media (max-width: 1199px) {
  .app { grid-template-columns: minmax(0, 1fr); padding: 0 32px; }
  .rail { display: none; }
}
@media (max-width: 809px) { .app { padding: 0 12px; } }

/* the page's own top bar: only the back button stays (the title lives in the hero above) */
.main .top { position: static; height: auto; padding: 14px 16px 6px; background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.main .top h2 { display: none; }
.main .top:not(:has(.back)):not(:has(.term-live)) { display: none; }
.embed .main .top h2 { display: block; }
.back { border-radius: 8px; border-color: var(--line-2); background: rgba(255, 255, 255, .04); }
.phero.slim { padding: 0; height: 120px; }
.phero.slim::before { opacity: .55; }
.phero.hidden { display: none; }
.phero.compact h1 { max-width: 900px; }

/* ---- the embed (Watch it live): just the page, no chrome ---- */
.embed .nav, .embed .mnav, .embed .phero, .embed .tfoot, .embed #cta-slot { display: none !important; }
.embed .app { padding: 10px; grid-template-columns: minmax(0, 1fr) 300px; }
.embed body.page-norail .app { grid-template-columns: minmax(0, 1fr); }

/* ---- surfaces ---- */
.card { border-radius: 8px; border: 0; background: rgba(248, 248, 248, .05); box-shadow: inset 4.75px 9.5px 38px rgba(248, 248, 248, .04), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.card h4 { font: 500 16px/1.2 var(--sans); letter-spacing: -.02em; color: #fff; }
.rail .card { padding: 16px; }
.rail .card h4 { margin-bottom: 10px; }
.row { border-radius: 8px; }
.row:hover { background: rgba(255, 255, 255, .05); border-color: transparent; }
.row img { border-radius: 8px; box-shadow: none; }
.row img.round, .round { border-radius: 50% !important; }

/* ---- buttons ---- */
.btn { border-radius: 8px; height: 42px; padding: 0 20px; border: 0; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font: 600 14.5px var(--sans); color: #fff; }
.btn:hover { background: rgba(255, 255, 255, .1); border-color: transparent; }
.btn.primary { color: #fff; border: 0; background: linear-gradient(180deg, #ff640d 0%, #ab2020 100%); box-shadow: 0 8px 24px -10px rgba(255, 90, 20, .6); }
.btn.primary:hover { background: linear-gradient(180deg, #ff7a2e 0%, #c22b22 100%); box-shadow: 0 10px 28px -10px rgba(255, 90, 20, .75); }
.btn-stop, .btn.btn-stop { background: rgba(255, 93, 108, .12); box-shadow: inset 0 0 0 1px rgba(255, 93, 108, .35); color: #ffb0b8; }

/* ---- tabs: the Trenox toggle (a ringed tray, the active one in ember) ---- */
.tabs { margin: 14px 16px 6px; padding: 6px; border-radius: 34px; border: 0; background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); gap: 4px; }
.tabs button { height: 40px; border-radius: 26px; border: 0; font: 500 15px var(--sans); color: var(--tx-2); }
.tabs button:hover { color: #fff; }
.tabs button.on { color: #fff; border: 0; background: linear-gradient(180deg, #ff640d 0%, #ab2020 100%); box-shadow: none; }
.tabs .tn { background: rgba(255, 255, 255, .1); color: #fff; }
.tabs button.on .tn { background: rgba(0, 0, 0, .2); color: #fff; }

/* ---- notices: the pill glow ---- */
.notice { border-radius: 8px; border: 0; background: rgba(0, 0, 0, .06); box-shadow: inset 2px 0 16px rgba(255, 167, 167, .22), inset 10px 0 14px rgba(235, 190, 190, .04); color: var(--tx-2); }
.notice b { color: #fff; }

/* ---- feed posts ---- */
.post { border-bottom-color: rgba(255, 255, 255, .06); }
.post:hover { background: rgba(255, 255, 255, .025); }
.post .nm { font-weight: 600; }
.post-t { font-size: 15px; line-height: 1.55; }
.kind { border-radius: 6px; }
.feed-new, .live-new { background: linear-gradient(180deg, #ff640d 0%, #ab2020 100%) !important; color: #fff !important; border: 0 !important; }

/* ---- stats, KPIs ---- */
.kpis div { border-radius: 8px; border: 0; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.kpis div::before { background: linear-gradient(90deg, transparent, rgba(255, 140, 80, .55), transparent); }
.kpis b { font-weight: 600; }

/* ---- inputs, sheets, toasts ---- */
.input { border-radius: 8px; border: 0; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-family: var(--sans); }
.input:focus { box-shadow: inset 0 0 0 1px rgba(255, 120, 60, .7), 0 0 0 3px rgba(255, 100, 13, .15); }
.sheet { border-radius: 12px; border: 0; background: #0e0b0b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 120px -30px rgba(255, 70, 20, .25); }
.sheet-h h3 { font: 500 22px/1.2 var(--sans); letter-spacing: -.02em; }
.toast { border-radius: 8px; font-family: var(--sans); }
.cta { border-radius: 8px; border: 0; background: radial-gradient(90% 120% at 50% -20%, rgba(255, 100, 13, .22), transparent 60%), rgba(248, 248, 248, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.cta h3 { font: 500 26px/1.2 var(--sans); letter-spacing: -.02em; }

/* ---- agent and coin headers ---- */
.hero h1 { font: 500 30px/1.15 var(--sans); letter-spacing: -.02em; }
.pill-s { border-radius: 20px; }
.tok { border-radius: 8px; }

/* ---- the Live column ---- */
.live-h { border-radius: 8px 8px 0 0; border-color: rgba(255, 255, 255, .08); background: rgba(248, 248, 248, .05); }
.live-list { border-radius: 0 0 8px 8px; border-color: rgba(255, 255, 255, .08); background: rgba(10, 8, 8, .7); }
.pulse { background: var(--ember) !important; }

/* ---- the old brand's decorations: gone ---- */
.decor, #intro, .doc-banner { display: none !important; }

/* the landing keeps its hero clear: live pop-ups show on the app pages */
body.page-landing .nstack { display: none; }
.rail { display: flex; flex-direction: column; gap: 12px; height: calc(100vh - 124px); max-height: none; overflow: hidden; }
.rail > #r-stats { flex: none; }
/* the pad's numbers: two by two, numbers in ember */
#r-stats:not(.has-wallet) { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 0; overflow: hidden; }
#r-stats:not(.has-wallet) > div { padding: 14px 16px; background: rgba(0, 0, 0, .25); text-align: left; }
#r-stats:not(.has-wallet) b { display: block; font: 600 22px/1.2 var(--sans); letter-spacing: -.02em; background: linear-gradient(180deg, #ff640d, #ab2020); -webkit-background-clip: text; background-clip: text; color: transparent; }
#r-stats:not(.has-wallet) b .soli { color: #ff640d; }
#r-stats:not(.has-wallet) small { font: 500 13px var(--sans); color: var(--tx-3); }
body.page-tpl .nstack { display: none; }
.tok.tok-old { background: rgba(255, 255, 255, .06); color: var(--tx-2); }
.tok.tok-old img { display: none; }
/* the wallet button keeps its label at every width (the old sidebar hid it on small screens) */
.nav-wallet #wallet-txt { display: inline-block !important; white-space: nowrap; }
@media (max-width: 420px) { .nav-wallet { padding: 8px 12px; } .nav-wallet #wallet-txt { font-size: 13px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; } }
/* sheets and toasts over the navbar */
.sheet-bg { z-index: 90; }
.toast { z-index: 95; }
.nstack { z-index: 70; }
@media (min-width: 1700px) {
  .app > .main { grid-column: 1; grid-row: 1; }
  .app > .rail { grid-column: 2; grid-row: 1; }
  .app > .live { grid-column: 3; grid-row: 1; }
  body.page-norail:not(.page-tpl) .app > .live { grid-column: 2; }
}
