/* =============================================================================
   gterm.css — the gifts.wtf TRADING TERMINAL surface.

   Token-based, exactly like market.css: every colour is one of the site's CSS
   custom properties (theme.css / market.css redefine their VALUES per mode, so
   this sheet re-skins for dark / light / hashtag for free). No hardcoded colour
   except a couple of accent-tinted rgba() washes, matching market.css's own.

   Layout — a real terminal: a fixed collection rail (left), the floor chart +
   sniper (centre, the main event), the order book + sales tape (right), and a
   full-width trade dock pinned along the bottom. Under 900px it stacks to one
   column, same DOM.

   All numbers use .num (tabular-nums, set globally in index.html). Motion is
   decoration only — §MOTION kills every transition/animation under
   prefers-reduced-motion.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   0 · SHELL
   ------------------------------------------------------------------------ */
.gt-root {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr) 304px;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "rail center right"
    "dock dock  dock";
  gap: 12px;
  min-height: min(80vh, 780px);
  padding: 12px clamp(12px, 1.6vw, 28px) 16px;
  color: var(--ink-mid);
  font: 450 13px/1.45 var(--font-ui, ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif);
}

.gt-rail   { grid-area: rail; }
.gt-center { grid-area: center; }
.gt-right  { grid-area: right; }
.gt-dock   { grid-area: dock; }

/* the shared panel look */
.gt-rail, .gt-center, .gt-right {
  background: var(--panel);
  border: 1px solid var(--hairline-2);
  border-radius: 12px;
  min-width: 0;
  min-height: 0;
}

.gt-wait { color: var(--ink-faint); font-size: 11px; padding: 10px 12px; }
.is-miss { color: var(--ink-faint); }

/* ---------------------------------------------------------------------------
   1 · AVATAR — monogram-under-art, never a blank slot.
   ------------------------------------------------------------------------ */
.gt-av {
  position: relative; flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: 7px; overflow: hidden;
  background: var(--well);
  display: inline-flex; align-items: center; justify-content: center;
}
.gt-av.xs { width: 22px; height: 22px; border-radius: 6px; }
.gt-av.sm { width: 26px; height: 26px; }
.gt-av.md { width: 40px; height: 40px; border-radius: 9px; }
.gt-av-mono {
  color: var(--ink-lo); font-weight: 800; font-size: 12px; letter-spacing: -.02em;
}
.gt-av.md .gt-av-mono { font-size: 17px; }
.gt-av img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ---------------------------------------------------------------------------
   2 · LEFT RAIL — search, collection list, identity strip.
   ------------------------------------------------------------------------ */
.gt-rail { display: flex; flex-direction: column; padding: 10px; gap: 10px; }

.gt-search {
  width: 100%;
  background: var(--raised);
  border: 1px solid var(--hairline-2);
  border-radius: 9px;
  padding: 8px 11px;
  color: var(--ink-hi);
}
.gt-search::placeholder { color: var(--ink-faint); }
.gt-search:focus { border-color: var(--p500); box-shadow: 0 0 0 3px var(--ring); outline: none; }

