/* THORWALLET - Terminal (the web app installed on Mac and Windows).
   Scroll-scrubbed hero: a browser tab installs THORWallet Terminal in one
   click, the browser frame falls away, then a tour of the app's screens.
   Desktop, window and screens are drawn in code (terminal.js), never images.
   Like /pro, the page is always dark: it is a product showcase. */

/* ============ STAGE ============ */
.tm-page { background: #0A1A2B; }
.tm-hero { position: relative; height: 820vh; background: #0A1A2B; color: #FFFFFF; }
.tm-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 84px 16px 16px;
}
.tm-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46% 40% at 50% 60%, rgba(0, 204, 255, 0.12), transparent 70%),
    radial-gradient(30% 30% at 64% 66%, rgba(51, 255, 153, 0.07), transparent 70%);
}
.tm-copy { position: relative; width: 100%; max-width: 900px; margin: 0 auto; height: clamp(112px, 17vh, 168px); text-align: center; z-index: 2; }
.tm-cap { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); will-change: opacity, transform; pointer-events: none; }
.tm-cap.live { pointer-events: auto; }
.tm-eyebrow { display: block; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #1FD9A6; margin-bottom: 10px; }
.tm-cap h1, .tm-cap h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; color: #FFFFFF; margin: 0; }
.tm-cap h1 { font-size: clamp(30px, 4.4vw, 60px); }
.tm-cap h2 { font-size: clamp(26px, 3.4vw, 46px); }
.tm-cap p { font-family: var(--font-body); font-size: clamp(14px, 1.25vw, 17px); line-height: 1.5; color: #C5D2DE; max-width: 640px; margin: 12px auto 0; }
.tm-cap-end p { margin-top: 18px; }
.tm-grad { background: linear-gradient(120deg, #00CCFF 0%, #19DAC8 52%, #33FF99 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.tm-viewport { position: relative; min-height: 0; overflow: hidden; }
.tm-scene { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform-origin: 0 0; }
.tm-foot { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: clamp(12px, 2.4vh, 26px); }
.tm-hero-cta { transition: opacity 0.35s, transform 0.35s; }
.tm-hero-cta.off { opacity: 0; transform: translateY(8px); pointer-events: none; }
.tm-hint { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8A9DB0; display: flex; align-items: center; gap: 8px; transition: opacity 0.3s; }
.tm-hint svg { width: 14px; height: 14px; animation: tm-bob 1.6s ease-in-out infinite; }
@keyframes tm-bob { 50% { transform: translateY(3px); } }

/* ============ DESKTOP SCENE (logical px, scaled by terminal.js) ============ */
.tm-wall {
  position: absolute; inset: 0; border-radius: 26px; overflow: hidden;
  background:
    radial-gradient(60% 70% at 18% 8%, rgba(0, 204, 255, 0.22), transparent 60%),
    radial-gradient(55% 60% at 92% 96%, rgba(51, 255, 153, 0.16), transparent 62%),
    linear-gradient(160deg, #0F2A44 0%, #0A1C30 48%, #071422 100%);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  font-family: var(--font-body); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
.tm-menubar {
  position: absolute; left: 0; right: 0; top: 0; height: 28px; padding: 0 18px;
  display: flex; align-items: center; gap: 20px; font-size: 13px; color: rgba(255, 255, 255, 0.86);
  background: rgba(6, 14, 24, 0.42); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.tm-menubar b { font-weight: 600; color: #FFFFFF; }
.tm-menubar .sp { flex: 1; }
.tm-menubar .app { position: relative; display: inline-block; min-width: 150px; height: 18px; }
.tm-menubar .app b { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity 0.3s; }
.tm-menubar svg { height: 13px; width: auto; display: block; }

/* window */
.tm-win {
  position: absolute; left: 92px; top: 56px; width: 1256px; height: 724px;
  border-radius: 14px; overflow: hidden; background: #0B1B2C;
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12);
  --chrome: 80px;
}
.tm-dots { position: absolute; left: 16px; top: 13px; display: flex; gap: 8px; z-index: 4; }
.tm-dots i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.tm-dots i:nth-child(2) { background: #FEBC2E; }
.tm-dots i:nth-child(3) { background: #28C840; }
.tm-chrome { position: absolute; left: 0; right: 0; top: 0; height: var(--chrome); background: #18222F; border-bottom: 1px solid rgba(255, 255, 255, 0.07); z-index: 3; overflow: hidden; }
.tm-tabs { position: absolute; left: 92px; top: 6px; right: 12px; height: 32px; display: flex; gap: 2px; align-items: flex-end; }
.tm-tab { height: 32px; width: 220px; min-width: 0; flex: 0 1 220px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border-radius: 9px 9px 0 0; font-size: 12.5px; color: #9AA8B8; white-space: nowrap; overflow: hidden; }
.tm-tab.on { background: #233041; color: #FFFFFF; }
.tm-tab img, .tm-tab i { width: 15px; height: 15px; border-radius: 4px; flex: none; }
.tm-tab i { background: rgba(255, 255, 255, 0.16); }
.tm-tab .x { margin-left: auto; opacity: 0.5; font-size: 13px; }
.tm-omni { position: absolute; left: 0; right: 0; top: 38px; height: 42px; background: #233041; display: flex; align-items: center; gap: 12px; padding: 0 12px; }
.tm-omni .tm-nb { display: flex; gap: 10px; color: #7E8C9C; }
.tm-omni .tm-nb svg { width: 17px; height: 17px; }
.tm-url { flex: 1; height: 30px; border-radius: 15px; background: #131C27; display: flex; align-items: center; gap: 9px; padding: 0 6px 0 14px; font-size: 13.5px; color: #DCE4EE; }
.tm-url svg { width: 13px; height: 13px; color: #8A98A8; flex: none; }
.tm-url .p { color: #8A98A8; }
.tm-url .sp { flex: 1; }
.tm-inst-ic { position: relative; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #DCE4EE; }
.tm-inst-ic svg { width: 17px; height: 17px; color: currentColor; }
.tm-inst-ic::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #00CCFF; opacity: var(--ping, 0); transform: scale(var(--ping-s, 1)); }
.tm-inst-ic.hot { background: rgba(0, 204, 255, 0.22); color: #FFFFFF; }
.tm-omni .me { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #3A4A5E, #263445); }
.tm-title { position: absolute; left: 0; right: 0; top: 0; height: 38px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; color: #E6ECF3; opacity: 0; z-index: 4; pointer-events: none; }
.tm-title img { width: 16px; height: 16px; border-radius: 4px; }
.tm-app { position: absolute; left: 0; right: 0; bottom: 0; top: var(--chrome); }

/* install dialog (generic browser style) */
.tm-dlg {
  position: absolute; left: 820px; top: 132px; width: 380px; padding: 20px 20px 18px; border-radius: 14px;
  background: #222D3B; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: 0; transform-origin: 92% 0; z-index: 6; color: #FFFFFF;
}
.tm-dlg h4 { margin: 0; font-size: 17px; font-weight: 600; }
.tm-dlg .row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.tm-dlg .row img { width: 40px; height: 40px; border-radius: 10px; }
.tm-dlg .row b { display: block; font-size: 14px; font-weight: 600; }
.tm-dlg .row small { display: block; font-size: 12.5px; color: #9AA8B8; margin-top: 2px; }
.tm-dlg .btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.tm-dlg .btns span { height: 34px; padding: 0 18px; border-radius: 17px; display: grid; place-items: center; font-size: 13.5px; font-weight: 600; color: #9EC2FF; border: 1px solid rgba(255, 255, 255, 0.16); }
.tm-dlg .btns span.go { background: #8AB4F8; color: #0B1B2C; border-color: transparent; }
.tm-dlg .btns span.go.press { background: #A9C8FA; transform: scale(0.96); }

/* dock */
.tm-dock {
  position: absolute; left: 50%; bottom: 14px; height: 76px; padding: 0 12px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; border-radius: 22px;
  background: rgba(30, 44, 62, 0.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 18px 40px -16px rgba(0, 0, 0, 0.7);
}
.tm-dock > i { width: 54px; height: 54px; border-radius: 13px; display: block; position: relative; }
.tm-dock > i::after { content: ""; position: absolute; inset: 15px; border-radius: 6px; background: rgba(255, 255, 255, 0.55); }
.tm-dock > i.a { background: linear-gradient(160deg, #6C8BB0, #3D5778); }
.tm-dock > i.b { background: linear-gradient(160deg, #E8EDF2, #A9B6C4); }
.tm-dock > i.b::after { background: rgba(30, 44, 62, 0.4); }
.tm-dock > i.c { background: linear-gradient(160deg, #5BC0A8, #2D7D6A); }
.tm-dock > i.d { background: linear-gradient(160deg, #F2B66B, #C77C2A); }
.tm-dock > i.e { background: linear-gradient(160deg, #8B7CF0, #5642C4); }
.tm-dock > i.f { background: linear-gradient(160deg, #3D4A5C, #222C39); }
.tm-dock .sep { width: 1px; height: 46px; background: rgba(255, 255, 255, 0.22); margin: 0 2px; }
.tm-dock .tw { position: relative; width: 0; height: 54px; overflow: visible; transition: none; }
.tm-dock .tw img { position: absolute; left: 0; top: 0; width: 54px; height: 54px; border-radius: 13px; box-shadow: 0 8px 18px -6px rgba(0, 204, 255, 0.55); }
.tm-dock .tw b { position: absolute; left: 50%; bottom: -9px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); opacity: 0; }
.tm-dock .tw em { position: absolute; left: 50%; top: -40px; transform: translateX(-50%); padding: 5px 10px; border-radius: 8px; background: rgba(20, 30, 44, 0.92); font-style: normal; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: #FFFFFF; opacity: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }

/* cursor */
.tm-cursor { position: absolute; left: 0; top: 0; width: 26px; height: 26px; z-index: 20; opacity: 0; pointer-events: none; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5)); }
.tm-cursor svg { width: 100%; height: 100%; display: block; }
.tm-ripple { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 2px solid #00CCFF; opacity: 0; z-index: 19; pointer-events: none; }

/* ============ APP UI (the Terminal, as in app.thorwallet.org) ============ */
.ta {
  --t-bg: #0B1B2C; --t-side: #0C1D2F; --t-panel: #12263A; --t-panel-2: #172D44; --t-line: rgba(255, 255, 255, 0.07);
  --t-mid: #C5D2DE; --t-low: #8A9DB0; --t-dim: #6D8094; --t-blue: #2F6BF0; --t-blue-soft: rgba(47, 107, 240, 0.18);
  --t-green: #2EE6A0; --t-red: #F25A6B; --t-teal: #1FD9A6;
  position: absolute; inset: 0; display: grid; grid-template-columns: 210px minmax(0, 1fr); grid-template-rows: 56px minmax(0, 1fr);
  background: var(--t-bg); color: #FFFFFF; font-family: var(--font-body); font-weight: 500; font-size: 13px; overflow: hidden;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
.ta svg { display: block; }
.ta .pos { color: var(--t-green); }
.ta .neg { color: var(--t-red); }
.ta .low { color: var(--t-low); }
.ta-side { grid-row: 1 / 3; background: var(--t-side); border-right: 1px solid var(--t-line); padding: 16px 12px; display: flex; flex-direction: column; }
.ta-logo { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; }
.ta-logo img { width: 22px; height: 22px; }
.ta-nav { display: flex; flex-direction: column; gap: 1px; }
.ta-nav h6 { margin: 10px 0 3px; padding: 0 10px; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; color: var(--t-dim); }
.ta-nav a { display: flex; align-items: center; gap: 11px; height: 27px; padding: 0 10px; border-radius: 10px; color: var(--t-mid); font-size: 13px; transition: background-color 0.3s, color 0.3s; }
.ta-nav a svg { width: 17px; height: 17px; flex: none; }
.ta-nav a.on { background: #17304A; color: #FFFFFF; }
.ta-nav a.on svg { color: var(--t-teal); }
.ta-side .foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 0 10px; height: 32px; color: var(--t-low); font-size: 12.5px; border-top: 1px solid var(--t-line); padding-top: 10px; }
.ta-side .foot svg { width: 16px; height: 16px; }
.ta-top { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 20px; border-bottom: 1px solid var(--t-line); }
.ta-top .pill { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--t-line); display: flex; align-items: center; gap: 7px; color: var(--t-mid); font-size: 12px; font-weight: 600; }
.ta-top .pill svg { width: 14px; height: 14px; }
.ta-top .acct { height: 34px; padding: 0 12px 0 6px; border-radius: 17px; background: var(--t-panel-2); display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.ta-top .acct i { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(from 40deg, #00CCFF, #33FF99, #2F6BF0, #00CCFF); }
.ta-main { position: relative; min-width: 0; min-height: 0; }
.ta-scr { position: absolute; inset: 0; padding: 18px 22px; opacity: 0; transition: opacity 0.45s ease; overflow: hidden; }
.ta-scr.on { opacity: 1; }
.ta-scr.still { transition: none; }
.ta-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ta-h b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.ta-h small { color: var(--t-low); font-size: 12px; }
.ta-h .sp { flex: 1; }
.ta-panel { background: var(--t-panel); border: 1px solid var(--t-line); border-radius: 16px; }
.ta-seg { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--t-line); gap: 2px; }
.ta-seg span { padding: 5px 11px; border-radius: 8px; font-size: 12px; color: var(--t-mid); }
.ta-seg span.on { background: var(--t-blue); color: #FFFFFF; font-weight: 600; }
.ta-coin { width: 28px; height: 28px; border-radius: 50%; flex: none; display: block; }
.ta-coin.sm { width: 22px; height: 22px; }
.ta-mono { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #FFFFFF; }
.ta-live { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; background: rgba(46, 230, 160, 0.12); color: var(--t-green); font-size: 11.5px; font-weight: 600; }
.ta-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ta-btn { display: grid; place-items: center; height: 42px; border-radius: 12px; background: var(--t-blue); color: #FFFFFF; font-size: 14px; font-weight: 600; }

/* wallet (the real /wallet page: balance card, allocation, asset table, addresses rail) */
.ta .eb { display: inline-flex; align-items: center; gap: 7px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.2em; color: var(--t-low); }
.ta .eb svg { width: 13px; height: 13px; letter-spacing: 0; }
.tw-g { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 14px; }
.tw-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tw-hero { padding: 14px 18px 0; background: radial-gradient(80% 90% at 100% 0%, rgba(0, 204, 255, 0.07), transparent 60%), var(--t-panel); border-radius: 18px; }
.tw-top { display: flex; align-items: center; gap: 10px; }
.tw-top .eb { margin-right: auto; }
.tw-top .ok { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 9px; border-radius: 10px; background: rgba(51, 255, 153, 0.12); color: #33FF99; font-size: 10px; font-weight: 600; }
.tw-top .ok i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tw-top > svg { width: 14px; height: 14px; color: var(--t-low); }
.tw-bal { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-top: 6px; }
.tw-bal .c { font-size: 19px; color: var(--t-low); font-weight: 500; }
.tw-chg { font-size: 11.5px; margin-top: 4px; }
.tw-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.tw-tiles span { height: 54px; border-radius: 10px; border: 1px solid var(--t-line); background: rgba(255, 255, 255, 0.015); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 10px; color: var(--t-mid); }
.tw-tiles svg { width: 19px; height: 19px; color: #4C8DFF; }
.tw-alloc { margin: 12px -18px 0; padding: 10px 18px 12px; border-top: 1px solid var(--t-line); }
.tw-alloc .ah { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ta .sg { display: inline-flex; padding: 2px; border-radius: 999px; border: 1px solid var(--t-line); background: #0D2033; }
.ta .sg span { padding: 3px 9px; border-radius: 999px; font-size: 9.5px; color: var(--t-low); }
.ta .sg span.on { background: #1A3450; color: #FFFFFF; }
.tw-bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; gap: 2px; }
.tw-leg { display: flex; gap: 16px; margin-top: 7px; font-size: 9.5px; color: var(--t-mid); }
.tw-leg span { display: inline-flex; align-items: center; gap: 5px; }
.tw-leg i { width: 6px; height: 6px; border-radius: 2px; }
.tw-leg b { font-weight: 400; color: var(--t-low); }
.tw-assets { border-radius: 18px; overflow: hidden; }
.tw-tabs { display: flex; gap: 2px; padding: 4px 10px 0; border-bottom: 1px solid var(--t-line); }
.tw-tabs span { padding: 9px 11px; font-size: 11.5px; color: var(--t-low); position: relative; }
.tw-tabs span small { font-size: 9.5px; color: var(--t-low); margin-left: 3px; }
.tw-tabs span.on { color: #FFFFFF; }
.tw-tabs span.on::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -1px; height: 1.5px; background: linear-gradient(120deg, #00CCFF, #19DAC8 52%, #33FF99); }
.tw-tr { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(0, 0.9fr) 80px; align-items: center; gap: 10px; padding: 7px 12px; border-top: 1px solid var(--t-line); font-size: 11.5px; }
.tw-tr.hd { border-top: 0; padding: 8px 12px 6px; font-size: 8.5px; letter-spacing: 0.14em; color: var(--t-low); }
.tw-tr.hd span { text-align: right; }
.tw-tr.hd span:first-child { text-align: left; }
.tw-tr .r { text-align: right; font-weight: 500; white-space: nowrap; }
.tw-tr .r small { display: block; font-size: 9.5px; color: var(--t-low); margin-top: 1px; }
.tw-tr .ca { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tw-tr .n { min-width: 0; }
.tw-tr .n b { display: block; font-weight: 500; font-size: 12px; }
.tw-tr .n small { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--t-low); margin-top: 1px; }
.ta .cp { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px 1px 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-size: 9px; color: var(--t-mid); }
.ta .cp img { width: 10px; height: 10px; border-radius: 50%; }
.ta .tl { position: relative; flex: none; display: inline-flex; }
.ta .tl .ta-coin { width: 30px; height: 30px; }
.ta .tl .chb { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--t-panel); background: var(--t-panel); }
.tw-tr .acts { display: flex; justify-content: flex-end; gap: 6px; color: var(--t-low); opacity: 0.55; }
.tw-tr .acts svg { width: 13px; height: 13px; }
.tw-addr { padding: 14px 12px; display: flex; flex-direction: column; gap: 7px; border-radius: 18px; align-self: start; }
.tw-addr .eb { padding: 0 4px 3px; }
.tw-search { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 9px; background: #1A3450; font-size: 11px; color: var(--t-low); margin-bottom: 2px; }
.tw-search svg { width: 13px; height: 13px; }
.tw-addr .ad { display: grid; grid-template-columns: 28px minmax(0, 1fr) 15px 15px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 11px; border: 1px solid var(--t-line); background: rgba(255, 255, 255, 0.015); }
.tw-addr .ad img { width: 28px; height: 28px; border-radius: 50%; }
.tw-addr .ad b { display: block; font-size: 11.5px; font-weight: 600; }
.tw-addr .ad small { display: block; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10px; color: var(--t-low); margin-top: 1px; }
.tw-addr .ad svg { width: 15px; height: 15px; color: var(--t-mid); }

/* swap (the real /swap page for a connected wallet: route + quote details, then the ticket) */
.ts-s { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 14px; height: 100%; }
.ts-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ts-route, .ts-quote { padding: 14px 16px; border-radius: 18px; }
.ta .phd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 10.5px; }
.rt { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 11px 13px; border-radius: 13px; transition: opacity 0.35s; }
.rt.best { border: 1px solid rgba(0, 204, 255, 0.55); background: rgba(0, 204, 255, 0.04); }
.rt img { width: 30px; height: 30px; border-radius: 50%; background: #0B1B2C; }
.rt .rm b { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.rt .rm b em { font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 6px; background: rgba(51, 255, 153, 0.14); color: #33FF99; }
.rt .rm b i { font-style: normal; font-size: 10.5px; font-weight: 500; color: var(--t-low); }
.rt .rm small { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 10.5px; color: var(--t-low); white-space: nowrap; }
.rt .rm small svg { width: 11px; height: 11px; }
.rt .rm small span { margin-left: 8px; }
.rt .rm small .am { color: #FFC35C; }
.rt .ro { text-align: right; font-size: 11px; color: var(--t-mid); white-space: nowrap; }
.rt .ro b { font-size: 14px; color: #FFFFFF; font-weight: 600; }
.rt .ro small { display: block; font-size: 10px; color: var(--t-low); margin-top: 2px; }
.rt.sm { padding: 6px 13px; }
.rt.sm img { width: 24px; height: 24px; }
.rt.sm .rm b { font-size: 11.5px; font-weight: 500; }
.rt.sm .ro { font-size: 12px; color: #FFFFFF; }
.rt.sm .ro small { display: inline; font-size: 10px; }
.ts-route .more { display: flex; align-items: center; gap: 5px; margin: 8px 2px 2px; font-size: 10.5px; color: var(--t-low); }
.ts-route .more svg { width: 12px; height: 12px; }
.ta .wait { opacity: 0.18; }
.ts-quote .kv { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-top: 1px solid var(--t-line); font-size: 11.5px; color: var(--t-mid); }
.ts-quote .kv:first-of-type { border-top: 0; }
.ts-quote .kv span { display: inline-flex; align-items: center; gap: 6px; }
.ts-quote .kv span svg { width: 12px; height: 12px; color: var(--t-dim); }
.ts-quote .kv b { font-weight: 500; color: #FFFFFF; transition: opacity 0.3s; }
.ts-card { padding: 16px; display: flex; flex-direction: column; gap: 8px; border-radius: 18px; align-self: start; }
.ts-card .t { display: flex; align-items: center; justify-content: space-between; font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.ts-card .ibs { display: flex; gap: 7px; }
.ts-card .ibs i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--t-line); display: grid; place-items: center; color: var(--t-mid); }
.ts-card .ibs svg { width: 12px; height: 12px; }
.ts-box { background: #17304A; border-radius: 13px; padding: 11px 13px; border: 1px solid var(--t-line); }
.ts-box small { color: var(--t-low); font-size: 10.5px; }
.ts-box .r { display: flex; align-items: center; gap: 9px; margin-top: 6px; }
.ts-box .cu { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px 2px; border-radius: 8px; border: 1px solid var(--t-line); }
.ts-box .cu img { width: 11px; height: 11px; border-radius: 50%; }
.ts-box .cu i { font-style: normal; font-size: 8px; color: var(--t-low); }
.ts-box .amt { flex: 1; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.ts-box .amt .caret { display: inline-block; width: 2px; height: 24px; margin-left: 2px; vertical-align: -3px; background: #00CCFF; animation: tm-caret 1s steps(1) infinite; }
@keyframes tm-caret { 50% { opacity: 0; } }
.ts-box .tok { display: flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border-radius: 22px; border: 1px solid var(--t-line); }
.ts-box .tok .tl .ta-coin { width: 26px; height: 26px; }
.ts-box .tok .tl .chb { width: 11px; height: 11px; border-color: #17304A; }
.ts-box .tok b { display: flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; }
.ts-box .tok b svg { width: 11px; height: 11px; }
.ts-box .tok small { display: block; font-size: 9px; color: var(--t-low); }
.ts-box .usd { color: var(--t-low); font-size: 10.5px; margin-top: 4px; transition: opacity 0.3s; }
.ts-flip { align-self: center; width: 26px; height: 26px; margin: -13px 0; border-radius: 50%; background: var(--t-panel); display: grid; place-items: center; z-index: 1; color: var(--t-mid); }
.ts-flip svg { width: 13px; height: 13px; }
.ts-rate { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--t-mid); padding: 9px 12px; border-radius: 11px; border: 1px solid var(--t-line); }
.ts-rate span:last-child { display: flex; align-items: center; gap: 6px; }
.ts-rate img { width: 14px; height: 14px; border-radius: 50%; }
.ts-other { font-size: 11px; color: #00CCFF; font-weight: 500; padding: 2px 2px 0; }
.ts-card .ta-btn { height: 38px; font-size: 13px; }

/* sidebar: the account chip and the collapse button, as in the app */
.ta-logo .col { margin-left: auto; width: 22px; height: 22px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.25); display: grid; place-items: center; color: var(--t-mid); }
.ta-logo .col svg { width: 11px; height: 11px; }
.ta-me { display: flex; align-items: center; gap: 9px; padding: 8px 9px; margin-bottom: 8px; border-radius: 11px; border: 1px solid var(--t-line); background: var(--t-panel); }
.ta-me .mk { position: relative; width: 26px; height: 26px; border-radius: 7px; background: #0B1B2C; display: grid; place-items: center; flex: none; }
.ta-me .mk img { width: 15px; height: 15px; }
.ta-me .mk i { position: absolute; left: 4px; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: #33FF99; }
.ta-me b { display: block; font-size: 11.5px; font-weight: 600; }
.ta-me small { display: block; font-size: 9.5px; color: var(--t-low); }

/* stocks */
.tk-chips { display: flex; gap: 6px; margin-bottom: 14px; }
.tk-chips span { padding: 6px 12px; border-radius: 15px; border: 1px solid var(--t-line); font-size: 12px; color: var(--t-mid); }
.tk-chips span.on { background: #FFFFFF; color: #0B1B2C; font-weight: 600; }
.tk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.tk-card { padding: 12px 14px; }
.tk-card h6 { margin: 0 0 8px; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; color: var(--t-dim); }
.tk-card .r { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 5px 0; }
.tk-card .r .ta-mono { width: 26px; height: 26px; font-size: 9px; }
.tk-card .r b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-card .r small { display: block; color: var(--t-low); font-size: 11px; }
.tk-card .r span:last-child { text-align: right; font-size: 12.5px; font-weight: 600; }
.tk-tab { padding: 4px 0; }
.tk-row { display: grid; grid-template-columns: 22px minmax(0, 1.8fr) 0.8fr 0.6fr 1fr 0.8fr; align-items: center; gap: 12px; padding: 9px 16px; }
.tk-row + .tk-row { border-top: 1px solid var(--t-line); }
.tk-row.hd { color: var(--t-dim); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; padding-block: 8px; }
.tk-row .star { color: var(--t-dim); font-size: 13px; }
.tk-row .n { display: flex; align-items: center; gap: 10px; }
.tk-row .n b { display: block; font-weight: 600; }
.tk-row .n small { display: block; color: var(--t-low); font-size: 11.5px; }
.tk-row > span:nth-child(n + 3) { text-align: right; }
.tk-row svg.sp { width: 96px; height: 26px; margin-left: auto; }

/* pro */
.tp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tp-head b { font-size: 15px; font-weight: 600; }
.tp-head small { color: var(--t-low); font-size: 12px; }
.tp-head .sp { flex: 1; }
.tp-mkt { display: flex; align-items: center; gap: 22px; padding: 10px 16px; margin-bottom: 10px; }
.tp-mkt .sym { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; padding-right: 8px; }
.tp-mkt .lev { font-size: 10px; font-weight: 700; color: #8DB2FF; background: var(--t-blue-soft); padding: 2px 6px; border-radius: 6px; }
.tp-mkt .st small { display: block; color: var(--t-low); font-size: 10.5px; }
.tp-mkt .st b { display: block; font-size: 13.5px; font-weight: 600; margin-top: 2px; white-space: nowrap; }
.tp-mkt .st b.big { font-size: 16px; }
.tp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 222px 238px; grid-template-rows: minmax(0, 1fr) 132px; gap: 10px; height: calc(100% - 112px); }
.tp-chart { display: flex; flex-direction: column; padding: 8px 10px 6px; min-height: 0; }
.tp-tf { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--t-mid); }
.tp-tf span { padding: 4px 8px; border-radius: 7px; }
.tp-tf span.on { background: var(--t-blue); color: #FFFFFF; font-weight: 600; }
.tp-tf .sp { flex: 1; }
.tp-leg { font-size: 11px; color: var(--t-mid); margin: 6px 4px 0; white-space: nowrap; }
.tp-leg em { font-style: normal; color: var(--t-green); }
.tp-chart canvas { flex: 1; min-height: 0; width: 100%; }
.tp-book { padding: 8px 10px; font-size: 11.5px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.tp-book .tabs { display: flex; gap: 4px; margin-bottom: 6px; }
.tp-book .tabs span { padding: 4px 10px; border-radius: 8px; color: var(--t-mid); font-size: 11.5px; }
.tp-book .tabs span.on { background: var(--t-blue); color: #FFFFFF; font-weight: 600; }
.tp-book .hd, .tp-book .r { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 4px; padding: 2.5px 4px; }
.tp-book .hd { color: var(--t-dim); font-size: 10.5px; }
.tp-book .r span:nth-child(n + 2), .tp-book .hd span:nth-child(n + 2) { text-align: right; }
.tp-book .r.a { color: var(--t-red); background: linear-gradient(270deg, rgba(242, 90, 107, 0.16) var(--w, 40%), transparent 0); }
.tp-book .r.b { color: var(--t-green); background: linear-gradient(270deg, rgba(46, 230, 160, 0.13) var(--w, 40%), transparent 0); }
.tp-book .r span:nth-child(n + 2) { color: #DCE4EE; }
.tp-book .mid { display: flex; justify-content: space-between; padding: 6px 4px; margin: 3px 0; border-block: 1px solid var(--t-line); font-size: 14px; font-weight: 600; }
.tp-book .mid small { color: var(--t-low); font-size: 10.5px; font-weight: 500; align-self: center; }
.tp-tick { grid-row: 1 / 3; grid-column: 3; padding: 10px; display: flex; flex-direction: column; gap: 9px; font-size: 12px; position: relative; }
.tp-tick .two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tp-tick .two span { height: 30px; border-radius: 9px; border: 1px solid var(--t-line); display: grid; place-items: center; font-weight: 600; font-size: 12px; color: var(--t-mid); }
.tp-tick .ls { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 10px; background: var(--t-panel-2); }
.tp-tick .ls span { height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; color: var(--t-mid); }
.tp-tick .ls span.on { background: var(--t-green); color: #0B1B2C; }
.tp-tick .ot { display: flex; gap: 14px; font-size: 12px; color: var(--t-low); padding: 0 4px; }
.tp-tick .ot span.on { color: #FFFFFF; font-weight: 600; }
.tp-tick .kv { display: flex; justify-content: space-between; color: var(--t-low); font-size: 11px; padding: 0 4px; }
.tp-tick .kv b { color: #FFFFFF; font-weight: 600; }
.tp-size { border-radius: 12px; border: 1px solid var(--t-line); padding: 10px; background: var(--t-panel-2); }
.tp-size .r { display: flex; justify-content: space-between; align-items: center; }
.tp-size .r b { font-size: 15px; font-weight: 600; }
.tp-size .r em { font-style: normal; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--t-line); font-size: 11px; font-weight: 600; }
.tp-slider { position: relative; height: 18px; margin: 10px 2px 8px; }
.tp-slider::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
.tp-slider .fill { position: absolute; left: 0; top: 8px; height: 3px; border-radius: 2px; background: var(--t-green); width: 0; }
.tp-slider .knob { position: absolute; top: 1px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 4px rgba(46, 230, 160, 0.25); left: 0; }
.tp-pcts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.tp-pcts span { height: 24px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); display: grid; place-items: center; font-size: 11px; color: var(--t-mid); }
.tp-pcts span.on { background: rgba(46, 230, 160, 0.2); color: var(--t-green); font-weight: 600; }
.tp-tick .send { margin-top: auto; height: 40px; border-radius: 11px; background: var(--t-green); color: #0B1B2C; display: grid; place-items: center; font-size: 13.5px; font-weight: 700; transition: transform 0.15s, filter 0.15s; }
.tp-tick .send.press { transform: scale(0.97); filter: brightness(1.12); }
.tp-pos { grid-column: 1 / 3; padding: 8px 12px; font-size: 12px; overflow: hidden; }
.tp-pos .tabs { display: flex; gap: 4px; margin-bottom: 6px; }
.tp-pos .tabs span { padding: 4px 10px; border-radius: 8px; color: var(--t-mid); font-size: 11.5px; }
.tp-pos .tabs span.on { background: var(--t-blue); color: #FFFFFF; font-weight: 600; }
.tp-pos .hd, .tp-pos .r { display: grid; grid-template-columns: 1.1fr 0.9fr 0.9fr 0.9fr 1fr 0.8fr; gap: 8px; padding: 5px 4px; }
.tp-pos .hd { color: var(--t-dim); font-size: 10.5px; }
.tp-pos .r { border-top: 1px solid var(--t-line); opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s; }
.tp-pos .r.in { opacity: 1; transform: none; }
.tp-pos .r b { font-weight: 600; }
.tp-pos .r b em { font-style: normal; margin-left: 6px; font-size: 10px; padding: 1px 5px; border-radius: 5px; background: rgba(46, 230, 160, 0.15); color: var(--t-green); }
.tp-pos .empty { color: var(--t-low); text-align: center; padding: 18px 0; }
.tp-toast {
  position: absolute; right: 18px; top: 66px; width: 278px; padding: 12px 14px; border-radius: 14px; z-index: 5;
  background: #173250; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(46, 230, 160, 0.4);
  display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; opacity: 0; transform: translateY(-10px);
}
.tp-toast i { width: 30px; height: 30px; border-radius: 50%; background: rgba(46, 230, 160, 0.18); display: grid; place-items: center; color: var(--t-green); }
.tp-toast i svg { width: 16px; height: 16px; }
.tp-toast b { display: block; font-size: 13px; font-weight: 600; }
.tp-toast small { display: block; font-size: 11.5px; color: var(--t-mid); margin-top: 2px; }

/* earn */
.te-band { padding: 16px 20px; margin-bottom: 14px; background: linear-gradient(110deg, rgba(0, 204, 255, 0.12), rgba(18, 38, 58, 0.6) 60%); }
.te-band small { color: var(--t-teal); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; }
.te-band b { display: block; font-size: 17px; font-weight: 600; margin-top: 5px; }
.te-band span { display: block; color: var(--t-mid); font-size: 12px; margin-top: 3px; }
.te-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
.te-sec { display: flex; justify-content: space-between; align-items: baseline; margin: 2px 2px 8px; }
.te-sec b { font-size: 14px; font-weight: 600; }
.te-sec small { color: var(--t-low); font-size: 11.5px; }
.te-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 12px; gap: 12px; align-items: center; padding: 11px 14px; margin-bottom: 8px; }
.te-row img { width: 34px; height: 34px; border-radius: 50%; }
.te-row b { font-weight: 600; }
.te-row b em { font-style: normal; margin-left: 7px; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 600; background: rgba(122, 90, 248, 0.2); color: #B9A8FF; }
.te-row b em.g { background: rgba(46, 230, 160, 0.14); color: var(--t-green); }
.te-row small { display: block; color: var(--t-low); font-size: 11.5px; margin-top: 2px; }
.te-row .v { text-align: right; }
.te-row .v b { display: block; font-size: 13.5px; }
.te-row > svg:last-child { width: 12px; height: 12px; color: var(--t-dim); }
.te-row.hl { border-color: rgba(47, 107, 240, 0.6); }
.te-side { padding: 22px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.te-side img { width: 54px; height: 54px; }
.te-side em { font-style: normal; padding: 3px 10px; border-radius: 10px; border: 1px solid rgba(0, 204, 255, 0.4); color: #6FD8FF; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; }
.te-side b { font-size: 16px; font-weight: 600; }
.te-side span { color: var(--t-mid); font-size: 12px; line-height: 1.45; }
.te-side .ta-btn { width: 100%; margin-top: 6px; }

/* card (the real /card page for a card holder) */
.tc-c { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 26px; }
.tc-left, .tc-right { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tc-hd { display: flex; align-items: center; justify-content: space-between; margin-top: -2px; }
.tc-hd b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.tc-hd i { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--t-line); background: var(--t-panel); display: grid; place-items: center; color: var(--t-mid); }
.tc-hd i svg { width: 14px; height: 14px; }
.tc-pick { display: flex; gap: 6px; }
.tc-pick span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 13px; font-size: 11px; font-weight: 600; background: var(--t-panel-2); color: var(--t-mid); }
.tc-pick span.on { background: var(--t-blue); color: #FFFFFF; }
.tc-pick i { width: 6px; height: 6px; border-radius: 50%; background: #0D2F7A; }
.tc-pick i.r { background: #F25A6B; }
.tc-plastic { position: relative; aspect-ratio: 1.75; border-radius: 14px; overflow: hidden; padding: 14px 16px; background: radial-gradient(100% 120% at 100% 0%, #1A5A52 0%, transparent 60%), linear-gradient(140deg, #134A44 0%, #0B2A27 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.tc-plastic .brand { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 600; }
.tc-plastic .brand em { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; }
.tc-plastic .bal { position: absolute; left: 16px; bottom: 14px; }
.tc-plastic .bal small { display: block; font-size: 10px; color: rgba(255, 255, 255, 0.82); }
.tc-plastic .bal b { display: block; font-size: 22px; font-weight: 600; margin: 2px 0; }
.tc-plastic .bal b span { font-size: 15px; opacity: 0.85; margin-right: 1px; }
.tc-plastic .mc { position: absolute; right: 16px; bottom: 16px; width: 36px; }
.tc-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.tc-tiles span { height: 56px; border-radius: 11px; border: 1px solid var(--t-line); background: var(--t-panel); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 10.5px; color: var(--t-mid); }
.tc-tiles svg { width: 17px; height: 17px; color: #4C8DFF; }
.tc-cb { padding: 11px 13px; border-radius: 12px; border: 1px solid rgba(31, 217, 166, 0.35); background: rgba(31, 217, 166, 0.06); }
.tc-cb b { display: block; font-size: 12px; font-weight: 600; }
.tc-cb span { display: block; font-size: 10.5px; color: var(--t-mid); margin-top: 3px; line-height: 1.4; }
.tc-spend { padding: 12px 14px; border-radius: 14px; }
.tc-spend .top { display: flex; justify-content: space-between; align-items: flex-end; }
.tc-spend small { display: block; font-size: 10px; color: var(--t-mid); }
.tc-spend .top b { display: block; font-size: 21px; font-weight: 600; margin-top: 2px; }
.tc-spend .add { text-align: right; }
.tc-spend .add b { font-size: 13px; }
.tc-bar { display: flex; height: 6px; gap: 2px; margin-top: 10px; border-radius: 3px; overflow: hidden; }
.tc-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 7px; font-size: 9.5px; color: var(--t-mid); }
.tc-leg span { display: inline-flex; align-items: center; gap: 5px; }
.tc-leg i { width: 6px; height: 6px; border-radius: 50%; }
.tc-leg b { font-weight: 600; color: #FFFFFF; }
.tc-cbrow { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 11px; border-radius: 11px; border: 1px solid rgba(31, 217, 166, 0.3); background: rgba(31, 217, 166, 0.05); }
.tc-cbrow > i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(120deg, #00CCFF, #33FF99); color: #06241B; font-style: normal; font-size: 11px; font-weight: 700; }
.tc-cbrow b { display: block; font-size: 11.5px; font-weight: 600; }
.tc-cbrow small { font-size: 9.5px; }
.tc-chips { display: flex; gap: 5px; margin-top: 2px; }
.tc-chips span { padding: 5px 10px; border-radius: 13px; background: var(--t-panel-2); font-size: 10.5px; color: var(--t-mid); font-weight: 600; }
.tc-chips span.on { background: var(--t-blue); color: #FFFFFF; }
.tc-day { display: flex; justify-content: space-between; font-size: 9.5px; letter-spacing: 0.12em; color: var(--t-low); padding: 2px 3px 0; }
.tc-tx { padding: 2px 12px; border-radius: 13px; }
.tc-tx .r { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; }
.tc-tx .r + .r { border-top: 1px solid var(--t-line); }
.tc-tx .r > i { width: 28px; height: 28px; border-radius: 50%; background: #FFFFFF; display: grid; place-items: center; color: #0B1B2C; }
.tc-tx .r > i svg { width: 14px; height: 14px; }
.tc-tx .r b { display: block; font-size: 12px; font-weight: 600; }
.tc-tx .r small { display: block; font-size: 9.5px; color: var(--t-low); margin-top: 1px; }
.tc-tx .r .v { text-align: right; font-size: 12px; font-weight: 600; }

/* node cockpit (the real /cockpit for a node operator) */
.ta-nav h6 em { font-style: normal; margin-left: 10px; padding: 1px 7px; border-radius: 6px; background: rgba(0, 204, 255, 0.14); color: #6FD8FF; font-size: 8.5px; letter-spacing: 0.02em; }
.tn-crumb { font-size: 10.5px; color: var(--t-low); }
.tn-crumb b { color: #FFFFFF; font-weight: 500; }
.tn-head { display: flex; align-items: center; gap: 7px; margin: 6px 0 10px; }
.tn-h { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; background: linear-gradient(120deg, #00CCFF, #19DAC8 52%, #33FF99); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tn-head .sp { flex: 1; }
.tn-head .pl { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--t-line); background: var(--t-panel); font-size: 10.5px; color: var(--t-mid); }
.tn-head .pl b { color: #FFFFFF; font-weight: 600; }
.tn-head .pl svg { width: 12px; height: 12px; }
.tn-head .pl .dot { width: 7px; height: 7px; border-radius: 50%; background: #33FF99; box-shadow: 0 0 0 3px rgba(51, 255, 153, 0.2); }
.tn-hero { border-radius: 18px; overflow: hidden; background: radial-gradient(60% 80% at 20% 0%, rgba(0, 204, 255, 0.1), transparent 60%), var(--t-panel); }
.tn-who { display: flex; align-items: center; gap: 12px; padding: 14px 18px 0; }
.tn-who .av { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #E8B34A; background: conic-gradient(from 45deg, #6FE8E0 0 25%, #2CB9C7 0 50%, #A6F4EE 0 75%, #3CD3D0 0); }
.tn-who b { display: block; font-size: 16px; font-weight: 600; }
.tn-who small { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--t-mid); margin-top: 2px; }
.tn-who small svg { width: 11px; height: 11px; color: var(--t-low); }
.tn-who small span { margin-left: 12px; }
.tn-main { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; padding: 10px 18px 14px; }
.tn-eb { color: #E8B34A; }
.tn-eb i { width: 7px; height: 7px; border-radius: 50%; background: #E8B34A; display: inline-block; }
.tn-big { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-top: 6px; }
.tn-big span { color: #33FF99; }
.tn-pills { display: flex; gap: 6px; margin-top: 10px; }
.tn-pills span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9px; border: 1px solid var(--t-line); background: rgba(255, 255, 255, 0.03); font-size: 10px; color: var(--t-mid); }
.tn-pills i { width: 6px; height: 6px; border-radius: 50%; background: #33FF99; }
.tn-pills i.b { background: #00CCFF; }
.tn-tl { margin-top: 16px; }
.tn-tl .lbl, .tn-tl .sub { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--t-mid); }
.tn-tl .lbl .now { color: #33FF99; }
.tn-tl .sub { color: var(--t-low); margin-top: 4px; }
.tn-tl .bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); margin-top: 5px; overflow: hidden; }
.tn-tl .bar i { display: block; height: 100%; width: 54%; border-radius: 4px; background: linear-gradient(90deg, #00CCFF, #33FF99); }
.tn-ring { border-radius: 14px; border: 1px solid var(--t-line); background: rgba(10, 26, 43, 0.4); display: flex; flex-direction: column; align-items: center; padding: 12px 10px; gap: 8px; }
.tn-ring .eb { align-self: flex-start; }
.tn-ring .ring { width: 108px; height: 108px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(closest-side, #12263A 82%, transparent 84%), conic-gradient(#33FF99 0 54%, rgba(255, 255, 255, 0.1) 54% 100%); }
.tn-ring .ring b { font-size: 21px; font-weight: 600; color: #33FF99; }
.tn-ring .ring small { font-size: 8.5px; color: var(--t-low); }
.tn-ring .ok { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 9px; background: rgba(51, 255, 153, 0.12); color: #33FF99; font-size: 9.5px; font-weight: 600; }
.tn-ring .ok i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tn-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--t-line); }
.tn-stats > div { padding: 12px 18px 14px; }
.tn-stats > div + div { border-left: 1px solid var(--t-line); }
.tn-stats b { display: block; font-size: 22px; font-weight: 600; margin-top: 6px; }
.tn-stats b small { font-size: 10px; color: var(--t-low); font-weight: 500; }
.tn-stats > div > small { display: block; font-size: 10px; color: var(--t-mid); margin-top: 2px; }
.tn-stats .bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 10px; }
.tn-stats .bars i { height: 9px; border-radius: 3px; background: #33D69F; }
.tn-stats .cut { display: flex; gap: 2px; height: 6px; margin-top: 12px; border-radius: 3px; overflow: hidden; }
.tn-stats .cut i { flex: 9; background: #3D7BFF; }
.tn-stats .cut i + i { flex: 1; background: #33FF99; }
.tn-nodes { margin-top: 12px; padding: 12px 16px; border-radius: 18px; }
.tn-nodes .hd .eb em { font-style: normal; margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: var(--t-panel-2); color: var(--t-mid); letter-spacing: 0; }
.tn-nodes .hd b { display: block; font-size: 14px; font-weight: 600; margin: 4px 0 10px; }
.tn-nodes .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tn-nodes .t { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid rgba(51, 255, 153, 0.25); background: rgba(255, 255, 255, 0.02); }
.tn-nodes .t .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #0B1B2C; background: linear-gradient(135deg, #33FF99, #00CCFF); }
.tn-nodes .t b { display: block; font-size: 11.5px; font-weight: 600; }
.tn-nodes .t small { display: flex; align-items: center; gap: 4px; font-size: 9.5px; color: var(--t-low); margin-top: 1px; }
.tn-nodes .t small i { width: 5px; height: 5px; border-radius: 50%; background: #33FF99; }
.tn-nodes .t .v { text-align: right; }

/* ============ SECTIONS ============ */
.tm-sec { background: #0A1A2B; color: #FFFFFF; position: relative; }
.tm-sec-head { max-width: 780px; margin: 0 auto; text-align: center; }
.tm-sec-head .tm-eyebrow { margin-bottom: 14px; }
.tm-sec-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.025em; color: #FFFFFF; margin: 0; }
.tm-sec-head p { font-family: var(--font-body); font-size: clamp(15px, 1.35vw, 18px); line-height: 1.55; color: #C5D2DE; max-width: 620px; margin: 18px auto 0; }
.tm-seg { display: inline-flex; flex-wrap: wrap; justify-content: center; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.tm-seg button {
  font-family: var(--font-display); font-size: 13px; font-weight: 600; color: #C5D2DE;
  background: transparent; border: 0; padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.tm-seg button[aria-pressed="true"] { background: #FFFFFF; color: #0A1A2B; }
.tm-seg button:focus-visible { outline: 2px solid #00CCFF; outline-offset: 2px; }
.tm-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* numbers */
.tm-stats { padding: 100px 0 40px; }
.tm-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid rgba(255, 255, 255, 0.08); }
.tm-stat { padding: 40px 18px 36px; text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.tm-stat:last-child { border-right: 0; }
.tm-stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(42px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.tm-stat span { display: block; margin-top: 14px; font-family: var(--font-body); font-size: 15px; line-height: 1.4; color: #C5D2DE; }

/* gallery */
.tm-gal { padding: 110px 0 60px; }
.tm-gal-tabs { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 40px 0 34px; }
.tm-gal-seg button { position: relative; overflow: hidden; }
.tm-gal-seg button i { position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 1px; background: rgba(10, 26, 43, 0.25); transform-origin: 0 50%; transform: scaleX(0); }
.tm-gal-seg button[aria-pressed="true"] i.run { animation: tm-fill var(--gal-ms, 5200ms) linear forwards; }
@keyframes tm-fill { to { transform: scaleX(1); } }
.tm-gal-seg.paused i.run { animation-play-state: paused; }
.tm-gal-cap { font-family: var(--font-body); font-size: 16px; color: #C5D2DE; min-height: 1.5em; margin: 0; text-align: center; transition: opacity 0.3s; }
.tm-gal-frame { position: relative; }
.tm-gal-dev { position: relative; max-width: 1120px; margin: 0 auto; }
.tm-shot { position: relative; width: 100%; }
.tm-shot > .tm-box { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* install */
.tm-inst { padding: 130px 0 110px; overflow: hidden; }
.tm-inst::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 50% at 50% 55%, rgba(0, 204, 255, 0.11), transparent 70%), radial-gradient(35% 40% at 60% 62%, rgba(51, 255, 153, 0.07), transparent 70%); }
.tm-inst .container { position: relative; }
.tm-inst-card { max-width: 980px; margin: 44px auto 0; padding: 40px clamp(18px, 4vw, 48px) 34px; border-radius: 32px; border: 1px solid rgba(255, 255, 255, 0.09); background: linear-gradient(180deg, rgba(20, 42, 64, 0.85), rgba(14, 32, 50, 0.85)); text-align: center; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8); }
.tm-inst-btn { margin: 24px 0 8px; font-size: 18px; height: 60px; padding: 0 38px; }
.tm-steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; }
.tm-step { padding: 16px 16px 18px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(10, 26, 43, 0.5); }
.tm-step > b { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.tm-step > b .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: linear-gradient(120deg, #00CCFF, #33FF99); color: #06241B; flex: none; }
.tm-step > .d { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: #8A9DB0; }
.tm-step-art { position: relative; height: 118px; border-radius: 14px; background: radial-gradient(70% 90% at 50% 100%, rgba(0, 204, 255, 0.12), transparent 70%), #0C1E31; display: grid; place-items: center; overflow: hidden; }
.tm-art-btn { padding: 11px 26px; border-radius: 14px; background: linear-gradient(120deg, #00CCFF, #33FF99); color: #06241B; font-weight: 700; font-size: 15px; box-shadow: 0 10px 24px -10px rgba(31, 217, 166, 0.8); animation: tm-press 3.2s ease-in-out infinite; }
.tm-art-cur { position: absolute; left: 58%; top: 56%; width: 18px; height: 18px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9.4-6.6 1.6L16 21l-3 1.4-3.6-8-5.4 4.6z' fill='%23fff' stroke='%23000' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"); animation: tm-cur 3.2s ease-in-out infinite; }
@keyframes tm-press { 0%, 38%, 56%, 100% { transform: scale(1); } 46% { transform: scale(0.94); } }
@keyframes tm-cur { 0% { transform: translate(40px, 30px); } 36%, 60% { transform: translate(0, 0); } 100% { transform: translate(40px, 30px); } }
.tm-art-dlg { width: 82%; padding: 10px 12px; border-radius: 12px; background: #222D3B; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); display: grid; grid-template-columns: 26px 1fr; column-gap: 9px; text-align: left; }
.tm-art-dlg i { grid-row: span 2; width: 26px; height: 26px; border-radius: 7px; background: center/cover url("assets/terminal/icon.png"); }
.tm-art-dlg b { font-size: 12.5px; font-weight: 600; }
.tm-art-dlg small { font-size: 11px; color: #9AA8B8; }
.tm-art-dlg em { grid-column: 1 / 3; display: flex; justify-content: flex-end; gap: 6px; margin-top: 9px; font-style: normal; }
.tm-art-dlg u, .tm-art-dlg s { text-decoration: none; padding: 5px 11px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.tm-art-dlg u { color: #9EC2FF; border: 1px solid rgba(255, 255, 255, 0.16); }
.tm-art-dlg s { background: #8AB4F8; color: #0B1B2C; animation: tm-glowbtn 2.4s ease-in-out infinite; }
@keyframes tm-glowbtn { 50% { box-shadow: 0 0 0 5px rgba(138, 180, 248, 0.25); } }
.tm-art-dock { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 14px; background: rgba(30, 44, 62, 0.75); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); margin-top: 30px; }
.tm-art-dock i { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(160deg, #3D4A5C, #222C39); }
.tm-art-dock i:nth-child(2) { background: linear-gradient(160deg, #6C8BB0, #3D5778); }
.tm-art-dock img { width: 34px; height: 34px; border-radius: 9px; animation: tm-bounce 2.6s ease-in-out infinite; }
@keyframes tm-bounce { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-14px); } 80% { transform: translateY(0); } 87% { transform: translateY(-6px); } }
.tm-inst-note { margin: 22px auto 0; max-width: 560px; font-size: 14px; color: #8A9DB0; line-height: 1.5; }
.tm-inst-alt { margin: 10px 0 0; font-size: 14px; color: #8A9DB0; }
.tm-inst-alt a { color: #C5D2DE; text-decoration: underline; text-underline-offset: 3px; }
.tm-inst-phone p { margin: 22px auto 0; max-width: 520px; font-size: 15px; line-height: 1.55; color: #C5D2DE; }
.tm-phone-acts { margin: 18px 0; }
.tm-inst-phone .store-badges { justify-content: center; }
.tm-inst-card.is-phone .tm-os, .tm-inst-card.is-phone .tm-inst-btn, .tm-inst-card.is-phone .tm-steps, .tm-inst-card.is-phone .tm-inst-note { display: none; }

/* keys */
.tm-keys { padding: 100px 0 60px; }
.tm-keys-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin: 44px auto 0; }
.tm-key { padding: 22px 22px 24px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(20, 42, 64, 0.55); }
.tm-key-ic { width: 52px; height: 52px; border-radius: 14px; background: #0C1E31; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.tm-key-ic img { width: 30px; height: 30px; border-radius: 7px; }
.tm-key b { display: block; margin-top: 16px; font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.tm-key > span:last-child { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5; color: #C5D2DE; }
.tm-keys-note { text-align: center; margin: 26px auto 0; max-width: 620px; font-size: 14px; color: #8A9DB0; line-height: 1.5; }

/* faq */
.tm-faq { padding: 90px 0 40px; }
.tm-faq-list { max-width: 820px; margin: 40px auto 0; }
.tm-faq details { border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.tm-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.tm-faq summary::-webkit-details-marker { display: none; }
.tm-faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid #8A9DB0; border-bottom: 2px solid #8A9DB0; transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.25s; }
.tm-faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.tm-faq summary:focus-visible { outline: 2px solid #00CCFF; outline-offset: 2px; border-radius: 8px; }
.tm-faq details p { margin: 0 4px 22px; font-size: 16px; line-height: 1.6; color: #C5D2DE; max-width: 700px; }
.tm-faq details p a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }

/* closing */
.tm-end { padding: 120px 0 120px; text-align: center; overflow: hidden; }
.tm-end::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 55% at 50% 40%, rgba(0, 204, 255, 0.12), transparent 70%); }
.tm-end .container { position: relative; }
.tm-end-ic img { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 26px; display: block; box-shadow: 0 20px 50px -18px rgba(0, 204, 255, 0.6); }
.tm-ctas { display: flex; gap: 12px; justify-content: center; margin: 32px 0 0; flex-wrap: wrap; }
.tm-fine { font-family: var(--font-body); font-size: 12px; color: #8A9DB0; max-width: 660px; margin: 52px auto 0; line-height: 1.6; }

/* ============ HOMEPAGE: teaser section and the hero chip (terminal.js teaser mode) ============ */
.tm-teaser { position: relative; overflow: hidden; }
.tm-teaser::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 40% at 50% 72%, rgba(0, 204, 255, 0.10), transparent 70%), radial-gradient(30% 30% at 40% 78%, rgba(51, 255, 153, 0.06), transparent 70%); }
.tm-teaser .container { position: relative; }
.tt-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tt-frame { position: relative; max-width: 1080px; margin: 56px auto 0; border-radius: 16px; }
.tt-dev { position: relative; width: 100%; }
.tt-dev .ta-scr { transition: opacity 0.6s ease; }
@media (max-width: 720px) {
  .tt-frame { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin-top: 36px; }
  .tt-frame::-webkit-scrollbar { display: none; }
  }

/* ============ LIGHT THEME: the page stays dark, the nav and footer follow the site ============ */
[data-theme="light"] .tm-page { background: #0A1A2B; }
/* the light nav has dark text: over this dark page it keeps its frosted white bar from the top */
[data-theme="light"] .tm-page .nav { background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); border-bottom-color: var(--hairline); }

/* ============ SMALL SCREENS ============ */
@media (max-width: 900px) {
  .tm-stats-grid { grid-template-columns: 1fr 1fr; }
  .tm-stat:nth-child(2) { border-right: 0; }
  .tm-stat:nth-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .tm-steps, .tm-keys-grid { grid-template-columns: 1fr; }
  .tm-step { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .tm-step-art { grid-row: span 2; height: 96px; }
  .tm-step > b { margin-top: 0; }
  .tm-art-dlg { width: 94%; padding: 7px 8px; }
  .tm-art-dlg em { margin-top: 5px; }
  .tm-art-dock { margin-top: 0; gap: 5px; padding: 5px 6px; }
  .tm-art-dock i, .tm-art-dock img { width: 24px; height: 24px; border-radius: 6px; }
}
@media (max-width: 720px) {
  .tm-stage { padding: 76px 12px 12px; }
  .tm-copy { height: clamp(120px, 21vh, 170px); }
  .tm-cap p { font-size: 14px; }
  .tm-stat { padding: 28px 10px; }
  .tm-stat span { font-size: 13px; }
  .tm-gal { padding-top: 80px; }
  .tm-gal-seg button { padding: 8px 11px; font-size: 12.5px; }
  .tm-faq summary { font-size: 16px; }
  .tm-inst-btn { width: 100%; padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-art-btn, .tm-art-cur, .tm-art-dlg s, .tm-art-dock img, .tm-hint svg, .ts-box .amt .caret { animation: none; }
}