.gt-collist {
  display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto;
  max-height: 40vh; min-height: 120px;
  scrollbar-width: thin;
}
.gt-coll {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 6px 7px; border-radius: 8px;
  color: var(--ink-mid); text-align: left;
}
.gt-coll:hover { background: var(--hover); }
.gt-coll.is-on { background: var(--tint); color: var(--ink-hi); }
.gt-coll-mid { flex: 1 1 auto; min-width: 0; }
.gt-coll-name {
  color: var(--ink-hi); font-weight: 600; font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gt-coll-sub {
  display: flex; align-items: baseline; gap: 5px;
  color: var(--ink-lo); font-size: 10.5px; margin-top: 1px;
}
.gt-coll-dot { color: var(--ink-faint); }

/* identity strip */
.gt-identity {
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
  display: flex; flex-direction: column; gap: 10px;
}
.gt-id-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gt-id-headtxt { min-width: 0; }
.gt-id-name {
  color: var(--ink-hi); font-weight: 700; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gt-id-addr { color: var(--ink-faint); font-size: 10px; font-family: var(--font-num); }

.gt-id-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gt-stat {
  background: var(--well);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 7px 9px;
}
.gt-stat-v { color: var(--ink-hi); font-weight: 700; font-size: 14px; line-height: 1.1; }
.gt-stat-v.is-miss { color: var(--ink-faint); font-weight: 400; }
.gt-stat-u { color: var(--ink-lo); font-size: 9px; font-weight: 600; margin-left: 3px; letter-spacing: .04em; }
.gt-stat-l {
  color: var(--ink-lo); font-size: 9.5px; margin-top: 2px;
  text-transform: uppercase; letter-spacing: .07em;
}

/* popularity = sales velocity */
.gt-pop {
  background: var(--well); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 8px 9px;
}
.gt-pop-top { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.gt-pop-lab {
  color: var(--ink-lo); font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em;
  flex: 1 1 auto;
}
.gt-pop-val { font-weight: 800; font-size: 13px; }
.gt-pop-val.is-up { color: var(--gain); }
.gt-pop-val.is-dn { color: var(--loss); }
.gt-pop-note { color: var(--ink-faint); font-size: 9.5px; }
.gt-pop-bar { height: 5px; border-radius: 3px; background: var(--raised); overflow: hidden; }
.gt-pop-fill { height: 100%; background: var(--gain); border-radius: 3px; transition: width .4s ease; }
.gt-pop-fill.is-dn { background: var(--loss); }

/* ---------------------------------------------------------------------------
   3 · CENTER — chart head, canvas, note, sniper.
   ------------------------------------------------------------------------ */
.gt-center { display: flex; flex-direction: column; padding: 10px 12px 12px; gap: 10px; }

.gt-chead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gt-chead-l { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.gt-chart-name {
  color: var(--ink-hi); font-weight: 800; font-size: 16px; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw;
}
.gt-basis {
  flex: 0 0 auto;
  color: var(--p600); font-size: 9px; font-weight: 800; letter-spacing: .1em;
  border: 1px solid var(--p500); border-radius: 5px; padding: 1px 6px;
}
.gt-chead-r { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.gt-seg { display: flex; border: 1px solid var(--hairline-2); border-radius: 8px; overflow: hidden; }
.gt-seg-b {
  padding: 5px 9px; color: var(--ink-lo); font-size: 11px; font-weight: 600;
  border-right: 1px solid var(--hairline);
}
.gt-seg-b:last-child { border-right: 0; }
.gt-seg-b:hover { color: var(--ink-hi); background: var(--hover); }
.gt-seg-b[aria-pressed="true"] { background: var(--hover); color: var(--ink-hi); }
.gt-tf .gt-seg-b { font-family: var(--font-num); }

.gt-chartwrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 260px;
  background: var(--well);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
}
.gt-canvas { display: block; width: 100%; height: 100%; }

.gt-chart-note {
  display: flex; align-items: center; gap: 7px;
  color: var(--ink-faint); font-size: 10.5px;
}
.gt-dot-sweep {
  width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto;
  background: var(--sweep); box-shadow: 0 0 7px var(--sweep);
}

/* ---- SNIPER — the headline feature, a distinct accent-edged panel ---- */
.gt-sniper {
  border: 1px solid var(--p500);
  border-radius: 11px;
  background:
    radial-gradient(120% 120% at 100% 0%, var(--tint-weak), transparent 55%),
    var(--panel);
  box-shadow: 0 0 0 1px var(--tint) inset;
  padding: 11px 12px 12px;
}
.gt-sniper-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.gt-sniper-ic {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--p300); color: var(--on-accent);
  font-size: 16px; line-height: 1;
}
.gt-sniper-htxt { min-width: 0; }
.gt-sniper-title { color: var(--ink-hi); font-weight: 900; font-size: 13px; letter-spacing: .16em; }
.gt-sniper-sub { color: var(--ink-lo); font-size: 11px; line-height: 1.4; margin-top: 2px; }

.gt-sniper-rules {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; margin-bottom: 10px;
}
.gt-sniper-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gt-sniper-lab {
  color: var(--ink-lo); font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em;
}
.gt-sniper-in {
  width: 100%;
  background: var(--raised); border: 1px solid var(--hairline-2);
  border-radius: 7px; padding: 6px 8px; color: var(--ink-hi);
}
.gt-sniper-in:focus { border-color: var(--p500); box-shadow: 0 0 0 3px var(--ring); outline: none; }
.gt-sniper-coll {
  padding: 6px 8px; border: 1px dashed var(--hairline-2); border-radius: 7px;
  color: var(--ink-mid); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.gt-sniper-arm {
  width: 100%;
  background: var(--p300); color: var(--on-accent);
  border: 1px solid var(--p500); border-radius: 8px;
  padding: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  transition: background .16s ease, transform .12s ease;
}
.gt-sniper-arm:hover { background: var(--p400); }
.gt-sniper-arm:active { transform: translateY(1px); }

.gt-sniper-res { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; max-height: 210px; overflow-y: auto; }
.gt-snp-cap {
  color: var(--p600); font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 2px 2px 4px;
}
.gt-snp-t {
  display: flex; align-items: center; gap: 8px;
  background: var(--well); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 5px 8px;
}
.gt-snp-t-mid { flex: 1 1 auto; min-width: 0; }
.gt-snp-t-name {
  color: var(--ink-hi); font-weight: 600; font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gt-snp-t-rare { color: var(--p600); font-size: 9.5px; }
.gt-snp-t-price { color: var(--ink-hi); font-weight: 700; font-size: 12.5px; display: flex; align-items: baseline; gap: 3px; }
.gt-snp-t-price.is-miss { color: var(--ink-faint); font-weight: 400; }

/* ---- SNIPER HEADLINE BANNER — the advertised CTA at the top of centre ---- */
.gt-snipe-banner {
  display: flex; align-items: center; gap: 12px; width: 100%;
  text-align: left; cursor: pointer;
  border: 1px solid var(--p500); border-radius: 11px;
  padding: 11px 14px;
  background:
    radial-gradient(150% 180% at 0% 0%, var(--tint), transparent 60%),
    linear-gradient(90deg, var(--tint-weak), transparent 72%),
    var(--panel);
  box-shadow: 0 0 0 1px var(--tint) inset;
  transition: transform .14s ease, box-shadow .16s ease, border-color .16s ease;
}
.gt-snipe-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -14px var(--p500), 0 0 0 1px var(--tint) inset;
}
.gt-snipe-banner:focus-visible { outline: none; border-color: var(--p400); box-shadow: 0 0 0 3px var(--ring); }
.gt-snipe-banner-ic {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--p300); color: var(--on-accent); font-size: 18px; line-height: 1;
  animation: gt-snipe-glow 2.6s ease-in-out infinite;
}
.gt-snipe-banner-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.gt-snipe-banner-h { color: var(--ink-hi); font-weight: 900; font-size: 13px; letter-spacing: .18em; }
.gt-snipe-banner-sub { color: var(--ink-lo); font-size: 11px; line-height: 1.4; }
.gt-snipe-banner-cta {
  flex: 0 0 auto; color: var(--on-accent); background: var(--p300);
  border: 1px solid var(--p500); border-radius: 8px;
  padding: 7px 12px; font-weight: 800; font-size: 12px; letter-spacing: .04em;
  white-space: nowrap; transition: background .16s ease;
}
.gt-snipe-banner:hover .gt-snipe-banner-cta { background: var(--p400); }
@keyframes gt-snipe-glow {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 14px 0 var(--p500); }
}

/* pulse ring applied when a CTA routes the eye to a panel (sniper / sweep) */
.gt-panel-pulse { animation: gt-panel-pulse 1.2s ease-out 1; }
@keyframes gt-panel-pulse {
  0% { box-shadow: 0 0 0 0 var(--ring); }
  30% { box-shadow: 0 0 0 4px var(--ring); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------------------------------------------------------------------------
   4 · RIGHT — order book + sales tape.
   ------------------------------------------------------------------------ */
.gt-right { display: flex; flex-direction: column; padding: 10px; gap: 8px; min-height: 0; }

.gt-bookhead { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.gt-bs {
  background: var(--well); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 6px 8px; text-align: center;
}
.gt-bs-v { font-weight: 800; font-size: 13px; line-height: 1.15; color: var(--ink-hi); }
.gt-bs-ask .gt-bs-v { color: var(--loss); }
.gt-bs-bid .gt-bs-v { color: var(--gain); }
.gt-bs-pct { display: block; color: var(--ink-lo); font-size: 9.5px; font-weight: 600; margin-top: 1px; }
.gt-bs-l { color: var(--ink-lo); font-size: 8.5px; text-transform: uppercase; letter-spacing: .07em; margin-top: 2px; }

.gt-book {
  display: flex; flex-direction: column; gap: 1px;
  overflow-y: auto; min-height: 120px; max-height: 42vh;
  scrollbar-width: thin;
}
.gt-brow {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px; border-radius: 5px;
  font-size: 11.5px;
}
.gt-brow:hover { background: var(--hover); }
.gt-depth {
  position: absolute; top: 0; bottom: 0; right: 0;
  border-radius: 5px;
  pointer-events: none;
  transition: width .3s ease;
}
.gt-depth-ask { background: var(--loss); opacity: .13; }
.gt-depth-bid { background: var(--gain); opacity: .15; }
.gt-brow-price { position: relative; flex: 0 0 auto; width: 66px; font-weight: 700; }
.gt-brow-ask .gt-brow-price { color: var(--loss); }
.gt-brow-bid .gt-brow-price { color: var(--gain); }
.gt-brow-mid {
  position: relative; flex: 1 1 auto; min-width: 0;
  color: var(--ink-mid);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: flex; align-items: baseline; gap: 6px;
}
.gt-brow-rare { color: var(--p600); font-size: 9px; flex: 0 0 auto; }
.gt-brow-sz { position: relative; flex: 0 0 auto; color: var(--ink-lo); font-size: 10.5px; }

.gt-book-mid {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 8px; margin: 2px 0;
  border-top: 1px solid var(--hairline-2); border-bottom: 1px solid var(--hairline-2);
}
.gt-book-mid-lab { color: var(--ink-faint); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.gt-book-mid-v { color: var(--ink-mid); font-size: 11px; font-weight: 700; }
.gt-book-empty { color: var(--ink-faint); font-size: 11px; padding: 8px; text-align: center; }
.gt-book-bidnote { color: var(--ink-faint); font-size: 9.5px; padding: 2px 8px 0; }

/* The Tape */
.gt-tapehead {
  display: flex; align-items: baseline; gap: 8px;
  padding-top: 6px; border-top: 1px solid var(--hairline);
}
.gt-tape-tag { color: var(--gain); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.gt-tape-sub { color: var(--ink-faint); font-size: 10px; }
.gt-tape {
  display: flex; flex-direction: column; gap: 1px;
  overflow-y: auto; min-height: 90px; max-height: 34vh;
  scrollbar-width: thin;
}
.gt-trow {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 6px; border-radius: 6px;
  color: inherit; text-decoration: none;
}
.gt-trow:hover { background: var(--hover); }
.gt-trow.is-mine { box-shadow: inset 2px 0 0 var(--p400); }
.gt-trow-mid { flex: 1 1 auto; min-width: 0; }
.gt-trow-name {
  color: var(--ink-hi); font-weight: 600; font-size: 11.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gt-trow-time { color: var(--ink-faint); font-size: 9.5px; }
.gt-trow-price { color: var(--ink-hi); font-weight: 700; font-size: 12px; display: flex; align-items: baseline; gap: 3px; }
.gt-trow-price.is-miss { color: var(--ink-faint); font-weight: 400; }
.gt-trow-cur { color: var(--ink-lo); font-size: 8.5px; letter-spacing: .04em; }
.gt-trow-story { min-height: 48px; border: 1px solid transparent; }
.gt-trow-story:hover { border-color: var(--hairline-2); }
.gt-trow-top { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; }
.gt-trow-kind {
  color: var(--p700); font-size: 8.5px; font-weight: 850;
  letter-spacing: .09em; white-space: nowrap;
}
.gt-trow-story .gt-trow-name {
  white-space: normal; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-height: 1.25;
}
.gt-trow-open { flex: 0 0 auto; color: var(--ink-lo); font-size: 12px; }

/* ---------------------------------------------------------------------------
   4b · SWEEP — buy the N cheapest listings in one action (Gifts lane).
   ------------------------------------------------------------------------ */
.gt-sweep {
  border: 1px solid var(--p500);
  border-radius: 10px;
  background:
    radial-gradient(120% 120% at 100% 0%, var(--tint-weak), transparent 60%),
    var(--well);
  padding: 10px 11px 11px;
  display: flex; flex-direction: column; gap: 8px;
}
.gt-sweep-head { display: flex; align-items: center; gap: 8px; }
.gt-sweep-title { color: var(--ink-hi); font-weight: 900; font-size: 12px; letter-spacing: .16em; }
.gt-sweep-badge {
  margin-left: auto;
  color: var(--sweep); font-size: 8.5px; font-weight: 800; letter-spacing: .1em;
  border: 1px solid var(--sweep); border-radius: 5px; padding: 1px 6px;
}
.gt-sweep-sub { color: var(--ink-lo); font-size: 10.5px; line-height: 1.35; }

.gt-sweep-inputs { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; }
.gt-sweep-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gt-sweep-lab {
  color: var(--ink-lo); font-size: 9px; text-transform: uppercase; letter-spacing: .06em;
}
.gt-sweep-in {
  width: 100%;
  background: var(--raised); border: 1px solid var(--hairline-2);
  border-radius: 7px; padding: 6px 8px; color: var(--ink-hi); font-size: 12px;
}
.gt-sweep-in::placeholder { color: var(--ink-faint); }
.gt-sweep-in:focus { border-color: var(--p500); box-shadow: 0 0 0 3px var(--ring); outline: none; }
.gt-sweep-wallet .gt-sweep-in { font-family: var(--font-num); font-size: 11px; }

.gt-sweep-btn {
  width: 100%;
  background: var(--p300); color: var(--on-accent);
  border: 1px solid var(--p500); border-radius: 8px;
  padding: 9px; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .16s ease, transform .12s ease, filter .16s ease;
}
.gt-sweep-btn:hover { background: var(--p400); }
.gt-sweep-btn:active { transform: translateY(1px); }
.gt-sweep-btn:disabled { filter: grayscale(.4) brightness(.8); cursor: not-allowed; }
.gt-sweep-btn.is-pending { cursor: progress; }
.gt-sweep-spin {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--on-accent); border-top-color: transparent;
  display: inline-block; animation: gt-sweep-spin .7s linear infinite;
}
@keyframes gt-sweep-spin { to { transform: rotate(360deg); } }

.gt-sweep-res { display: flex; flex-direction: column; gap: 5px; }
.gt-sweep-note { color: var(--ink-lo); font-size: 10.5px; line-height: 1.4; }
.gt-sweep-note.is-warn { color: var(--sweep); }

/* confirm-gate note inside the sweep dialog */
.gt-sweep-confirm-note {
  color: var(--ink-mid); font-size: 12px; line-height: 1.45;
  padding: 2px 2px 12px;
}

.gt-sweep-ok { display: flex; flex-direction: column; gap: 1px; padding-bottom: 2px; }
.gt-sweep-ok-h { color: var(--gain); font-weight: 800; font-size: 12.5px; }
.gt-sweep-ok-sub { color: var(--ink-lo); font-size: 10px; }
.gt-sweep-fee { color: var(--ink-faint); font-size: 9.5px; letter-spacing: .02em; }

.gt-sweep-deals {
  display: flex; flex-direction: column; gap: 2px;
  max-height: 150px; overflow-y: auto; scrollbar-width: thin;
  margin-top: 2px;
}
.gt-sweep-deal {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 3px 6px; border-radius: 6px; background: var(--panel);
}
.gt-sweep-deal-name {
  color: var(--ink-mid); font-size: 11px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gt-sweep-deal-price { color: var(--ink-hi); font-weight: 700; font-size: 11.5px; flex: 0 0 auto; display: flex; align-items: baseline; gap: 3px; }
.gt-sweep-deal-price.is-miss { color: var(--ink-faint); font-weight: 400; }
.gt-sweep-deal-cur { color: var(--ink-lo); font-size: 8px; letter-spacing: .04em; }

/* ---------------------------------------------------------------------------
   5 · DOCK — trade actions + safety ladder.
   ------------------------------------------------------------------------ */
.gt-dock {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--hairline-2);
  border-radius: 12px;
  padding: 10px 14px;
}
.gt-ladder { display: flex; align-items: center; gap: 10px; flex: 1 1 240px; min-width: 0; }
.gt-ladder-ic {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--well); border: 1px solid var(--hairline-2);
  font-size: 17px; line-height: 1;
}
.gt-ladder-title { color: var(--ink-hi); font-weight: 800; font-size: 12px; letter-spacing: .04em; }
.gt-ladder-state { color: var(--ink-lo); font-size: 11px; margin-top: 1px; }
.gt-lad-safe { color: var(--gain); font-weight: 800; }
.gt-lad-hot { color: var(--sweep); font-weight: 800; }

.gt-actions { display: flex; align-items: stretch; gap: 12px; flex: 0 0 auto; }
.gt-side { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
.gt-tradebtn {
  min-width: 118px;
  border-radius: 9px; padding: 11px 20px;
  font-weight: 800; font-size: 14px; letter-spacing: .04em;
  color: var(--on-accent);
  transition: transform .12s ease, filter .16s ease, box-shadow .16s ease;
}
.gt-tradebtn:active { transform: translateY(1px); }
.gt-tradebtn-buy { background: var(--gain); box-shadow: 0 6px 18px -8px var(--gain); }
.gt-tradebtn-sell { background: var(--loss); box-shadow: 0 6px 18px -8px var(--loss); }
.gt-tradebtn:hover { filter: brightness(1.06); }

/* per-side one-click ARM switch */
.gt-switch-wrap { display: flex; align-items: center; justify-content: center; gap: 6px; }
.gt-switch-lab { color: var(--ink-faint); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.gt-switch {
  position: relative; flex: 0 0 auto;
  width: 34px; height: 18px; border-radius: 999px;
  background: var(--raised); border: 1px solid var(--hairline-2);
  transition: background .16s ease, border-color .16s ease;
}
.gt-switch-knob {
  position: absolute; top: 1px; left: 1px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink-lo);
  transition: transform .18s ease, background .16s ease;
}
.gt-switch.is-on { background: var(--sweep); border-color: var(--sweep); }
.gt-switch.is-on .gt-switch-knob { transform: translateX(16px); background: var(--on-accent); }

/* ---------------------------------------------------------------------------
   6 · TOAST
   ------------------------------------------------------------------------ */
.gt-toast-host {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 1200;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.gt-toast {
  background: var(--raised);
  border: 1px solid var(--p500);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--ink-hi); font-weight: 600; font-size: 13px;
  box-shadow: 0 18px 48px var(--shadow-card, rgba(0,0,0,.45));
  opacity: 0; transform: translateY(8px);
  transition: opacity .24s ease, transform .24s ease;
}
.gt-toast.is-in { opacity: 1; transform: translateY(0); }
.gt-toast.is-ok { border-color: var(--gain); }
.gt-toast.is-warn { border-color: var(--sweep); }

/* ---------------------------------------------------------------------------
   7 · OVERLAY — confirm dialog + one-click warning.
   ------------------------------------------------------------------------ */
.gt-overlay {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(4, 8, 14, .62);
}
.gt-dialog {
  width: min(400px, calc(100vw - 32px));
  background: var(--panel);
  border: 1px solid var(--hairline-2);
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.gt-dialog-h { color: var(--ink-hi); font-weight: 800; font-size: 16px; margin-bottom: 12px; }
.gt-dialog-body {
  background: var(--well); border: 1px solid var(--hairline);
  border-radius: 9px; padding: 8px 10px; margin-bottom: 12px;
}
.gt-dialog-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 3px 0;
}
.gt-dialog-k { color: var(--ink-lo); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.gt-dialog-v { color: var(--ink-hi); font-weight: 700; font-size: 13px; }

.gt-dialog-chk {
  display: flex; align-items: center; gap: 9px;
  color: var(--ink-mid); font-size: 12.5px; cursor: pointer;
  padding: 6px 2px 12px;
}
.gt-dialog-chk input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--sweep); }

.gt-dialog-acts { display: flex; gap: 8px; justify-content: flex-end; }
.gt-btn {
  border-radius: 9px; padding: 9px 16px;
  font-weight: 700; font-size: 13px;
  border: 1px solid var(--hairline-2); color: var(--ink-hi);
  transition: filter .16s ease, border-color .16s ease, background .16s ease;
}
.gt-btn:hover { border-color: var(--p500); }
.gt-btn-ghost { background: var(--raised); color: var(--ink-mid); }
.gt-btn-buy { background: var(--gain); color: var(--on-accent); border-color: var(--gain); }
.gt-btn-sell { background: var(--loss); color: var(--on-accent); border-color: var(--loss); }
.gt-btn-buy:hover, .gt-btn-sell:hover, .gt-btn-warn:hover { filter: brightness(1.06); }

/* the warning gate reads hotter than the confirm behind it */
.gt-dialog-warn { border-color: var(--sweep); box-shadow: 0 0 0 1px var(--sweep) inset, 0 30px 80px rgba(0,0,0,.6); }
.gt-warn-h { color: var(--sweep); }
.gt-warn-body { color: var(--ink-mid); font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.gt-btn-warn { background: var(--sweep); color: var(--on-accent); border-color: var(--sweep); }

/* ===========================================================================
   9 · NFT LANES — lane switcher + Solana/Ethereum collection surface.
   A parallel root; every class here is .gt-nft-* / .gt-lane-* scoped so it
   never collides with the gift terminal above.
   ======================================================================== */
.gt-shell { display: flex; flex-direction: column; gap: 10px; }

/* ---- lane switcher: [ Gifts ] [ NFTs ] ---- */
.gt-lanes {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 4px clamp(12px, 1.6vw, 28px) 0;
}
.gt-lane-seg {
  display: inline-flex; padding: 3px;
  background: var(--well); border: 1px solid var(--hairline-2); border-radius: 11px;
}
.gt-lane-b {
  padding: 7px 18px; border-radius: 8px;
  color: var(--ink-lo); font-weight: 800; font-size: 13px; letter-spacing: .02em;
  transition: color .16s ease, background .16s ease;
}
.gt-lane-b:hover { color: var(--ink-hi); }
.gt-lane-b.is-on {
  background: var(--p300); color: var(--on-accent);
  box-shadow: 0 4px 14px -6px var(--p500);
}
.gt-lane-tag { color: var(--ink-faint); font-size: 11px; letter-spacing: .02em; }

/* ---- NORMIE launcher pill (far right of the lane bar) ---- */
.gt-simple-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 10px;
  border: 1px solid var(--p500); background: var(--tint-weak); color: var(--ink-hi);
  font-weight: 800; font-size: 12px; letter-spacing: .02em;
  transition: background .16s ease, transform .12s ease;
}
.gt-simple-btn:hover { background: var(--tint); transform: translateY(-1px); }
.gt-simple-btn:active { transform: translateY(0); }
.gt-simple-btn-ic { color: var(--p600); font-size: 13px; line-height: 1; }

/* ---- NORMIE simple-actions popup ---- */
.gt-normie { width: min(440px, calc(100vw - 32px)); }
.gt-normie-intro { color: var(--ink-lo); font-size: 12px; margin: -6px 0 12px; }
.gt-normie-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.gt-normie-act {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  text-align: left; cursor: pointer; padding: 12px; border-radius: 11px;
  background: var(--well); border: 1px solid var(--hairline-2); color: var(--ink-mid);
  transition: border-color .16s ease, background .16s ease, transform .12s ease;
}
.gt-normie-act:hover { border-color: var(--p500); background: var(--hover); transform: translateY(-1px); }
.gt-normie-act:focus-visible { outline: none; border-color: var(--p400); box-shadow: 0 0 0 3px var(--ring); }
.gt-normie-act-lab { color: var(--ink-hi); font-weight: 900; font-size: 15px; letter-spacing: .08em; }
.gt-normie-act-help { color: var(--ink-lo); font-size: 11px; line-height: 1.35; }
.gt-normie-buy   .gt-normie-act-lab { color: var(--gain); }
.gt-normie-sell  .gt-normie-act-lab { color: var(--loss); }
.gt-normie-sweep .gt-normie-act-lab { color: var(--sweep); }
.gt-normie-snipe .gt-normie-act-lab { color: var(--p600); }
@media (max-width: 380px) {
  .gt-normie-grid { grid-template-columns: 1fr; }
}

/* ---- NFT root layout ---- */
.gt-nft-root {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 12px;
  min-height: min(80vh, 780px);
  padding: 0 clamp(12px, 1.6vw, 28px) 16px;
  color: var(--ink-mid);
  font: 450 13px/1.45 var(--font-ui, ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif);
}
.gt-nft-rail, .gt-nft-main {
  background: var(--panel); border: 1px solid var(--hairline-2);
  border-radius: 12px; min-width: 0; min-height: 0;
}

/* ---- rail: chain toggle + search + list ---- */
.gt-nft-rail { display: flex; flex-direction: column; padding: 10px; gap: 10px; }
.gt-nft-chains {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 3px; background: var(--well); border: 1px solid var(--hairline-2); border-radius: 10px;
}
.gt-nft-chain-b {
  padding: 7px 8px; border-radius: 7px; text-align: center;
  color: var(--ink-lo); font-weight: 700; font-size: 12px;
  transition: color .16s ease, background .16s ease;
}
.gt-nft-chain-b:hover { color: var(--ink-hi); }
.gt-nft-chain-b.is-on { background: var(--tint); color: var(--ink-hi); box-shadow: 0 0 0 1px var(--p500) inset; }

.gt-nft-list {
  display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto; min-height: 200px; max-height: 62vh;
  scrollbar-width: thin;
}
.gt-nft-row {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 6px 7px; border-radius: 8px; text-align: left; color: var(--ink-mid);
}
.gt-nft-row:hover { background: var(--hover); }
.gt-nft-row.is-on { background: var(--tint); color: var(--ink-hi); }
.gt-nft-rank {
  flex: 0 0 auto; width: 26px; color: var(--ink-faint);
  font-family: var(--font-num); font-size: 10px; font-weight: 700; text-align: right;
}
.gt-nft-row-mid { flex: 1 1 auto; min-width: 0; }
.gt-nft-row-name {
  color: var(--ink-hi); font-weight: 600; font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gt-nft-row-sub { color: var(--ink-lo); font-size: 10.5px; margin-top: 1px; }

/* ---- risk pill ---- */
.gt-risk {
  flex: 0 0 auto;
  font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; border: 1px solid var(--hairline-2);
  color: var(--ink-lo);
}
.gt-risk.is-low  { color: var(--gain); border-color: var(--gain); }
.gt-risk.is-med  { color: var(--sweep); border-color: var(--sweep); }
.gt-risk.is-high { color: var(--loss); border-color: var(--loss); }
.gt-risk.is-unknown { color: var(--ink-faint); border-color: var(--hairline-2); }

/* ---- main detail panel ---- */
.gt-nft-main {
  display: flex; flex-direction: column; gap: 14px;
  padding: 14px 16px 16px; overflow-y: auto; max-height: min(82vh, 800px);
  scrollbar-width: thin;
}
.gt-nft-empty {
  margin: auto; text-align: center; color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px;
}
.gt-nft-empty-ic { font-size: 40px; opacity: .5; }
.gt-nft-empty-txt { font-size: 13px; }

.gt-nft-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gt-nft-head-txt { flex: 1 1 auto; min-width: 0; }
.gt-nft-head-name {
  display: flex; align-items: baseline; gap: 8px; min-width: 0;
  color: var(--ink-hi); font-weight: 800; font-size: 18px; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gt-nft-sym { color: var(--ink-lo); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.gt-nft-head-addr { color: var(--ink-faint); font-size: 10.5px; font-family: var(--font-num); margin-top: 2px; }
.gt-nft-head-right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.gt-nft-head-rank { color: var(--ink-lo); font-size: 10px; font-weight: 600; }

.gt-nft-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }

.gt-nft-sec-h {
  color: var(--ink-lo); font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px;
}

/* concentration bars */
.gt-nft-conc {
  background: var(--well); border: 1px solid var(--hairline);
  border-radius: 10px; padding: 12px 14px;
}
.gt-conc-row { margin-bottom: 10px; }
.gt-conc-row:last-child { margin-bottom: 0; }
.gt-conc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.gt-conc-lab { color: var(--ink-mid); font-size: 11.5px; }
.gt-conc-val { color: var(--ink-hi); font-weight: 700; font-size: 12.5px; }
.gt-conc-bar { height: 7px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.gt-conc-fill { height: 100%; border-radius: 4px; background: var(--p400); transition: width .4s ease; }
.gt-conc-fill.is-cool { background: var(--gain); }
.gt-conc-fill.is-warm { background: var(--sweep); }
.gt-conc-fill.is-hot  { background: var(--loss); }
.gt-conc-hint { color: var(--ink-faint); font-size: 10px; margin-top: 5px; }

/* holder map readout */
.gt-nft-map {
  background:
    radial-gradient(120% 120% at 100% 0%, var(--tint-weak), transparent 55%),
    var(--panel);
  border: 1px solid var(--p500); border-radius: 11px;
  box-shadow: 0 0 0 1px var(--tint) inset;
  padding: 12px 14px;
}
.gt-nft-mm {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.gt-mm {
  background: var(--well); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 8px 10px;
}
.gt-mm-v { color: var(--ink-hi); font-weight: 800; font-size: 15px; line-height: 1.1; }
.gt-mm-v.is-miss { color: var(--ink-faint); font-weight: 400; }
.gt-mm-l { color: var(--ink-lo); font-size: 9.5px; margin-top: 3px; text-transform: uppercase; letter-spacing: .06em; }

.gt-nft-edges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gt-nft-edges-lab { color: var(--ink-lo); font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; }
.gt-nft-edgechip {
  display: inline-flex; align-items: baseline; gap: 5px;
  background: var(--well); border: 1px solid var(--hairline-2);
  border-radius: 999px; padding: 3px 10px;
}
.gt-nft-edgechip-n { color: var(--ink-hi); font-weight: 800; font-size: 12px; }
.gt-nft-edgechip-t { color: var(--ink-lo); font-size: 10.5px; }

.gt-nft-clusters { margin-top: 14px; border-top: 1px solid var(--hairline); padding-top: 12px; }
.gt-nft-clusters-h {
  color: var(--ink-lo); font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px;
}
.gt-nft-cl {
  background: var(--well); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 8px 10px; margin-bottom: 6px;
}
.gt-nft-cl:last-child { margin-bottom: 0; }
.gt-nft-cl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gt-nft-cl-name {
  color: var(--ink-hi); font-weight: 700; font-size: 12px; font-family: var(--font-num);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gt-nft-cl-supply { color: var(--p600); font-weight: 800; font-size: 12.5px; flex: 0 0 auto; }
.gt-nft-cl-meta { display: flex; align-items: center; gap: 6px; color: var(--ink-lo); font-size: 10.5px; margin-top: 3px; }
.gt-nft-cl-dot { color: var(--ink-faint); }
.gt-nft-cl-why { color: var(--ink-faint); font-size: 10.5px; line-height: 1.4; margin-top: 5px; }
.gt-nft-mapnote { color: var(--ink-faint); font-size: 11px; margin-top: 10px; }
.gt-nft-mapsrc { color: var(--ink-faint); font-size: 9.5px; margin-top: 12px; letter-spacing: .02em; }

.gt-nft-pricenote {
  display: flex; align-items: center; gap: 7px;
  color: var(--ink-faint); font-size: 10.5px;
  border-top: 1px solid var(--hairline); padding-top: 12px; margin-top: auto;
}

/* ---------------------------------------------------------------------------
   8 · RESPONSIVE — stack to one column on narrow terminals.
   ------------------------------------------------------------------------ */
@media (max-width: 1040px) {
  .gt-root {
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-areas:
      "rail   center"
      "rail   right"
      "dock   dock";
  }
}
@media (max-width: 780px) {
  .gt-root {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "center"
      "right"
      "rail"
      "dock";
    min-height: 0;
  }
  .gt-collist { max-height: 220px; }
  .gt-chart-name { max-width: 60vw; }
  .gt-sniper-rules { grid-template-columns: 1fr 1fr; }
  .gt-dock { position: sticky; bottom: 8px; }
}

/* NFT root stacks its own way */
@media (max-width: 900px) {
  .gt-nft-root { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .gt-nft-list { max-height: 300px; }
  .gt-nft-stats { grid-template-columns: 1fr 1fr; }
  .gt-nft-mm { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------------------
   §MOTION — decoration only; data never depends on it.
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .gt-root *, .gt-nft-root *, .gt-lanes *, .gt-toast, .gt-pop-fill, .gt-depth,
  .gt-switch, .gt-switch-knob, .gt-conc-fill {
    transition: none !important; animation: none !important;
  }
  .gt-toast { opacity: 1; transform: none; }
}
